ppt-dsl-renderer 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/AGENT_PPTX_EXPORT.md +81 -0
  2. package/AGENT_USAGE.md +87 -0
  3. package/LICENSE +21 -0
  4. package/README.md +112 -0
  5. package/THIRD_PARTY_NOTICES.md +43 -0
  6. package/dist/browser/renderer.css +1 -0
  7. package/dist/browser/renderer.js +80 -0
  8. package/dist/cli.js +243 -0
  9. package/dist/index.js +140 -0
  10. package/dist/pptx/exporter.js +129 -0
  11. package/dist/pptx/index.js +7437 -0
  12. package/dist/vue/renderer.css +1 -0
  13. package/dist/vue/renderer.js +577 -0
  14. package/docs/AGENT.md +36 -0
  15. package/docs/DSL.md +60 -0
  16. package/docs/VUE.md +231 -0
  17. package/examples/deck.json +302 -0
  18. package/package.json +85 -0
  19. package/src/index.d.ts +24 -0
  20. package/src/pptx.d.ts +30 -0
  21. package/src/types/ppt-dsl.d.ts +241 -0
  22. package/src/types/vue.d.ts +40 -0
  23. package/src/vue.d.ts +16 -0
  24. package/third-party-licenses/core-util-is/LICENSE +19 -0
  25. package/third-party-licenses/dompurify/LICENSE +568 -0
  26. package/third-party-licenses/echarts/LICENSE +222 -0
  27. package/third-party-licenses/echarts/LICENSE-d3 +27 -0
  28. package/third-party-licenses/echarts/NOTICE +5 -0
  29. package/third-party-licenses/immediate/LICENSE.txt +20 -0
  30. package/third-party-licenses/inherits/LICENSE +16 -0
  31. package/third-party-licenses/isarray/LICENSE +22 -0
  32. package/third-party-licenses/jszip/LICENSE.markdown +651 -0
  33. package/third-party-licenses/lie/license.md +7 -0
  34. package/third-party-licenses/pako/LICENSE +21 -0
  35. package/third-party-licenses/pptxgenjs/LICENSE +21 -0
  36. package/third-party-licenses/readable-stream/LICENSE +47 -0
  37. package/third-party-licenses/safe-buffer/LICENSE +21 -0
  38. package/third-party-licenses/setimmediate/LICENSE.txt +20 -0
  39. package/third-party-licenses/string_decoder/LICENSE +48 -0
  40. package/third-party-licenses/svg-pathdata/LICENSE +20 -0
  41. package/third-party-licenses/tinycolor2/LICENSE +20 -0
  42. package/third-party-licenses/tslib/LICENSE.txt +12 -0
  43. package/third-party-licenses/util-deprecate/LICENSE +24 -0
  44. package/third-party-licenses/vue/LICENSE +21 -0
  45. package/third-party-licenses/vue-reactivity/LICENSE +21 -0
  46. package/third-party-licenses/vue-runtime-core/LICENSE +21 -0
  47. package/third-party-licenses/vue-runtime-dom/LICENSE +21 -0
  48. package/third-party-licenses/vue-shared/LICENSE +21 -0
  49. package/third-party-licenses/zrender/LICENSE +29 -0
@@ -0,0 +1,80 @@
1
+ (function(){"use strict";/**
2
+ * @vue/shared v3.4.21
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Fy(r,t){const e=new Set(r.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const we={},Dl=[],ta=()=>{},iG=()=>!1,jv=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),Gy=r=>r.startsWith("onUpdate:"),Ar=Object.assign,wT=(r,t)=>{const e=r.indexOf(t);e>-1&&r.splice(e,1)},oG=Object.prototype.hasOwnProperty,ie=(r,t)=>oG.call(r,t),jt=Array.isArray,Il=r=>Jv(r)==="[object Map]",TT=r=>Jv(r)==="[object Set]",he=r=>typeof r=="function",Be=r=>typeof r=="string",Ll=r=>typeof r=="symbol",Ve=r=>r!==null&&typeof r=="object",CT=r=>(Ve(r)||he(r))&&he(r.then)&&he(r.catch),AT=Object.prototype.toString,Jv=r=>AT.call(r),sG=r=>Jv(r).slice(8,-1),MT=r=>Jv(r)==="[object Object]",Hy=r=>Be(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,_f=Fy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Qv=r=>{const t=Object.create(null);return e=>t[e]||(t[e]=r(e))},lG=/-(\w)/g,ea=Qv(r=>r.replace(lG,(t,e)=>e?e.toUpperCase():"")),uG=/\B([A-Z])/g,Pl=Qv(r=>r.replace(uG,"-$1").toLowerCase()),th=Qv(r=>r.charAt(0).toUpperCase()+r.slice(1)),$y=Qv(r=>r?`on${th(r)}`:""),Pi=(r,t)=>!Object.is(r,t),Uy=(r,t)=>{for(let e=0;e<r.length;e++)r[e](t)},eh=(r,t,e)=>{Object.defineProperty(r,t,{configurable:!0,enumerable:!1,value:e})},fG=r=>{const t=parseFloat(r);return isNaN(t)?r:t};let DT;const IT=()=>DT||(DT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function cr(r){if(jt(r)){const t={};for(let e=0;e<r.length;e++){const n=r[e],a=Be(n)?dG(n):cr(n);if(a)for(const i in a)t[i]=a[i]}return t}else if(Be(r)||Ve(r))return r}const cG=/;(?![^(]*\))/g,vG=/:([^]+)/,hG=/\/\*[^]*?\*\//g;function dG(r){const t={};return r.replace(hG,"").split(cG).forEach(e=>{if(e){const n=e.split(vG);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ya(r){let t="";if(Be(r))t=r;else if(jt(r))for(let e=0;e<r.length;e++){const n=Ya(r[e]);n&&(t+=n+" ")}else if(Ve(r))for(const e in r)r[e]&&(t+=e+" ");return t.trim()}function Wy(r){if(!r)return null;let{class:t,style:e}=r;return t&&!Be(t)&&(r.class=Ya(t)),e&&(r.style=cr(e)),r}const pG=Fy("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function LT(r){return!!r||r===""}const PT=r=>Be(r)?r:r==null?"":jt(r)||Ve(r)&&(r.toString===AT||!he(r.toString))?JSON.stringify(r,ET,2):String(r),ET=(r,t)=>t&&t.__v_isRef?ET(r,t.value):Il(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,a],i)=>(e[Yy(n,i)+" =>"]=a,e),{})}:TT(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Yy(e))}:Ll(t)?Yy(t):Ve(t)&&!jt(t)&&!MT(t)?String(t):t,Yy=(r,t="")=>{var e;return Ll(r)?`Symbol(${(e=r.description)!=null?e:t})`:r};/**
6
+ * @vue/reactivity v3.4.21
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let On;class gG{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=On,!t&&On&&(this.index=(On.scopes||(On.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=On;try{return On=this,t()}finally{On=e}}}on(){On=this}off(){On=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function yG(r,t=On){t&&t.active&&t.effects.push(r)}function mG(){return On}let Eo;class Xy{constructor(t,e,n,a){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,yG(this,a)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ro();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(_G(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ko()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ei,e=Eo;try{return Ei=!0,Eo=this,this._runnings++,RT(this),this.fn()}finally{kT(this),this._runnings--,Eo=e,Ei=t}}stop(){var t;this.active&&(RT(this),kT(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function _G(r){return r.value}function RT(r){r._trackId++,r._depsLength=0}function kT(r){if(r.deps.length>r._depsLength){for(let t=r._depsLength;t<r.deps.length;t++)OT(r.deps[t],r);r.deps.length=r._depsLength}}function OT(r,t){const e=r.get(t);e!==void 0&&t._trackId!==e&&(r.delete(t),r.size===0&&r.cleanup())}let Ei=!0,Zy=0;const NT=[];function Ro(){NT.push(Ei),Ei=!1}function ko(){const r=NT.pop();Ei=r===void 0?!0:r}function Ky(){Zy++}function qy(){for(Zy--;!Zy&&jy.length;)jy.shift()()}function BT(r,t,e){if(t.get(r)!==r._trackId){t.set(r,r._trackId);const n=r.deps[r._depsLength];n!==t?(n&&OT(n,r),r.deps[r._depsLength++]=t):r._depsLength++}}const jy=[];function VT(r,t,e){Ky();for(const n of r.keys()){let a;n._dirtyLevel<t&&(a??(a=r.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(a??(a=r.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&jy.push(n.scheduler)))}qy()}const zT=(r,t)=>{const e=new Map;return e.cleanup=r,e.computed=t,e},Jy=new WeakMap,Oo=Symbol(""),Qy=Symbol("");function Ur(r,t,e){if(Ei&&Eo){let n=Jy.get(r);n||Jy.set(r,n=new Map);let a=n.get(e);a||n.set(e,a=zT(()=>n.delete(e))),BT(Eo,a)}}function Xa(r,t,e,n,a,i){const o=Jy.get(r);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(e==="length"&&jt(r)){const l=Number(n);o.forEach((u,f)=>{(f==="length"||!Ll(f)&&f>=l)&&s.push(u)})}else switch(e!==void 0&&s.push(o.get(e)),t){case"add":jt(r)?Hy(e)&&s.push(o.get("length")):(s.push(o.get(Oo)),Il(r)&&s.push(o.get(Qy)));break;case"delete":jt(r)||(s.push(o.get(Oo)),Il(r)&&s.push(o.get(Qy)));break;case"set":Il(r)&&s.push(o.get(Oo));break}Ky();for(const l of s)l&&VT(l,4);qy()}const SG=Fy("__proto__,__v_isRef,__isVue"),FT=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(Ll)),GT=xG();function xG(){const r={};return["includes","indexOf","lastIndexOf"].forEach(t=>{r[t]=function(...e){const n=oe(this);for(let i=0,o=this.length;i<o;i++)Ur(n,"get",i+"");const a=n[t](...e);return a===-1||a===!1?n[t](...e.map(oe)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{r[t]=function(...e){Ro(),Ky();const n=oe(this)[t].apply(this,e);return qy(),ko(),n}}),r}function bG(r){const t=oe(this);return Ur(t,"has",r),t.hasOwnProperty(r)}class HT{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const a=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!a;if(e==="__v_isReadonly")return a;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(a?i?OG:qT:i?KT:ZT).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=jt(t);if(!a){if(o&&ie(GT,e))return Reflect.get(GT,e,n);if(e==="hasOwnProperty")return bG}const s=Reflect.get(t,e,n);return(Ll(e)?FT.has(e):SG(e))||(a||Ur(t,"get",e),i)?s:Wr(s)?o&&Hy(e)?s:s.value:Ve(s)?a?JT(s):jT(s):s}}class $T extends HT{constructor(t=!1){super(!1,t)}set(t,e,n,a){let i=t[e];if(!this._isShallow){const l=Rl(i);if(!lh(n)&&!Rl(n)&&(i=oe(i),n=oe(n)),!jt(t)&&Wr(i)&&!Wr(n))return l?!1:(i.value=n,!0)}const o=jt(t)&&Hy(e)?Number(e)<t.length:ie(t,e),s=Reflect.set(t,e,n,a);return t===oe(a)&&(o?Pi(n,i)&&Xa(t,"set",e,n):Xa(t,"add",e,n)),s}deleteProperty(t,e){const n=ie(t,e);t[e];const a=Reflect.deleteProperty(t,e);return a&&n&&Xa(t,"delete",e,void 0),a}has(t,e){const n=Reflect.has(t,e);return(!Ll(e)||!FT.has(e))&&Ur(t,"has",e),n}ownKeys(t){return Ur(t,"iterate",jt(t)?"length":Oo),Reflect.ownKeys(t)}}class wG extends HT{constructor(t=!1){super(!0,t)}set(t,e){return!0}deleteProperty(t,e){return!0}}const TG=new $T,CG=new wG,AG=new $T(!0),tm=r=>r,rh=r=>Reflect.getPrototypeOf(r);function nh(r,t,e=!1,n=!1){r=r.__v_raw;const a=oe(r),i=oe(t);e||(Pi(t,i)&&Ur(a,"get",t),Ur(a,"get",i));const{has:o}=rh(a),s=n?tm:e?nm:Sf;if(o.call(a,t))return s(r.get(t));if(o.call(a,i))return s(r.get(i));r!==a&&r.get(t)}function ah(r,t=!1){const e=this.__v_raw,n=oe(e),a=oe(r);return t||(Pi(r,a)&&Ur(n,"has",r),Ur(n,"has",a)),r===a?e.has(r):e.has(r)||e.has(a)}function ih(r,t=!1){return r=r.__v_raw,!t&&Ur(oe(r),"iterate",Oo),Reflect.get(r,"size",r)}function UT(r){r=oe(r);const t=oe(this);return rh(t).has.call(t,r)||(t.add(r),Xa(t,"add",r,r)),this}function WT(r,t){t=oe(t);const e=oe(this),{has:n,get:a}=rh(e);let i=n.call(e,r);i||(r=oe(r),i=n.call(e,r));const o=a.call(e,r);return e.set(r,t),i?Pi(t,o)&&Xa(e,"set",r,t):Xa(e,"add",r,t),this}function YT(r){const t=oe(this),{has:e,get:n}=rh(t);let a=e.call(t,r);a||(r=oe(r),a=e.call(t,r)),n&&n.call(t,r);const i=t.delete(r);return a&&Xa(t,"delete",r,void 0),i}function XT(){const r=oe(this),t=r.size!==0,e=r.clear();return t&&Xa(r,"clear",void 0,void 0),e}function oh(r,t){return function(n,a){const i=this,o=i.__v_raw,s=oe(o),l=t?tm:r?nm:Sf;return!r&&Ur(s,"iterate",Oo),o.forEach((u,f)=>n.call(a,l(u),l(f),i))}}function sh(r,t,e){return function(...n){const a=this.__v_raw,i=oe(a),o=Il(i),s=r==="entries"||r===Symbol.iterator&&o,l=r==="keys"&&o,u=a[r](...n),f=e?tm:t?nm:Sf;return!t&&Ur(i,"iterate",l?Qy:Oo),{next(){const{value:c,done:v}=u.next();return v?{value:c,done:v}:{value:s?[f(c[0]),f(c[1])]:f(c),done:v}},[Symbol.iterator](){return this}}}}function Ri(r){return function(...t){return r==="delete"?!1:r==="clear"?void 0:this}}function MG(){const r={get(i){return nh(this,i)},get size(){return ih(this)},has:ah,add:UT,set:WT,delete:YT,clear:XT,forEach:oh(!1,!1)},t={get(i){return nh(this,i,!1,!0)},get size(){return ih(this)},has:ah,add:UT,set:WT,delete:YT,clear:XT,forEach:oh(!1,!0)},e={get(i){return nh(this,i,!0)},get size(){return ih(this,!0)},has(i){return ah.call(this,i,!0)},add:Ri("add"),set:Ri("set"),delete:Ri("delete"),clear:Ri("clear"),forEach:oh(!0,!1)},n={get(i){return nh(this,i,!0,!0)},get size(){return ih(this,!0)},has(i){return ah.call(this,i,!0)},add:Ri("add"),set:Ri("set"),delete:Ri("delete"),clear:Ri("clear"),forEach:oh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=sh(i,!1,!1),e[i]=sh(i,!0,!1),t[i]=sh(i,!1,!0),n[i]=sh(i,!0,!0)}),[r,e,t,n]}const[DG,IG,LG,PG]=MG();function em(r,t){const e=t?r?PG:LG:r?IG:DG;return(n,a,i)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(ie(e,a)&&a in n?e:n,a,i)}const EG={get:em(!1,!1)},RG={get:em(!1,!0)},kG={get:em(!0,!1)},ZT=new WeakMap,KT=new WeakMap,qT=new WeakMap,OG=new WeakMap;function NG(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function BG(r){return r.__v_skip||!Object.isExtensible(r)?0:NG(sG(r))}function jT(r){return Rl(r)?r:rm(r,!1,TG,EG,ZT)}function VG(r){return rm(r,!1,AG,RG,KT)}function JT(r){return rm(r,!0,CG,kG,qT)}function rm(r,t,e,n,a){if(!Ve(r)||r.__v_raw&&!(t&&r.__v_isReactive))return r;const i=a.get(r);if(i)return i;const o=BG(r);if(o===0)return r;const s=new Proxy(r,o===2?n:e);return a.set(r,s),s}function El(r){return Rl(r)?El(r.__v_raw):!!(r&&r.__v_isReactive)}function Rl(r){return!!(r&&r.__v_isReadonly)}function lh(r){return!!(r&&r.__v_isShallow)}function QT(r){return El(r)||Rl(r)}function oe(r){const t=r&&r.__v_raw;return t?oe(t):r}function tC(r){return Object.isExtensible(r)&&eh(r,"__v_skip",!0),r}const Sf=r=>Ve(r)?jT(r):r,nm=r=>Ve(r)?JT(r):r;class eC{constructor(t,e,n,a){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Xy(()=>t(this._value),()=>uh(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const t=oe(this);return(!t._cacheable||t.effect.dirty)&&Pi(t._value,t._value=t.effect.run())&&uh(t,4),rC(t),t.effect._dirtyLevel>=2&&uh(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function zG(r,t,e=!1){let n,a;const i=he(r);return i?(n=r,a=ta):(n=r.get,a=r.set),new eC(n,a,i||!a,e)}function rC(r){var t;Ei&&Eo&&(r=oe(r),BT(Eo,(t=r.dep)!=null?t:r.dep=zT(()=>r.dep=void 0,r instanceof eC?r:void 0)))}function uh(r,t=4,e){r=oe(r);const n=r.dep;n&&VT(n,t)}function Wr(r){return!!(r&&r.__v_isRef===!0)}function FG(r){return GG(r,!1)}function GG(r,t){return Wr(r)?r:new HG(r,t)}class HG{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:oe(t),this._value=e?t:Sf(t)}get value(){return rC(this),this._value}set value(t){const e=this.__v_isShallow||lh(t)||Rl(t);t=e?t:oe(t),Pi(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Sf(t),uh(this,4))}}function $G(r){return Wr(r)?r.value:r}const UG={get:(r,t,e)=>$G(Reflect.get(r,t,e)),set:(r,t,e,n)=>{const a=r[t];return Wr(a)&&!Wr(e)?(a.value=e,!0):Reflect.set(r,t,e,n)}};function nC(r){return El(r)?r:new Proxy(r,UG)}/**
10
+ * @vue/runtime-core v3.4.21
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const xf=[];function sdt(r,...t){Ro();const e=xf.length?xf[xf.length-1].component:null,n=e&&e.appContext.config.warnHandler,a=WG();if(n)Za(n,e,11,[r+t.map(i=>{var o,s;return(s=(o=i.toString)==null?void 0:o.call(i))!=null?s:JSON.stringify(i)}).join(""),e&&e.proxy,a.map(({vnode:i})=>`at <${WC(e,i.type)}>`).join(`
14
+ `),a]);else{const i=[`[Vue warn]: ${r}`,...t];a.length&&i.push(`
15
+ `,...YG(a)),console.warn(...i)}ko()}function WG(){let r=xf[xf.length-1];if(!r)return[];const t=[];for(;r;){const e=t[0];e&&e.vnode===r?e.recurseCount++:t.push({vnode:r,recurseCount:0});const n=r.component&&r.component.parent;r=n&&n.vnode}return t}function YG(r){const t=[];return r.forEach((e,n)=>{t.push(...n===0?[]:[`
16
+ `],...XG(e))}),t}function XG({vnode:r,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=r.component?r.component.parent==null:!1,a=` at <${WC(r.component,r.type,n)}`,i=">"+e;return r.props?[a,...ZG(r.props),i]:[a+i]}function ZG(r){const t=[],e=Object.keys(r);return e.slice(0,3).forEach(n=>{t.push(...aC(n,r[n]))}),e.length>3&&t.push(" ..."),t}function aC(r,t,e){return Be(t)?(t=JSON.stringify(t),e?t:[`${r}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${r}=${t}`]:Wr(t)?(t=aC(r,oe(t.value),!0),e?t:[`${r}=Ref<`,t,">"]):he(t)?[`${r}=fn${t.name?`<${t.name}>`:""}`]:(t=oe(t),e?t:[`${r}=`,t])}function Za(r,t,e,n){try{return n?r(...n):r()}catch(a){fh(a,t,e)}}function ra(r,t,e,n){if(he(r)){const i=Za(r,t,e,n);return i&&CT(i)&&i.catch(o=>{fh(o,t,e)}),i}const a=[];for(let i=0;i<r.length;i++)a.push(ra(r[i],t,e,n));return a}function fh(r,t,e,n=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${e}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](r,o,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Za(l,null,10,[r,o,s]);return}}KG(r,e,a,n)}function KG(r,t,e,n=!0){console.error(r)}let bf=!1,am=!1;const vr=[];let na=0;const kl=[];let ki=null,No=0;const iC=Promise.resolve();let im=null;function oC(r){const t=im||iC;return r?t.then(this?r.bind(this):r):t}function qG(r){let t=na+1,e=vr.length;for(;t<e;){const n=t+e>>>1,a=vr[n],i=wf(a);i<r||i===r&&a.pre?t=n+1:e=n}return t}function om(r){(!vr.length||!vr.includes(r,bf&&r.allowRecurse?na+1:na))&&(r.id==null?vr.push(r):vr.splice(qG(r.id),0,r),sC())}function sC(){!bf&&!am&&(am=!0,im=iC.then(fC))}function jG(r){const t=vr.indexOf(r);t>na&&vr.splice(t,1)}function JG(r){jt(r)?kl.push(...r):(!ki||!ki.includes(r,r.allowRecurse?No+1:No))&&kl.push(r),sC()}function lC(r,t,e=bf?na+1:0){for(;e<vr.length;e++){const n=vr[e];if(n&&n.pre){if(r&&n.id!==r.uid)continue;vr.splice(e,1),e--,n()}}}function uC(r){if(kl.length){const t=[...new Set(kl)].sort((e,n)=>wf(e)-wf(n));if(kl.length=0,ki){ki.push(...t);return}for(ki=t,No=0;No<ki.length;No++)ki[No]();ki=null,No=0}}const wf=r=>r.id==null?1/0:r.id,QG=(r,t)=>{const e=wf(r)-wf(t);if(e===0){if(r.pre&&!t.pre)return-1;if(t.pre&&!r.pre)return 1}return e};function fC(r){am=!1,bf=!0,vr.sort(QG);const t=ta;try{for(na=0;na<vr.length;na++){const e=vr[na];e&&e.active!==!1&&Za(e,null,14)}}finally{na=0,vr.length=0,uC(),bf=!1,im=null,(vr.length||kl.length)&&fC()}}function t3(r,t,...e){if(r.isUnmounted)return;const n=r.vnode.props||we;let a=e;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:c,trim:v}=n[f]||we;v&&(a=e.map(h=>Be(h)?h.trim():h)),c&&(a=e.map(fG))}let s,l=n[s=$y(t)]||n[s=$y(ea(t))];!l&&i&&(l=n[s=$y(Pl(t))]),l&&ra(l,r,6,a);const u=n[s+"Once"];if(u){if(!r.emitted)r.emitted={};else if(r.emitted[s])return;r.emitted[s]=!0,ra(u,r,6,a)}}function e3(r,t,e=!1){const n=t.emitsCache,a=n.get(r);if(a!==void 0)return a;const i=r.emits;let o={};return!i&&!!1?(Ve(r)&&n.set(r,null),null):(jt(i)?i.forEach(l=>o[l]=null):Ar(o,i),Ve(r)&&n.set(r,o),o)}function ch(r,t){return!r||!jv(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(r,t[0].toLowerCase()+t.slice(1))||ie(r,Pl(t))||ie(r,t))}let hr=null,vh=null;function hh(r){const t=hr;return hr=r,vh=r&&r.type.__scopeId||null,t}function r3(r){vh=r}function n3(){vh=null}function dh(r,t=hr,e){if(!t||r._n)return r;const n=(...a)=>{n._d&&RC(-1);const i=hh(t);let o;try{o=r(...a)}finally{hh(i),n._d&&RC(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function ldt(){}function sm(r){const{type:t,vnode:e,proxy:n,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,data:v,setupState:h,ctx:d,inheritAttrs:p}=r;let g,y;const m=hh(r);try{if(e.shapeFlag&4){const S=a||n,x=S;g=ia(f.call(x,S,c,i,h,v,d)),y=l}else{const S=t;g=ia(S.length>1?S(i,{attrs:l,slots:s,emit:u}):S(i,null)),y=t.props?l:a3(l)}}catch(S){If.length=0,fh(S,r,1),g=aa(Oi)}let _=g;if(y&&p!==!1){const S=Object.keys(y),{shapeFlag:x}=_;S.length&&x&7&&(o&&S.some(Gy)&&(y=i3(y,o)),_=Bl(_,y))}return e.dirs&&(_=Bl(_),_.dirs=_.dirs?_.dirs.concat(e.dirs):e.dirs),e.transition&&(_.transition=e.transition),g=_,hh(m),g}const a3=r=>{let t;for(const e in r)(e==="class"||e==="style"||jv(e))&&((t||(t={}))[e]=r[e]);return t},i3=(r,t)=>{const e={};for(const n in r)(!Gy(n)||!(n.slice(9)in t))&&(e[n]=r[n]);return e};function o3(r,t,e){const{props:n,children:a,component:i}=r,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?cC(n,o,u):!!o;if(l&8){const f=t.dynamicProps;for(let c=0;c<f.length;c++){const v=f[c];if(o[v]!==n[v]&&!ch(u,v))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?cC(n,o,u):!0:!!o;return!1}function cC(r,t,e){const n=Object.keys(t);if(n.length!==Object.keys(r).length)return!0;for(let a=0;a<n.length;a++){const i=n[a];if(t[i]!==r[i]&&!ch(e,i))return!0}return!1}function s3({vnode:r,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===r&&(n.el=r.el),n===r)(r=t.vnode).el=e,t=t.parent;else break}}const vC="components",hC=Symbol.for("v-ndc");function l3(r){return Be(r)?u3(vC,r,!1)||r:r||hC}function u3(r,t,e=!0,n=!1){const a=hr||sa;if(a){const i=a.type;if(r===vC){const s=UC(i,!1);if(s&&(s===t||s===ea(t)||s===th(ea(t))))return i}const o=dC(a[r]||i[r],t)||dC(a.appContext[r],t);return!o&&n?i:o}}function dC(r,t){return r&&(r[t]||r[ea(t)]||r[th(ea(t))])}const f3=r=>r.__isSuspense;function c3(r,t){t&&t.pendingBranch?jt(r)?t.effects.push(...r):t.effects.push(r):JG(r)}const v3=Symbol.for("v-scx"),h3=()=>bC(v3),ph={};function d3(r,t,e){return p3(r,t,e)}function p3(r,t,{immediate:e,deep:n,flush:a,once:i,onTrack:o,onTrigger:s}=we){if(t&&i){const b=t;t=(...w)=>{b(...w),x()}}const l=sa,u=b=>n===!0?b:Ol(b,n===!1?1:void 0);let f,c=!1,v=!1;if(Wr(r)?(f=()=>r.value,c=lh(r)):El(r)?(f=()=>u(r),c=!0):jt(r)?(v=!0,c=r.some(b=>El(b)||lh(b)),f=()=>r.map(b=>{if(Wr(b))return b.value;if(El(b))return u(b);if(he(b))return Za(b,l,2)})):he(r)?t?f=()=>Za(r,l,2):f=()=>(h&&h(),ra(r,l,3,[d])):f=ta,t&&n){const b=f;f=()=>Ol(b())}let h,d=b=>{h=_.onStop=()=>{Za(b,l,4),h=_.onStop=void 0}},p;if(Th)if(d=ta,t?e&&ra(t,l,3,[f(),v?[]:void 0,d]):f(),a==="sync"){const b=h3();p=b.__watcherHandles||(b.__watcherHandles=[])}else return ta;let g=v?new Array(r.length).fill(ph):ph;const y=()=>{if(!(!_.active||!_.dirty))if(t){const b=_.run();(n||c||(v?b.some((w,C)=>Pi(w,g[C])):Pi(b,g)))&&(h&&h(),ra(t,l,3,[b,g===ph?void 0:v&&g[0]===ph?[]:g,d]),g=b)}else _.run()};y.allowRecurse=!!t;let m;a==="sync"?m=y:a==="post"?m=()=>Yr(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),m=()=>om(y));const _=new Xy(f,ta,m),S=mG(),x=()=>{_.stop(),S&&wT(S.effects,_)};return t?e?y():g=_.run():a==="post"?Yr(_.run.bind(_),l&&l.suspense):_.run(),p&&p.push(x),x}function Ol(r,t,e=0,n){if(!Ve(r)||r.__v_skip)return r;if(t&&t>0){if(e>=t)return r;e++}if(n=n||new Set,n.has(r))return r;if(n.add(r),Wr(r))Ol(r.value,t,e,n);else if(jt(r))for(let a=0;a<r.length;a++)Ol(r[a],t,e,n);else if(TT(r)||Il(r))r.forEach(a=>{Ol(a,t,e,n)});else if(MT(r))for(const a in r)Ol(r[a],t,e,n);return r}function Bo(r,t,e,n){const a=r.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[n];l&&(Ro(),ra(l,e,8,[r.el,s,r,t]),ko())}}/*! #__NO_SIDE_EFFECTS__ */function Nn(r,t){return he(r)?(()=>Ar({name:r.name},t,{setup:r}))():r}const Tf=r=>!!r.type.__asyncLoader,g3=r=>r.type.__isKeepAlive;function y3(r,t,e=sa,n=!1){if(e){const a=e[r]||(e[r]=[]),i=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Ro();const s=ym(e),l=ra(t,e,r,o);return s(),ko(),l});return n?a.unshift(i):a.push(i),i}}const pC=r=>(t,e=sa)=>(!Th||r==="sp")&&y3(r,(...n)=>t(...n),e),m3=pC("m"),_3=pC("bum");function Cf(r,t,e,n){let a;const i=e&&e[n];if(jt(r)||Be(r)){a=new Array(r.length);for(let o=0,s=r.length;o<s;o++)a[o]=t(r[o],o,void 0,i&&i[o])}else if(typeof r=="number"){a=new Array(r);for(let o=0;o<r;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(Ve(r))if(r[Symbol.iterator])a=Array.from(r,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(r);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(r[u],u,s,i&&i[s])}}else a=[];return e&&(e[n]=a),a}function S3(r,t){for(let e=0;e<t.length;e++){const n=t[e];if(jt(n))for(let a=0;a<n.length;a++)r[n[a].name]=n[a].fn;else n&&(r[n.name]=n.key?(...a)=>{const i=n.fn(...a);return i&&(i.key=n.key),i}:n.fn)}return r}function Nl(r,t,e={},n,a){if(hr.isCE||hr.parent&&Tf(hr.parent)&&hr.parent.isCE)return t!=="default"&&(e.name=t),aa("slot",e,n&&n());let i=r[t];i&&i._c&&(i._d=!1),re();const o=i&&gC(i(e)),s=mh(dr,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&r._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function gC(r){return r.some(t=>OC(t)?!(t.type===Oi||t.type===dr&&!gC(t.children)):!0)?r:null}const lm=r=>r?FC(r)?mm(r)||r.proxy:lm(r.parent):null,Af=Ar(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>lm(r.parent),$root:r=>lm(r.root),$emit:r=>r.emit,$options:r=>r.type,$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,om(r.update)}),$nextTick:r=>r.n||(r.n=oC.bind(r.proxy)),$watch:r=>ta}),um=(r,t)=>r!==we&&!r.__isScriptSetup&&ie(r,t),x3={get({_:r},t){const{ctx:e,setupState:n,data:a,props:i,accessCache:o,type:s,appContext:l}=r;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return a[t];case 4:return e[t];case 3:return i[t]}else{if(um(n,t))return o[t]=1,n[t];if(a!==we&&ie(a,t))return o[t]=2,a[t];if((u=r.propsOptions[0])&&ie(u,t))return o[t]=3,i[t];if(e!==we&&ie(e,t))return o[t]=4,e[t];o[t]=0}}const f=Af[t];let c,v;if(f)return t==="$attrs"&&Ur(r,"get",t),f(r);if((c=s.__cssModules)&&(c=c[t]))return c;if(e!==we&&ie(e,t))return o[t]=4,e[t];if(v=l.config.globalProperties,ie(v,t))return v[t]},set({_:r},t,e){const{data:n,setupState:a,ctx:i}=r;return um(a,t)?(a[t]=e,!0):n!==we&&ie(n,t)?(n[t]=e,!0):ie(r.props,t)||t[0]==="$"&&t.slice(1)in r?!1:(i[t]=e,!0)},has({_:{data:r,setupState:t,accessCache:e,ctx:n,appContext:a,propsOptions:i}},o){let s;return!!e[o]||r!==we&&ie(r,o)||um(t,o)||(s=i[0])&&ie(s,o)||ie(n,o)||ie(Af,o)||ie(a.config.globalProperties,o)},defineProperty(r,t,e){return e.get!=null?r._.accessCache[t]=0:ie(e,"value")&&this.set(r,t,e.value,null),Reflect.defineProperty(r,t,e)}};function yC(r){return jt(r)?r.reduce((t,e)=>(t[e]=null,t),{}):r}function b3(r){const t=r.type,{mixins:e,extends:n}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=r.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!e&&!n?l=t:(l={},a.length&&a.forEach(u=>gh(l,u,o,!0)),gh(l,t,o)),Ve(t)&&i.set(t,l),l}function gh(r,t,e,n=!1){const{mixins:a,extends:i}=t;i&&gh(r,i,e,!0),a&&a.forEach(o=>gh(r,o,e,!0));for(const o in t)if(!(n&&o==="expose")){const s=w3[o]||e&&e[o];r[o]=s?s(r[o],t[o]):t[o]}return r}const w3={data:mC,props:SC,emits:SC,methods:Mf,computed:Mf,beforeCreate:Mr,created:Mr,beforeMount:Mr,mounted:Mr,beforeUpdate:Mr,updated:Mr,beforeDestroy:Mr,beforeUnmount:Mr,destroyed:Mr,unmounted:Mr,activated:Mr,deactivated:Mr,errorCaptured:Mr,serverPrefetch:Mr,components:Mf,directives:Mf,watch:C3,provide:mC,inject:T3};function mC(r,t){return t?r?function(){return Ar(he(r)?r.call(this,this):r,he(t)?t.call(this,this):t)}:t:r}function T3(r,t){return Mf(_C(r),_C(t))}function _C(r){if(jt(r)){const t={};for(let e=0;e<r.length;e++)t[r[e]]=r[e];return t}return r}function Mr(r,t){return r?[...new Set([].concat(r,t))]:t}function Mf(r,t){return r?Ar(Object.create(null),r,t):t}function SC(r,t){return r?jt(r)&&jt(t)?[...new Set([...r,...t])]:Ar(Object.create(null),yC(r),yC(t??{})):t}function C3(r,t){if(!r)return t;if(!t)return r;const e=Ar(Object.create(null),r);for(const n in t)e[n]=Mr(r[n],t[n]);return e}function xC(){return{app:null,config:{isNativeTag:iG,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let A3=0;function M3(r,t){return function(n,a=null){he(n)||(n=Ar({},n)),a!=null&&!Ve(a)&&(a=null);const i=xC(),o=new WeakSet;let s=!1;const l=i.app={_uid:A3++,_component:n,_props:a,_container:null,_context:i,_instance:null,version:J3,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&he(u.install)?(o.add(u),u.install(l,...f)):he(u)&&(o.add(u),u(l,...f))),l},mixin(u){return l},component(u,f){return f?(i.components[u]=f,l):i.components[u]},directive(u,f){return f?(i.directives[u]=f,l):i.directives[u]},mount(u,f,c){if(!s){const v=aa(n,a);return v.appContext=i,c===!0?c="svg":c===!1&&(c=void 0),f&&t?t(v,u):r(v,u,c),s=!0,l._container=u,u.__vue_app__=l,mm(v.component)||v.component.proxy}},unmount(){s&&(r(null,l._container),delete l._container.__vue_app__)},provide(u,f){return i.provides[u]=f,l},runWithContext(u){const f=Df;Df=l;try{return u()}finally{Df=f}}};return l}}let Df=null;function bC(r,t,e=!1){const n=sa||hr;if(n||Df){const a=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Df._context.provides;if(a&&r in a)return a[r];if(arguments.length>1)return e&&he(t)?t.call(n&&n.proxy):t}}function D3(r,t,e,n=!1){const a={},i={};eh(i,_h,1),r.propsDefaults=Object.create(null),wC(r,t,a,i);for(const o in r.propsOptions[0])o in a||(a[o]=void 0);e?r.props=n?a:VG(a):r.type.props?r.props=a:r.props=i,r.attrs=i}function I3(r,t,e,n){const{props:a,attrs:i,vnode:{patchFlag:o}}=r,s=oe(a),[l]=r.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=r.vnode.dynamicProps;for(let c=0;c<f.length;c++){let v=f[c];if(ch(r.emitsOptions,v))continue;const h=t[v];if(l)if(ie(i,v))h!==i[v]&&(i[v]=h,u=!0);else{const d=ea(v);a[d]=fm(l,s,d,h,r,!1)}else h!==i[v]&&(i[v]=h,u=!0)}}}else{wC(r,t,a,i)&&(u=!0);let f;for(const c in s)(!t||!ie(t,c)&&((f=Pl(c))===c||!ie(t,f)))&&(l?e&&(e[c]!==void 0||e[f]!==void 0)&&(a[c]=fm(l,s,c,void 0,r,!0)):delete a[c]);if(i!==s)for(const c in i)(!t||!ie(t,c))&&(delete i[c],u=!0)}u&&Xa(r,"set","$attrs")}function wC(r,t,e,n){const[a,i]=r.propsOptions;let o=!1,s;if(t)for(let l in t){if(_f(l))continue;const u=t[l];let f;a&&ie(a,f=ea(l))?!i||!i.includes(f)?e[f]=u:(s||(s={}))[f]=u:ch(r.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(i){const l=oe(e),u=s||we;for(let f=0;f<i.length;f++){const c=i[f];e[c]=fm(a,l,c,u[c],r,!ie(u,c))}}return o}function fm(r,t,e,n,a,i){const o=r[e];if(o!=null){const s=ie(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&he(l)){const{propsDefaults:u}=a;if(e in u)n=u[e];else{const f=ym(a);n=u[e]=l.call(null,t),f()}}else n=l}o[0]&&(i&&!s?n=!1:o[1]&&(n===""||n===Pl(e))&&(n=!0))}return n}function L3(r,t,e=!1){const n=t.propsCache,a=n.get(r);if(a)return a;const i=r.props,o={},s=[];if(!i&&!!1)return Ve(r)&&n.set(r,Dl),Dl;if(jt(i))for(let f=0;f<i.length;f++){const c=ea(i[f]);TC(c)&&(o[c]=we)}else if(i)for(const f in i){const c=ea(f);if(TC(c)){const v=i[f],h=o[c]=jt(v)||he(v)?{type:v}:Ar({},v);if(h){const d=MC(Boolean,h.type),p=MC(String,h.type);h[0]=d>-1,h[1]=p<0||d<p,(d>-1||ie(h,"default"))&&s.push(c)}}}const u=[o,s];return Ve(r)&&n.set(r,u),u}function TC(r){return r[0]!=="$"&&!_f(r)}function CC(r){return r===null?"null":typeof r=="function"?r.name||"":typeof r=="object"&&r.constructor&&r.constructor.name||""}function AC(r,t){return CC(r)===CC(t)}function MC(r,t){return jt(t)?t.findIndex(e=>AC(e,r)):he(t)&&AC(t,r)?0:-1}const DC=r=>r[0]==="_"||r==="$stable",cm=r=>jt(r)?r.map(ia):[ia(r)],P3=(r,t,e)=>{if(t._n)return t;const n=dh((...a)=>cm(t(...a)),e);return n._c=!1,n},IC=(r,t,e)=>{const n=r._ctx;for(const a in r){if(DC(a))continue;const i=r[a];if(he(i))t[a]=P3(a,i,n);else if(i!=null){const o=cm(i);t[a]=()=>o}}},LC=(r,t)=>{const e=cm(t);r.slots.default=()=>e},E3=(r,t)=>{if(r.vnode.shapeFlag&32){const e=t._;e?(r.slots=oe(t),eh(t,"_",e)):IC(t,r.slots={})}else r.slots={},t&&LC(r,t);eh(r.slots,_h,1)},R3=(r,t,e)=>{const{vnode:n,slots:a}=r;let i=!0,o=we;if(n.shapeFlag&32){const s=t._;s?e&&s===1?i=!1:(Ar(a,t),!e&&s===1&&delete a._):(i=!t.$stable,IC(t,a)),o=t}else t&&(LC(r,t),o={default:1});if(i)for(const s in a)!DC(s)&&o[s]==null&&delete a[s]};function vm(r,t,e,n,a=!1){if(jt(r)){r.forEach((v,h)=>vm(v,t&&(jt(t)?t[h]:t),e,n,a));return}if(Tf(n)&&!a)return;const i=n.shapeFlag&4?mm(n.component)||n.component.proxy:n.el,o=a?null:i,{i:s,r:l}=r,u=t&&t.r,f=s.refs===we?s.refs={}:s.refs,c=s.setupState;if(u!=null&&u!==l&&(Be(u)?(f[u]=null,ie(c,u)&&(c[u]=null)):Wr(u)&&(u.value=null)),he(l))Za(l,s,12,[o,f]);else{const v=Be(l),h=Wr(l);if(v||h){const d=()=>{if(r.f){const p=v?ie(c,l)?c[l]:f[l]:l.value;a?jt(p)&&wT(p,i):jt(p)?p.includes(i)||p.push(i):v?(f[l]=[i],ie(c,l)&&(c[l]=f[l])):(l.value=[i],r.k&&(f[r.k]=l.value))}else v?(f[l]=o,ie(c,l)&&(c[l]=o)):h&&(l.value=o,r.k&&(f[r.k]=o))};o?(d.id=-1,Yr(d,e)):d()}}}const Yr=c3;function k3(r){return O3(r)}function O3(r,t){const e=IT();e.__VUE__=!0;const{insert:n,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:v,setScopeId:h=ta,insertStaticContent:d}=r,p=(k,B,U,Z=null,j=null,tt=null,lt=void 0,at=null,ht=!!B.dynamicChildren)=>{if(k===B)return;k&&!Pf(k,B)&&(Z=Ht(k),X(k,j,tt,!0),k=null),B.patchFlag===-2&&(ht=!1,B.dynamicChildren=null);const{type:rt,ref:At,shapeFlag:kt}=B;switch(rt){case yh:g(k,B,U,Z);break;case Oi:y(k,B,U,Z);break;case dm:k==null&&m(B,U,Z,lt);break;case dr:L(k,B,U,Z,j,tt,lt,at,ht);break;default:kt&1?x(k,B,U,Z,j,tt,lt,at,ht):kt&6?I(k,B,U,Z,j,tt,lt,at,ht):(kt&64||kt&128)&&rt.process(k,B,U,Z,j,tt,lt,at,ht,Tt)}At!=null&&j&&vm(At,k&&k.ref,tt,B||k,!B)},g=(k,B,U,Z)=>{if(k==null)n(B.el=s(B.children),U,Z);else{const j=B.el=k.el;B.children!==k.children&&u(j,B.children)}},y=(k,B,U,Z)=>{k==null?n(B.el=l(B.children||""),U,Z):B.el=k.el},m=(k,B,U,Z)=>{[k.el,k.anchor]=d(k.children,B,U,Z,k.el,k.anchor)},_=({el:k,anchor:B},U,Z)=>{let j;for(;k&&k!==B;)j=v(k),n(k,U,Z),k=j;n(B,U,Z)},S=({el:k,anchor:B})=>{let U;for(;k&&k!==B;)U=v(k),a(k),k=U;a(B)},x=(k,B,U,Z,j,tt,lt,at,ht)=>{B.type==="svg"?lt="svg":B.type==="math"&&(lt="mathml"),k==null?b(B,U,Z,j,tt,lt,at,ht):T(k,B,j,tt,lt,at,ht)},b=(k,B,U,Z,j,tt,lt,at)=>{let ht,rt;const{props:At,shapeFlag:kt,transition:Pt,dirs:zt}=k;if(ht=k.el=o(k.type,tt,At&&At.is,At),kt&8?f(ht,k.children):kt&16&&C(k.children,ht,null,Z,j,hm(k,tt),lt,at),zt&&Bo(k,null,Z,"created"),w(ht,k,k.scopeId,lt,Z),At){for(const le in At)le!=="value"&&!_f(le)&&i(ht,le,null,At[le],tt,k.children,Z,j,St);"value"in At&&i(ht,"value",null,At.value,tt),(rt=At.onVnodeBeforeMount)&&oa(rt,Z,k)}zt&&Bo(k,null,Z,"beforeMount");const $t=N3(j,Pt);$t&&Pt.beforeEnter(ht),n(ht,B,U),((rt=At&&At.onVnodeMounted)||$t||zt)&&Yr(()=>{rt&&oa(rt,Z,k),$t&&Pt.enter(ht),zt&&Bo(k,null,Z,"mounted")},j)},w=(k,B,U,Z,j)=>{if(U&&h(k,U),Z)for(let tt=0;tt<Z.length;tt++)h(k,Z[tt]);if(j){let tt=j.subTree;if(B===tt){const lt=j.vnode;w(k,lt,lt.scopeId,lt.slotScopeIds,j.parent)}}},C=(k,B,U,Z,j,tt,lt,at,ht=0)=>{for(let rt=ht;rt<k.length;rt++){const At=k[rt]=at?Ni(k[rt]):ia(k[rt]);p(null,At,B,U,Z,j,tt,lt,at)}},T=(k,B,U,Z,j,tt,lt)=>{const at=B.el=k.el;let{patchFlag:ht,dynamicChildren:rt,dirs:At}=B;ht|=k.patchFlag&16;const kt=k.props||we,Pt=B.props||we;let zt;if(U&&Vo(U,!1),(zt=Pt.onVnodeBeforeUpdate)&&oa(zt,U,B,k),At&&Bo(B,k,U,"beforeUpdate"),U&&Vo(U,!0),rt?D(k.dynamicChildren,rt,at,U,Z,hm(B,j),tt):lt||O(k,B,at,null,U,Z,hm(B,j),tt,!1),ht>0){if(ht&16)A(at,B,kt,Pt,U,Z,j);else if(ht&2&&kt.class!==Pt.class&&i(at,"class",null,Pt.class,j),ht&4&&i(at,"style",kt.style,Pt.style,j),ht&8){const $t=B.dynamicProps;for(let le=0;le<$t.length;le++){const _e=$t[le],Ne=kt[_e],$r=Pt[_e];($r!==Ne||_e==="value")&&i(at,_e,Ne,$r,j,k.children,U,Z,St)}}ht&1&&k.children!==B.children&&f(at,B.children)}else!lt&&rt==null&&A(at,B,kt,Pt,U,Z,j);((zt=Pt.onVnodeUpdated)||At)&&Yr(()=>{zt&&oa(zt,U,B,k),At&&Bo(B,k,U,"updated")},Z)},D=(k,B,U,Z,j,tt,lt)=>{for(let at=0;at<B.length;at++){const ht=k[at],rt=B[at],At=ht.el&&(ht.type===dr||!Pf(ht,rt)||ht.shapeFlag&70)?c(ht.el):U;p(ht,rt,At,null,Z,j,tt,lt,!0)}},A=(k,B,U,Z,j,tt,lt)=>{if(U!==Z){if(U!==we)for(const at in U)!_f(at)&&!(at in Z)&&i(k,at,U[at],null,lt,B.children,j,tt,St);for(const at in Z){if(_f(at))continue;const ht=Z[at],rt=U[at];ht!==rt&&at!=="value"&&i(k,at,rt,ht,lt,B.children,j,tt,St)}"value"in Z&&i(k,"value",U.value,Z.value,lt)}},L=(k,B,U,Z,j,tt,lt,at,ht)=>{const rt=B.el=k?k.el:s(""),At=B.anchor=k?k.anchor:s("");let{patchFlag:kt,dynamicChildren:Pt,slotScopeIds:zt}=B;zt&&(at=at?at.concat(zt):zt),k==null?(n(rt,U,Z),n(At,U,Z),C(B.children||[],U,At,j,tt,lt,at,ht)):kt>0&&kt&64&&Pt&&k.dynamicChildren?(D(k.dynamicChildren,Pt,U,j,tt,lt,at),(B.key!=null||j&&B===j.subTree)&&PC(k,B,!0)):O(k,B,U,At,j,tt,lt,at,ht)},I=(k,B,U,Z,j,tt,lt,at,ht)=>{B.slotScopeIds=at,k==null?B.shapeFlag&512?j.ctx.activate(B,U,Z,lt,ht):P(B,U,Z,j,tt,lt,ht):R(k,B,ht)},P=(k,B,U,Z,j,tt,lt)=>{const at=k.component=U3(k,Z,j);if(g3(k)&&(at.ctx.renderer=Tt),W3(at),at.asyncDep){if(j&&j.registerDep(at,E),!k.el){const ht=at.subTree=aa(Oi);y(null,ht,B,U)}}else E(at,k,B,U,j,tt,lt)},R=(k,B,U)=>{const Z=B.component=k.component;if(o3(k,B,U))if(Z.asyncDep&&!Z.asyncResolved){N(Z,B,U);return}else Z.next=B,jG(Z.update),Z.effect.dirty=!0,Z.update();else B.el=k.el,Z.vnode=B},E=(k,B,U,Z,j,tt,lt)=>{const at=()=>{if(k.isMounted){let{next:At,bu:kt,u:Pt,parent:zt,vnode:$t}=k;{const Di=EC(k);if(Di){At&&(At.el=$t.el,N(k,At,lt)),Di.asyncDep.then(()=>{k.isUnmounted||at()});return}}let le=At,_e;Vo(k,!1),At?(At.el=$t.el,N(k,At,lt)):At=$t,kt&&Uy(kt),(_e=At.props&&At.props.onVnodeBeforeUpdate)&&oa(_e,zt,At,$t),Vo(k,!0);const Ne=sm(k),$r=k.subTree;k.subTree=Ne,p($r,Ne,c($r.el),Ht($r),k,j,tt),At.el=Ne.el,le===null&&s3(k,Ne.el),Pt&&Yr(Pt,j),(_e=At.props&&At.props.onVnodeUpdated)&&Yr(()=>oa(_e,zt,At,$t),j)}else{let At;const{el:kt,props:Pt}=B,{bm:zt,m:$t,parent:le}=k,_e=Tf(B);if(Vo(k,!1),zt&&Uy(zt),!_e&&(At=Pt&&Pt.onVnodeBeforeMount)&&oa(At,le,B),Vo(k,!0),kt&&wt){const Ne=()=>{k.subTree=sm(k),wt(kt,k.subTree,k,j,null)};_e?B.type.__asyncLoader().then(()=>!k.isUnmounted&&Ne()):Ne()}else{const Ne=k.subTree=sm(k);p(null,Ne,U,Z,k,j,tt),B.el=Ne.el}if($t&&Yr($t,j),!_e&&(At=Pt&&Pt.onVnodeMounted)){const Ne=B;Yr(()=>oa(At,le,Ne),j)}(B.shapeFlag&256||le&&Tf(le.vnode)&&le.vnode.shapeFlag&256)&&k.a&&Yr(k.a,j),k.isMounted=!0,B=U=Z=null}},ht=k.effect=new Xy(at,ta,()=>om(rt),k.scope),rt=k.update=()=>{ht.dirty&&ht.run()};rt.id=k.uid,Vo(k,!0),rt()},N=(k,B,U)=>{B.component=k;const Z=k.vnode.props;k.vnode=B,k.next=null,I3(k,B.props,Z,U),R3(k,B.children,U),Ro(),lC(k),ko()},O=(k,B,U,Z,j,tt,lt,at,ht=!1)=>{const rt=k&&k.children,At=k?k.shapeFlag:0,kt=B.children,{patchFlag:Pt,shapeFlag:zt}=B;if(Pt>0){if(Pt&128){$(rt,kt,U,Z,j,tt,lt,at,ht);return}else if(Pt&256){G(rt,kt,U,Z,j,tt,lt,at,ht);return}}zt&8?(At&16&&St(rt,j,tt),kt!==rt&&f(U,kt)):At&16?zt&16?$(rt,kt,U,Z,j,tt,lt,at,ht):St(rt,j,tt,!0):(At&8&&f(U,""),zt&16&&C(kt,U,Z,j,tt,lt,at,ht))},G=(k,B,U,Z,j,tt,lt,at,ht)=>{k=k||Dl,B=B||Dl;const rt=k.length,At=B.length,kt=Math.min(rt,At);let Pt;for(Pt=0;Pt<kt;Pt++){const zt=B[Pt]=ht?Ni(B[Pt]):ia(B[Pt]);p(k[Pt],zt,U,null,j,tt,lt,at,ht)}rt>At?St(k,j,tt,!0,!1,kt):C(B,U,Z,j,tt,lt,at,ht,kt)},$=(k,B,U,Z,j,tt,lt,at,ht)=>{let rt=0;const At=B.length;let kt=k.length-1,Pt=At-1;for(;rt<=kt&&rt<=Pt;){const zt=k[rt],$t=B[rt]=ht?Ni(B[rt]):ia(B[rt]);if(Pf(zt,$t))p(zt,$t,U,null,j,tt,lt,at,ht);else break;rt++}for(;rt<=kt&&rt<=Pt;){const zt=k[kt],$t=B[Pt]=ht?Ni(B[Pt]):ia(B[Pt]);if(Pf(zt,$t))p(zt,$t,U,null,j,tt,lt,at,ht);else break;kt--,Pt--}if(rt>kt){if(rt<=Pt){const zt=Pt+1,$t=zt<At?B[zt].el:Z;for(;rt<=Pt;)p(null,B[rt]=ht?Ni(B[rt]):ia(B[rt]),U,$t,j,tt,lt,at,ht),rt++}}else if(rt>Pt)for(;rt<=kt;)X(k[rt],j,tt,!0),rt++;else{const zt=rt,$t=rt,le=new Map;for(rt=$t;rt<=Pt;rt++){const Xe=B[rt]=ht?Ni(B[rt]):ia(B[rt]);Xe.key!=null&&le.set(Xe.key,rt)}let _e,Ne=0;const $r=Pt-$t+1;let Di=!1,Al=0;const Ua=new Array($r);for(rt=0;rt<$r;rt++)Ua[rt]=0;for(rt=zt;rt<=kt;rt++){const Xe=k[rt];if(Ne>=$r){X(Xe,j,tt,!0);continue}let tn;if(Xe.key!=null)tn=le.get(Xe.key);else for(_e=$t;_e<=Pt;_e++)if(Ua[_e-$t]===0&&Pf(Xe,B[_e])){tn=_e;break}tn===void 0?X(Xe,j,tt,!0):(Ua[tn-$t]=rt+1,tn>=Al?Al=tn:Di=!0,p(Xe,B[tn],U,null,j,tt,lt,at,ht),Ne++)}const kn=Di?B3(Ua):Dl;for(_e=kn.length-1,rt=$r-1;rt>=0;rt--){const Xe=$t+rt,tn=B[Xe],gf=Xe+1<At?B[Xe+1].el:Z;Ua[rt]===0?p(null,tn,U,gf,j,tt,lt,at,ht):Di&&(_e<0||rt!==kn[_e]?H(tn,U,gf,2):_e--)}}},H=(k,B,U,Z,j=null)=>{const{el:tt,type:lt,transition:at,children:ht,shapeFlag:rt}=k;if(rt&6){H(k.component.subTree,B,U,Z);return}if(rt&128){k.suspense.move(B,U,Z);return}if(rt&64){lt.move(k,B,U,Tt);return}if(lt===dr){n(tt,B,U);for(let kt=0;kt<ht.length;kt++)H(ht[kt],B,U,Z);n(k.anchor,B,U);return}if(lt===dm){_(k,B,U);return}if(Z!==2&&rt&1&&at)if(Z===0)at.beforeEnter(tt),n(tt,B,U),Yr(()=>at.enter(tt),j);else{const{leave:kt,delayLeave:Pt,afterLeave:zt}=at,$t=()=>n(tt,B,U),le=()=>{kt(tt,()=>{$t(),zt&&zt()})};Pt?Pt(tt,$t,le):le()}else n(tt,B,U)},X=(k,B,U,Z=!1,j=!1)=>{const{type:tt,props:lt,ref:at,children:ht,dynamicChildren:rt,shapeFlag:At,patchFlag:kt,dirs:Pt}=k;if(at!=null&&vm(at,null,U,k,!0),At&256){B.ctx.deactivate(k);return}const zt=At&1&&Pt,$t=!Tf(k);let le;if($t&&(le=lt&&lt.onVnodeBeforeUnmount)&&oa(le,B,k),At&6)Q(k.component,U,Z);else{if(At&128){k.suspense.unmount(U,Z);return}zt&&Bo(k,null,B,"beforeUnmount"),At&64?k.type.remove(k,B,U,j,Tt,Z):rt&&(tt!==dr||kt>0&&kt&64)?St(rt,B,U,!1,!0):(tt===dr&&kt&384||!j&&At&16)&&St(ht,B,U),Z&&q(k)}($t&&(le=lt&&lt.onVnodeUnmounted)||zt)&&Yr(()=>{le&&oa(le,B,k),zt&&Bo(k,null,B,"unmounted")},U)},q=k=>{const{type:B,el:U,anchor:Z,transition:j}=k;if(B===dr){J(U,Z);return}if(B===dm){S(k);return}const tt=()=>{a(U),j&&!j.persisted&&j.afterLeave&&j.afterLeave()};if(k.shapeFlag&1&&j&&!j.persisted){const{leave:lt,delayLeave:at}=j,ht=()=>lt(U,tt);at?at(k.el,tt,ht):ht()}else tt()},J=(k,B)=>{let U;for(;k!==B;)U=v(k),a(k),k=U;a(B)},Q=(k,B,U)=>{const{bum:Z,scope:j,update:tt,subTree:lt,um:at}=k;Z&&Uy(Z),j.stop(),tt&&(tt.active=!1,X(lt,k,B,U)),at&&Yr(at,B),Yr(()=>{k.isUnmounted=!0},B),B&&B.pendingBranch&&!B.isUnmounted&&k.asyncDep&&!k.asyncResolved&&k.suspenseId===B.pendingId&&(B.deps--,B.deps===0&&B.resolve())},St=(k,B,U,Z=!1,j=!1,tt=0)=>{for(let lt=tt;lt<k.length;lt++)X(k[lt],B,U,Z,j)},Ht=k=>k.shapeFlag&6?Ht(k.component.subTree):k.shapeFlag&128?k.suspense.next():v(k.anchor||k.el);let gt=!1;const ft=(k,B,U)=>{k==null?B._vnode&&X(B._vnode,null,null,!0):p(B._vnode||null,k,B,null,null,null,U),gt||(gt=!0,lC(),uC(),gt=!1),B._vnode=k},Tt={p,um:X,m:H,r:q,mt:P,mc:C,pc:O,pbc:D,n:Ht,o:r};let ct,wt;return t&&([ct,wt]=t(Tt)),{render:ft,hydrate:ct,createApp:M3(ft,ct)}}function hm({type:r,props:t},e){return e==="svg"&&r==="foreignObject"||e==="mathml"&&r==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function Vo({effect:r,update:t},e){r.allowRecurse=t.allowRecurse=e}function N3(r,t){return(!r||r&&!r.pendingBranch)&&t&&!t.persisted}function PC(r,t,e=!1){const n=r.children,a=t.children;if(jt(n)&&jt(a))for(let i=0;i<n.length;i++){const o=n[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=Ni(a[i]),s.el=o.el),e||PC(o,s)),s.type===yh&&(s.el=o.el)}}function B3(r){const t=r.slice(),e=[0];let n,a,i,o,s;const l=r.length;for(n=0;n<l;n++){const u=r[n];if(u!==0){if(a=e[e.length-1],r[a]<u){t[n]=a,e.push(n);continue}for(i=0,o=e.length-1;i<o;)s=i+o>>1,r[e[s]]<u?i=s+1:o=s;u<r[e[i]]&&(i>0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function EC(r){const t=r.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:EC(t)}const V3=r=>r.__isTeleport,dr=Symbol.for("v-fgt"),yh=Symbol.for("v-txt"),Oi=Symbol.for("v-cmt"),dm=Symbol.for("v-stc"),If=[];let Bn=null;function re(r=!1){If.push(Bn=r?null:[])}function z3(){If.pop(),Bn=If[If.length-1]||null}let Lf=1;function RC(r){Lf+=r}function kC(r){return r.dynamicChildren=Lf>0?Bn||Dl:null,z3(),Lf>0&&Bn&&Bn.push(r),r}function se(r,t,e,n,a,i){return kC(Dr(r,t,e,n,a,i,!0))}function mh(r,t,e,n,a){return kC(aa(r,t,e,n,a,!0))}function OC(r){return r?r.__v_isVNode===!0:!1}function Pf(r,t){return r.type===t.type&&r.key===t.key}const _h="__vInternal",NC=({key:r})=>r??null,Sh=({ref:r,ref_key:t,ref_for:e})=>(typeof r=="number"&&(r=""+r),r!=null?Be(r)||Wr(r)||he(r)?{i:hr,r,k:t,f:!!e}:r:null);function Dr(r,t=null,e=null,n=0,a=null,i=r===dr?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:r,props:t,key:t&&NC(t),ref:t&&Sh(t),scopeId:vh,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:hr};return s?(pm(l,e),i&128&&r.normalize(l)):e&&(l.shapeFlag|=Be(e)?8:16),Lf>0&&!o&&Bn&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Bn.push(l),l}const aa=F3;function F3(r,t=null,e=null,n=0,a=null,i=!1){if((!r||r===hC)&&(r=Oi),OC(r)){const s=Bl(r,t,!0);return e&&pm(s,e),Lf>0&&!i&&Bn&&(s.shapeFlag&6?Bn[Bn.indexOf(r)]=s:Bn.push(s)),s.patchFlag|=-2,s}if(j3(r)&&(r=r.__vccOpts),t){t=xh(t);let{class:s,style:l}=t;s&&!Be(s)&&(t.class=Ya(s)),Ve(l)&&(QT(l)&&!jt(l)&&(l=Ar({},l)),t.style=cr(l))}const o=Be(r)?1:f3(r)?128:V3(r)?64:Ve(r)?4:he(r)?2:0;return Dr(r,t,e,n,a,o,i,!0)}function xh(r){return r?QT(r)||_h in r?Ar({},r):r:null}function Bl(r,t,e=!1){const{props:n,ref:a,patchFlag:i,children:o}=r,s=t?G3(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:s,key:s&&NC(s),ref:t&&t.ref?e&&a?jt(a)?a.concat(Sh(t)):[a,Sh(t)]:Sh(t):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:o,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:t&&r.type!==dr?i===-1?16:i|16:i,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&Bl(r.ssContent),ssFallback:r.ssFallback&&Bl(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function BC(r=" ",t=0){return aa(yh,null,r,t)}function bh(r="",t=!1){return t?(re(),mh(Oi,null,r)):aa(Oi,null,r)}function ia(r){return r==null||typeof r=="boolean"?aa(Oi):jt(r)?aa(dr,null,r.slice()):typeof r=="object"?Ni(r):aa(yh,null,String(r))}function Ni(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:Bl(r)}function pm(r,t){let e=0;const{shapeFlag:n}=r;if(t==null)t=null;else if(jt(t))e=16;else if(typeof t=="object")if(n&65){const a=t.default;a&&(a._c&&(a._d=!1),pm(r,a()),a._c&&(a._d=!0));return}else{e=32;const a=t._;!a&&!(_h in t)?t._ctx=hr:a===3&&hr&&(hr.slots._===1?t._=1:(t._=2,r.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:hr},e=32):(t=String(t),n&64?(e=16,t=[BC(t)]):e=8);r.children=t,r.shapeFlag|=e}function G3(...r){const t={};for(let e=0;e<r.length;e++){const n=r[e];for(const a in n)if(a==="class")t.class!==n.class&&(t.class=Ya([t.class,n.class]));else if(a==="style")t.style=cr([t.style,n.style]);else if(jv(a)){const i=t[a],o=n[a];o&&i!==o&&!(jt(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=n[a])}return t}function oa(r,t,e,n=null){ra(r,t,7,[e,n])}const H3=xC();let $3=0;function U3(r,t,e){const n=r.type,a=(t?t.appContext:r.appContext)||H3,i={uid:$3++,vnode:r,type:n,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new gG(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:L3(n,a),emitsOptions:e3(n,a),emit:null,emitted:null,propsDefaults:we,inheritAttrs:n.inheritAttrs,ctx:we,data:we,props:we,attrs:we,slots:we,refs:we,setupState:we,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=t3.bind(null,i),r.ce&&r.ce(i),i}let sa=null;const VC=()=>sa||hr;let wh,gm;{const r=IT(),t=(e,n)=>{let a;return(a=r[e])||(a=r[e]=[]),a.push(n),i=>{a.length>1?a.forEach(o=>o(i)):a[0](i)}};wh=t("__VUE_INSTANCE_SETTERS__",e=>sa=e),gm=t("__VUE_SSR_SETTERS__",e=>Th=e)}const ym=r=>{const t=sa;return wh(r),r.scope.on(),()=>{r.scope.off(),wh(t)}},zC=()=>{sa&&sa.scope.off(),wh(null)};function FC(r){return r.vnode.shapeFlag&4}let Th=!1;function W3(r,t=!1){t&&gm(t);const{props:e,children:n}=r.vnode,a=FC(r);D3(r,e,a,t),E3(r,n);const i=a?Y3(r,t):void 0;return t&&gm(!1),i}function Y3(r,t){const e=r.type;r.accessCache=Object.create(null),r.proxy=tC(new Proxy(r.ctx,x3));const{setup:n}=e;if(n){const a=r.setupContext=n.length>1?Z3(r):null,i=ym(r);Ro();const o=Za(n,r,0,[r.props,a]);if(ko(),i(),CT(o)){if(o.then(zC,zC),t)return o.then(s=>{GC(r,s,t)}).catch(s=>{fh(s,r,0)});r.asyncDep=o}else GC(r,o,t)}else $C(r,t)}function GC(r,t,e){he(t)?r.type.__ssrInlineRender?r.ssrRender=t:r.render=t:Ve(t)&&(r.setupState=nC(t)),$C(r,e)}let HC;function $C(r,t,e){const n=r.type;if(!r.render){if(!t&&HC&&!n.render){const a=n.template||b3(r).template;if(a){const{isCustomElement:i,compilerOptions:o}=r.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ar(Ar({isCustomElement:i,delimiters:s},o),l);n.render=HC(a,u)}}r.render=n.render||ta}}function X3(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(t,e){return Ur(r,"get","$attrs"),t[e]}}))}function Z3(r){const t=e=>{r.exposed=e||{}};return{get attrs(){return X3(r)},slots:r.slots,emit:r.emit,expose:t}}function mm(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(nC(tC(r.exposed)),{get(t,e){if(e in t)return t[e];if(e in Af)return Af[e](r)},has(t,e){return e in t||e in Af}}))}const K3=/(?:^|[-_])(\w)/g,q3=r=>r.replace(K3,t=>t.toUpperCase()).replace(/[-_]/g,"");function UC(r,t=!0){return he(r)?r.displayName||r.name:r.name||t&&r.__name}function WC(r,t,e=!1){let n=UC(t);if(!n&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&r&&r.parent){const a=i=>{for(const o in i)if(i[o]===t)return o};n=a(r.components||r.parent.type.components)||a(r.appContext.components)}return n?q3(n):e?"App":"Anonymous"}function j3(r){return he(r)&&"__vccOpts"in r}const rn=(r,t)=>zG(r,t,Th),J3="3.4.21";/**
17
+ * @vue/runtime-dom v3.4.21
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/const Q3="http://www.w3.org/2000/svg",tH="http://www.w3.org/1998/Math/MathML",Bi=typeof document<"u"?document:null,YC=Bi&&Bi.createElement("template"),eH={insert:(r,t,e)=>{t.insertBefore(r,e||null)},remove:r=>{const t=r.parentNode;t&&t.removeChild(r)},createElement:(r,t,e,n)=>{const a=t==="svg"?Bi.createElementNS(Q3,r):t==="mathml"?Bi.createElementNS(tH,r):Bi.createElement(r,e?{is:e}:void 0);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>Bi.createTextNode(r),createComment:r=>Bi.createComment(r),setText:(r,t)=>{r.nodeValue=t},setElementText:(r,t)=>{r.textContent=t},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>Bi.querySelector(r),setScopeId(r,t){r.setAttribute(t,"")},insertStaticContent(r,t,e,n,a,i){const o=e?e.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),e),!(a===i||!(a=a.nextSibling)););else{YC.innerHTML=n==="svg"?`<svg>${r}</svg>`:n==="mathml"?`<math>${r}</math>`:r;const s=YC.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},rH=Symbol("_vtc");function nH(r,t,e){const n=r[rH];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?r.removeAttribute("class"):e?r.setAttribute("class",t):r.className=t}const XC=Symbol("_vod"),aH=Symbol("_vsh"),iH=Symbol(""),oH=/(^|;)\s*display\s*:/;function sH(r,t,e){const n=r.style,a=Be(e);let i=!1;if(e&&!a){if(t)if(Be(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();e[s]==null&&Ch(n,s,"")}else for(const o in t)e[o]==null&&Ch(n,o,"");for(const o in e)o==="display"&&(i=!0),Ch(n,o,e[o])}else if(a){if(t!==e){const o=n[iH];o&&(e+=";"+o),n.cssText=e,i=oH.test(e)}}else t&&r.removeAttribute("style");XC in r&&(r[XC]=i?n.display:"",r[aH]&&(n.display="none"))}const ZC=/\s*!important$/;function Ch(r,t,e){if(jt(e))e.forEach(n=>Ch(r,t,n));else if(e==null&&(e=""),t.startsWith("--"))r.setProperty(t,e);else{const n=lH(r,t);ZC.test(e)?r.setProperty(Pl(n),e.replace(ZC,""),"important"):r[n]=e}}const KC=["Webkit","Moz","ms"],_m={};function lH(r,t){const e=_m[t];if(e)return e;let n=ea(t);if(n!=="filter"&&n in r)return _m[t]=n;n=th(n);for(let a=0;a<KC.length;a++){const i=KC[a]+n;if(i in r)return _m[t]=i}return t}const qC="http://www.w3.org/1999/xlink";function uH(r,t,e,n,a){if(n&&t.startsWith("xlink:"))e==null?r.removeAttributeNS(qC,t.slice(6,t.length)):r.setAttributeNS(qC,t,e);else{const i=pG(t);e==null||i&&!LT(e)?r.removeAttribute(t):r.setAttribute(t,i?"":e)}}function fH(r,t,e,n,a,i,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,a,i),r[t]=e??"";return}const s=r.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const u=s==="OPTION"?r.getAttribute("value")||"":r.value,f=e??"";(u!==f||!("_value"in r))&&(r.value=f),e==null&&r.removeAttribute(t),r._value=e;return}let l=!1;if(e===""||e==null){const u=typeof r[t];u==="boolean"?e=LT(e):e==null&&u==="string"?(e="",l=!0):u==="number"&&(e=0,l=!0)}try{r[t]=e}catch{}l&&r.removeAttribute(t)}function cH(r,t,e,n){r.addEventListener(t,e,n)}function vH(r,t,e,n){r.removeEventListener(t,e,n)}const jC=Symbol("_vei");function hH(r,t,e,n,a=null){const i=r[jC]||(r[jC]={}),o=i[t];if(n&&o)o.value=n;else{const[s,l]=dH(t);if(n){const u=i[t]=yH(n,a);cH(r,s,u,l)}else o&&(vH(r,s,o,l),i[t]=void 0)}}const JC=/(?:Once|Passive|Capture)$/;function dH(r){let t;if(JC.test(r)){t={};let n;for(;n=r.match(JC);)r=r.slice(0,r.length-n[0].length),t[n[0].toLowerCase()]=!0}return[r[2]===":"?r.slice(3):Pl(r.slice(2)),t]}let Sm=0;const pH=Promise.resolve(),gH=()=>Sm||(pH.then(()=>Sm=0),Sm=Date.now());function yH(r,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ra(mH(n,e.value),t,5,[n])};return e.value=r,e.attached=gH(),e}function mH(r,t){if(jt(t)){const e=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{e.call(r),r._stopped=!0},t.map(n=>a=>!a._stopped&&n&&n(a))}else return t}const QC=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,_H=(r,t,e,n,a,i,o,s,l)=>{const u=a==="svg";t==="class"?nH(r,n,u):t==="style"?sH(r,e,n):jv(t)?Gy(t)||hH(r,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):SH(r,t,n,u))?fH(r,t,n,i,o,s,l):(t==="true-value"?r._trueValue=n:t==="false-value"&&(r._falseValue=n),uH(r,t,n,u))};function SH(r,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in r&&QC(t)&&he(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&r.tagName==="INPUT"||t==="type"&&r.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return QC(t)&&Be(e)?!1:t in r}const xH=Ar({patchProp:_H},eH);let tA;function bH(){return tA||(tA=k3(xH))}const wH=(...r)=>{const t=bH().createApp(...r),{mount:e}=t;return t.mount=n=>{const a=CH(n);if(!a)return;const i=t._component;!he(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=e(a,!1,TH(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function TH(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function CH(r){return Be(r)?document.querySelector(r):r}const eA=r=>({height:Math.max(Math.abs(r.end[1]-r.start[1]),24),left:r.left,rotate:0,top:r.top,width:Math.max(Math.abs(r.end[0]-r.start[0]),24)}),AH=r=>r.type==="line"?eA(r):{height:r.height||40,left:r.left,rotate:r.rotate||0,top:r.top,width:r.width||120},MH=(r,t,e,n=1)=>{var l,u;const a=r.background,i=a==null?void 0:a.gradient,o=i==null?void 0:i.colors.map(f=>`${f.color} ${f.pos}%`).join(", ");let s;return(a==null?void 0:a.type)==="gradient"&&o?s=(i==null?void 0:i.type)==="radial"?`radial-gradient(${o})`:`linear-gradient(${(i==null?void 0:i.rotate)||0}deg, ${o})`:(a==null?void 0:a.type)==="image"&&((l=a.image)!=null&&l.src)&&(s=`url(${JSON.stringify(a.image.src)})`),{backgroundColor:(a==null?void 0:a.color)||"#fff",backgroundImage:s,backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:((u=a==null?void 0:a.image)==null?void 0:u.size)||"cover",height:`${e}px`,transform:`scale(${n})`,transformOrigin:"top left",width:`${t}px`}};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:rA,setPrototypeOf:nA,isFrozen:DH,getPrototypeOf:IH,getOwnPropertyDescriptor:LH}=Object;let{freeze:Ir,seal:vn,create:xm}=Object,{apply:bm,construct:wm}=typeof Reflect<"u"&&Reflect;Ir||(Ir=function(t){return t}),vn||(vn=function(t){return t}),bm||(bm=function(t,e){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return t.apply(e,a)}),wm||(wm=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return new t(...n)});const Ah=Pr(Array.prototype.forEach),PH=Pr(Array.prototype.lastIndexOf),aA=Pr(Array.prototype.pop),Ef=Pr(Array.prototype.push),EH=Pr(Array.prototype.splice),Mh=Pr(String.prototype.toLowerCase),Tm=Pr(String.prototype.toString),Cm=Pr(String.prototype.match),Rf=Pr(String.prototype.replace),RH=Pr(String.prototype.indexOf),kH=Pr(String.prototype.trim),Vn=Pr(Object.prototype.hasOwnProperty),Lr=Pr(RegExp.prototype.test),kf=OH(TypeError);function Pr(r){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return bm(r,t,n)}}function OH(r){return function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return wm(r,e)}}function Qt(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mh;nA&&nA(r,null);let n=t.length;for(;n--;){let a=t[n];if(typeof a=="string"){const i=e(a);i!==a&&(DH(t)||(t[n]=i),a=i)}r[a]=!0}return r}function NH(r){for(let t=0;t<r.length;t++)Vn(r,t)||(r[t]=null);return r}function la(r){const t=xm(null);for(const[e,n]of rA(r))Vn(r,e)&&(Array.isArray(n)?t[e]=NH(n):n&&typeof n=="object"&&n.constructor===Object?t[e]=la(n):t[e]=n);return t}function Of(r,t){for(;r!==null;){const n=LH(r,t);if(n){if(n.get)return Pr(n.get);if(typeof n.value=="function")return Pr(n.value)}r=IH(r)}function e(){return null}return e}const iA=Ir(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Am=Ir(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mm=Ir(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),BH=Ir(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Dm=Ir(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),VH=Ir(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oA=Ir(["#text"]),sA=Ir(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Im=Ir(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lA=Ir(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dh=Ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zH=vn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),FH=vn(/<%[\w\W]*|[\w\W]*%>/gm),GH=vn(/\$\{[\w\W]*/gm),HH=vn(/^data-[\-\w.\u00B7-\uFFFF]+$/),$H=vn(/^aria-[\-\w]+$/),uA=vn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),UH=vn(/^(?:\w+script|data):/i),WH=vn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fA=vn(/^html$/i),YH=vn(/^[a-z][.\w]*(-[.\w]+)+$/i);var cA=Object.freeze({__proto__:null,ARIA_ATTR:$H,ATTR_WHITESPACE:WH,CUSTOM_ELEMENT:YH,DATA_ATTR:HH,DOCTYPE_NAME:fA,ERB_EXPR:FH,IS_ALLOWED_URI:uA,IS_SCRIPT_OR_DATA:UH,MUSTACHE_EXPR:zH,TMPLIT_EXPR:GH});const Nf={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},XH=function(){return typeof window>"u"?null:window},ZH=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const a="data-tt-policy-suffix";e&&e.hasAttribute(a)&&(n=e.getAttribute(a));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},vA=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function hA(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XH();const t=Ot=>hA(Ot);if(t.version="3.3.1",t.removed=[],!r||!r.document||r.document.nodeType!==Nf.document||!r.Element)return t.isSupported=!1,t;let{document:e}=r;const n=e,a=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:f=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:c,DOMParser:v,trustedTypes:h}=r,d=l.prototype,p=Of(d,"cloneNode"),g=Of(d,"remove"),y=Of(d,"nextSibling"),m=Of(d,"childNodes"),_=Of(d,"parentNode");if(typeof o=="function"){const Ot=e.createElement("template");Ot.content&&Ot.content.ownerDocument&&(e=Ot.content.ownerDocument)}let S,x="";const{implementation:b,createNodeIterator:w,createDocumentFragment:C,getElementsByTagName:T}=e,{importNode:D}=n;let A=vA();t.isSupported=typeof rA=="function"&&typeof _=="function"&&b&&b.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:I,TMPLIT_EXPR:P,DATA_ATTR:R,ARIA_ATTR:E,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:G}=cA;let{IS_ALLOWED_URI:$}=cA,H=null;const X=Qt({},[...iA,...Am,...Mm,...Dm,...oA]);let q=null;const J=Qt({},[...sA,...Im,...lA,...Dh]);let Q=Object.seal(xm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),St=null,Ht=null;const gt=Object.seal(xm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ft=!0,Tt=!0,ct=!1,wt=!0,k=!1,B=!0,U=!1,Z=!1,j=!1,tt=!1,lt=!1,at=!1,ht=!0,rt=!1;const At="user-content-";let kt=!0,Pt=!1,zt={},$t=null;const le=Qt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let _e=null;const Ne=Qt({},["audio","video","img","source","image","track"]);let $r=null;const Di=Qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Al="http://www.w3.org/1998/Math/MathML",Ua="http://www.w3.org/2000/svg",kn="http://www.w3.org/1999/xhtml";let Xe=kn,tn=!1,gf=null;const Qht=Qt({},[Al,Ua,kn],Tm);let Vy=Qt({},["mi","mo","mn","ms","mtext"]),zy=Qt({},["annotation-xml"]);const tdt=Qt({},["title","style","font","a","script"]);let qv=null;const edt=["application/xhtml+xml","text/html"],rdt="text/html";let Je=null,yf=null;const ndt=e.createElement("form"),X5=function(z){return z instanceof RegExp||z instanceof Function},ST=function(){let z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(yf&&yf===z)){if((!z||typeof z!="object")&&(z={}),z=la(z),qv=edt.indexOf(z.PARSER_MEDIA_TYPE)===-1?rdt:z.PARSER_MEDIA_TYPE,Je=qv==="application/xhtml+xml"?Tm:Mh,H=Vn(z,"ALLOWED_TAGS")?Qt({},z.ALLOWED_TAGS,Je):X,q=Vn(z,"ALLOWED_ATTR")?Qt({},z.ALLOWED_ATTR,Je):J,gf=Vn(z,"ALLOWED_NAMESPACES")?Qt({},z.ALLOWED_NAMESPACES,Tm):Qht,$r=Vn(z,"ADD_URI_SAFE_ATTR")?Qt(la(Di),z.ADD_URI_SAFE_ATTR,Je):Di,_e=Vn(z,"ADD_DATA_URI_TAGS")?Qt(la(Ne),z.ADD_DATA_URI_TAGS,Je):Ne,$t=Vn(z,"FORBID_CONTENTS")?Qt({},z.FORBID_CONTENTS,Je):le,St=Vn(z,"FORBID_TAGS")?Qt({},z.FORBID_TAGS,Je):la({}),Ht=Vn(z,"FORBID_ATTR")?Qt({},z.FORBID_ATTR,Je):la({}),zt=Vn(z,"USE_PROFILES")?z.USE_PROFILES:!1,ft=z.ALLOW_ARIA_ATTR!==!1,Tt=z.ALLOW_DATA_ATTR!==!1,ct=z.ALLOW_UNKNOWN_PROTOCOLS||!1,wt=z.ALLOW_SELF_CLOSE_IN_ATTR!==!1,k=z.SAFE_FOR_TEMPLATES||!1,B=z.SAFE_FOR_XML!==!1,U=z.WHOLE_DOCUMENT||!1,tt=z.RETURN_DOM||!1,lt=z.RETURN_DOM_FRAGMENT||!1,at=z.RETURN_TRUSTED_TYPE||!1,j=z.FORCE_BODY||!1,ht=z.SANITIZE_DOM!==!1,rt=z.SANITIZE_NAMED_PROPS||!1,kt=z.KEEP_CONTENT!==!1,Pt=z.IN_PLACE||!1,$=z.ALLOWED_URI_REGEXP||uA,Xe=z.NAMESPACE||kn,Vy=z.MATHML_TEXT_INTEGRATION_POINTS||Vy,zy=z.HTML_INTEGRATION_POINTS||zy,Q=z.CUSTOM_ELEMENT_HANDLING||{},z.CUSTOM_ELEMENT_HANDLING&&X5(z.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Q.tagNameCheck=z.CUSTOM_ELEMENT_HANDLING.tagNameCheck),z.CUSTOM_ELEMENT_HANDLING&&X5(z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Q.attributeNameCheck=z.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),z.CUSTOM_ELEMENT_HANDLING&&typeof z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Q.allowCustomizedBuiltInElements=z.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),k&&(Tt=!1),lt&&(tt=!0),zt&&(H=Qt({},oA),q=[],zt.html===!0&&(Qt(H,iA),Qt(q,sA)),zt.svg===!0&&(Qt(H,Am),Qt(q,Im),Qt(q,Dh)),zt.svgFilters===!0&&(Qt(H,Mm),Qt(q,Im),Qt(q,Dh)),zt.mathMl===!0&&(Qt(H,Dm),Qt(q,lA),Qt(q,Dh))),z.ADD_TAGS&&(typeof z.ADD_TAGS=="function"?gt.tagCheck=z.ADD_TAGS:(H===X&&(H=la(H)),Qt(H,z.ADD_TAGS,Je))),z.ADD_ATTR&&(typeof z.ADD_ATTR=="function"?gt.attributeCheck=z.ADD_ATTR:(q===J&&(q=la(q)),Qt(q,z.ADD_ATTR,Je))),z.ADD_URI_SAFE_ATTR&&Qt($r,z.ADD_URI_SAFE_ATTR,Je),z.FORBID_CONTENTS&&($t===le&&($t=la($t)),Qt($t,z.FORBID_CONTENTS,Je)),z.ADD_FORBID_CONTENTS&&($t===le&&($t=la($t)),Qt($t,z.ADD_FORBID_CONTENTS,Je)),kt&&(H["#text"]=!0),U&&Qt(H,["html","head","body"]),H.table&&(Qt(H,["tbody"]),delete St.tbody),z.TRUSTED_TYPES_POLICY){if(typeof z.TRUSTED_TYPES_POLICY.createHTML!="function")throw kf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof z.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw kf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=z.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=ZH(h,a)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));Ir&&Ir(z),yf=z}},Z5=Qt({},[...Am,...Mm,...BH]),K5=Qt({},[...Dm,...VH]),adt=function(z){let vt=_(z);(!vt||!vt.tagName)&&(vt={namespaceURI:Xe,tagName:"template"});const It=Mh(z.tagName),De=Mh(vt.tagName);return gf[z.namespaceURI]?z.namespaceURI===Ua?vt.namespaceURI===kn?It==="svg":vt.namespaceURI===Al?It==="svg"&&(De==="annotation-xml"||Vy[De]):!!Z5[It]:z.namespaceURI===Al?vt.namespaceURI===kn?It==="math":vt.namespaceURI===Ua?It==="math"&&zy[De]:!!K5[It]:z.namespaceURI===kn?vt.namespaceURI===Ua&&!zy[De]||vt.namespaceURI===Al&&!Vy[De]?!1:!K5[It]&&(tdt[It]||!Z5[It]):!!(qv==="application/xhtml+xml"&&gf[z.namespaceURI]):!1},Wa=function(z){Ef(t.removed,{element:z});try{_(z).removeChild(z)}catch{g(z)}},Ml=function(z,vt){try{Ef(t.removed,{attribute:vt.getAttributeNode(z),from:vt})}catch{Ef(t.removed,{attribute:null,from:vt})}if(vt.removeAttribute(z),z==="is")if(tt||lt)try{Wa(vt)}catch{}else try{vt.setAttribute(z,"")}catch{}},q5=function(z){let vt=null,It=null;if(j)z="<remove></remove>"+z;else{const Ze=Cm(z,/^[\r\n\t ]+/);It=Ze&&Ze[0]}qv==="application/xhtml+xml"&&Xe===kn&&(z='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+z+"</body></html>");const De=S?S.createHTML(z):z;if(Xe===kn)try{vt=new v().parseFromString(De,qv)}catch{}if(!vt||!vt.documentElement){vt=b.createDocument(Xe,"template",null);try{vt.documentElement.innerHTML=tn?x:De}catch{}}const Cr=vt.body||vt.documentElement;return z&&It&&Cr.insertBefore(e.createTextNode(It),Cr.childNodes[0]||null),Xe===kn?T.call(vt,U?"html":"body")[0]:U?vt.documentElement:Cr},j5=function(z){return w.call(z.ownerDocument||z,z,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},xT=function(z){return z instanceof c&&(typeof z.nodeName!="string"||typeof z.textContent!="string"||typeof z.removeChild!="function"||!(z.attributes instanceof f)||typeof z.removeAttribute!="function"||typeof z.setAttribute!="function"||typeof z.namespaceURI!="string"||typeof z.insertBefore!="function"||typeof z.hasChildNodes!="function")},J5=function(z){return typeof s=="function"&&z instanceof s};function Ii(Ot,z,vt){Ah(Ot,It=>{It.call(t,z,vt,yf)})}const Q5=function(z){let vt=null;if(Ii(A.beforeSanitizeElements,z,null),xT(z))return Wa(z),!0;const It=Je(z.nodeName);if(Ii(A.uponSanitizeElement,z,{tagName:It,allowedTags:H}),B&&z.hasChildNodes()&&!J5(z.firstElementChild)&&Lr(/<[/\w!]/g,z.innerHTML)&&Lr(/<[/\w!]/g,z.textContent)||z.nodeType===Nf.progressingInstruction||B&&z.nodeType===Nf.comment&&Lr(/<[/\w]/g,z.data))return Wa(z),!0;if(!(gt.tagCheck instanceof Function&&gt.tagCheck(It))&&(!H[It]||St[It])){if(!St[It]&&eG(It)&&(Q.tagNameCheck instanceof RegExp&&Lr(Q.tagNameCheck,It)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(It)))return!1;if(kt&&!$t[It]){const De=_(z)||z.parentNode,Cr=m(z)||z.childNodes;if(Cr&&De){const Ze=Cr.length;for(let en=Ze-1;en>=0;--en){const Li=p(Cr[en],!0);Li.__removalCount=(z.__removalCount||0)+1,De.insertBefore(Li,y(z))}}}return Wa(z),!0}return z instanceof l&&!adt(z)||(It==="noscript"||It==="noembed"||It==="noframes")&&Lr(/<\/no(script|embed|frames)/i,z.innerHTML)?(Wa(z),!0):(k&&z.nodeType===Nf.text&&(vt=z.textContent,Ah([L,I,P],De=>{vt=Rf(vt,De," ")}),z.textContent!==vt&&(Ef(t.removed,{element:z.cloneNode()}),z.textContent=vt)),Ii(A.afterSanitizeElements,z,null),!1)},tG=function(z,vt,It){if(ht&&(vt==="id"||vt==="name")&&(It in e||It in ndt))return!1;if(!(Tt&&!Ht[vt]&&Lr(R,vt))){if(!(ft&&Lr(E,vt))){if(!(gt.attributeCheck instanceof Function&&gt.attributeCheck(vt,z))){if(!q[vt]||Ht[vt]){if(!(eG(z)&&(Q.tagNameCheck instanceof RegExp&&Lr(Q.tagNameCheck,z)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(z))&&(Q.attributeNameCheck instanceof RegExp&&Lr(Q.attributeNameCheck,vt)||Q.attributeNameCheck instanceof Function&&Q.attributeNameCheck(vt,z))||vt==="is"&&Q.allowCustomizedBuiltInElements&&(Q.tagNameCheck instanceof RegExp&&Lr(Q.tagNameCheck,It)||Q.tagNameCheck instanceof Function&&Q.tagNameCheck(It))))return!1}else if(!$r[vt]){if(!Lr($,Rf(It,O,""))){if(!((vt==="src"||vt==="xlink:href"||vt==="href")&&z!=="script"&&RH(It,"data:")===0&&_e[z])){if(!(ct&&!Lr(N,Rf(It,O,"")))){if(It)return!1}}}}}}}return!0},eG=function(z){return z!=="annotation-xml"&&Cm(z,G)},rG=function(z){Ii(A.beforeSanitizeAttributes,z,null);const{attributes:vt}=z;if(!vt||xT(z))return;const It={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q,forceKeepAttr:void 0};let De=vt.length;for(;De--;){const Cr=vt[De],{name:Ze,namespaceURI:en,value:Li}=Cr,mf=Je(Ze),bT=Li;let fr=Ze==="value"?bT:kH(bT);if(It.attrName=mf,It.attrValue=fr,It.keepAttr=!0,It.forceKeepAttr=void 0,Ii(A.uponSanitizeAttribute,z,It),fr=It.attrValue,rt&&(mf==="id"||mf==="name")&&(Ml(Ze,z),fr=At+fr),B&&Lr(/((--!?|])>)|<\/(style|title|textarea)/i,fr)){Ml(Ze,z);continue}if(mf==="attributename"&&Cm(fr,"href")){Ml(Ze,z);continue}if(It.forceKeepAttr)continue;if(!It.keepAttr){Ml(Ze,z);continue}if(!wt&&Lr(/\/>/i,fr)){Ml(Ze,z);continue}k&&Ah([L,I,P],aG=>{fr=Rf(fr,aG," ")});const nG=Je(z.nodeName);if(!tG(nG,mf,fr)){Ml(Ze,z);continue}if(S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!en)switch(h.getAttributeType(nG,mf)){case"TrustedHTML":{fr=S.createHTML(fr);break}case"TrustedScriptURL":{fr=S.createScriptURL(fr);break}}if(fr!==bT)try{en?z.setAttributeNS(en,Ze,fr):z.setAttribute(Ze,fr),xT(z)?Wa(z):aA(t.removed)}catch{Ml(Ze,z)}}Ii(A.afterSanitizeAttributes,z,null)},idt=function Ot(z){let vt=null;const It=j5(z);for(Ii(A.beforeSanitizeShadowDOM,z,null);vt=It.nextNode();)Ii(A.uponSanitizeShadowNode,vt,null),Q5(vt),rG(vt),vt.content instanceof i&&Ot(vt.content);Ii(A.afterSanitizeShadowDOM,z,null)};return t.sanitize=function(Ot){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vt=null,It=null,De=null,Cr=null;if(tn=!Ot,tn&&(Ot="<!-->"),typeof Ot!="string"&&!J5(Ot))if(typeof Ot.toString=="function"){if(Ot=Ot.toString(),typeof Ot!="string")throw kf("dirty is not a string, aborting")}else throw kf("toString is not a function");if(!t.isSupported)return Ot;if(Z||ST(z),t.removed=[],typeof Ot=="string"&&(Pt=!1),Pt){if(Ot.nodeName){const Li=Je(Ot.nodeName);if(!H[Li]||St[Li])throw kf("root node is forbidden and cannot be sanitized in-place")}}else if(Ot instanceof s)vt=q5("<!---->"),It=vt.ownerDocument.importNode(Ot,!0),It.nodeType===Nf.element&&It.nodeName==="BODY"||It.nodeName==="HTML"?vt=It:vt.appendChild(It);else{if(!tt&&!k&&!U&&Ot.indexOf("<")===-1)return S&&at?S.createHTML(Ot):Ot;if(vt=q5(Ot),!vt)return tt?null:at?x:""}vt&&j&&Wa(vt.firstChild);const Ze=j5(Pt?Ot:vt);for(;De=Ze.nextNode();)Q5(De),rG(De),De.content instanceof i&&idt(De.content);if(Pt)return Ot;if(tt){if(lt)for(Cr=C.call(vt.ownerDocument);vt.firstChild;)Cr.appendChild(vt.firstChild);else Cr=vt;return(q.shadowroot||q.shadowrootmode)&&(Cr=D.call(n,Cr,!0)),Cr}let en=U?vt.outerHTML:vt.innerHTML;return U&&H["!doctype"]&&vt.ownerDocument&&vt.ownerDocument.doctype&&vt.ownerDocument.doctype.name&&Lr(fA,vt.ownerDocument.doctype.name)&&(en="<!DOCTYPE "+vt.ownerDocument.doctype.name+`>
21
+ `+en),k&&Ah([L,I,P],Li=>{en=Rf(en,Li," ")}),S&&at?S.createHTML(en):en},t.setConfig=function(){let Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ST(Ot),Z=!0},t.clearConfig=function(){yf=null,Z=!1},t.isValidAttribute=function(Ot,z,vt){yf||ST({});const It=Je(Ot),De=Je(z);return tG(It,De,vt)},t.addHook=function(Ot,z){typeof z=="function"&&Ef(A[Ot],z)},t.removeHook=function(Ot,z){if(z!==void 0){const vt=PH(A[Ot],z);return vt===-1?void 0:EH(A[Ot],vt,1)[0]}return aA(A[Ot])},t.removeHooks=function(Ot){A[Ot]=[]},t.removeAllHooks=function(){A=vA()},t}var dA=hA();function pA(r){const t="p, h1, h2, h3, h4, h5, h6, li";for(const e of r.querySelectorAll(t)){if(e.style.fontSize||e.querySelector(t))continue;const n=r.ownerDocument.createTreeWalker(e,4);let a=1/0;for(let i=n.nextNode();i;i=n.nextNode()){if(!i.textContent.trim())continue;let o=i.parentElement;for(;o!==e&&!o.style.fontSize;)o=o.parentElement;const s=o===e?"":o.style.fontSize;if(!/^\d*\.?\d+px$/.test(s)){a=1/0;break}a=Math.min(a,Number.parseFloat(s))}Number.isFinite(a)&&(e.style.fontSize=`${a}px`)}}const KH=["innerHTML"],qH=Nn({__name:"TextElement",props:{element:{}},setup(r){const t=r,e=rn(()=>{const a=document.createElement("div");return a.innerHTML=dA.sanitize(t.element.content),pA(a),a.querySelectorAll('[style*="font-weight"]').forEach(i=>{const o=Number.parseInt(i.style.fontWeight,10);o>=550&&o<700&&(i.style.fontWeight="700")}),a.innerHTML}),n=rn(()=>({background:t.element.fill||"transparent",color:t.element.defaultColor||"#333333",fontFamily:t.element.defaultFontName||"Microsoft YaHei",letterSpacing:`${t.element.wordSpace||0}px`,lineHeight:t.element.lineHeight||1.4,padding:(t.element.inset||[0,0,0,0]).map(a=>`${a}px`).join(" "),justifyContent:t.element.vAlign==="bottom"?"flex-end":t.element.vAlign==="middle"?"center":"flex-start",writingMode:t.element.vertical?"vertical-rl":"horizontal-tb"}));return(a,i)=>(re(),se("div",{class:Ya(["ppt-text-content",{"ppt-text-editable":a.$slots["text-editor"]}]),style:cr(n.value)},[Nl(a.$slots,"text-editor",{element:a.element,content:a.element.content},()=>[Dr("div",{class:Ya(["ppt-text-static",{"ppt-text-static-fixed":a.element.fixedHeight}]),innerHTML:e.value},null,10,KH)],!0)],6))}}),udt="",zn=(r,t)=>{const e=r.__vccOpts||r;for(const[n,a]of t)e[n]=a;return e},jH=zn(qH,[["__scopeId","data-v-c728acd4"]]),JH=["src"],QH=Nn({__name:"ImageElement",props:{element:{}},setup(r){const t=r,e=rn(()=>{var i;return{border:(i=t.element.outline)!=null&&i.width?`${t.element.outline.width}px ${t.element.outline.style||"solid"} ${t.element.outline.color||"#000"}`:"none",borderRadius:`${t.element.radius||0}px`,boxShadow:t.element.shadow?`${t.element.shadow.h}px ${t.element.shadow.v}px ${t.element.shadow.blur}px ${t.element.shadow.color}`:void 0,filter:Object.entries(t.element.filters||{}).map(([o,s])=>`${o}(${s})`).join(" "),overflow:t.element.clip||t.element.radius?"hidden":void 0,transform:`scale(${t.element.flipH?-1:1}, ${t.element.flipV?-1:1})`}}),n=rn(()=>{var u;const[[i,o],[s,l]]=((u=t.element.clip)==null?void 0:u.range)||[[0,0],[1,1]];return{height:l-o,left:i,top:o,width:s-i}}),a=rn(()=>({height:t.element.clip?`${100/n.value.height}%`:"100%",left:t.element.clip?`${-n.value.left/n.value.width*100}%`:"0",objectFit:t.element.fit||"cover",position:t.element.clip?"absolute":"static",top:t.element.clip?`${-n.value.top/n.value.height*100}%`:"0",width:t.element.clip?`${100/n.value.width}%`:"100%"}));return(i,o)=>(re(),se("div",{class:"ppt-image-content",style:cr(e.value)},[Dr("img",{src:i.element.src,style:cr(a.value),alt:"",draggable:"false"},null,12,JH),i.element.colorMask?(re(),se("span",{key:0,class:"ppt-image-mask",style:cr({background:i.element.colorMask})},null,4)):bh("",!0)],4))}}),fdt="",t$=zn(QH,[["__scopeId","data-v-bb8ba6cb"]]),e$={class:"ppt-shape-content"},r$=["viewBox"],n$=["offset","stop-color"],a$=["gradient-transform"],i$=["offset","stop-color"],o$=["d","fill","stroke","stroke-dasharray","stroke-width"],s$=["innerHTML"],l$=Nn({__name:"ShapeElement",props:{element:{}},setup(r){const t=r,e=`ppt-gradient-${VC().uid}`,n=rn(()=>{var s;const o=document.createElement("div");return o.innerHTML=dA.sanitize(((s=t.element.text)==null?void 0:s.content)||""),pA(o),o.innerHTML}),a=rn(()=>({filter:t.element.shadow?`drop-shadow(${t.element.shadow.h}px ${t.element.shadow.v}px ${t.element.shadow.blur}px ${t.element.shadow.color})`:void 0,transform:`scale(${t.element.flipH?-1:1}, ${t.element.flipV?-1:1})`,transformOrigin:"center"})),i=rn(()=>{var o,s,l,u,f,c;return{alignItems:((o=t.element.text)==null?void 0:o.align)==="top"?"flex-start":((s=t.element.text)==null?void 0:s.align)==="bottom"?"flex-end":"center",color:((l=t.element.text)==null?void 0:l.defaultColor)||"#333",fontFamily:((u=t.element.text)==null?void 0:u.defaultFontName)||"Microsoft YaHei",lineHeight:((f=t.element.text)==null?void 0:f.lineHeight)||1.4,padding:(((c=t.element.text)==null?void 0:c.inset)||[8,8,8,8]).map(v=>`${v}px`).join(" ")}});return(o,s)=>{var l,u,f,c,v;return re(),se("div",e$,[(re(),se("svg",{style:cr(a.value),viewBox:`0 0 ${o.element.viewBox[0]} ${o.element.viewBox[1]}`,overflow:"visible",preserveAspectRatio:"none"},[Dr("defs",null,[((l=o.element.gradient)==null?void 0:l.type)==="radial"?(re(),se("radialGradient",{key:0,id:e},[(re(!0),se(dr,null,Cf(o.element.gradient.colors,h=>(re(),se("stop",{key:h.pos,offset:`${h.pos}%`,"stop-color":h.color},null,8,n$))),128))])):o.element.gradient?(re(),se("linearGradient",{key:1,id:e,"gradient-transform":`rotate(${o.element.gradient.rotate||0} .5 .5)`,x1:"0",y1:"0",x2:"1",y2:"0"},[(re(!0),se(dr,null,Cf(o.element.gradient.colors,h=>(re(),se("stop",{key:h.pos,offset:`${h.pos}%`,"stop-color":h.color},null,8,i$))),128))],8,a$)):bh("",!0)]),Dr("path",{d:o.element.path,fill:o.element.gradient?`url(#${e})`:o.element.fill||"transparent",stroke:((u=o.element.outline)==null?void 0:u.color)||"transparent","stroke-dasharray":((f=o.element.outline)==null?void 0:f.style)==="dashed"?"8 5":((c=o.element.outline)==null?void 0:c.style)==="dotted"?"2 4":void 0,"stroke-width":((v=o.element.outline)==null?void 0:v.width)||0,"vector-effect":"non-scaling-stroke"},null,8,o$)],12,r$)),o.element.text?(re(),se("div",{key:0,class:Ya(["ppt-shape-text",{"ppt-shape-text-editable":o.$slots["shape-text-editor"]}]),style:cr(i.value)},[Nl(o.$slots,"shape-text-editor",{element:o.element,content:o.element.text.content},()=>[Dr("div",{class:"ppt-shape-text-static",innerHTML:n.value},null,8,s$)],!0)],6)):bh("",!0)])}}}),cdt="",u$=zn(l$,[["__scopeId","data-v-bde892d3"]]),f$=["height","width"],c$=["fill"],v$=["fill"],h$=["fill"],d$=["fill"],p$=["x1","y1","x2","y2","stroke","stroke-dasharray","stroke-width","marker-start","marker-end"],g$=Nn({__name:"LineElement",props:{element:{}},setup(r){const t=r,e=VC().uid,n=`ppt-line-start-${e}`,a=`ppt-line-arrow-${e}`,i=rn(()=>eA(t.element));return(o,s)=>{var l,u,f,c;return re(),se("svg",{class:"ppt-line-content",height:i.value.height,width:i.value.width},[Dr("defs",null,[Dr("marker",{id:n,markerWidth:"8",markerHeight:"8",refX:"1",refY:"4",orient:"auto-start-reverse"},[((l=o.element.points)==null?void 0:l[0])==="dot"?(re(),se("circle",{key:0,cx:"4",cy:"4",r:"3",fill:o.element.color},null,8,c$)):(re(),se("path",{key:1,d:"M 0 4 L 8 0 L 8 8 Z",fill:o.element.color},null,8,v$))]),Dr("marker",{id:a,markerWidth:"8",markerHeight:"8",refX:"7",refY:"4",orient:"auto"},[((u=o.element.points)==null?void 0:u[1])==="dot"?(re(),se("circle",{key:0,cx:"4",cy:"4",r:"3",fill:o.element.color},null,8,h$)):(re(),se("path",{key:1,d:"M 0 0 L 8 4 L 0 8 Z",fill:o.element.color},null,8,d$))])]),Dr("line",{x1:o.element.start[0],y1:o.element.start[1],x2:o.element.end[0],y2:o.element.end[1],stroke:o.element.color,"stroke-dasharray":o.element.style==="dashed"?"8 5":o.element.style==="dotted"?"2 4":void 0,"stroke-width":o.element.width||2,"marker-start":(f=o.element.points)!=null&&f[0]?`url(#${n})`:void 0,"marker-end":(c=o.element.points)!=null&&c[1]?`url(#${a})`:void 0},null,8,p$)],8,f$)}}}),vdt="",y$=zn(g$,[["__scopeId","data-v-029177ed"]]);/*! *****************************************************************************
22
+ Copyright (c) Microsoft Corporation.
23
+
24
+ Permission to use, copy, modify, and/or distribute this software for any
25
+ purpose with or without fee is hereby granted.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
28
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
29
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
30
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
31
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
32
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
33
+ PERFORMANCE OF THIS SOFTWARE.
34
+ ***************************************************************************** */var Lm=function(r,t){return Lm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])},Lm(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lm(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var m$=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),_$=function(){function r(){this.browser=new m$,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Vi=new _$;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vi.wxa=!0,Vi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Vi.worker=!0:!Vi.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Vi.node=!0,Vi.svgSupported=!0):S$(navigator.userAgent,Vi);function S$(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),a&&(e.ie=!0,e.version=a[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const te=Vi;var Pm=12,gA="sans-serif",Ka=Pm+"px "+gA,x$=20,b$=100,w$="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function T$(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),a=(r.charCodeAt(e)-x$)/b$;t[n]=a}return t}var C$=T$(w$),Er={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var a=Er.createCanvas();r=a&&a.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Ka),r.measureText(e);e=e||"",n=n||Ka;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||Pm,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=C$[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}},yA=ua(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),mA=ua(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Vl=Object.prototype.toString,Ih=Array.prototype,A$=Ih.forEach,M$=Ih.filter,Em=Ih.slice,D$=Ih.map,_A=(function(){}).constructor,Lh=_A?_A.prototype:null,Rm="__proto__",km=2311,I$=Math.pow(2,53)-1;function SA(){return km>=I$&&(km=0),km++}function Om(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function dt(r){if(r==null||typeof r!="object")return r;var t=r,e=Vl.call(r);if(e==="[object Array]"){if(!Bf(r)){t=[];for(var n=0,a=r.length;n<a;n++)t[n]=dt(r[n])}}else if(mA[e]){if(!Bf(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var n=0,a=r.length;n<a;n++)t[n]=r[n]}}}else if(!yA[e]&&!Bf(r)&&!zl(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Rm&&(t[o]=dt(r[o]))}return t}function Rt(r,t,e){if(!xt(t)||!xt(r))return e?dt(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Rm){var a=r[n],i=t[n];xt(i)&&xt(a)&&!Y(i)&&!Y(a)&&!zl(i)&&!zl(a)&&!xA(i)&&!xA(a)&&!Bf(i)&&!Bf(a)?Rt(a,i,e):(e||!(n in r))&&(r[n]=dt(t[n]))}return r}function Nm(r,t){for(var e=r[0],n=1,a=r.length;n<a;n++)e=Rt(e,r[n],t);return e}function W(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Rm&&(r[e]=t[e]);return r}function L$(r,t,e){r=r||{};for(var n=0;n<e.length;n++){var a=e[n];r[a]=t[a]}return r}function _t(r,t,e){for(var n=Ut(t),a=0,i=n.length;a<i;a++){var o=n[a];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function Lt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function P$(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var a in e)e.hasOwnProperty(a)&&(r.prototype[a]=e[a]);r.prototype.constructor=r,r.superClass=t}function ze(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else _t(r,t,e)}function pr(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(r&&t)if(r.forEach&&r.forEach===A$)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function K(r,t,e){if(!r)return[];if(!t)return Vm(r);if(r.map&&r.map===D$)return r.map(t,e);for(var n=[],a=0,i=r.length;a<i;a++)n.push(t.call(e,r[a],a,r));return n}function ua(r,t,e,n){if(r&&t){for(var a=0,i=r.length;a<i;a++)e=t.call(n,e,r[a],a,r);return e}}function ne(r,t,e){if(!r)return[];if(!t)return Vm(r);if(r.filter&&r.filter===M$)return r.filter(t,e);for(var n=[],a=0,i=r.length;a<i;a++)t.call(e,r[a],a,r)&&n.push(r[a]);return n}function zi(r,t,e){if(r&&t){for(var n=0,a=r.length;n<a;n++)if(t.call(e,r[n],n,r))return r[n]}}function Ut(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function E$(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Em.call(arguments)))}}var it=Lh&&yt(Lh.bind)?Lh.call.bind(Lh.bind):E$;function Bt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Em.call(arguments)))}}function Y(r){return Array.isArray?Array.isArray(r):Vl.call(r)==="[object Array]"}function yt(r){return typeof r=="function"}function et(r){return typeof r=="string"}function Bm(r){return Vl.call(r)==="[object String]"}function Wt(r){return typeof r=="number"}function xt(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function xA(r){return!!yA[Vl.call(r)]}function Xr(r){return!!mA[Vl.call(r)]}function zl(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ph(r){return r.colorStops!=null}function R$(r){return r.image!=null}function k$(r){return Vl.call(r)==="[object RegExp]"}function gr(r){return r!==r}function Rr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function ut(r,t){return r??t}function nn(r,t,e){return r??t??e}function Vm(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Em.apply(r,t)}function Eh(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function yr(r,t){if(!r)throw new Error(t)}function hn(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var bA="__ec_primitive__";function Rh(r){r[bA]=!0}function Bf(r){return r[bA]}var O$=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Ut(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),wA=typeof Map=="function";function N$(){return wA?new Map:new O$}var B$=function(){function r(t){var e=Y(t);this.data=N$();var n=this;t instanceof r?t.each(a):t&&M(t,a);function a(i,o){e?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,a){t.call(e,n,a)})},r.prototype.keys=function(){var t=this.data.keys();return wA?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function ot(r){return new B$(r)}function Vf(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var a=r.length,n=0;n<t.length;n++)e[n+a]=t[n];return e}function kh(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&W(e,t),e}function TA(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function st(r,t){return r.hasOwnProperty(t)}function Te(){}var Oh=180/Math.PI;function zo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function mr(r,t){return r[0]=t[0],r[1]=t[1],r}function qa(r){return[r[0],r[1]]}function Fi(r,t,e){return r[0]=t,r[1]=e,r}function CA(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function zm(r,t,e,n){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r}function Fo(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Fm(r){return Math.sqrt(V$(r))}function V$(r){return r[0]*r[0]+r[1]*r[1]}function Nh(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Fl(r,t){var e=Fm(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Gm(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Gi=Gm;function z$(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Go=z$;function Bh(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Ce(r,t,e){var n=t[0],a=t[1];return r[0]=e[0]*n+e[2]*a+e[4],r[1]=e[1]*n+e[3]*a+e[5],r}function Hi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function $i(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Gl=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),F$=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Gl(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,e.drift(i,o,t),this.handler.dispatchToElement(new Gl(e,t),"drag",t.event);var s=this.handler.findHover(n,a,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Gl(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Gl(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Gl(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Gl(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const G$=F$;var H$=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(a=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:e,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=e.length,s=e[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}();const dn=H$;var $$=Math.log(2);function Hm(r,t,e,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/$$);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var c=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(c+=(h%2?-1:1)*r[e][v]*Hm(r,t-1,f,u,a|d,i),h++)}return i[o]=c,c}function AA(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},a=Hm(e,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Hm(e,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,f){var c=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/c,l[1]=(u*i[3]+f*i[4]+i[5])/c}}}var Vh="___zrEVENTSAVED",$m=[];function U$(r,t,e,n,a){return Um($m,t,n,a,!0)&&Um(r,e,$m[0],$m[1])}function W$(r,t){r&&e(r),t&&e(t);function e(n){var a=n[Vh];a&&(a.clearMarkers&&a.clearMarkers(),delete n[Vh])}}function Um(r,t,e,n,a){if(t.getBoundingClientRect&&te.domSupported&&!MA(t)){var i=t[Vh]||(t[Vh]={}),o=Y$(t,i),s=X$(o,i,a);if(s)return s(r,e,n),!0}return!1}function Y$(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){M(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function X$(r,t,e){for(var n=e?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),c=2*u,v=f.left,h=f.top;o.push(v,h),l=l&&i&&v===i[c]&&h===i[c+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=e?AA(s,o):AA(o,s))}function MA(r){return r.nodeName.toUpperCase()==="CANVAS"}var Z$=/([&<>"'])/g,K$={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _r(r){return r==null?"":(r+"").replace(Z$,function(t,e){return K$[e]})}var q$=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Wm=[],j$=te.browser.firefox&&+te.browser.version.split(".")[0]<39;function Ym(r,t,e,n){return e=e||{},n?DA(r,t,e):j$&&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):DA(r,t,e),e}function DA(r,t,e){if(te.domSupported&&r.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(MA(r)){var i=r.getBoundingClientRect();e.zrX=n-i.left,e.zrY=a-i.top;return}else if(Um(Wm,r,n,a)){e.zrX=Wm[0],e.zrY=Wm[1];return}}e.zrX=e.zrY=0}function Xm(r){return r||window.event}function pn(r,t,e){if(t=Xm(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ym(r,o,t,e)}else{Ym(r,t,t,e);var i=J$(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&q$.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function J$(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var a=Math.abs(n!==0?n:e),i=n>0?-1:n<0?1:e>0?-1:1;return 3*a*i}function Zm(r,t,e,n){r.addEventListener(t,e,n)}function Q$(r,t,e,n){r.removeEventListener(t,e,n)}var ja=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function IA(r){return r.which===2||r.which===3}var t4=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 a=t.touches;if(a){for(var i={points:[],touches:[],target:e,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=Ym(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Km)if(Km.hasOwnProperty(e)){var n=Km[e](this._track,t);if(n)return n}},r}();function LA(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function e4(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Km={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,a=(r[e-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=LA(n)/LA(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=e4(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Se(){return[1,0,0,1,0,0]}function Hl(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Ho(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 gn(r,t,e){var n=t[0]*e[0]+t[2]*e[1],a=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function fa(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 Ui(r,t,e,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),c=Math.cos(e);return r[0]=a*c+s*f,r[1]=-a*f+s*c,r[2]=i*c+l*f,r[3]=-i*f+c*l,r[4]=c*(o-n[0])+f*(u-n[1])+n[0],r[5]=c*(u-n[1])-f*(o-n[0])+n[1],r}function qm(r,t,e){var n=e[0],a=e[1];return r[0]=t[0]*n,r[1]=t[1]*a,r[2]=t[2]*n,r[3]=t[3]*a,r[4]=t[4]*n,r[5]=t[5]*a,r}function yn(r,t){var e=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-e*s)*l,r):null}function r4(r){var t=Se();return Ho(t,r),t}var n4=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,a){t.x=e.x+n.x*a,t.y=e.y+n.y*a},r.lerp=function(t,e,n,a){var i=1-a;t.x=i*e.x+a*n.x,t.y=i*e.y+a*n.y},r}();const bt=n4;var $o=Math.min,$l=Math.max,jm=Math.abs,PA=["x","y"],a4=["width","height"],Uo=new bt,Wo=new bt,Yo=new bt,Xo=new bt,an=OA(),zf=an.minTv,Jm=an.maxTv,Ff=[0,0],Ja=function(){function r(t,e,n,a){Qm(this,t,e,n,a)}return r.set=function(t,e,n,a,i){return a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),t.x=e,t.y=n,t.width=a,t.height=i,t},r.prototype.union=function(t){var e=$o(t.x,this.x),n=$o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=$l(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=$l(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){return EA(Se(),this,t)},r.prototype.intersect=function(t,e,n){return r.intersect(this,t,e,n)},r.intersect=function(t,e,n,a){n&&bt.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!t||!e)return!1;t instanceof r||(t=Qm(o4,t.x,t.y,t.width,t.height)),e instanceof r||(e=Qm(s4,e.x,e.y,e.width,e.height));var s=!!n;an.reset(a,s);var l=an.touchThreshold,u=t.x+l,f=t.x+t.width-l,c=t.y+l,v=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||c>v||h>d||p>g)return!1;var y=!(f<h||d<u||v<p||g<c);return(s||i)&&(Ff[0]=1/0,Ff[1]=0,kA(u,f,h,d,0,s,i,o),kA(c,v,p,g,1,s,i,o),s&&bt.copy(n,y?an.useDir?an.dirMinTv:zf:Jm)),y},r.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){Ul(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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,n){if(!n){t!==e&&Ul(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=e.x*a+o,t.y=e.y*i+s,t.width=e.width*a,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Uo.x=Yo.x=e.x,Uo.y=Xo.y=e.y,Wo.x=Xo.x=e.x+e.width,Wo.y=Yo.y=e.y+e.height,Uo.transform(n),Xo.transform(n),Wo.transform(n),Yo.transform(n),t.x=$o(Uo.x,Wo.x,Yo.x,Xo.x),t.y=$o(Uo.y,Wo.y,Yo.y,Xo.y);var l=$l(Uo.x,Wo.x,Yo.x,Xo.x),u=$l(Uo.y,Wo.y,Yo.y,Xo.y);t.width=l-t.x,t.height=u-t.y},r.calculateTransform=function(t,e,n){var a=n.width/e.width,i=n.height/e.height;return t=Hl(t||[]),fa(t,t,Fi(t0,-e.x,-e.y)),qm(t,t,Fi(t0,a,i)),fa(t,t,Fi(t0,n.x,n.y)),t},r}(),zh=Ja.create,Qm=Ja.set,Ul=Ja.copy,EA=Ja.calculateTransform,RA=Ja.applyTransform,i4=Ja.contain,o4=new Ja(0,0,0,0),s4=new Ja(0,0,0,0),t0=[];function kA(r,t,e,n,a,i,o,s){var l=jm(t-e),u=jm(n-r),f=$o(l,u),c=PA[a],v=PA[1-a],h=a4[a];t<e||n<r?l<u?(i&&(Jm[c]=-l),s&&(o[c]=t,o[h]=0)):(i&&(Jm[c]=u),s&&(o[c]=r,o[h]=0)):(o&&(o[c]=$l(r,e),o[h]=$o(t,n)-o[c]),i&&(f<Ff[0]||an.useDir)&&(Ff[0]=$o(f,Ff[0]),(l<u||!an.bidirectional)&&(zf[c]=l,zf[v]=0,an.useDir&&an.calcDirMTV()),(l>=u||!an.bidirectional)&&(zf[c]=-u,zf[v]=0,an.useDir&&an.calcDirMTV())))}function OA(){var r=0,t=new bt,e=new bt,n={minTv:new bt,maxTv:new bt,useDir:!1,dirMinTv:new bt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=$l(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),e.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(a(f)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,a(e.x)&&a(e.y)){o.set(0,0);return}(n.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function a(i){return jm(i)<1e-10}return n}const Mt=Ja;var NA="silent";function l4(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:u4}}function u4(){ja(this.event)}var f4=function(r){V(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}(dn),Gf=function(){function r(t,e){this.x=t,this.y=e}return r}(),c4=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e0=new Mt(0,0,0,0),BA=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Gf(0,0),s.storage=e,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new f4,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new G$(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(c4,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,a=e.zrY,i=zA(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Gf(n,a):this.findHover(n,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var 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 Gf(0,0)},t.prototype.dispatch=function(e,n){var a=this[e];a&&a.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,a){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+n,s=l4(n,e,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,a){var i=this.storage.getDisplayList(),o=new Gf(e,n);if(VA(i,o,e,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Mt(e-u,n-u,l,l),c=i.length-1;c>=0;c--){var v=i[c];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(e0.copy(v.getBoundingRect()),v.transform&&e0.applyTransform(v.transform),e0.intersect(f)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(VA(s,o,m,_,a),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new t4);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Gf;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(dn);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){BA.prototype[r]=function(t){var e=t.zrX,n=t.zrY,a=zA(this,e,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(e,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Gi(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function v4(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?NA:!0}return!1}function VA(r,t,e,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=v4(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==NA)){t.target=o;break}}}function zA(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const h4=BA;var FA=32,Hf=7;function d4(r){for(var t=0;r>=FA;)t|=r&1,r>>=1;return r+t}function GA(r,t,e,n){var a=t+1;if(a===e)return 1;if(n(r[a++],r[t])<0){for(;a<e&&n(r[a],r[a-1])<0;)a++;p4(r,t,a)}else for(;a<e&&n(r[a],r[a-1])>=0;)a++;return a-t}function p4(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function HA(r,t,e,n,a){for(n===t&&n++;n<e;n++){for(var i=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function r0(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])>0){for(s=n-a;l<s&&i(r,t[e+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,t[e+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])>0?o=f+1:l=f}return l}function n0(r,t,e,n,a,i){var o=0,s=0,l=1;if(i(r,t[e+a])<0){for(s=a+1;l<s&&i(r,t[e+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,t[e+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function g4(r,t){var e=Hf,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,f(h)}}function f(h){var d=n[h],p=a[h],g=n[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var m=n0(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=r0(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?c(d,p,g,y):v(d,p,g,y)))}function c(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,b,w,C;;){b=0,w=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){C=!0;break}while((b|w)<x);if(C)break;do{if(b=n0(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(w=r0(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){C=!0;break}}if(r[S++]=o[m++],--d===1){C=!0;break}x--}while(b>=Hf||w>=Hf);if(C)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function v(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var C=0,T=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){D=!0;break}while((C|T)<w);if(D)break;do{if(C=d-n0(o[_],r,h,d,d-1,t),C!==0){for(S-=C,m-=C,d-=C,b=S+1,x=m+1,y=C-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(T=g-r0(r[m],o,0,g,g-1,t),T!==0){for(S-=T,_-=T,g-=T,b=S+1,x=_+1,y=0;y<T;y++)r[b+y]=o[x+y];if(g<=1){D=!0;break}}if(r[S--]=r[m--],--d===0){D=!0;break}w--}while(C>=Hf||T>=Hf);if(D)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Fh(r,t,e,n){e||(e=0),n||(n=r.length);var a=n-e;if(!(a<2)){var i=0;if(a<FA){i=GA(r,e,n,t),HA(r,e,n,e+i,t);return}var o=g4(r,t),s=d4(a);do{if(i=GA(r,e,n,t),i<s){var l=a;l>s&&(l=s),HA(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),a-=i,e+=i}while(a!==0);o.forceMergeRuns()}}var Zr=1,$f=2,Wl=4,$A=!1;function a0(){$A||($A=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function UA(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var y4=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=UA}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,a=0,i=e.length;a<i;a++)this._updateAndAddDisplayable(e[a],null,t);n.length=this._displayListLen,Fh(n,UA)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath(),i=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||a)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=a,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var c=t.childrenRef(),v=0;v<c.length;v++){var h=c[v];t.__dirty&&(h.__dirty|=Zr),this._updateAndAddDisplayable(h,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(a0(),d.z=0),isNaN(d.z2)&&(a0(),d.z2=0),isNaN(d.zlevel)&&(a0(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,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<n;e++)this.delRoot(t[e]);return}var a=Lt(this._roots,t);a>=0&&this._roots.splice(a,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 m4=y4;var WA;WA=te.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const i0=WA;var Gh={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-Gh.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?Gh.bounceIn(r*2)*.5:Gh.bounceOut(r*2-1)*.5+.5}};const YA=Gh;var Hh=Math.pow,Wi=Math.sqrt,$h=1e-8,XA=1e-4,ZA=Wi(3),Uh=1/3,ca=zo(),mn=zo(),Yl=zo();function Yi(r){return r>-$h&&r<$h}function KA(r){return r>$h||r<-$h}function Ke(r,t,e,n,a){var i=1-a;return i*i*(i*r+3*a*t)+a*a*(a*n+3*i*e)}function qA(r,t,e,n,a){var i=1-a;return 3*(((t-r)*i+2*(e-t)*a)*i+(n-e)*a*a)}function Wh(r,t,e,n,a,i){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-a,f=s*s-3*o*l,c=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Yi(f)&&Yi(c))if(Yi(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=c*c-4*f*v;if(Yi(p)){var g=c/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Wi(p),_=f*s+1.5*o*(-c+m),S=f*s+1.5*o*(-c-m);_<0?_=-Hh(-_,Uh):_=Hh(_,Uh),S<0?S=-Hh(-S,Uh):S=Hh(S,Uh);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*c)/(2*Wi(f*f*f)),b=Math.acos(x)/3,w=Wi(f),C=Math.cos(b),d=(-s-2*w*C)/(3*o),y=(-s+w*(C+ZA*Math.sin(b)))/(3*o),T=(-s+w*(C-ZA*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),T>=0&&T<=1&&(i[h++]=T)}}return h}function jA(r,t,e,n,a){var i=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Yi(o)){if(KA(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var f=i*i-4*o*s;if(Yi(f))a[0]=-i/(2*o);else if(f>0){var c=Wi(f),u=(-i+c)/(2*o),v=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Xi(r,t,e,n,a,i){var o=(t-r)*a+r,s=(e-t)*a+t,l=(n-e)*a+e,u=(s-o)*a+o,f=(l-s)*a+s,c=(f-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=c,i[4]=c,i[5]=f,i[6]=l,i[7]=n}function JA(r,t,e,n,a,i,o,s,l,u,f){var c,v=.005,h=1/0,d,p,g,y;ca[0]=l,ca[1]=u;for(var m=0;m<1;m+=.05)mn[0]=Ke(r,e,a,o,m),mn[1]=Ke(t,n,i,s,m),g=Go(ca,mn),g<h&&(c=m,h=g);h=1/0;for(var _=0;_<32&&!(v<XA);_++)d=c-v,p=c+v,mn[0]=Ke(r,e,a,o,d),mn[1]=Ke(t,n,i,s,d),g=Go(mn,ca),d>=0&&g<h?(c=d,h=g):(Yl[0]=Ke(r,e,a,o,p),Yl[1]=Ke(t,n,i,s,p),y=Go(Yl,ca),p<=1&&y<h?(c=p,h=y):v*=.5);return f&&(f[0]=Ke(r,e,a,o,c),f[1]=Ke(t,n,i,s,c)),Wi(h)}function _4(r,t,e,n,a,i,o,s,l){for(var u=r,f=t,c=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=Ke(r,e,a,o,d),g=Ke(t,n,i,s,d),y=p-u,m=g-f;c+=Math.sqrt(y*y+m*m),u=p,f=g}return c}function Qe(r,t,e,n){var a=1-n;return a*(a*r+2*n*t)+n*n*e}function o0(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function S4(r,t,e,n,a){var i=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Yi(i)){if(KA(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*i*s;if(Yi(f)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var c=Wi(f),u=(-o+c)/(2*i),v=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function QA(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Uf(r,t,e,n,a){var i=(t-r)*n+r,o=(e-t)*n+t,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=e}function tM(r,t,e,n,a,i,o,s,l){var u,f=.005,c=1/0;ca[0]=o,ca[1]=s;for(var v=0;v<1;v+=.05){mn[0]=Qe(r,e,a,v),mn[1]=Qe(t,n,i,v);var h=Go(ca,mn);h<c&&(u=v,c=h)}c=1/0;for(var d=0;d<32&&!(f<XA);d++){var p=u-f,g=u+f;mn[0]=Qe(r,e,a,p),mn[1]=Qe(t,n,i,p);var h=Go(mn,ca);if(p>=0&&h<c)u=p,c=h;else{Yl[0]=Qe(r,e,a,g),Yl[1]=Qe(t,n,i,g);var y=Go(Yl,ca);g<=1&&y<c?(u=g,c=y):f*=.5}}return l&&(l[0]=Qe(r,e,a,u),l[1]=Qe(t,n,i,u)),Wi(c)}function x4(r,t,e,n,a,i,o){for(var s=r,l=t,u=0,f=1/o,c=1;c<=o;c++){var v=c*f,h=Qe(r,e,a,v),d=Qe(t,n,i,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var b4=/cubic-bezier\(([0-9,\.e ]+)\)/;function s0(r){var t=r&&b4.exec(r);if(t){var e=t[1].split(","),n=+hn(e[0]),a=+hn(e[1]),i=+hn(e[2]),o=+hn(e[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Wh(0,n,i,1,l,s)&&Ke(0,a,o,1,s[0])}}}var w4=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||Te,this.ondestroy=t.ondestroy||Te,this.onrestart=t.onrestart||Te,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,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=yt(t)?t:YA[t]||s0(t)},r}();const T4=w4;var eM=function(){function r(t){this.value=t}return r}(),C4=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new eM(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}(),A4=function(){function r(t){this._list=new C4,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new eM(e),s.key=t,n.insertEntry(s),a[t]=s}return i},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 Xl=A4;var rM={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 Fn(r){return r=Math.round(r),r<0?0:r>255?255:r}function M4(r){return r=Math.round(r),r<0?0:r>360?360:r}function Wf(r){return r<0?0:r>1?1:r}function l0(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Fn(parseFloat(t)/100*255):Fn(parseInt(t,10))}function Zi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Wf(parseFloat(t)/100):Wf(parseFloat(t))}function u0(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 Ki(r,t,e){return r+(t-r)*e}function _n(r,t,e,n,a){return r[0]=t,r[1]=e,r[2]=n,r[3]=a,r}function f0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var nM=new Xl(20),Yh=null;function Zl(r,t){Yh&&f0(Yh,t),Yh=nM.put(r,Yh||t.slice())}function Kr(r,t){if(r){t=t||[];var e=nM.get(r);if(e)return f0(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in rM)return f0(t,rM[n]),Zl(r,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){_n(t,0,0,0,1);return}return _n(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),Zl(r,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){_n(t,0,0,0,1);return}return _n(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Zl(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?_n(t,+u[0],+u[1],+u[2],1):_n(t,0,0,0,1);f=Zi(u.pop());case"rgb":if(u.length>=3)return _n(t,l0(u[0]),l0(u[1]),l0(u[2]),u.length===3?f:Zi(u[3])),Zl(r,t),t;_n(t,0,0,0,1);return;case"hsla":if(u.length!==4){_n(t,0,0,0,1);return}return u[3]=Zi(u[3]),c0(u,t),Zl(r,t),t;case"hsl":if(u.length!==3){_n(t,0,0,0,1);return}return c0(u,t),Zl(r,t),t;default:return}}_n(t,0,0,0,1)}}function c0(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Zi(r[1]),a=Zi(r[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],_n(t,Fn(u0(o,i,e+1/3)*255),Fn(u0(o,i,e)*255),Fn(u0(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function D4(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,a=Math.min(t,e,n),i=Math.max(t,e,n),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var f=((i-t)/6+o/2)/o,c=((i-e)/6+o/2)/o,v=((i-n)/6+o/2)/o;t===i?l=v-c:e===i?l=1/3+f-v:n===i&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function v0(r,t){var e=Kr(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 va(e,e.length===4?"rgba":"rgb")}}function h0(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=t[a],s=t[i],l=n-a;return e[0]=Fn(Ki(o[0],s[0],l)),e[1]=Fn(Ki(o[1],s[1],l)),e[2]=Fn(Ki(o[2],s[2],l)),e[3]=Wf(Ki(o[3],s[3],l)),e}}function I4(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Kr(t[a]),s=Kr(t[i]),l=n-a,u=va([Fn(Ki(o[0],s[0],l)),Fn(Ki(o[1],s[1],l)),Fn(Ki(o[2],s[2],l)),Wf(Ki(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function qi(r,t,e,n){var a=Kr(r);if(r)return a=D4(a),t!=null&&(a[0]=M4(yt(t)?t(a[0]):t)),e!=null&&(a[1]=Zi(yt(e)?e(a[1]):e)),n!=null&&(a[2]=Zi(yt(n)?n(a[2]):n)),va(c0(a),"rgba")}function Xh(r,t){var e=Kr(r);if(e&&t!=null)return e[3]=Wf(t),va(e,"rgba")}function va(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 Zh(r,t){var e=Kr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var aM=new Xl(100);function d0(r){if(et(r)){var t=aM.get(r);return t||(t=v0(r,-.1),aM.put(r,t)),t}else if(Ph(r)){var e=W({},r);return e.colorStops=K(r.colorStops,function(n){return{offset:n.offset,color:v0(n.color,-.1)}}),e}return r}var Kh=Math.round;function Yf(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Kr(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var iM=1e-4;function ji(r){return r<iM&&r>-iM}function qh(r){return Kh(r*1e3)/1e3}function p0(r){return Kh(r*1e4)/1e4}function L4(r){return"matrix("+qh(r[0])+","+qh(r[1])+","+qh(r[2])+","+qh(r[3])+","+p0(r[4])+","+p0(r[5])+")"}var P4={left:"start",right:"end",center:"middle",middle:"middle"};function E4(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function R4(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function k4(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 oM(r){return r&&!!r.image}function O4(r){return r&&!!r.svgElement}function g0(r){return oM(r)||O4(r)}function sM(r){return r.type==="linear"}function lM(r){return r.type==="radial"}function uM(r){return r&&(r.type==="linear"||r.type==="radial")}function jh(r){return"url(#"+r+")"}function fM(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 cM(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*Oh,a=ut(r.scaleX,1),i=ut(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),n&&l.push("rotate("+n+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+Kh(o*Oh)+"deg, "+Kh(s*Oh)+"deg)"),l.join(" ")}var N4=function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}}(),y0=Array.prototype.slice;function Qa(r,t,e){return(t-r)*e+r}function m0(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=Qa(t[i],e[i],n);return r}function B4(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Qa(t[o][s],e[o][s],n)}return r}function Jh(r,t,e,n){for(var a=t.length,i=0;i<a;i++)r[i]=t[i]+e[i]*n;return r}function vM(r,t,e,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function V4(r,t){for(var e=r.length,n=t.length,a=e>n?t:r,i=Math.min(e,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function z4(r,t,e){var n=r,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(e===1?a[l]:y0.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=a[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=a[l][f])}}function Xf(r){if(pr(r)){var t=r.length;if(pr(r[0])){for(var e=[],n=0;n<t;n++)e.push(y0.call(r[n]));return e}return y0.call(r)}return r}function Qh(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function F4(r){return pr(r&&r[0])?2:1}var td=0,ed=1,hM=2,Zf=3,_0=4,S0=5,dM=6;function pM(r){return r===_0||r===S0}function rd(r){return r===ed||r===hM}var Kf=[0,0,0,0],G4=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=dM,l=e;if(pr(e)){var u=F4(e);s=u,(u===1&&!Wt(e[0])||u===2&&!Wt(e[0][0]))&&(o=!0)}else if(Wt(e)&&!gr(e))s=td;else if(et(e))if(!isNaN(+e))s=td;else{var f=Kr(e);f&&(l=f,s=Zf)}else if(Ph(e)){var c=W({},l);c.colorStops=K(e.colorStops,function(h){return{offset:h.offset,color:Kr(h.color)}}),sM(e)?s=_0:lM(e)&&(s=S0),l=c}i===0?this.valType=s:(s!==this.valType||s===dM)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=yt(n)?n:YA[n]||s0(n)),a.push(v),v},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=rd(a),u=pM(a),f=0;f<i;f++){var c=n[f],v=c.value,h=o.value;c.percent=c.time/t,s||(l&&f!==i-1?z4(v,h,a):u&&V4(v.colorStops,h.colorStops))}if(!s&&a!==S0&&e&&this.needsAnimate()&&e.needsAnimate()&&a===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<i;f++)a===td?n[f].additiveValue=n[f].value-d:a===Zf?n[f].additiveValue=Jh([],n[f].value,d,-1):rd(a)&&(n[f].additiveValue=a===ed?Jh([],n[f].value,d,-1):vM([],n[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Zf,f,c=this._lastFr,v=Math.min,h,d;if(s===1)h=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=v(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=v(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>e);f++);f=v(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:v((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Kf:t[l];if((rd(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(rd(i))i===ed?m0(m,h[a],d[a],y):B4(m,h[a],d[a],y);else if(pM(i)){var _=h[a],S=d[a],x=i===_0;t[l]={type:x?"linear":"radial",x:Qa(_.x,S.x,y),y:Qa(_.y,S.y,y),colorStops:K(_.colorStops,function(w,C){var T=S.colorStops[C];return{offset:Qa(w.offset,T.offset,y),color:Qh(m0([],w.color,T.color,y))}}),global:S.global},x?(t[l].x2=Qa(_.x2,S.x2,y),t[l].y2=Qa(_.y2,S.y2,y)):t[l].r=Qa(_.r,S.r,y)}else if(u)m0(m,h[a],d[a],y),n||(t[l]=Qh(m));else{var b=Qa(h[a],d[a],y);n?this._additiveValue=b:t[l]=b}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,a=this._additiveValue;e===td?t[n]=t[n]+a:e===Zf?(Kr(t[n],Kf),Jh(Kf,Kf,a,1),t[n]=Qh(Kf)):e===ed?Jh(t[n],t[n],a,1):e===hM&&vM(t[n],t[n],a,1)},r}(),x0=function(){function r(t,e,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&a){Om("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new G4(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,v=c[c.length-1];u=v&&v.value,f.valType===Zf&&u&&(u=Qh(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Xf(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Xf(e[s]),a)}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;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new T4({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,h);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,h)},ondestroy:function(){e._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return K(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var a=0;a<e.length;a++){var i=e[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=Xf(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Ut(t);for(var n=0;n<e.length;n++){var a=e[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function Kl(){return new Date().getTime()}var H4=function(r){V(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,a=e.next;n?n.next=a:this._head=a,a?a.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=Kl()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,e||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(i0(n),!e._paused&&e.update())}i0(n)},t.prototype.start=function(){this._running||(this._time=Kl(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Kl(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Kl()-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 a=new x0(e,n.loop);return this.addAnimator(a),a},t}(dn);const $4=H4;var U4=300,b0=te.domSupported,w0=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=K(r,function(a){var i=a.replace("mouse","pointer");return e.hasOwnProperty(i)?i:a});return{mouse:r,touch:t,pointer:n}}(),gM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},yM=!1;function T0(r){var t=r.pointerType;return t==="pen"||t==="touch"}function W4(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 C0(r){r&&(r.zrByTouch=!0)}function Y4(r,t){return pn(r.dom,new X4(r,t),!0)}function mM(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 X4=function(){function r(t,e){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Gn={mousedown:function(r){r=pn(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pn(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=pn(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pn(this.dom,r);var t=r.toElement||r.relatedTarget;mM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){yM=!0,r=pn(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){yM||(r=pn(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pn(this.dom,r),C0(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Gn.mousemove.call(this,r),Gn.mousedown.call(this,r)},touchmove:function(r){r=pn(this.dom,r),C0(r),this.handler.processGesture(r,"change"),Gn.mousemove.call(this,r)},touchend:function(r){r=pn(this.dom,r),C0(r),this.handler.processGesture(r,"end"),Gn.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<U4&&Gn.click.call(this,r)},pointerdown:function(r){Gn.mousedown.call(this,r)},pointermove:function(r){T0(r)||Gn.mousemove.call(this,r)},pointerup:function(r){Gn.mouseup.call(this,r)},pointerout:function(r){T0(r)||Gn.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){Gn[r]=function(t){t=pn(this.dom,t),this.trigger(r,t)}});var A0={pointermove:function(r){T0(r)||A0.mousemove.call(this,r)},pointerup:function(r){A0.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Z4(r,t){var e=t.domHandlers;te.pointerEventsSupported?M(w0.pointer,function(n){nd(t,n,function(a){e[n].call(r,a)})}):(te.touchEventsSupported&&M(w0.touch,function(n){nd(t,n,function(a){e[n].call(r,a),W4(t)})}),M(w0.mouse,function(n){nd(t,n,function(a){a=Xm(a),t.touching||e[n].call(r,a)})}))}function K4(r,t){te.pointerEventsSupported?M(gM.pointer,e):te.touchEventsSupported||M(gM.mouse,e);function e(n){function a(i){i=Xm(i),mM(r,i.target)||(i=Y4(r,i),t.domHandlers[n].call(r,i))}nd(t,n,a,{capture:!0})}}function nd(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,Zm(r.domTarget,t,e,n)}function M0(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Q$(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var _M=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),q4=function(r){V(t,r);function t(e,n){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new _M(e,Gn),b0&&(a._globalHandlerScope=new _M(document,A0)),Z4(a,a._localHandlerScope),a}return t.prototype.dispose=function(){M0(this._localHandlerScope),b0&&M0(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,b0&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?K4(this,n):M0(n)}},t}(dn);const j4=q4;var SM=1;te.hasGlobalWindow&&(SM=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ad=SM,D0=.4,I0="#333",L0="#ccc",J4="#eee",xM=Hl,bM=5e-5;function Zo(r){return r>bM||r<-bM}var Ko=[],ql=[],P0=Se(),E0=Math.abs,R0=function(){function r(){}return r.prototype.getLocalTransform=function(t){return Ji(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 Zo(this.rotation)||Zo(this.x)||Zo(this.y)||Zo(this.scaleX-1)||Zo(this.scaleY-1)||Zo(this.skewX)||Zo(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(xM(n),this.invTransform=null);return}n=n||Se(),e?this.getLocalTransform(n):xM(n),t&&(e?gn(n,t,n):Ho(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Se(),yn(this.invTransform,n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ko);var n=Ko[0]<0?-1:1,a=Ko[1]<0?-1:1,i=((Ko[0]-n)*e+n)/Ko[0]||0,o=((Ko[1]-a)*e+a)/Ko[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}},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],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-a,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&&(t.invTransform=t.invTransform||Se(),gn(ql,t.invTransform,e),e=ql);var n=this.originX,a=this.originY;(n||a)&&(P0[4]=n,P0[5]=a,gn(ql,e,P0),ql[4]-=n,ql[5]-=a,e=ql),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],a=this.invTransform;return a&&Ce(n,n,a),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],a=this.transform;return a&&Ce(n,n,a),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&E0(t[0]-1)>1e-10&&E0(t[3]-1)>1e-10?Math.sqrt(E0(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){ha(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,c=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var d=n+s,p=a+l;e[4]=-d*i-v*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=v*o,u&&Ui(e,e,u),e[4]+=n+f,e[5]+=a+c,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}(),Ji=R0.getLocalTransform;function jl(){return new R0}var ti=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ha(r,t){return L$(r,t,ti)}const Qi=R0;function da(r){id||(id=new Xl(100)),r=r||Ka;var t=id.get(r);return t||(t={font:r,strWidthCache:new Xl(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Er.measureText("国",r).width,asciiCharWidth:Er.measureText("a",r).width},id.put(r,t)),t}var id;function Q4(r){if(!(k0>=wM)){r=r||Ka;for(var t=[],e=+new Date,n=0;n<=127;n++)t[n]=Er.measureText(String.fromCharCode(n),r).width;var a=+new Date-e;return a>16?k0=wM:a>2&&k0++,t}}var k0=0,wM=5;function TM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=Q4(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function pa(r,t){var e=r.strWidthCache,n=e.get(t);return n==null&&(n=Er.measureText(t,r.font).width,e.put(t,n)),n}function CM(r,t,e,n){var a=pa(da(t),r),i=qf(t),o=Jl(0,a,e),s=qo(0,i,n),l=new Mt(o,s,a,i);return l}function od(r,t,e,n){var a=((r||"")+"").split(`
35
+ `),i=a.length;if(i===1)return CM(a[0],t,e,n);for(var o=new Mt(0,0,0,0),s=0;s<a.length;s++){var l=CM(a[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Jl(r,t,e,n){return e==="right"?n?r+=t:r-=t:e==="center"&&(n?r+=t/2:r-=t/2),r}function qo(r,t,e,n){return e==="middle"?n?r+=t/2:r-=t/2:e==="bottom"&&(n?r+=t:r-=t),r}function qf(r){return da(r).stWideCharWidth}function ga(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function sd(r,t,e){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",c="top";if(n instanceof Array)l+=ga(n[0],e.width),u+=ga(n[1],e.height),f=null,c=null;else switch(n){case"left":l-=a,u+=s,f="right",c="middle";break;case"right":l+=a+o,u+=s,c="middle";break;case"top":l+=o/2,u-=a,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=o-a,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=i-a,f="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=i-a,c="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var O0="__zr_normal__",N0=ti.concat(["ignore"]),tU=ua(ti,function(r,t){return r[t]=!0,r},{ignore:!1}),Ql={},eU=new Mt(0,0,0,0),ld=[],ud=0,fd=1,cd=function(){function r(t){this.id=SA(),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 a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[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,a=n.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;i.copyTransform(e);var f=n.position!=null,c=n.autoOverflowArea,v=void 0;if((c||f)&&(v=eU,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),a||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ql,n,v):sd(Ql,n,v),i.x=Ql.x,i.y=Ql.y,o=Ql.align,s=Ql.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=ga(h[0],v.width),p=ga(h[1],v.height)),u=!0,i.originX=-i.x+d+(a?0:v.x),i.originY=-i.y+p+(a?0:v.y)}}n.rotation!=null&&(i.rotation=n.rotation);var g=n.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new Mt(0,0,0,0);i.getLocalTransform(ld),yn(ld,ld),Mt.copy(m,v),m.applyTransform(ld)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=n.insideFill,x=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=n.outsideFill,x=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=Zr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?L0:I0},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Kr(e);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,va(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||{},W(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(xt(t))for(var n=t,a=Ut(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==O0)){var o=a.targetName,s=o?e[o]:e;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,N0)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(O0,!1,t)},r.prototype.useState=function(t,e,n,a){var i=t===O0,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Lt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Om("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=this._textContent,c=MM(this,f,u,a);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(t,u,this._normalState,e,IM(this,n,l),l);var v=this._textGuide;return f&&f.useState(t,e,n,!!c),v&&v.useState(t,e,n,!!c),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=ud,this.__dirty&=~Zr),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&a.push(f)}var c=a[o-1],v=this._textContent,h=MM(this,v,c,n);h&&!this.__inHover&&(this.__inHover=h);var d=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,IM(this,e,p),p);var g=this._textGuide;v&&v.useStates(t,e,!!h),g&&g.useStates(t,e,!!h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=ud,this.__dirty&=~Zr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Lt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var a=this.currentStates.slice(),i=Lt(a,t),o=Lt(a,e)>=0;i>=0?o?a.splice(i,1):a[i]=e:n&&!o&&a.push(e),this.useStates(a)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,a=0;a<t.length;a++){var i=t[a];W(e,i),i.textConfig&&(n=n||{},W(n,i.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,a,i,o){if(this.__inHover!==fd){var s=!(e&&a);e&&e.textConfig?(this.textConfig=W({},a?this.textConfig:n.textConfig),W(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<N0.length;f++){var c=N0[f],v=i&&tU[c];e&&e[c]!=null?v?(u=!0,l[c]=e[c]):this[c]=e[c]:s&&n[c]!=null&&(v?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)}},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Qi,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),W(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Zr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var a=t?this[t]:this,i=new x0(a,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(e)}).done(function(){var i=a.animators,o=Lt(i,t);o>=0&&i.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,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,n){B0(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){B0(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,a){for(var i=B0(this,e,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=ud,t.__dirty=Zr;function e(n,a,i,o){Object.defineProperty(t,n,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();ze(cd,dn),ze(cd,Qi);function B0(r,t,e,n,a){e=e||{};var i=[];AM(r,"",r,t,e,n,i,a);var o=i.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var v=0;v<i.length;v++){var h=i[v];f&&h.done(f),c&&h.aborted(c),e.force&&h.duration(e.duration),h.start(e.easing)}return i}function V0(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function rU(r){return pr(r[0])}function nU(r,t,e){if(pr(t[e]))if(pr(r[e])||(r[e]=[]),Xr(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),V0(r[e],t[e],n))}else{var a=t[e],i=r[e],o=a.length;if(rU(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?V0(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else V0(i,a,o);i.length=a.length}else r[e]=t[e]}function aU(r,t){return r===t||pr(r)&&pr(t)&&iU(r,t)}function iU(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function AM(r,t,e,n,a,i,o,s){for(var l=Ut(n),u=a.duration,f=a.delay,c=a.additive,v=a.setToFinal,h=!xt(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(h||i[y]))if(xt(m)&&!pr(m)&&!Ph(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}AM(r,y,e[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!c&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var b=x.stopTracks(p);if(b){var w=Lt(d,x);d.splice(w,1)}}}if(a.force||(p=ne(p,function(A){return!aU(n[A],e[A])}),_=p.length),_>0||a.force&&!o.length){var C=void 0,T=void 0,D=void 0;if(s){T={},v&&(C={});for(var S=0;S<_;S++){var y=p[S];T[y]=e[y],v?C[y]=n[y]:e[y]=n[y]}}else if(v){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=Xf(e[y]),nU(e,n,y)}}var x=new x0(e,!1,!1,c?ne(d,function(L){return L.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),v&&C&&x.whenWithKeys(0,C,p),D&&x.whenWithKeys(0,D,p),x.whenWithKeys(u??500,s?T:n,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}function MM(r,t,e,n){return!(e&&e.hoverLayer||n)||DM(r)||t&&DM(t)?ud:fd}function DM(r){return r.type==="text"||r.type==="tspan"}function IM(r,t,e){return!t&&!r.__inHover&&e&&e.duration>0}var LM=function(r){V(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,a=0;a<n.length;a++)if(n[a].name===e)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var a=Lt(this._children,e);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(e,n){var a=this._children,i=a[n];if(e&&e!==this&&e.parent!==this&&e!==i){a[n]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,a=this._children,i=Lt(a,e);return i<0?this:(a.splice(i,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,a=0;a<e.length;a++){var i=e[a];n&&i.removeSelfFromZr(n),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];e.call(n,o,i)}return this},t.prototype.traverse=function(e,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=e.call(n,i);i.isGroup&&!o&&i.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new Mt(0,0,0,0),a=e||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(Mt.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(cd);LM.prototype.type="group";const mt=LM;/*!
36
+ * ZRender, a high performance 2d drawing library.
37
+ *
38
+ * Copyright (c) 2013, Baidu Inc.
39
+ * All rights reserved.
40
+ *
41
+ * LICENSE
42
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
43
+ */var vd={},PM={};function oU(r){delete PM[r]}function sU(r){if(!r)return!1;if(typeof r=="string")return Zh(r,1)<D0;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,a=0;a<n;a++)e+=Zh(t[a].color,1);return e/=n,e<D0}return!1}var lU=function(){function r(t,e,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new m4,o=n.renderer||"canvas";vd[o]||(o=Ut(vd)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new vd[o](e,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!te.node&&!te.worker&&!l?new j4(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,c=f==null||f==="auto"?te.touchEventsSupported:!!f,v=44,h;c&&(h=ut(n.pointerSize,v)),this.handler=new h4(i,s,u,s.root,h),this.animation=new $4({stage:{update:l?null:function(){return a._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=sU(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(t){var e,n=Kl(),a=this._needsRefresh,i=this._needsRefreshHover;(a||i)&&(e=!0,this._refresh({animUpdate:t,refresh:a,refreshHover:i}));var o=Kl();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof mt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,oU(this.id))},r}();function EM(r,t){var e=new lU(SA(),r,t);return PM[e.id]=e,e}function uU(r,t){vd[r]=t}var z0;function fU(r){if(typeof z0=="function")return z0(r)}function cU(r){z0=r}var RM=1e-4,kM=20,vU=14;function hU(r){return r.replace(/^\s+|\s+$/g,"")}var ae=Math.min,Vt=Math.max,Ae=Math.abs,ei=Math.round,Hn=Math.floor,jo=Math.ceil,Jo=Math.pow,jf=Math.log,F0=Math.LN10,hd=Math.PI,dU=Math.random;function Jt(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}var nt=pU;function pU(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return dd(r,t,e)}function dd(r,t,e){return et(r)?OM(r)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function gU(r){return et(r)&&OM(r)}function OM(r){return!!hU(r).match(/%$/)}function Zt(r,t,e){return isNaN(t)?e?""+r:+r:(t=ae(Vt(0,t),kM),r=(+r).toFixed(t),e?r:+r)}function nr(r){return r.sort(function(t,e){return t-e}),r}function ri(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(ei(r*t)/t===r)return e}return yU(r)}function yU(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Vt(0,o-n)}function G0(r,t,e){var n=Ae(r[1]-r[0]);if(!isFinite(n)||n===0)return NaN;var a=jf(2*Ae(e||1)*Ae(n))/F0,i=jf(Ae(t))/F0,o=Vt(0,jo(-a+i));return isFinite(o)||(o=NaN),o}function mU(r,t){var e=ua(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Jo(10,t),a=K(r,function(h){return(isNaN(h)?0:h)/e*n*100}),i=n*100,o=K(a,function(h){return Hn(h)}),s=ua(o,function(h,d){return h+d},0),l=K(a,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,v=l.length;c<v;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return K(o,function(h){return h/n})}function Qo(r,t){var e=Vt(ri(r),ri(t)),n=r+t;return e>kM?n:Zt(n,e)}var pd=Jo(2,53)-1;function NM(r){var t=hd*2;return(r%t+t)%t}function tu(r){return r>-RM&&r<RM}var _U=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ts(r){if(r instanceof Date)return r;if(et(r)){var t=_U.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(ei(r))}function BM(r){return Jo(10,H0(r))}function H0(r){if(r===0)return 0;var t=Hn(jf(r)/F0);return r/Jo(10,t)>=10&&t++,t}var VM=2;function $0(r,t){var e=H0(r),n=Jo(10,e),a=r/n,i;return t===VM?i=1:t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,r=i*n,Zt(r,-e)}function U0(r,t){var e=(r.length-1)*t+1,n=Hn(e),a=+r[n-1],i=e-n;return i?a+i*(r[n]-a):a}function zM(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,n=0;n<r.length;){for(var a=r[n].interval,i=r[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-e),t=a[o],e=i[o];a[0]===a[1]&&i[0]*i[1]!==1?r.splice(n,1):n++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function ni(r){var t=parseFloat(r);return t==r&&(t!==0||!et(r)||r.indexOf("x")<=0)?t:NaN}function FM(r){return!isNaN(ni(r))}function W0(){return ei(dU()*9)}function GM(r,t){return t===0?r:GM(t,r%t)}function HM(r,t){return r==null?t:t==null?r:r*t/GM(r,t)}function Sn(r){return r!=null&&isFinite(r)}var SU="[ECharts] ",$M={},xU=typeof console<"u"&&console.warn&&console.log;function UM(r,t,e){if(xU){if(e){if($M[t])return;$M[t]=!0}console[r](SU+t)}}function hdt(r,t){UM("warn",r,t)}function WM(r,t){UM("error",r,t)}function ee(r){throw new Error(r)}function YM(r,t,e){return(t-r)*e+r}var XM="series\0",ZM="\0_ec_\0";function ue(r){return r instanceof Array?r:r==null?[]:[r]}function es(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n<a;n++){var i=e[n];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var KM=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function eu(r){return xt(r)&&!Y(r)&&!(r instanceof Date)?r.value:r}function bU(r){return xt(r)&&!(r instanceof Array)}function qM(r,t,e){var n=e==="normalMerge",a=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=ot();M(t,function(l,u){if(!xt(l)){t[u]=null;return}});var s=wU(r,o,e);return(n||a)&&TU(s,r,o,t),n&&CU(s,t),n||a?AU(s,t,a):i&&MU(s,t),DU(s),s}function wU(r,t,e){var n=[];if(e==="replaceAll")return n;for(var a=0;a<r.length;a++){var i=r[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:e==="replaceMerge"||Qf(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function TU(r,t,e,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Jf(a.id),s=e.get(o);if(s!=null){var l=r[s];yr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function CU(r,t){M(t,function(e,n){if(!(!e||e.name==null))for(var a=0;a<r.length;a++){var i=r[a].existing;if(!r[a].newOption&&i&&(i.id==null||e.id==null)&&!Qf(e)&&!Qf(i)&&jM("name",i,e)){r[a].newOption=e,t[n]=null;return}}})}function AU(r,t,e){M(t,function(n){if(n){for(var a,i=0;(a=r[i])&&(a.newOption||Qf(a.existing)||a.existing&&n.id!=null&&!jM("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),i++}})}function MU(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function DU(r){var t=ot();M(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(r,function(e){var n=e.newOption;yr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),M(r,function(e,n){var a=e.existing,i=e.newOption,o=e.keyInfo;if(xt(i)){if(o.name=i.name!=null?Jf(i.name):a?a.name:XM+n,a)o.id=Jf(a.id);else if(i.id!=null)o.id=Jf(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function jM(r,t,e){var n=Fe(t[r],null),a=Fe(e[r],null);return n!=null&&a!=null&&n===a}function Jf(r){return Fe(r,"")}function Fe(r,t){return r==null?t:et(r)?r:Wt(r)||Bm(r)?r+"":t}function Y0(r){var t=r.name;return!!(t&&t.indexOf(XM))}function Qf(r){return r&&r.id!=null&&Jf(r.id).indexOf(ZM)===0}function IU(r){return ZM+r}function LU(r,t,e){M(r,function(n){var a=n.newOption;xt(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=PU(t,a,n.existing,e))})}function PU(r,t,e,n){var a=t.type?t.type:e?e.subType:n.determineSubType(r,t);return a}function EU(r,t){var e={},n={};return a(r||[],e),a(t||[],n,e),[i(e),i(n)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=Fe(o[u].seriesId,null);if(c==null)return;for(var v=ue(o[u].dataIndex),h=l&&l[c],d=0,p=v.length;d<p;d++){var g=v[d];h&&h[g]?h[g]=null:(s[c]||(s[c]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function rs(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?K(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?K(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function Et(){var r="__ec_inner_"+RU++;return function(t){return t[r]||(t[r]={})}}var RU=W0();function ru(r,t,e){var n=X0(t,e),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,f){var c=nu(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function X0(r,t){var e;if(et(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var a=ot(),i={},o=!1;return M(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&Lt(t.includeMainTypes,f)<0)){o=o||!!f;var v=a.get(f)||a.set(f,{});v[c]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Me={useDefault:!0,enableAll:!1,enableNone:!1},kU={useDefault:!1,enableAll:!0,enableNone:!0};function nu(r,t,e,n){n=n||Me;var a=e.index,i=e.id,o=e.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(a==="none"||a===!1){if(n.enableNone)return s.models=[],s;a=-1}return a==="all"&&(n.enableAll?a=i=o=null:a=-1),s.models=r.queryComponents({mainType:t,index:a,id:i,name:o}),s}function Z0(r,t,e){var n={};n[t+"Id"]=r[t+"Id"],n[t+"Index"]=r[t+"Index"],n[t+"Name"]=r[t+"Name"];var a={mainType:t,query:n};return e&&(a.subType=e),a}function JM(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function OU(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function NU(r){return r==="auto"?te.domSupported?"html":"richText":r||"html"}function K0(r,t){var e=ot(),n=[];return M(r,function(a){var i=t(a);(e.get(i)||(n.push(i),e.set(i,[]))).push(a)}),{keys:n,buckets:e}}function QM(r,t,e,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Wt(n)){var o=YM(e||0,n,a);return Zt(o,i?Math.max(ri(e||0),ri(n)):t)}else{if(et(n))return a<1?e:n;for(var s=[],l=e,u=n,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var v=r.getDimensionInfo(c);if(v&&v.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,d=u[c],o=YM(h,d,a);s[c]=Zt(o,i?Math.max(ri(h),ri(d)):t)}}return s}}var to=function(){function r(){}return r.prototype.reset=function(t,e,n,a){return this._list=t,this._step=a=a||1,this._idx=e,this._end=n??(a>0?t.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function q0(r){r.option=r.parentModel=r.ecModel=null}function ar(){return[1/0,-1/0]}function j0(r,t){ai(t)&&(t<r[0]&&(r[0]=t),t>r[1]&&(r[1]=t))}function tD(r,t){ai(t)&&t<r[0]&&(r[0]=t)}function eD(r,t){ai(t)&&t>r[1]&&(r[1]=t)}function BU(r,t){ns(t[0],t[1])&&(t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1]))}function ai(r){return r!=null&&isFinite(r)}function ns(r,t){return ai(r)&&ai(t)&&r<=t}function VU(r){var t=r[1]-r[0];return isFinite(t)&&t>=0}function gd(r){ns(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function au(){var r="__ec_once_"+zU++;return function(t,e){st(t,r)||(t[r]=1,e())}}var zU=W0();function yd(r,t,e){var n=ot(),a=0;M(r,function(i){var o=t(i),s=n.get(o)||0;e&&e(i,s),!s&&!e&&(r[a++]=i),n.set(o,s+1)}),e||(r.length=a)}function FU(r){return r.value+""}function GU(r){return r+""}function ya(r,t){return ut(t,!0)?r.seriesIndex+2:0}function rD(r,t,e){var n=r.getData().count();return{progressiveRender:e.progressiveEnabled&&t.incrementalPrepareRender&&n>=e.threshold,large:r.get("large")&&n>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function Ge(r,t){return{seriesType:r,overallReset:t}}function tc(r){return{overallReset:r}}var HU=".",as="___EC__COMPONENT__CONTAINER___",nD="___EC__EXTENDED_CLASS___";function ma(r){var t={main:"",sub:""};if(r){var e=r.split(HU);t.main=e[0]||"",t.sub=e[1]||""}return t}function $U(r){yr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function UU(r){return!!(r&&r[nD])}function J0(r,t){r.$constructor=r,r.extend=function(e){var n=this,a;return WU(n)?a=function(i){V(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(e.$constructor||n).apply(this,arguments)},P$(a,this)),W(a.prototype,e),a[nD]=!0,a.extend=this.extend,a.superCall=ZU,a.superApply=KU,a.superClass=n,a}}function WU(r){return yt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function aD(r,t){r.extend=t.extend}var YU=Math.round(Math.random()*10);function XU(r){var t=["__\0is_clz",YU++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function ZU(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function KU(r,t,e){return this.superClass.prototype[t].apply(r,e)}function md(r){var t={};r.registerClass=function(n){var a=n.type||n.prototype.type;if(a){$U(a),n.prototype.type=a;var i=ma(a);if(!i.sub)t[i.main]=n;else if(i.sub!==as){var o=e(i);o[i.sub]=n}}return n},r.getClass=function(n,a,i){var o=t[n];if(o&&o[as]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var a=ma(n),i=[],o=t[a.main];return o&&o[as]?M(o,function(s,l){l!==as&&i.push(s)}):i.push(o),i},r.hasClass=function(n){var a=ma(n);return!!t[a.main]},r.getAllClassMainTypes=function(){var n=[];return M(t,function(a,i){n.push(i)}),n},r.hasSubTypes=function(n){var a=ma(n),i=t[a.main];return i&&i[as]};function e(n){var a=t[n.main];return(!a||!a[as])&&(a=t[n.main]={},a[as]=!0),a}}function is(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&Lt(a,l)>=0||i&&Lt(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var qU=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jU=is(qU),JU=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return jU(this,t,e)},r}(),Q0=new Xl(50);function QU(r){if(typeof r=="string"){var t=Q0.get(r);return t&&t.image}else return r}function t_(r,t,e,n,a){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Q0.get(r),o={hostEl:e,cb:n,cbPayload:a};return i?(t=i.image,!_d(t)&&i.pending.push(o)):(t=Er.loadImage(r,iD,iD),t.__zrImageSrc=r,Q0.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function iD(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function _d(r){return r&&r.width&&r.height}var e_=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function tW(r,t,e,n,a,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
44
+ `);i=oD(e,n,a,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)sD(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
45
+ `),r.isTruncated=s}function oD(r,t,e,n){n=n||{};var a=W({},n);e=ut(e,"..."),a.maxIterations=ut(n.maxIterations,2);var i=a.minChar=ut(n.minChar,0),o=a.fontMeasureInfo=da(t),s=o.asciiCharWidth;a.placeholder=ut(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=pa(o,e);return f>l&&(e="",f=0),l=r-f,a.ellipsis=e,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=r,a}function sD(r,t,e){var n=e.containerWidth,a=e.contentWidth,i=e.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=pa(i,t);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?eW(t,a,i):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=pa(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function eW(r,t,e){for(var n=0,a=0,i=r.length;a<i&&n<t;a++)n+=TM(e,r.charCodeAt(a));return a}function rW(r,t,e,n){var a=n_(r),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",c=qf(u),v=ut(t.lineHeight,c),h=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&e!=null&&(p=e-s);var g=t.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=a?uD(a,t.font,p,i==="breakAll",0).lines:[]:y=a?a.split(`
46
+ `):[];var m=y.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(a&&f&&p!=null)for(var S=oD(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;b<y.length;b++)sD(x,y[b],S),y[b]=x.textLine,d=d||x.isTruncated;for(var w=g,C=0,T=da(u),b=0;b<y.length;b++)C=Math.max(pa(T,y[b]),C);p==null&&(p=C);var D=p;return w+=l,D+=s,{lines:y,height:g,outerWidth:D,outerHeight:w,lineHeight:v,calculatedLineHeight:c,contentWidth:C,contentHeight:m,width:p,isTruncated:d}}var nW=function(){function r(){}return r}(),lD=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),aW=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function iW(r,t,e,n,a){var i=new aW,o=n_(r);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-l);var c=t.height;c==null&&n!=null&&(c=n-u);for(var v=t.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=e_.lastIndex=0,p;(p=e_.exec(o))!=null;){var g=p.index;g>d&&r_(i,o.substring(d,g),t,h),r_(i,p[2],t,h,p[1]),d=e_.lastIndex}d<o.length&&r_(i,o.substring(d,o.length),t,h);var y=[],m=0,_=0,S=v==="truncate",x=t.lineOverflow==="truncate",b={};function w(St,Ht,gt){St.width=Ht,St.lineHeight=gt,m+=gt,_=Math.max(_,Ht)}t:for(var C=0;C<i.lines.length;C++){for(var T=i.lines[C],D=0,A=0,L=0;L<T.tokens.length;L++){var I=T.tokens[L],P=I.styleName&&t.rich[I.styleName]||{},R=I.textPadding=P.padding,E=R?R[1]+R[3]:0,N=I.font=P.font||t.font;I.contentHeight=qf(N);var O=ut(P.height,I.contentHeight);if(I.innerHeight=O,R&&(O+=R[0]+R[2]),I.height=O,I.lineHeight=nn(P.lineHeight,t.lineHeight,O),I.align=P&&P.align||a,I.verticalAlign=P&&P.verticalAlign||"middle",x&&c!=null&&m+I.lineHeight>c){var G=i.lines.length;L>0?(T.tokens=T.tokens.slice(0,L),w(T,A,D),i.lines=i.lines.slice(0,C+1)):i.lines=i.lines.slice(0,C),i.isTruncated=i.isTruncated||i.lines.length<G;break t}var $=P.width,H=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")I.percentWidth=$,y.push(I),I.contentWidth=pa(da(N),I.text);else{if(H){var X=P.backgroundColor,q=X&&X.image;q&&(q=QU(q),_d(q)&&(I.width=Math.max(I.width,q.width*O/q.height)))}var J=S&&f!=null?f-A:null;J!=null&&J<I.width?!H||J<E?(I.text="",I.width=I.contentWidth=0):(tW(b,I.text,J-E,N,t.ellipsis,{minChar:t.truncateMinChar}),I.text=b.text,i.isTruncated=i.isTruncated||b.isTruncated,I.width=I.contentWidth=pa(da(N),I.text)):I.contentWidth=pa(da(N),I.text)}I.width+=E,A+=I.width,P&&(D=Math.max(D,I.lineHeight))}w(T,A,D)}i.outerWidth=i.width=ut(f,_),i.outerHeight=i.height=ut(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var C=0;C<y.length;C++){var I=y[C],Q=I.percentWidth;I.width=parseInt(Q,10)/100*i.width}return i}function r_(r,t,e,n,a){var i=t==="",o=a&&e.rich[a]||{},s=r.lines,l=o.font||e.font,u=!1,f,c;if(n){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=ga(o.width,n.width)+h;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
47
+ `),u=!0),n.accumWidth=d}else{var p=uD(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=t.split(`
48
+ `));for(var g=da(l),y=0;y<f.length;y++){var m=f[y],_=new nW;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[y]:pa(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new lD)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new lD([_]))}}function oW(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var sW=ua(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function lW(r){return oW(r)?!!sW[r]:!0}function uD(r,t,e,n,a){for(var i=[],o=[],s="",l="",u=0,f=0,c=da(t),v=0;v<r.length;v++){var h=r.charAt(v);if(h===`
49
+ `){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=TM(c,h.charCodeAt(0)),p=n?!1:!lW(h);if(i.length?f+d>e:a+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=a),{accumWidth:f,lines:i,linesWidths:o}}function fD(r,t,e,n,a,i){if(r.baseX=e,r.baseY=n,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;Mt.set(cD,Jl(e,o,a),qo(n,s,i),o,s),Mt.intersect(t,cD,null,vD);var l=vD.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Jl(l.x,l.width,a,!0),r.baseY=qo(l.y,l.height,i,!0)}}var cD=new Mt(0,0,0,0),vD={outIntersectRect:{},clamp:!0};function n_(r){return r!=null?r+="":r=""}function uW(r){var t=n_(r.text),e=r.font,n=pa(da(e),t),a=qf(e);return a_(r,n,a,null)}function a_(r,t,e,n){var a=new Mt(Jl(r.x||0,t,r.textAlign),qo(r.y||0,e,r.textBaseline),t,e),i=n??(hD(r)?r.lineWidth:0);return i>0&&(a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i),a}function hD(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var i_="__zr_style_"+Math.round(Math.random()*10),os={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Sd={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};os[i_]=!0;var dD=["z","z2","invisible"],fW=["invisible"],cW=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=Ut(e),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&vW(this,e,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Mt(0,0,0,0)),n?Mt.applyTransform(e,a,n):e.copy(a),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Mt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:W(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=$f,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&$f)},t.prototype.styleUpdated=function(){this.__dirty&=~$f},t.prototype.createStyle=function(e){return kh(os,e)},t.prototype.useStyle=function(e){e[i_]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[i_]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,dD)},t.prototype._applyStateObj=function(e,n,a,i,o,s){r.prototype._applyStateObj.call(this,e,n,a,i,o,s);var l=!(n&&i),u=this.__inHover===fd,f;if(n&&n.style?o?i?f=n.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(f,n.style)):l&&(f=a.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var v=Ut(c),h=0;h<v.length;h++){var d=v[h];d in f&&(f[d]=f[d],this.style[d]=c[d])}for(var p=Ut(f),h=0;h<p.length;h++){var d=p[h];this.style[d]=this.style[d]}this._transitionState(e,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var g=this.__inHover?fW:dD,h=0;h<g.length;h++){var d=g[h];n&&n[d]!=null?this[d]=n[d]:l&&a[d]!=null&&(this[d]=a[d])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(e,n){return W(e,n),e},t.prototype.getAnimationStyleProps=function(){return Sd},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Zr|$f}(),t}(cd),o_=new Mt(0,0,0,0),s_=new Mt(0,0,0,0);function vW(r,t,e){return o_.copy(r.getBoundingRect()),r.transform&&o_.applyTransform(r.transform),s_.width=t,s_.height=e,!o_.intersect(s_)}const xn=cW;var qr=Math.min,jr=Math.max,l_=Math.sin,u_=Math.cos,ss=Math.PI*2,xd=zo(),bd=zo(),wd=zo();function Td(r,t,e){if(r.length!==0){for(var n=r[0],a=n[0],i=n[0],o=n[1],s=n[1],l=1;l<r.length;l++)n=r[l],a=qr(a,n[0]),i=jr(i,n[0]),o=qr(o,n[1]),s=jr(s,n[1]);t[0]=a,t[1]=o,e[0]=i,e[1]=s}}function pD(r,t,e,n,a,i){a[0]=qr(r,e),a[1]=qr(t,n),i[0]=jr(r,e),i[1]=jr(t,n)}var gD=[],yD=[];function hW(r,t,e,n,a,i,o,s,l,u){var f=jA,c=Ke,v=f(r,e,a,o,gD);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<v;h++){var d=c(r,e,a,o,gD[h]);l[0]=qr(d,l[0]),u[0]=jr(d,u[0])}v=f(t,n,i,s,yD);for(var h=0;h<v;h++){var p=c(t,n,i,s,yD[h]);l[1]=qr(p,l[1]),u[1]=jr(p,u[1])}l[0]=qr(r,l[0]),u[0]=jr(r,u[0]),l[0]=qr(o,l[0]),u[0]=jr(o,u[0]),l[1]=qr(t,l[1]),u[1]=jr(t,u[1]),l[1]=qr(s,l[1]),u[1]=jr(s,u[1])}function dW(r,t,e,n,a,i,o,s){var l=QA,u=Qe,f=jr(qr(l(r,e,a),1),0),c=jr(qr(l(t,n,i),1),0),v=u(r,e,a,f),h=u(t,n,i,c);o[0]=qr(r,a,v),o[1]=qr(t,i,h),s[0]=jr(r,a,v),s[1]=jr(t,i,h)}function pW(r,t,e,n,a,i,o,s,l){var u=Hi,f=$i,c=Math.abs(a-i);if(c%ss<1e-4&&c>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(xd[0]=u_(a)*e+r,xd[1]=l_(a)*n+t,bd[0]=u_(i)*e+r,bd[1]=l_(i)*n+t,u(s,xd,bd),f(l,xd,bd),a=a%ss,a<0&&(a=a+ss),i=i%ss,i<0&&(i=i+ss),a>i&&!o?i+=ss:a<i&&o&&(a+=ss),o){var v=i;i=a,a=v}for(var h=0;h<i;h+=Math.PI/2)h>a&&(wd[0]=u_(h)*e+r,wd[1]=l_(h)*n+t,u(s,wd,s),f(l,wd,l))}var fe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ls=[],us=[],_a=[],eo=[],Sa=[],xa=[],f_=Math.min,c_=Math.max,fs=Math.cos,cs=Math.sin,ii=Math.abs,v_=Math.PI,ro=v_*2,h_=typeof Float32Array<"u",ec=[];function d_(r){var t=Math.round(r/v_*1e8)/1e8;return t%2*v_}function Cd(r,t){var e=d_(r[0]);e<0&&(e+=ro);var n=e-r[0],a=r[1];a+=n,!t&&a-e>=ro?a=e+ro:t&&e-a>=ro?a=e-ro:!t&&e>a?a=e+(ro-d_(e-a)):t&&e<a&&(a=e-(ro-d_(a-e))),r[0]=e,r[1]=a}var gW=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=ii(n/ad/t)||0,this._uy=ii(n/ad/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(fe.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=ii(t-this._xi),a=ii(e-this._yi),i=n>this._ux||a>this._uy;if(this.addData(fe.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){return this._drawPendingPt(),this.addData(fe.C,t,e,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,a,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,a){return this._drawPendingPt(),this.addData(fe.Q,t,e,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,a),this._xi=n,this._yi=a,this},r.prototype.arc=function(t,e,n,a,i,o){this._drawPendingPt(),ec[0]=a,ec[1]=i,Cd(ec,o),a=ec[0],i=ec[1];var s=i-a;return this.addData(fe.A,t,e,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,a,i,o),this._xi=fs(i)*n+t,this._yi=cs(i)*n+e,this},r.prototype.arcTo=function(t,e,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,a,i),this},r.prototype.rect=function(t,e,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,a),this.addData(fe.R,t,e,n,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(fe.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){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&h_&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,a=this._len,i=0;i<e;i++)n+=t[i].len();var o=this.data;if(h_&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+n),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var i=0;i<e;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(t,e,n,a,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,h_&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){_a[0]=_a[1]=Sa[0]=Sa[1]=Number.MAX_VALUE,eo[0]=eo[1]=xa[0]=xa[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],a=e,i=n),s){case fe.M:e=a=t[o++],n=i=t[o++],Sa[0]=a,Sa[1]=i,xa[0]=a,xa[1]=i;break;case fe.L:pD(e,n,t[o],t[o+1],Sa,xa),e=t[o++],n=t[o++];break;case fe.C:hW(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Sa,xa),e=t[o++],n=t[o++];break;case fe.Q:dW(e,n,t[o++],t[o++],t[o],t[o+1],Sa,xa),e=t[o++],n=t[o++];break;case fe.A:var u=t[o++],f=t[o++],c=t[o++],v=t[o++],h=t[o++],d=t[o++]+h;o+=1;var p=!t[o++];l&&(a=fs(h)*c+u,i=cs(h)*v+f),pW(u,f,c,v,h,d,p,Sa,xa),e=fs(d)*c+u,n=cs(d)*v+f;break;case fe.R:a=e=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];pD(a,i,a+g,i+y,Sa,xa);break;case fe.Z:e=a,n=i;break}Hi(_a,_a,Sa),$i(eo,eo,xa)}return o===0&&(_a[0]=_a[1]=eo[0]=eo[1]=0),new Mt(_a[0],_a[1],eo[0]-_a[0],eo[1]-_a[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,v=0;v<e;){var h=t[v++],d=v===1;d&&(i=t[v],o=t[v+1],s=i,l=o);var p=-1;switch(h){case fe.M:i=s=t[v++],o=l=t[v++];break;case fe.L:{var g=t[v++],y=t[v++],m=g-i,_=y-o;(ii(m)>n||ii(_)>a||v===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case fe.C:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++],b=t[v++],w=t[v++];p=_4(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case fe.Q:{var S=t[v++],x=t[v++],g=t[v++],y=t[v++];p=x4(i,o,S,x,g,y,10),i=g,o=y;break}case fe.A:var C=t[v++],T=t[v++],D=t[v++],A=t[v++],L=t[v++],I=t[v++],P=I+L;v+=1,d&&(s=fs(L)*D+C,l=cs(L)*A+T),p=c_(D,A)*f_(ro,Math.abs(I)),i=fs(P)*D+C,o=cs(P)*A+T;break;case fe.R:{s=i=t[v++],l=o=t[v++];var R=t[v++],E=t[v++];p=R*2+E*2;break}case fe.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,f,c,v,h=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b<o;){var w=n[b++],C=b===1;switch(C&&(u=n[b],f=n[b+1],s=u,l=f),w!==fe.L&&_>0&&(t.lineTo(S,x),_=0),w){case fe.M:s=u=n[b++],l=f=n[b++],t.moveTo(u,f);break;case fe.L:{c=n[b++],v=n[b++];var T=ii(c-u),D=ii(v-f);if(T>a||D>i){if(h){var A=d[y++];if(g+A>m){var L=(m-g)/A;t.lineTo(u*(1-L)+c*L,f*(1-L)+v*L);break t}g+=A}t.lineTo(c,v),u=c,f=v,_=0}else{var I=T*T+D*D;I>_&&(S=c,x=v,_=I)}break}case fe.C:{var P=n[b++],R=n[b++],E=n[b++],N=n[b++],O=n[b++],G=n[b++];if(h){var A=d[y++];if(g+A>m){var L=(m-g)/A;Xi(u,P,E,O,L,ls),Xi(f,R,N,G,L,us),t.bezierCurveTo(ls[1],us[1],ls[2],us[2],ls[3],us[3]);break t}g+=A}t.bezierCurveTo(P,R,E,N,O,G),u=O,f=G;break}case fe.Q:{var P=n[b++],R=n[b++],E=n[b++],N=n[b++];if(h){var A=d[y++];if(g+A>m){var L=(m-g)/A;Uf(u,P,E,L,ls),Uf(f,R,N,L,us),t.quadraticCurveTo(ls[1],us[1],ls[2],us[2]);break t}g+=A}t.quadraticCurveTo(P,R,E,N),u=E,f=N;break}case fe.A:var $=n[b++],H=n[b++],X=n[b++],q=n[b++],J=n[b++],Q=n[b++],St=n[b++],Ht=!n[b++],gt=X>q?X:q,ft=ii(X-q)>.001,Tt=J+Q,ct=!1;if(h){var A=d[y++];g+A>m&&(Tt=J+Q*(m-g)/A,ct=!0),g+=A}if(ft&&t.ellipse?t.ellipse($,H,X,q,St,J,Tt,Ht):t.arc($,H,gt,J,Tt,Ht),ct)break t;C&&(s=fs(J)*X+$,l=cs(J)*q+H),u=fs(Tt)*X+$,f=cs(Tt)*q+H;break;case fe.R:s=u=n[b],l=f=n[b+1],c=n[b++],v=n[b++];var wt=n[b++],k=n[b++];if(h){var A=d[y++];if(g+A>m){var B=m-g;t.moveTo(c,v),t.lineTo(c+f_(B,wt),v),B-=wt,B>0&&t.lineTo(c+wt,v+f_(B,k)),B-=k,B>0&&t.lineTo(c+c_(wt-B,0),v+k),B-=wt,B>0&&t.lineTo(c,v+c_(k-B,0));break t}g+=A}t.rect(c,v,wt,k);break;case fe.Z:if(h){var A=d[y++];if(g+A>m){var L=(m-g)/A;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=A}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=fe,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const ba=gW;function no(r,t,e,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function yW(r,t,e,n,a,i,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>t+c&&f>n+c&&f>i+c&&f>s+c||f<t-c&&f<n-c&&f<i-c&&f<s-c||u>r+c&&u>e+c&&u>a+c&&u>o+c||u<r-c&&u<e-c&&u<a-c&&u<o-c)return!1;var v=JA(r,t,e,n,a,i,o,s,u,f,null);return v<=c/2}function mD(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>r+u&&s>e+u&&s>a+u||s<r-u&&s<e-u&&s<a-u)return!1;var f=tM(r,t,e,n,a,i,s,l,null);return f<=u/2}var _D=Math.PI*2;function on(r){return r%=_D,r<0&&(r+=_D),r}var rc=Math.PI*2;function mW(r,t,e,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-a)%rc<1e-4)return!0;if(i){var c=n;n=on(a),a=on(c)}else n=on(n),a=on(a);n>a&&(a+=rc);var v=Math.atan2(l,s);return v<0&&(v+=rc),v>=n&&v<=a||v+rc>=n&&v+rc<=a}function oi(r,t,e,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(e-r)+r;return l===a?1/0:l>a?s:0}var ao=ba.CMD,vs=Math.PI*2,_W=1e-4;function SW(r,t){return Math.abs(r-t)<_W}var kr=[-1,-1,-1],bn=[-1,-1];function xW(){var r=bn[0];bn[0]=bn[1],bn[1]=r}function bW(r,t,e,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var f=Wh(t,n,i,s,u,kr);if(f===0)return 0;for(var c=0,v=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=kr[p],y=g===0||g===1?.5:1,m=Ke(r,e,a,o,g);m<l||(v<0&&(v=jA(t,n,i,s,bn),bn[1]<bn[0]&&v>1&&xW(),h=Ke(t,n,i,s,bn[0]),v>1&&(d=Ke(t,n,i,s,bn[1]))),v===2?g<bn[0]?c+=h<t?y:-y:g<bn[1]?c+=d<h?y:-y:c+=s<d?y:-y:g<bn[0]?c+=h<t?y:-y:c+=s<h?y:-y)}return c}function wW(r,t,e,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=S4(t,n,i,s,kr);if(l===0)return 0;var u=QA(t,n,i);if(u>=0&&u<=1){for(var f=0,c=Qe(t,n,i,u),v=0;v<l;v++){var h=kr[v]===0||kr[v]===1?.5:1,d=Qe(r,e,a,kr[v]);d<o||(kr[v]<u?f+=c<t?h:-h:f+=i<c?h:-h)}return f}else{var h=kr[0]===0||kr[0]===1?.5:1,d=Qe(r,e,a,kr[0]);return d<o?0:i<t?h:-h}}function TW(r,t,e,n,a,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);kr[0]=-l,kr[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=vs-1e-4){n=0,a=vs;var f=i?1:-1;return o>=kr[0]+r&&o<=kr[1]+r?f:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=vs,a+=vs);for(var v=0,h=0;h<2;h++){var d=kr[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=vs+p),(p>=n&&p<=a||p+vs>=n&&p+vs<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),v+=f)}}return v}function SD(r,t,e,n,a){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,c=0,v,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===ao.M&&d>1&&(e||(s+=oi(l,u,f,c,n,a))),g&&(l=i[d],u=i[d+1],f=l,c=u),p){case ao.M:f=i[d++],c=i[d++],l=f,u=c;break;case ao.L:if(e){if(no(l,u,i[d],i[d+1],t,n,a))return!0}else s+=oi(l,u,i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ao.C:if(e){if(yW(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=bW(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ao.Q:if(e){if(mD(l,u,i[d++],i[d++],i[d],i[d+1],t,n,a))return!0}else s+=wW(l,u,i[d++],i[d++],i[d],i[d+1],n,a)||0;l=i[d++],u=i[d++];break;case ao.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);v=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=v,c=h):s+=oi(l,u,v,h,n,a);var C=(n-y)*S/_+y;if(e){if(mW(y,m,S,x,x+b,w,t,C,a))return!0}else s+=TW(y,m,S,x,x+b,w,C,a);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case ao.R:f=l=i[d++],c=u=i[d++];var T=i[d++],D=i[d++];if(v=f+T,h=c+D,e){if(no(f,c,v,c,t,n,a)||no(v,c,v,h,t,n,a)||no(v,h,f,h,t,n,a)||no(f,h,f,c,t,n,a))return!0}else s+=oi(v,c,v,h,n,a),s+=oi(f,h,f,c,n,a);break;case ao.Z:if(e){if(no(l,u,f,c,t,n,a))return!0}else s+=oi(l,u,f,c,n,a);l=f,u=c;break}}return!e&&!SW(u,c)&&(s+=oi(l,u,f,c,n,a)||0),s!==0}function CW(r,t,e){return SD(r,0,!1,t,e)}function AW(r,t,e,n){return SD(r,t,!0,e,n)}var Ad=_t({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},os),MW={style:_t({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Sd.style)},p_=ti.concat(["invisible","culling","z","z2","zlevel","parent"]),DW=function(r){V(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 a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){e.buildPath(l,e.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<p_.length;++s)a[p_[s]]=this[p_[s]];a.__dirty|=Zr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=Ut(e);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=e[o];o==="style"?this.style?W(this.style,s):this.useStyle(s):o==="shape"?W(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(et(e)){var n=Zh(e,0);return n>.5?I0:n>.2?J4:L0}else if(e)return L0}return I0},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(et(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Zh(e,0)<D0;if(i===o)return n}},t.prototype.buildPath=function(e,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Wl},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ba(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>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,a=!e;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Wl)&&(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||a){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect(),o=this.style;if(e=a[0],n=a[1],i.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),AW(s,l/u,e,n)))return!0}if(this.hasFill())return CW(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Wl,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 a=this.shape;return a||(a=this.shape={}),typeof e=="string"?a[e]=n:W(a,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Wl)},t.prototype.createStyle=function(e){return kh(Ad,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=W({},this.shape))},t.prototype._applyStateObj=function(e,n,a,i,o,s){if(r.prototype._applyStateObj.call(this,e,n,a,i,o,s),this.__inHover!==fd){var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=W({},a.shape),W(u,n.shape)):(u=W({},i?this.shape:a.shape),W(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=W({},this.shape);for(var f={},c=Ut(u),v=0;v<c.length;v++){var h=c[v];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),a,i=0;i<e.length;i++){var o=e[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return MW},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(i){V(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return dt(e.style)},o.prototype.getDefaultShape=function(){return dt(e.shape)},o}(t);for(var a in e)typeof e[a]=="function"&&(n.prototype[a]=e[a]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Zr|$f|Wl}(),t}(xn);const Gt=DW;var IW=_t({strokeFirst:!0,font:Ka,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ad),xD=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return hD(this.style)},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return kh(IW,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=uW(this.style)),this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(xn);xD.prototype.type="tspan";const nc=xD;var LW=_t({x:0,y:0},os),PW={style:_t({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Sd.style)};function EW(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var bD=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return kh(LW,e)},t.prototype._getSize=function(e){var n=this.style,a=n[e];if(a!=null)return a;var i=EW(n.image)?n.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return PW},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Mt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(xn);bD.prototype.type="image";const ir=bD;function RW(r,t){var e=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,f;a<0&&(e=e+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+f>a&&(c=u+f,u*=a/c,f*=a/c),l+u>i&&(c=l+u,l*=i/c,u*=i/c),s+f>i&&(c=s+f,s*=i/c,f*=i/c),r.moveTo(e+s,n),r.lineTo(e+a-l,n),l!==0&&r.arc(e+a-l,n+l,l,-Math.PI/2,0),r.lineTo(e+a,n+i-u),u!==0&&r.arc(e+a-u,n+i-u,u,0,Math.PI/2),r.lineTo(e+f,n+i),f!==0&&r.arc(e+f,n+i-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),r.closePath()}var iu=Math.round;function Md(r,t,e){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;r.x1=n,r.x2=a,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(iu(n*2)===iu(a*2)&&(r.x1=r.x2=sn(n,s,!0)),iu(i*2)===iu(o*2)&&(r.y1=r.y2=sn(i,s,!0))),r}}function wD(r,t,e){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;r.x=n,r.y=a,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=sn(n,s,!0),r.y=sn(a,s,!0),r.width=Math.max(sn(n+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(sn(a+o,s,!1)-r.y,o===0?0:1)),r}}function sn(r,t,e){if(!t)return r;var n=iu(r*2);return(n+iu(t))%2===0?n/2:(n+(e?1:-1))/2}var kW=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),OW={},TD=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kW},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=wD(OW,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?RW(e,n):e.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Gt);TD.prototype.type="rect";const Ft=TD;var CD={fill:"#000"},AD=2,wa={},NW={style:_t({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},Sd.style)},MD=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=CD,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;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,zW(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Mt(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||CD},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var a=n.rich,i=e.rich||a&&{};return W(e,n),a&&i?(this._mergeRich(i,a),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,n){for(var a=Ut(n),i=0;i<a.length;i++){var o=a[i];e[o]=e[o]||{},W(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return NW},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Ka,a=e.padding,i=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||i.align||"left",u=e.verticalAlign||i.verticalAlign||"top";fD(wa,i.overflowRect,o,s,l,u),o=wa.baseX,s=wa.baseY;var f=ND(e),c=rW(f,e,wa.outerWidth,wa.outerHeight),v=g_(e),h=!!e.backgroundColor,d=c.outerHeight,p=c.outerWidth,g=c.lines,y=c.lineHeight;this.isTruncated=!!c.isTruncated;var m=o,_=qo(s,c.contentHeight,u);if(v||a){var S=Jl(o,p,l),x=qo(s,d,u);v&&this._renderBackground(e,e,S,x,p,d)}_+=y/2,a&&(m=OD(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var b=0,w=!1,C=!1,T=kD("fill"in e?e.fill:(C=!0,i.fill)),D=RD("stroke"in e?e.stroke:!h&&(!i.autoStroke||C)?(b=AD,w=!0,i.stroke):null),A=e.textShadowBlur>0,L=0;L<g.length;L++){var I=this._getOrCreateChild(nc),P=I.createStyle();I.useStyle(P),P.text=g[L],P.x=m,P.y=_,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=D,P.fill=T,D&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=n,LD(P,e),_+=y,I.setBoundingRect(a_(P,c.contentWidth,c.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,n=this._defaultStyle,a=e.align||n.align,i=e.verticalAlign||n.verticalAlign,o=e.x||0,s=e.y||0;fD(wa,n.overflowRect,o,s,a,i),o=wa.baseX,s=wa.baseY;var l=ND(e),u=iW(l,e,wa.outerWidth,wa.outerHeight,a),f=u.width,c=u.outerWidth,v=u.outerHeight,h=e.padding;this.isTruncated=!!u.isTruncated;var d=Jl(o,c,a),p=qo(s,v,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;g_(e)&&this._renderBackground(e,e,d,p,c,v);for(var _=!!e.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],b=x.tokens,w=b.length,C=x.lineHeight,T=x.width,D=0,A=g,L=m,I=w-1,P=void 0;D<w&&(P=b[D],!P.align||P.align==="left");)this._placeToken(P,e,C,y,A,"left",_),T-=P.width,A+=P.width,D++;for(;I>=0&&(P=b[I],P.align==="right");)this._placeToken(P,e,C,y,L,"right",_),T-=P.width,L-=P.width,I--;for(A+=(f-(A-g)-(m-L)-T)/2;D<=I;)P=b[D],this._placeToken(P,e,C,y,A+P.width/2,"center",_),A+=P.width,D++;y+=C}},t.prototype._placeToken=function(e,n,a,i,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,c=i+a/2;f==="top"?c=i+e.height/2:f==="bottom"&&(c=i+a-e.height/2);var v=!e.isLineHolder&&g_(u);v&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,c-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=OD(o,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(nc),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=kD("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=RD("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||m)?(_=AD,S=!0,y.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=c,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Ka,g.opacity=nn(u.opacity,n.opacity,1),LD(g,u),b&&(g.lineWidth=nn(u.lineWidth,n.lineWidth,_),g.lineDash=ut(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),p.setBoundingRect(a_(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,n,a,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,c=l&&l.image,v=l&&!c,h=e.borderRadius,d=this,p,g;if(v||e.lineHeight||u&&f){p=this._getOrCreateChild(Ft),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(v){var m=p.style;m.fill=l||null,m.fillOpacity=ut(e.fillOpacity,1)}else if(c){g=this._getOrCreateChild(ir),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=ut(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=nn(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return PD(e)&&(n=[e.fontStyle,e.fontWeight,ID(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&hn(n)||e.textFont||e.font},t}(xn),BW={left:!0,right:1,center:1},VW={top:1,bottom:1,middle:1},DD=["fontStyle","fontWeight","fontSize","fontFamily"];function ID(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Pm+"px":r+"px"}function LD(r,t){for(var e=0;e<DD.length;e++){var n=DD[e],a=t[n];a!=null&&(r[n]=a)}}function PD(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function zW(r){return ED(r),M(r.rich,ED),r}function ED(r){if(r){r.font=MD.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||BW[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||VW[e]?e:"top";var n=r.padding;n&&(r.padding=Eh(r.padding))}}function RD(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function kD(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function OD(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ND(r){var t=r.text;return t!=null&&(t+=""),t}function g_(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Xt=MD;var Ct=Et(),y_=function(r,t,e,n){if(n){var a=Ct(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=Ct(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},ou="undefined",Ta="series",BD=ot(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ln="original",tr="arrayRows",un="objectRows",$n="keyedColumns",io="typedArray",VD="unknown",Un="column",hs="row",zD="Roam",FW=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],GW=function(){function r(t){M(FW,function(e){this[e]=it(t[e],t)},this)}return r}();function FD(r,t){return t.mainType===Ta?r.getViewOfSeriesModel(t):r.getViewOfComponentModel(t)}const GD=GW;var HD=1,$D={},UD=Et(),m_=Et(),__=0,ac=1,Dd=2,Or=["emphasis","blur","select"],ic=["normal","emphasis","blur","select"],su=10,HW=9,ds="highlight",Id="downplay",Ld="select",S_="unselect",Pd="toggleSelect",x_="selectchanged";function lu(r){return r!=null&&r!=="none"}function Ed(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function WD(r){Ed(r,"emphasis",Dd)}function YD(r){r.hoverState===Dd&&Ed(r,"normal",__)}function b_(r){Ed(r,"blur",ac)}function XD(r){r.hoverState===ac&&Ed(r,"normal",__)}function $W(r){r.selected=!0}function UW(r){r.selected=!1}function ZD(r,t,e){t(r,e)}function si(r,t,e){ZD(r,t,e),r.isGroup&&r.traverse(function(n){ZD(n,t,e)})}function Rd(r,t){switch(t){case"emphasis":r.hoverState=Dd;break;case"normal":r.hoverState=__;break;case"blur":r.hoverState=ac;break;case"select":r.selected=!0}}function WW(r,t,e,n){for(var a=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function YW(r,t,e,n){var a=e&&Lt(e,"select")>=0,i=!1;if(r instanceof Gt){var o=UD(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(lu(s)||lu(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=W({},n),u=W({},u),u.fill=s):!lu(u.fill)&&lu(s)?(i=!0,n=W({},n),u=W({},u),u.fill=d0(s)):!lu(u.stroke)&&lu(l)&&(i||(n=W({},n),u=W({},u)),u.stroke=d0(l)),n.style=u}}if(n&&n.z2==null){i||(n=W({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??su)}return n}function XW(r,t,e){if(e&&e.z2==null){e=W({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??HW)}return e}function ZW(r,t,e){var n=Lt(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:WW(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=W({},e),o=W({opacity:n?a:i.opacity*.1},o),e.style=o),e}function w_(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return YW(this,r,t,e);if(r==="blur")return ZW(this,r,e);if(r==="select")return XW(this,r,e)}return e}function ps(r){r.stateProxy=w_;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=w_),e&&(e.stateProxy=w_)}function KD(r,t){!tI(r,t)&&!r.__highByOuter&&si(r,WD)}function qD(r,t){!tI(r,t)&&!r.__highByOuter&&si(r,YD)}function li(r,t){r.__highByOuter|=1<<(t||0),si(r,WD)}function ui(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&si(r,YD)}function jD(r){si(r,b_)}function T_(r){si(r,XD)}function JD(r){si(r,$W)}function QD(r){si(r,UW)}function tI(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function eI(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=m_(i),s=FD(r,i),l=a==="series";!l&&n.push(s),o.isBlured&&(s.group.traverse(function(u){XD(u)}),l&&e.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function C_(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var v=u.getItemGraphicEl(f[c]);v&&T_(v)}}if(r!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var v=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||b_(g)}),pr(t))i(u.getData(),t);else if(xt(t))for(var d=Ut(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),m_(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function A_(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){m_(n).isBlured=!0;var a=e.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){b_(i)})}}}function KW(r,t,e){var n=r.seriesIndex,a=r.getData(t.dataType);if(a){var i=rs(a,t);i=(Y(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Ct(o);C_(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&C_(n,f,c,e)}}}function M_(r,t,e,n){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return a;var i=n.getModel().getComponent(r,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(Ct(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function qW(r,t,e){var n=Ct(r),a=M_(n.componentMainType,n.componentIndex,n.componentHighDownName,e),i=a.dispatchers,o=a.focusSelf;i?(o&&A_(n.componentMainType,n.componentIndex,e),M(i,function(s){return KD(s,t)})):(C_(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&A_(n.componentMainType,n.componentIndex,e),KD(r,t))}function jW(r,t,e){eI(e);var n=Ct(r),a=M_(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;a?M(a,function(i){return qD(i,t)}):qD(r,t)}function JW(r,t,e){if(I_(t)){var n=t.dataType,a=r.getData(n),i=rs(a,t);Y(i)||(i=[i]),r[t.type===Pd?"toggleSelect":t.type===Ld?"select":"unselect"](i,n)}}function rI(r){var t=r.getAllData();M(t,function(e){var n=e.data,a=e.type;n.eachItemGraphicEl(function(i,o){r.isSelected(o,a)?JD(i):QD(i)})})}function QW(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();M(n,function(a){a.data;var i=a.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function gs(r,t,e){ys(r,!0),si(r,ps),D_(r,t,e)}function t8(r){ys(r,!1)}function ge(r,t,e,n){n?t8(r):gs(r,t,e)}function D_(r,t,e){var n=Ct(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var nI=["emphasis","blur","select"],e8={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function He(r,t,e,n){e=e||"itemStyle";for(var a=0;a<nI.length;a++){var i=nI[a],o=t.getModel([i,e]),s=r.ensureState(i);s.style=n?n(o):o[e8[e]]()}}function ys(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function oc(r){return!!(r&&r.__highDownDispatcher)}function r8(r,t,e){var n=Ct(r);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=e}function n8(r){var t=$D[r];return t==null&&HD<=32&&(t=$D[r]=HD++),t}function I_(r){var t=r.type;return t===Ld||t===S_||t===Pd}function aI(r){var t=r.type;return t===ds||t===Id}function a8(r){var t=UD(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var uu=ba.CMD,i8=[[],[],[]],iI=Math.sqrt,o8=Math.atan2;function oI(r,t){if(t){var e=r.data,n=r.len(),a,i,o,s,l,u,f=uu.M,c=uu.C,v=uu.L,h=uu.R,d=uu.A,p=uu.Q;for(o=0,s=0;o<n;){switch(a=e[o++],s=o,i=0,a){case f:i=1;break;case v:i=1;break;case c:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=iI(t[0]*t[0]+t[1]*t[1]),_=iI(t[2]*t[2]+t[3]*t[3]),S=o8(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case h:u[0]=e[o++],u[1]=e[o++],Ce(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Ce(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var x=i8[l];x[0]=e[o++],x[1]=e[o++],Ce(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var L_=Math.sqrt,kd=Math.sin,Od=Math.cos,sc=Math.PI;function sI(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function P_(r,t){return(r[0]*t[0]+r[1]*t[1])/(sI(r)*sI(t))}function lI(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(P_(r,t))}function uI(r,t,e,n,a,i,o,s,l,u,f){var c=l*(sc/180),v=Od(c)*(r-e)/2+kd(c)*(t-n)/2,h=-1*kd(c)*(r-e)/2+Od(c)*(t-n)/2,d=v*v/(o*o)+h*h/(s*s);d>1&&(o*=L_(d),s*=L_(d));var p=(a===i?-1:1)*L_((o*o*(s*s)-o*o*(h*h)-s*s*(v*v))/(o*o*(h*h)+s*s*(v*v)))||0,g=p*o*h/s,y=p*-s*v/o,m=(r+e)/2+Od(c)*g-kd(c)*y,_=(t+n)/2+kd(c)*g+Od(c)*y,S=lI([1,0],[(v-g)/o,(h-y)/s]),x=[(v-g)/o,(h-y)/s],b=[(-1*v-g)/o,(-1*h-y)/s],w=lI(x,b);if(P_(x,b)<=-1&&(w=sc),P_(x,b)>=1&&(w=0),w<0){var C=Math.round(w/sc*1e6)/1e6;w=sc*2+C%2*sc}f.addData(u,m,_,o,s,S,w,c,i)}var s8=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,l8=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u8(r){var t=new ba;if(!r)return t;var e=0,n=0,a=e,i=n,o,s=ba.CMD,l=r.match(s8);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),v=void 0,h=f.match(l8)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=e,T=n,D=void 0,A=void 0;switch(c){case"l":e+=h[g++],n+=h[g++],v=s.L,t.addData(v,e,n);break;case"L":e=h[g++],n=h[g++],v=s.L,t.addData(v,e,n);break;case"m":e+=h[g++],n+=h[g++],v=s.M,t.addData(v,e,n),a=e,i=n,c="l";break;case"M":e=h[g++],n=h[g++],v=s.M,t.addData(v,e,n),a=e,i=n,c="L";break;case"h":e+=h[g++],v=s.L,t.addData(v,e,n);break;case"H":e=h[g++],v=s.L,t.addData(v,e,n);break;case"v":n+=h[g++],v=s.L,t.addData(v,e,n);break;case"V":n=h[g++],v=s.L,t.addData(v,e,n);break;case"C":v=s.C,t.addData(v,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),e=h[g-2],n=h[g-1];break;case"c":v=s.C,t.addData(v,h[g++]+e,h[g++]+n,h[g++]+e,h[g++]+n,h[g++]+e,h[g++]+n),e+=h[g-2],n+=h[g-1];break;case"S":y=e,m=n,D=t.len(),A=t.data,o===s.C&&(y+=e-A[D-4],m+=n-A[D-3]),v=s.C,C=h[g++],T=h[g++],e=h[g++],n=h[g++],t.addData(v,y,m,C,T,e,n);break;case"s":y=e,m=n,D=t.len(),A=t.data,o===s.C&&(y+=e-A[D-4],m+=n-A[D-3]),v=s.C,C=e+h[g++],T=n+h[g++],e+=h[g++],n+=h[g++],t.addData(v,y,m,C,T,e,n);break;case"Q":C=h[g++],T=h[g++],e=h[g++],n=h[g++],v=s.Q,t.addData(v,C,T,e,n);break;case"q":C=h[g++]+e,T=h[g++]+n,e+=h[g++],n+=h[g++],v=s.Q,t.addData(v,C,T,e,n);break;case"T":y=e,m=n,D=t.len(),A=t.data,o===s.Q&&(y+=e-A[D-4],m+=n-A[D-3]),e=h[g++],n=h[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"t":y=e,m=n,D=t.len(),A=t.data,o===s.Q&&(y+=e-A[D-4],m+=n-A[D-3]),e+=h[g++],n+=h[g++],v=s.Q,t.addData(v,y,m,e,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],C=e,T=n,e=h[g++],n=h[g++],v=s.A,uI(C,T,e,n,b,w,_,S,x,v,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],C=e,T=n,e+=h[g++],n+=h[g++],v=s.A,uI(C,T,e,n,b,w,_,S,x,v,t);break}}(c==="z"||c==="Z")&&(v=s.Z,t.addData(v),e=a,n=i),o=v}return t.toStatic(),t}var fI=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Gt);function cI(r){return r.setData!=null}function vI(r,t){var e=u8(r),n=W({},t);return n.buildPath=function(a){var i=cI(a);if(i&&a.canSave()){a.appendPath(e);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=i?a.getContext():a;o&&e.rebuildPath(o,1)}},n.applyTransform=function(a){oI(e,a),this.dirtyShape()},n}function hI(r,t){return new fI(vI(r,t))}function f8(r,t){var e=vI(r,t),n=function(a){V(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(fI);return n}function c8(r,t){for(var e=[],n=r.length,a=0;a<n;a++){var i=r[a];e.push(i.getUpdatedPathProxy(!0))}var o=new Gt(t);return o.createPathProxy(),o.buildPath=function(s){if(cI(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function E_(r,t){t=t||{};var e=new Gt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?oI(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var v8=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),dI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new v8},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Gt);dI.prototype.type="circle";const oo=dI;var h8=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),pI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new h8},t.prototype.buildPath=function(e,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,f=l*a;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(Gt);pI.prototype.type="ellipse";const R_=pI;var gI=Math.PI,k_=gI*2,ms=Math.sin,fu=Math.cos,d8=Math.acos,Sr=Math.atan2,yI=Math.abs,lc=Math.sqrt,uc=Math.max,Ca=Math.min,Wn=1e-4;function p8(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,v=c*l-f*u;if(!(v*v<Wn))return v=(f*(t-i)-c*(r-a))/v,[r+v*l,t+v*u]}function Nd(r,t,e,n,a,i,o){var s=r-e,l=t-n,u=(o?i:-i)/lc(s*s+l*l),f=u*l,c=-u*s,v=r+f,h=t+c,d=e+f,p=n+c,g=(v+d)/2,y=(h+p)/2,m=d-v,_=p-h,S=m*m+_*_,x=a-i,b=v*p-d*h,w=(_<0?-1:1)*lc(uc(0,x*x*S-b*b)),C=(b*_-m*w)/S,T=(-b*m-_*w)/S,D=(b*_+m*w)/S,A=(-b*m+_*w)/S,L=C-g,I=T-y,P=D-g,R=A-y;return L*L+I*I>P*P+R*R&&(C=D,T=A),{cx:C,cy:T,x0:-f,y0:-c,x1:C*(a/x-1),y1:T*(a/x-1)}}function g8(r){var t;if(Y(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 y8(r,t){var e,n=uc(t.r,0),a=uc(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,c=t.cy,v=!!t.clockwise,h=yI(u-l),d=h>k_&&h%k_;if(d>Wn&&(h=d),!(n>Wn))r.moveTo(f,c);else if(h>k_-Wn)r.moveTo(f+n*fu(l),c+n*ms(l)),r.arc(f,c,n,l,u,!v),a>Wn&&(r.moveTo(f+a*fu(u),c+a*ms(u)),r.arc(f,c,a,u,l,v));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,T=void 0,D=void 0,A=void 0,L=void 0,I=void 0,P=void 0,R=n*fu(l),E=n*ms(l),N=a*fu(u),O=a*ms(u),G=h>Wn;if(G){var $=t.cornerRadius;$&&(e=g8($),p=e[0],g=e[1],y=e[2],m=e[3]);var H=yI(n-a)/2;if(_=Ca(H,y),S=Ca(H,m),x=Ca(H,p),b=Ca(H,g),T=w=uc(_,S),D=C=uc(x,b),(w>Wn||C>Wn)&&(A=n*fu(u),L=n*ms(u),I=a*fu(l),P=a*ms(l),h<gI)){var X=p8(R,E,I,P,A,L,N,O);if(X){var q=R-X[0],J=E-X[1],Q=A-X[0],St=L-X[1],Ht=1/ms(d8((q*Q+J*St)/(lc(q*q+J*J)*lc(Q*Q+St*St)))/2),gt=lc(X[0]*X[0]+X[1]*X[1]);T=Ca(w,(n-gt)/(Ht+1)),D=Ca(C,(a-gt)/(Ht-1))}}}if(!G)r.moveTo(f+R,c+E);else if(T>Wn){var ft=Ca(y,T),Tt=Ca(m,T),ct=Nd(I,P,R,E,n,ft,v),wt=Nd(A,L,N,O,n,Tt,v);r.moveTo(f+ct.cx+ct.x0,c+ct.cy+ct.y0),T<w&&ft===Tt?r.arc(f+ct.cx,c+ct.cy,T,Sr(ct.y0,ct.x0),Sr(wt.y0,wt.x0),!v):(ft>0&&r.arc(f+ct.cx,c+ct.cy,ft,Sr(ct.y0,ct.x0),Sr(ct.y1,ct.x1),!v),r.arc(f,c,n,Sr(ct.cy+ct.y1,ct.cx+ct.x1),Sr(wt.cy+wt.y1,wt.cx+wt.x1),!v),Tt>0&&r.arc(f+wt.cx,c+wt.cy,Tt,Sr(wt.y1,wt.x1),Sr(wt.y0,wt.x0),!v))}else r.moveTo(f+R,c+E),r.arc(f,c,n,l,u,!v);if(!(a>Wn)||!G)r.lineTo(f+N,c+O);else if(D>Wn){var ft=Ca(p,D),Tt=Ca(g,D),ct=Nd(N,O,A,L,a,-Tt,v),wt=Nd(R,E,I,P,a,-ft,v);r.lineTo(f+ct.cx+ct.x0,c+ct.cy+ct.y0),D<C&&ft===Tt?r.arc(f+ct.cx,c+ct.cy,D,Sr(ct.y0,ct.x0),Sr(wt.y0,wt.x0),!v):(Tt>0&&r.arc(f+ct.cx,c+ct.cy,Tt,Sr(ct.y0,ct.x0),Sr(ct.y1,ct.x1),!v),r.arc(f,c,a,Sr(ct.cy+ct.y1,ct.cx+ct.x1),Sr(wt.cy+wt.y1,wt.cx+wt.x1),v),ft>0&&r.arc(f+wt.cx,c+wt.cy,ft,Sr(wt.y1,wt.x1),Sr(wt.y0,wt.x0),!v))}else r.lineTo(f+N,c+O),r.arc(f,c,a,u,l,v)}r.closePath()}}}var m8=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}(),mI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new m8},t.prototype.buildPath=function(e,n){y8(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Gt);mI.prototype.type="sector";const Nr=mI;var _8=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),_I=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _8},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.PI*2;e.moveTo(a+n.r,i),e.arc(a,i,n.r,0,o,!1),e.moveTo(a+n.r0,i),e.arc(a,i,n.r0,0,o,!0)},t}(Gt);_I.prototype.type="ring";const Bd=_I;function S8(r,t,e,n){var a=[],i=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var v=0,h=r.length;v<h;v++)Hi(f,f,r[v]),$i(c,c,r[v]);Hi(f,f,n[0]),$i(c,c,n[1])}for(var v=0,h=r.length;v<h;v++){var d=r[v];if(e)l=r[v?v-1:h-1],u=r[(v+1)%h];else if(v===0||v===h-1){a.push(qa(r[v]));continue}else l=r[v-1],u=r[v+1];Fo(i,u,l),Nh(i,i,t);var p=Gm(d,l),g=Gm(d,u),y=p+g;y!==0&&(p/=y,g/=y),Nh(o,i,-p),Nh(s,i,g);var m=CA([],d,o),_=CA([],d,s);n&&($i(m,m,f),Hi(m,m,c),$i(_,_,f),Hi(_,_,c)),a.push(m),a.push(_)}return e&&a.push(a.shift()),a}function SI(r,t,e){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=S8(a,n,e,t.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)r.lineTo(a[s][0],a[s][1])}e&&r.closePath()}}var x8=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),xI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new x8},t.prototype.buildPath=function(e,n){SI(e,n,!0)},t}(Gt);xI.prototype.type="polygon";const Br=xI;var b8=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),bI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new b8},t.prototype.buildPath=function(e,n){SI(e,n,!1)},t}(Gt);bI.prototype.type="polyline";const xr=bI;var w8={},T8=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),wI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new T8},t.prototype.buildPath=function(e,n){var a,i,o,s;if(this.subPixelOptimize){var l=Md(w8,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(Gt);wI.prototype.type="line";const $e=wI;var Jr=[],C8=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function TI(r,t,e){var n=r.cpx2,a=r.cpy2;return n!=null||a!=null?[(e?qA:Ke)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?qA:Ke)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?o0:Qe)(r.x1,r.cpx1,r.x2,t),(e?o0:Qe)(r.y1,r.cpy1,r.y2,t)]}var CI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new C8},t.prototype.buildPath=function(e,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,v=n.percent;v!==0&&(e.moveTo(a,i),f==null||c==null?(v<1&&(Uf(a,l,o,v,Jr),l=Jr[1],o=Jr[2],Uf(i,u,s,v,Jr),u=Jr[1],s=Jr[2]),e.quadraticCurveTo(l,u,o,s)):(v<1&&(Xi(a,l,f,o,v,Jr),l=Jr[1],f=Jr[2],o=Jr[3],Xi(i,u,c,s,v,Jr),u=Jr[1],c=Jr[2],s=Jr[3]),e.bezierCurveTo(l,u,f,c,o,s)))},t.prototype.pointAt=function(e){return TI(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=TI(this.shape,e,!0);return Fl(n,n)},t}(Gt);CI.prototype.type="bezier-curve";const Vd=CI;var A8=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),AI=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new A8},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),c=Math.sin(s);e.moveTo(f*o+a,c*o+i),e.arc(a,i,o,s,l,!u)},t}(Gt);AI.prototype.type="arc";const O_=AI;var M8=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),a=0;a<e.length;a++)n=n||e[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<e.length;a++)e[a].path||e[a].createPathProxy(),e[a].path.setScale(n[0],n[1],e[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(e,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Gt.prototype.getBoundingRect.call(this)},t}(Gt);const zd=M8;var D8=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const MI=D8;var I8=function(r){V(t,r);function t(e,n,a,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(MI);const cu=I8;var L8=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(MI);const DI=L8;var N_=Math.min,P8=Math.max,Fd=Math.abs,_s=[0,0],Ss=[0,0],er=OA(),Gd=er.minTv,Hd=er.maxTv,E8=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new bt;for(var n=0;n<2;n++)this._axes[n]=new bt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),e)for(var u=0;u<4;u++)n[u].transform(e);bt.sub(a[0],n[1],n[0]),bt.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},r.prototype.intersect=function(t,e,n){var a=!0,i=!e;return e&&bt.set(e,0,0),er.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(a=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(a=!1,i)||!i&&!er.negativeSize&&bt.copy(e,a?er.useDir?er.dirMinTv:Gd:Hd),a},r.prototype._intersectCheckOneSide=function(t,e,n,a){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,_s),t._getProjMinMaxOnAxis(o,e._corners,Ss),er.negativeSize||_s[1]<Ss[0]||_s[0]>Ss[1]){if(i=!1,er.negativeSize||n)return i;var l=Fd(Ss[0]-_s[1]),u=Fd(_s[0]-Ss[1]);N_(l,u)>Hd.len()&&(l<u?bt.scale(Hd,s,-l*a):bt.scale(Hd,s,u*a))}else if(!n){var l=Fd(Ss[0]-_s[1]),u=Fd(_s[0]-Ss[1]);(er.useDir||N_(l,u)<Gd.len())&&((l<u||!er.bidirectional)&&(bt.scale(Gd,s,l*a),er.useDir&&er.calcDirMTV()),(l>=u||!er.bidirectional)&&(bt.scale(Gd,s,-u*a),er.useDir&&er.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var a=this._axes[t],i=this._origin,o=e[0].dot(a)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(a)+i[t];s=N_(f,s),l=P8(f,l)}n[0]=s+er.touchThreshold,n[1]=l-er.touchThreshold,er.negativeSize=n[1]<n[0]},r}();const II=E8;var LI=0,R8=1,k8=2,O8=1,$d=0,N8=[],B8=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=R8,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var a=0;a<e.length;a++)this.addDisplayable(e[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Mt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(N8)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,n))return!0}return!1},t}(xn);const V8=B8;var PI=Et();function vu(r,t,e,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ut(n.duration,200),f=ut(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),yt(c)&&(c=c(e,a)),yt(u)&&(u=u(e));var v={duration:u||0,delay:c,easing:f};return v}else return null}function B_(r,t,e,n,a,i,o){var s=!1,l;yt(a)?(o=i,i=a,a=null):xt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=vu(r,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var c=f.duration,v=f.delay,h=f.easing,d={duration:c,delay:v||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function Kt(r,t,e,n,a,i){B_("update",r,t,e,n,a,i)}function pe(r,t,e,n,a,i){B_("enter",r,t,e,n,a,i)}function hu(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function so(r,t,e,n,a,i){hu(r)||B_("leave",r,t,e,n,a,i)}function EI(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),so(r,{style:{opacity:0}},t,e,n)}function fi(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||EI(a,t,e,n)}):EI(r,t,e,n)}function wn(r){PI(r).oldStyle=r.style}function z8(r){return PI(r).oldStyle}var V_={},Dt=["x","y"],Ie=["width","height"],RI=0,kI=1,du=2;function F8(r){return Gt.extend(r)}var G8=f8;function H8(r,t){return G8(r,t)}function Yn(r,t){V_[r]=t}function Ud(r){if(V_.hasOwnProperty(r))return V_[r]}function fc(r,t,e,n){var a=hI(r,t);return e&&(n==="center"&&(e=NI(e,a.getBoundingRect())),BI(a,e)),a}function OI(r,t,e){var n=new ir({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(e==="center"){var i={width:a.width,height:a.height};n.setStyle(NI(t,i))}}});return n}function NI(r,t){var e=t.width/t.height,n=r.height*e,a;n<=r.width?a=r.height:(n=r.width,a=n/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var Tn=c8;function BI(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function pu(r,t){return Md(r,r,{lineWidth:t}),r}function $8(r,t){return wD(r,r,t),r}var Wd=sn;function gu(r,t){for(var e=Hl([]);r&&r!==t;)gn(e,r.getLocalTransform(),e),r=r.parent;return e}function Xn(r,t,e){return t&&!pr(t)&&(t=Qi.getLocalTransform(t)),e&&(t=yn([],t)),Ce([],r,t)}function Yd(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Ae(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Ae(2*t[4]/t[2]),i=[r==="left"?-n:r==="right"?n:0,r==="top"?-a:r==="bottom"?a:0];return i=Xn(i,t,e),Ae(i[0])>Ae(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function VI(r){return!r.isGroup}function U8(r){return r.shape!=null}function cc(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){VI(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return U8(o)&&(s.shape=dt(o.shape)),s}var i=n(r);t.traverse(function(o){if(VI(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Kt(o,l,e,Ct(o).dataIndex)}}})}function zI(r,t){return K(r,function(e){var n=e[0];n=Vt(n,t.x),n=ae(n,t.x+t.width);var a=e[1];return a=Vt(a,t.y),a=ae(a,t.y+t.height),[n,a]})}function W8(r,t){var e=Vt(r.x,t.x),n=ae(r.x+r.width,t.x+t.width),a=Vt(r.y,t.y),i=ae(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function vc(r,t,e){var n=W({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),_t(a,e),new ir(n)):fc(r.replace("path://",""),n,e,"center")}function hc(r,t,e,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(FI(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function FI(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,v=z_(f,c,l,u);if(Y8(v))return!1;var h=r-a,d=t-i,p=z_(h,d,l,u)/v;if(p<0||p>1)return!1;var g=z_(h,d,f,c)/v;return!(g<0||g>1)}function z_(r,t,e,n){return r*n-e*t}function Y8(r){return r<=1e-6&&r>=-1e-6}function xs(r,t,e,n,a){return t==null||(Wt(t)?xe[0]=xe[1]=xe[2]=xe[3]=t:(xe[0]=t[0],xe[1]=t[1],xe[2]=t[2],xe[3]=t[3]),n&&(xe[0]=Vt(0,xe[0]),xe[1]=Vt(0,xe[1]),xe[2]=Vt(0,xe[2]),xe[3]=Vt(0,xe[3])),e&&(xe[0]=-xe[0],xe[1]=-xe[1],xe[2]=-xe[2],xe[3]=-xe[3]),GI(r,xe,"x","width",3,1,a&&a[0]||0),GI(r,xe,"y","height",0,2,a&&a[1]||0)),r}var xe=[0,0,0,0];function GI(r,t,e,n,a,i,o){var s=t[i]+t[a],l=r[n];r[n]+=s,o=Vt(0,ae(o,l)),r[n]<o?(r[n]=o,r[e]+=t[a]>=0?-t[a]:t[i]>=0?l+t[i]:Ae(s)>1e-8?(l-o)*t[a]/s:0):r[e]-=t[a]}function ci(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=et(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&M(Ut(l),function(f){st(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Ct(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:_t({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function F_(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function lo(r,t){if(r)if(Y(r))for(var e=0;e<r.length;e++)F_(r[e],t);else F_(r,t)}function G_(r){return!r||Ae(r[1])<Xd&&Ae(r[2])<Xd||Ae(r[0])<Xd&&Ae(r[3])<Xd}var Xd=1e-5;function dc(r,t){return r?Mt.copy(r,t):t.clone()}function H_(r,t){return t?Ho(r||Se(),t):void 0}function bs(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function HI(r){var t=-1/0,e=1/0;F_(r,function(i){n(i),n(i.getTextContent()),n(i.getTextGuideLine())});function n(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(i.states[o[s]]);a(i)}}function a(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Zd(r,t,e){$I(r,t,e,-1/0)}function $I(r,t,e,n){if(r.ignoreModelZ)return n;var a=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=Vt($I(s[l],t,e,n),n);else r.z=t,r.zlevel=e,n=Vt(r.z2||0,n);if(a&&(a.z=t,a.zlevel=e,isFinite(n)&&(a.z2=n+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(n)&&(i.z2=n+(u&&u.showAbove?1:-1))}return n}function $_(r){return r.animation={duration:0},r}function Kd(r,t){return t?Ho(pc.transform,t):Hl(pc.transform),pc.decomposeTransform(),ha(r,pc),r}var pc=new Qi;pc.transform=Se();function U_(r){var t=r.getZr().painter;return t.getType()==="canvas"?t:null}Yn("circle",oo),Yn("ellipse",R_),Yn("sector",Nr),Yn("ring",Bd),Yn("polygon",Br),Yn("polyline",xr),Yn("rect",Ft),Yn("line",$e),Yn("bezierCurve",Vd),Yn("arc",O_);const ws=Object.freeze(Object.defineProperty({__proto__:null,Arc:O_,BezierCurve:Vd,BoundingRect:Mt,Circle:oo,CompoundPath:zd,Ellipse:R_,Group:mt,HOVER_LAYER_FOR_INCREMENTAL:du,HOVER_LAYER_FROM_THRESHOLD:kI,HOVER_LAYER_NO:RI,Image:ir,IncrementalDisplayable:V8,Line:$e,LinearGradient:cu,OrientedBoundingRect:II,Path:Gt,Point:bt,Polygon:Br,Polyline:xr,RadialGradient:DI,Rect:Ft,Ring:Bd,Sector:Nr,Text:Xt,WH:Ie,XY:Dt,applyTransform:Xn,calcZ2Range:HI,clipPointsByRect:zI,clipRectByRect:W8,createIcon:vc,decomposeTransform:Kd,ensureCopyRect:dc,ensureCopyTransform:H_,expandOrShrinkRect:xs,extendPath:H8,extendShape:F8,getCurrentCanvasPainter:U_,getShapeClass:Ud,getTransform:gu,groupTransition:cc,initProps:pe,isBoundingRectAxisAligned:G_,isElementRemoved:hu,lineLineIntersect:FI,linePolygonIntersect:hc,makeImage:OI,makePath:fc,mergePath:Tn,payloadDisableAnimation:$_,registerShape:Yn,removeElement:so,removeElementWithFadeOut:fi,resizePath:BI,retrieveZInfo:bs,setTooltipConfig:ci,subPixelOptimize:Wd,subPixelOptimizeLine:pu,subPixelOptimizeRect:$8,transformDirection:Yd,traverseElements:lo,traverseUpdateZ:Zd,updateProps:Kt},Symbol.toStringTag,{value:"Module"}));var qd={};function UI(r,t){for(var e=0;e<Or.length;e++){var n=Or[e],a=t[n],i=r.ensureState(n);i.style=i.style||{},i.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function W_(r,t,e){var n=r.labelFetcher,a=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=yt(r.defaultText)?r.defaultText(a,r,e):r.defaultText);for(var l={normal:s},u=0;u<Or.length;u++){var f=Or[u],c=t[f];l[f]=ut(n?n.getFormattedLabel(a,f,null,i,c&&c.get("formatter")):null,s)}return l}function qe(r,t,e,n){e=e||qd;for(var a=r instanceof Xt,i=!1,o=0;o<ic.length;o++){var s=t[ic[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?r:r.getTextContent();if(i){a||(l||(l=new Xt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=W_(e,t),f=t.normal,c=!!f.getShallow("show"),v=ce(f,n&&n.normal,e,!1,!a);v.text=u.normal,a||r.setTextConfig(jd(f,e,!1));for(var o=0;o<Or.length;o++){var h=Or[o],s=t[h];if(s){var d=l.ensureState(h),p=!!ut(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=ce(s,n&&n[h],e,!0,!a),d.style.text=u[h],!a){var g=r.ensureState(h);g.textConfig=jd(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!c,l.useStyle(v),l.dirty(),e.enableTextSetter&&(yu(l).setLabelText=function(y){var m=W_(e,t,y);UI(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Ue(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Or.length;n++){var a=Or[n];e[a]=r.getModel([a,t])}return e}function ce(r,t,e,n,a){var i={};return X8(i,r,e,n,a),t&&W(i,t),i}function jd(r,t,e){t=t||{};var n={},a,i=r.getShallow("rotate"),o=ut(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(e?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function X8(r,t,e,n,a){e=e||qd;var i=t.ecModel,o=i&&i.option.textStyle,s=Z8(t),l;if(s){l={};var u="richInheritPlainLabel",f=ut(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var v=t.getModel(["rich",c]);ZI(l[c]={},v,o,t,f,e,n,a,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=t.get("minMargin");if(g!=null)g=Wt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=mu.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=Eh(y),p.__marginType=mu.textMargin)}ZI(r,t,o,null,null,e,n,a,!0,!1)}function Z8(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||qd).rich;if(e){t=t||{};for(var n=Ut(e),a=0;a<n.length;a++){var i=n[a];t[i]=1}}r=r.parentModel}return t}var WI=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],YI=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],XI=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ZI(r,t,e,n,a,i,o,s,l,u){e=!o&&e||qd;var f=i&&i.inheritColor,c=t.getShallow("color"),v=t.getShallow("textBorderColor"),h=ut(t.getShallow("opacity"),e.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(c=c||e.color,v=v||e.textBorderColor),c!=null&&(r.fill=c),v!=null&&(r.stroke=v);var d=ut(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=ut(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var g=ut(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<WI.length;y++){var m=WI[y],_=a!==!1&&n?nn(t.getShallow(m),n.getShallow(m),e[m]):ut(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var y=0;y<YI.length;y++){var m=YI[y],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<XI.length;y++){var m=XI[y],_=t.getShallow(m);_!=null&&(r[m]=_)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Y_(r,t){var e=t&&t.getModel("textStyle");return hn([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var yu=Et();function KI(r,t,e,n){if(r){var a=yu(r);a.prevValue=a.value,a.value=e;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}function qI(r,t,e,n,a){var i=yu(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=ut(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=QM(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var v=W_({labelDataIndex:t,labelFetcher:a,defaultText:o?o(c):c+""},i.statesModels,c);UI(r,v)}r.percent=0,(i.prevValue==null?pe:Kt)(r,{percent:1},n,t,null,u)}var mu={minMargin:1,textMargin:2},K8=["textStyle","color"],X_=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Z_=new Xt,q8=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(K8):null)},r.prototype.getFont=function(){return Y_({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<X_.length;n++)e[X_[n]]=this.getShallow(X_[n]);return Z_.useStyle(e),Z_.update(),Z_.getBoundingRect()},r}();const j8=q8;var jI=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],J8=is(jI),Q8=function(){function r(){}return r.prototype.getLineStyle=function(t){return J8(this,t)},r}(),JI=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],tY=is(JI),eY=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return tY(this,t,e)},r}(),Ts=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){Rt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,a=n==null?n:n[t];if(a==null&&!e){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},r.prototype.getModel=function(t,e){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(dt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!te.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();J0(Ts),XU(Ts),ze(Ts,Q8),ze(Ts,eY),ze(Ts,JU),ze(Ts,j8);const qt=Ts;var rY=Math.round(Math.random()*10);function Cs(r){return[r||"",rY++].join("_")}function nY(r){var t={};r.registerSubTypeDefaulter=function(e,n){var a=ma(e);t[a.main]=n},r.determineSubType=function(e,n){var a=n.type;if(!a){var i=ma(e).main;r.hasSubTypes(e)&&t[i]&&(a=t[i](n))}return a}}function aY(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,v={};for(M(i,function(m){v[m]=!0});c.length;){var h=c.pop(),d=f[h],p=!!v[h];p&&(s.call(l,h,d.originalDeps.slice()),delete v[h]),M(d.successor,p?y:g)}M(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function y(m){v[m]=!0,g(m)}};function e(i){var o={},s=[];return M(i,function(l){var u=n(o,l),f=u.originalDeps=t(l),c=a(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),M(c,function(v){Lt(u.predecessor,v)<0&&u.predecessor.push(v);var h=n(o,v);Lt(h.successor,v)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return M(i,function(l){Lt(o,l)>=0&&s.push(l)}),s}}function uo(r,t){return Rt(Rt({},r,!0),t,!0)}const iY={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},oY={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Jd="ZH",K_="EN",_u=K_,Qd={},q_={},QI=te.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||_u).toUpperCase();return r.indexOf(Jd)>-1?Jd:_u}():_u;function tL(r,t){r=r.toUpperCase(),q_[r]=new qt(t),Qd[r]=t}function sY(r){if(et(r)){var t=Qd[r.toUpperCase()]||{};return r===Jd||r===K_?dt(t):Rt(dt(t),dt(Qd[_u]),!1)}else return Rt(dt(r),dt(Qd[_u]),!1)}function j_(r){return q_[r]}function lY(){return q_[_u]}tL(K_,iY),tL(Jd,oY);var J_=null;function uY(r){J_||(J_=r)}function Le(){return J_}function eL(r,t){var e=Le(),n=t.breakOption,a=t.breakParsed;return!a&&e&&(a=e.parseAxisBreakOption(n,r)),a}function tp(r){var t=r.brk;return t?t.breaks:[]}function ep(r){var t=r.brk;return t?t.hasBreaks():!1}var Q_=1e3,t1=Q_*60,gc=t1*60,Cn=gc*24,rL=Cn*365,fY={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},rp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},cY="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",np="{yyyy}-{MM}-{dd}",nL={year:"{yyyy}",month:"{yyyy}-{MM}",day:np,hour:np+" "+rp.hour,minute:np+" "+rp.minute,second:np+" "+rp.second,millisecond:cY},fn=["year","month","day","hour","minute","second","millisecond"],vY=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function hY(r){return!et(r)&&!yt(r)?dY(r):r}function dY(r){r=r||{};var t={},e=!0;return M(fn,function(n){e&&(e=r[n]==null)}),M(fn,function(n,a){var i=r[n];t[n]={};for(var o=null,s=a;s>=0;s--){var l=fn[s],u=xt(i)&&!Y(i)?i[l]:i,f=void 0;Y(u)?(f=u.slice(),o=f[0]||""):et(u)?(o=u,f=[o]):(o==null?o=rp[n]:fY[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function fo(r,t){return r+="","0000".substr(0,t-r.length)+r}function yc(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 pY(r){return r===yc(r)}function gY(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ap(r,t,e,n){var a=ts(r),i=a[aL(e)](),o=a[r1(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[n1(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[a1(e)](),c=(f-1)%12+1,v=a[i1(e)](),h=a[o1(e)](),d=a[s1(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof qt?n:j_(n||QI)||lY(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,fo(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,fo(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,fo(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,fo(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,fo(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,fo(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,fo(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,fo(d,3)).replace(/{S}/g,d+"")}function yY(r,t,e,n,a){var i=null;if(et(e))i=e;else if(yt(e)){var o={time:r.time,level:r.time?r.time.level:0},s=Le();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Su(r.value,a);i=e[f][f][0]}}return ap(new Date(r.value),i,a,n)}function Su(r,t){var e=ts(r),n=e[r1(t)]()+1,a=e[n1(t)](),i=e[a1(t)](),o=e[i1(t)](),s=e[o1(t)](),l=e[s1(t)](),u=l===0,f=u&&s===0,c=f&&o===0,v=c&&i===0,h=v&&a===1,d=h&&n===1;return d?"year":h?"month":v?"day":c?"hour":f?"minute":u?"second":"millisecond"}function e1(r,t,e){switch(t){case"year":r[iL(e)](0);case"month":r[oL(e)](1);case"day":r[sL(e)](0);case"hour":r[lL(e)](0);case"minute":r[uL(e)](0);case"second":r[fL(e)](0)}return r}function aL(r){return r?"getUTCFullYear":"getFullYear"}function r1(r){return r?"getUTCMonth":"getMonth"}function n1(r){return r?"getUTCDate":"getDate"}function a1(r){return r?"getUTCHours":"getHours"}function i1(r){return r?"getUTCMinutes":"getMinutes"}function o1(r){return r?"getUTCSeconds":"getSeconds"}function s1(r){return r?"getUTCMilliseconds":"getMilliseconds"}function mY(r){return r?"setUTCFullYear":"setFullYear"}function iL(r){return r?"setUTCMonth":"setMonth"}function oL(r){return r?"setUTCDate":"setDate"}function sL(r){return r?"setUTCHours":"setHours"}function lL(r){return r?"setUTCMinutes":"setMinutes"}function uL(r){return r?"setUTCSeconds":"setSeconds"}function fL(r){return r?"setUTCMilliseconds":"setMilliseconds"}function cL(r){if(!FM(r))return et(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function vL(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 mc=Eh;function l1(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&hn(f)?f:"-"}function i(f){return Sn(f)}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?ts(r):r;if(isNaN(+l)){if(s)return"-"}else return ap(l,n,e)}if(t==="ordinal")return Bm(r)?a(r):Wt(r)&&i(r)?r+"":"-";var u=ni(r);return i(u)?cL(u):Bm(r)?a(r):typeof r=="boolean"?r+"":"-"}var hL=["a","b","c","d","e","f","g"],u1=function(r,t){return"{"+r+(t??"")+"}"};function dL(r,t,e){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=hL[i];r=r.replace(u1(o),u1(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];r=r.replace(u1(hL[l],s),e?_r(u):u)}return r}function pL(r,t,e){return M(t,function(n,a){r=r.replace("{"+a+"}",e?_r(n):n)}),r}function _Y(r,t){var e=et(r)?{color:r,extraCssText:t}:r||{},n=e.color,a=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+_r(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+_r(n)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function As(r,t){return t=t||"transparent",et(r)?r:xt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function ip(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var op={},f1={},SY=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=n(op),this._normalMasterList=n(f1);function n(a,i){var o=[];return M(a,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){M(this._normalMasterList,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){op[t]=e;return}f1[t]=e},r.get=function(t){return f1[t]||op[t]},r}();function xY(r){return!!op[r]}var bY=1,gL=2;function wY(r){yL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var yL=ot();function mL(r){var t=r.getShallow("coord",!0),e=bY;if(t==null){var n=yL.get(r.type);n&&n.getCoord2&&(e=gL,t=n.getCoord2(r))}return{coord:t,from:e}}var xu=0,sp=1,_L=2;function SL(r,t){var e=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),a=xu;if(e){var i=r.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=sp,i||(a=xu)):n==="box"&&(a=_L,!i&&!xY(e)&&(a=xu))}return{coordSysType:e,kind:a}}function _c(r){var t=r.targetModel,e=r.coordSysType,n=r.coordSysProvider,a=r.isDefaultDataCoordSys;r.allowNotFound;var i=SL(t),o=i.kind,s=i.coordSysType;if(a&&o!==sp&&(o=sp,s=e),o===xu||s!==e)return xu;var l=n(e,t);return l?(o===sp?t.coordinateSystem=l:t.boxCoordinateSystem=l,o):xu}var xL=function(r,t){var e=t.getReferringComponents(r,Me).models[0];return e&&e.coordinateSystem};const Sc=SY;var lp=M,bL=["left","right","top","bottom","width","height"],Ms=[["width","left","right"],["height","top","bottom"]];function c1(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),v=c&&c.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(v?-v.x+f.x:0);h=i+p,h>n||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var Ds=c1;Bt(c1,"vertical"),Bt(c1,"horizontal");function wL(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function TY(r,t){var e=We(r,t,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),a,i;if(e.type===xc.point)i=e.refPoint,a=ye(n,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=Y(o)?o:[o,o];a=ye(n,e.refContainer),i=e.boxCoordFrom===gL?e.refPoint:[nt(s[0],a.width)+a.x,nt(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function TL(r,t){var e=TY(r,t),n=e.viewRect,a=e.center,i=r.get("radius");Y(i)||(i=[0,i]);var o=nt(n.width,t.getWidth()),s=nt(n.height,t.getHeight()),l=Math.min(o,s),u=nt(i[0],l/2),f=nt(i[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:n}}function ye(r,t,e){e=mc(e||0);var n=t.width,a=t.height,i=nt(r.left,n),o=nt(r.top,a),s=nt(r.right,n),l=nt(r.bottom,a),u=nt(r.width,n),f=nt(r.height,a),c=e[2]+e[0],v=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=n-s-v-i),isNaN(f)&&(f=a-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=n-s-u-v),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-v-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Mt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function CL(r,t,e){var n=r.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(a))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=n==="cover";return a>e&&!l||a<e&&l?(s.width=t.height*e,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),ye(s,t)}var xc={rect:1,point:2};function We(r,t,e){var n,a,i,o=r.boxCoordinateSystem,s;if(o){var l=mL(r),u=l.coord,f=l.from;if(o.dataToLayout){i=xc.rect,s=f;var c=o.dataToLayout(u);n=c.contentRect||c.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=xc.point,s=f,a=o.dataToPoint(u))}return i==null&&(i=xc.rect),i===xc.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),a=[n.x+n.width/2,n.y+n.height/2]),{type:i,refContainer:n,refPoint:a,boxCoordFrom:s}}function up(r,t,e,n,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new Mt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var c=ye(_t({width:u.width,height:u.height},t),e,n),v=o?c.x-u.x:0,h=s?c.y-u.y:0;return l==="raw"?(i.x=v,i.y=h):(i.x+=v,i.y+=h),i===r&&r.markRedraw(),!0}function CY(r,t){return r[Ms[t][0]]!=null||r[Ms[t][1]]!=null&&r[Ms[t][2]]!=null}function bc(r){var t=r.layoutMode||r.constructor.layoutMode;return xt(t)?t:t?{type:t}:null}function Aa(r,t,e){var n=e&&e.ignoreSize;!Y(n)&&(n=[n,n]);var a=o(Ms[0],0),i=o(Ms[1],1);l(Ms[0],r,a),l(Ms[1],r,i);function o(u,f){var c={},v=0,h={},d=0,p=2;if(lp(u,function(m){h[m]=r[m]}),lp(u,function(m){st(t,m)&&(c[m]=h[m]=t[m]),s(c,m)&&v++,s(h,m)&&d++}),n[f])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(d===p||!v)return h;if(v>=p)return c;for(var g=0;g<u.length;g++){var y=u[g];if(!st(c,y)&&st(r,y)){c[y]=r[y];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){lp(u,function(v){f[v]=c[v]})}}function Is(r){return AL({},r)}function AL(r,t){return t&&r&&lp(bL,function(e){st(t,e)&&(r[e]=t[e])}),r}var AY=Et(),bu=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.uid=Cs("ec_cpt_model"),i}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=bc(this),i=a?Is(e):{},o=n.getTheme();Rt(e,o.get(this.mainType)),Rt(e,this.getDefaultOption()),a&&Aa(e,i,a)},t.prototype.mergeOption=function(e,n){Rt(this.option,e,!0);var a=bc(this);a&&Aa(this.option,e,a)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!UU(e))return e.defaultOption;var n=AY(this);if(!n.defaultOption){for(var a=[],i=e;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Rt(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return nu(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return wL(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(qt);aD(bu,qt),md(bu),nY(bu),aY(bu,MY);function MY(r){var t=[];return M(bu.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=K(t,function(e){return ma(e).main}),r!=="dataset"&&Lt(t,"dataset")<=0&&t.unshift("dataset"),t}const Yt=bu;var Ls={color:{},darkColor:{},size:{}},Pe=Ls.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};W(Pe,{primary:Pe.neutral80,secondary:Pe.neutral70,tertiary:Pe.neutral60,quaternary:Pe.neutral50,disabled:Pe.neutral20,border:Pe.neutral30,borderTint:Pe.neutral20,borderShade:Pe.neutral40,background:Pe.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Pe.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Pe.neutral70,axisLineTint:Pe.neutral40,axisTick:Pe.neutral70,axisTickMinor:Pe.neutral60,axisLabel:Pe.neutral70,axisSplitLine:Pe.neutral15,axisMinorSplitLine:Pe.neutral05});for(var Ps in Pe)if(Pe.hasOwnProperty(Ps)){var ML=Pe[Ps];Ps==="theme"?Ls.darkColor.theme=Pe.theme.slice():Ps==="highlight"?Ls.darkColor.highlight="rgba(255,231,130,0.4)":Ps.indexOf("accent")===0?Ls.darkColor[Ps]=qi(ML,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Ls.darkColor[Ps]=qi(ML,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Ls.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const F=Ls;var DL="";typeof navigator<"u"&&(DL=navigator.platform||"");var wu="rgba(0, 0, 0, 0.2)",IL=F.color.theme[0],DY=qi(IL,null,null,.9);const LL={darkMode:"auto",colorBy:"series",color:F.color.theme,gradientColor:[DY,IL],aria:{decal:{decals:[{color:wu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:DL.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 or={Must:1,Might:2,Not:3},PL=Et();function IY(r){PL(r).datasetMap=ot()}function EL(r,t,e){var n={},a=h1(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=PL(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),M(r,function(p,g){var y=xt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,c=d(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=v.valueWayDim;h(n[y],_,m),h(o,_,m),v.valueWayDim+=m}else if(f===g)h(n[y],0,m),h(i,0,m);else{var _=v.categoryWayDim;h(n[y],_,m),h(o,_,m),v.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function v1(r,t,e){var n={},a=h1(r);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===un||i===$n)&&M(o,function(f,c){(xt(f)?f.name:f)==="name"&&(s=c)});var l=function(){for(var f={},c={},v=[],h=0,d=Math.min(5,e);h<d;h++){var p=kL(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);v.push(p);var g=p===or.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&v[f.n]===or.Not)&&(f.n=h),y(f)&&v[f.n]!==or.Not)return f;g||(p===or.Might&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v)&&(c.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function h1(r){var t=r.get("data",!0);if(!t)return nu(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Me).models[0]}function LY(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:nu(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Me).models}function RL(r,t){return kL(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function kL(r,t,e,n,a,i){var o,s=5;if(Xr(r))return or.Not;var l,u;if(n){var f=n[i];xt(f)?(l=f.name,u=f.type):et(f)&&(l=f)}if(u!=null)return u==="ordinal"?or.Must:or.Not;if(t===tr){var c=r;if(e===hs){for(var v=c[i],h=0;h<(v||[]).length&&h<s;h++)if((o=S(v[a+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var d=c[a+h];if(d&&(o=S(d[i]))!=null)return o}}else if(t===un){var p=r;if(!l)return or.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===$n){var y=r;if(!l)return or.Not;var v=y[l];if(!v||Xr(v))return or.Not;for(var h=0;h<v.length&&h<s;h++)if((o=S(v[h]))!=null)return o}else if(t===ln)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=eu(g);if(!Y(_))return or.Not;if((o=S(_[i]))!=null)return o}function S(x){var b=et(x);if(x!=null&&isFinite(Number(x))&&x!=="")return b?or.Might:or.Not;if(b&&x!=="-")return or.Must}return or.Not}var d1=ot();function PY(r,t){yr(d1.get(r)==null&&t),d1.set(r,t)}function EY(r,t,e){var n=d1.get(t);if(!n)return e;var a=n(r);return a?e.concat(a):e}var OL=Et(),RY=Et(),p1=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var a=ue(this.get("color",!0)),i=this.get("colorLayer",!0);return NL(this,OL,a,i,t,e,n)},r.prototype.clearColorPalette=function(){OY(this,OL)},r}();function g1(r,t,e,n){var a=ue(r.get(["aria","decal","decals"]));return NL(r,RY,a,null,t,e,n)}function kY(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function NL(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:kY(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function OY(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var fp,wc,BL,VL="\0_ec_inner",NY=1,zL=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new qt(i),this._locale=new qt(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=HL(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,HL(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?BL(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ot(),u=n&&n.replaceMergeMainTypeMap;IY(this),M(e,function(c,v){c!=null&&(Yt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):a[v]=a[v]==null?dt(c):Rt(a[v],c,!0))}),u&&u.each(function(c,v){Yt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Yt.topologicalTravel(s,Yt.getAllClassMainTypes(),f,this);function f(c){var v=EY(this,c,ue(e[c])),h=i.get(c),d=h?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=qM(h,v,d);LU(p,c,Yt),a[c]=null,i.set(c,null),o.set(c,0);var g=[],y=[],m=0,_;M(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var C=c==="series",T=Yt.getClass(c,S.keyInfo.subType,!C);if(!T)return;if(c==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===T)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var D=W({componentIndex:x},S.keyInfo);b=new T(w,this,this,D),W(b,D),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),a[c]=g,i.set(c,y),o.set(c,m),c==="series"&&fp(this)}this._seriesIndices||fp(this)},t.prototype.getOption=function(){var e=dt(this.option);return M(e,function(n,a){if(Yt.hasClass(a)){for(var i=ue(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Qf(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[VL],e},t.prototype.setTheme=function(e){this._theme=new qt(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var a=e.index,i=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],M(ue(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=FL("id",i,s):o!=null?l=FL("name",o,s):l=ne(s,function(u){return!!u}),GL(l,e)},t.prototype.findComponents=function(e){var n=e.query,a=e.mainType,i=s(n),o=i?this.queryComponents(i):ne(this._componentsMap.get(a),function(u){return!!u});return l(GL(o,e));function s(u){var f=a+"Index",c=a+"Id",v=a+"Name";return u&&(u[f]!=null||u[c]!=null||u[v]!=null)?{mainType:a,index:u[f],id:u[c],name:u[v]}:null}function l(u){return e.filter?ne(u,e.filter):u}},t.prototype.eachComponent=function(e,n,a){var i=this._componentsMap;if(yt(e)){var o=n,s=e;i.each(function(c,v){for(var h=0;c&&h<c.length;h++){var d=c[h];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=et(e)?i.get(e):xt(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(a,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=Fe(e,null);return ne(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return ne(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return ne(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){wc(this),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];e.call(n,i,a)},this)},t.prototype.eachRawSeries=function(e,n){M(this._componentsMap.get("series"),function(a){a&&e.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,a){wc(this),M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,n,a){return M(this.getSeriesByType(e),n,a)},t.prototype.isSeriesFiltered=function(e){return wc(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){wc(this);var a=[];M(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ot(a)},t.prototype.restoreData=function(e){fp(this);var n=this._componentsMap,a=[];n.each(function(i,o){Yt.hasClass(o)&&a.push(o)}),Yt.topologicalTravel(a,Yt.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!BY(o,e))&&o.restoreData()})})},t.internalField=function(){fp=function(e){var n=e._seriesIndices=[];M(e._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),e._seriesIndicesMap=ot(n)},wc=function(e){},BL=function(e,n){e.option={},e.option[VL]=NY,e._componentsMap=ot({series:[]}),e._componentsCount=ot();var a=n.aria;xt(a)&&a.enabled==null&&(a.enabled=!0),VY(n,e._theme.option),Rt(n,LL,!1),e._mergeOption(n,null)}}(),t}(qt);function BY(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,a=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||a!=null&&r.name!==a}}function VY(r,t){var e=r.color&&!r.colorLayer;M(t,function(n,a){a==="colorLayer"&&e||a==="color"&&r.color||Yt.hasClass(a)||(typeof n=="object"?r[a]=r[a]?Rt(r[a],n,!1):dt(n):r[a]==null&&(r[a]=n))})}function FL(r,t,e){if(Y(t)){var n=ot();return M(t,function(i){if(i!=null){var o=Fe(i,null);o!=null&&n.set(i,!0)}}),ne(e,function(i){return i&&n.get(i[r])})}else{var a=Fe(t,null);return ne(e,function(i){return i&&a!=null&&i[r]===a})}}function GL(r,t){return t.hasOwnProperty("subType")?ne(r,function(e){return e&&e.subType===t.subType}):r}function HL(r){var t=ot();return r&&M(ue(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ze(zL,p1);const $L=zL;var zY=/^(min|max)?(.+)$/,FY=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(M(ue(t.series),function(o){o&&o.data&&Xr(o.data)&&Rh(o.data)}),M(ue(t.dataset),function(o){o&&o.source&&Xr(o.source)&&Rh(o.source)})),t=dt(t);var a=this._optionBackup,i=GY(t,e,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],dt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(e=dt(n[a.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)HY(a[l].query,e,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!UY(o,this._currentMediaIndices)&&(s=K(o,function(f){return dt(f===-1?i.option:a[f].option)})),this._currentMediaIndices=o,s},r}();function GY(r,t,e){var n=[],a,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&Y(u)&&M(u,function(h){h&&h.option&&(h.query?n.push(h):a||(a=h))}),v(i),M(l,function(h){return v(h)}),M(n,function(h){return v(h.option)});function v(h){M(t,function(d){d(h,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function HY(r,t,e){var n={width:t,height:e,aspectratio:t/e},a=!0;return M(r,function(i,o){var s=o.match(zY);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();$Y(n[u],i,l)||(a=!1)}}),a}function $Y(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function UY(r,t){return r.join(",")===t.join(",")}const WY=FY;var Zn=M,Tc=xt,UL=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function y1(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=UL.length;e<n;e++){var a=UL[e],i=t.normal,o=t.emphasis;i&&i[a]&&(r[a]=r[a]||{},r[a].normal?Rt(r[a].normal,i[a]):r[a].normal=i[a],i[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?Rt(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function br(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,a=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,_t(r[t],n)):r[t]=n),a&&(r.emphasis=r.emphasis||{},r.emphasis[t]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Cc(r){br(r,"itemStyle"),br(r,"lineStyle"),br(r,"areaStyle"),br(r,"label"),br(r,"labelLine"),br(r,"upperLabel"),br(r,"edgeLabel")}function Re(r,t){var e=Tc(r)&&r[t],n=Tc(e)&&e.textStyle;if(n)for(var a=0,i=KM.length;a<i;a++){var o=KM[a];n.hasOwnProperty(o)&&(e[o]=n[o])}}function An(r){r&&(Cc(r),Re(r,"label"),r.emphasis&&Re(r.emphasis,"label"))}function YY(r){if(Tc(r)){y1(r),Cc(r),Re(r,"label"),Re(r,"upperLabel"),Re(r,"edgeLabel"),r.emphasis&&(Re(r.emphasis,"label"),Re(r.emphasis,"upperLabel"),Re(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(y1(t),An(t));var e=r.markLine;e&&(y1(e),An(e));var n=r.markArea;n&&An(n);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var i=r.links||r.edges;if(i&&!Xr(i))for(var o=0;o<i.length;o++)An(i[o]);M(r.categories,function(u){Cc(u)})}if(a&&!Xr(a))for(var o=0;o<a.length;o++)An(a[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)An(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)Y(l[o])?(An(l[o][0]),An(l[o][1])):An(l[o]);r.type==="gauge"?(Re(r,"axisLabel"),Re(r,"title"),Re(r,"detail")):r.type==="treemap"?(br(r.breadcrumb,"itemStyle"),M(r.levels,function(u){Cc(u)})):r.type==="tree"&&Cc(r.leaves)}}function vi(r){return Y(r)?r:r?[r]:[]}function WL(r){return(Y(r)?r[0]:r)||{}}function XY(r,t){Zn(vi(r.series),function(n){Tc(n)&&YY(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Zn(e,function(n){Zn(vi(r[n]),function(a){a&&(Re(a,"axisLabel"),Re(a.axisPointer,"label"))})}),Zn(vi(r.parallel),function(n){var a=n&&n.parallelAxisDefault;Re(a,"axisLabel"),Re(a&&a.axisPointer,"label")}),Zn(vi(r.calendar),function(n){br(n,"itemStyle"),Re(n,"dayLabel"),Re(n,"monthLabel"),Re(n,"yearLabel")}),Zn(vi(r.radar),function(n){Re(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Zn(vi(r.geo),function(n){Tc(n)&&(An(n),Zn(vi(n.regions),function(a){An(a)}))}),Zn(vi(r.timeline),function(n){An(n),br(n,"label"),br(n,"itemStyle"),br(n,"controlStyle",!0);var a=n.data;Y(a)&&M(a,function(i){xt(i)&&(br(i,"label"),br(i,"itemStyle"))})}),Zn(vi(r.toolbox),function(n){br(n,"iconStyle"),Zn(n.feature,function(a){br(a,"iconStyle")})}),Re(WL(r.axisPointer),"label"),Re(WL(r.tooltip).axisPointer,"label")}function ZY(r,t){for(var e=t.split(","),n=r,a=0;a<e.length&&(n=n&&n[e[a]],n!=null);a++);return n}function KY(r,t,e,n){for(var a=t.split(","),i=r,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=e)}function YL(r){r&&M(qY,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var qY=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],jY=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],m1=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ac(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<m1.length;e++){var n=m1[e][1],a=m1[e][0];t[n]!=null&&(t[a]=t[n])}}function XL(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function ZL(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function JY(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function KL(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&KL(r[e].children,t)}function qL(r,t){XY(r,t),r.series=ue(r.series),M(r.series,function(e){if(xt(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),XL(e.label);var a=e.data;if(a&&!Xr(a))for(var i=0;i<a.length;i++)XL(a[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=ZY(e,"pointer.color");o!=null&&KY(e,"itemStyle.color",o)}else if(n==="bar"){Ac(e),Ac(e.backgroundStyle),Ac(e.emphasis);var a=e.data;if(a&&!Xr(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Ac(a[i]),Ac(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),ZL(e),KL(e.data,ZL)}else n==="graph"||n==="sankey"?JY(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&_t(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),YL(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(jY,function(e){var n=r[e];n&&(Y(n)||(n=[n]),M(n,function(a){YL(a)}))})}var QY=tc(t6);function t6(r){var t=ot();r.eachSeries(function(e){var n=e.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),t.each(function(e){if(e.length!==0){var n=e[0].seriesModel,a=n.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&e.reverse(),M(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),e6(e)}})}function e6(r){M(r,function(t,e){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var v=o.get(t.stackedDimension,c);if(isNaN(v))return a;var h,d;s?d=o.getRawIndex(c):h=o.get(t.stackedByDimension,c);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=Qo(v,m),p=m;break}}}return n[0]=v,n[1]=p,n})})}var cp=function(){function r(t){this.data=t.data||(t.sourceFormat===$n?{}:[]),this.sourceFormat=t.sourceFormat||VD,this.seriesLayoutBy=t.seriesLayoutBy||Un,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;n<e.length;n++){var a=e[n];a.type==null&&RL(this,n)===or.Must&&(a.type="ordinal")}}return r}();function _1(r){return r instanceof cp}function S1(r,t,e){e=e||jL(r);var n=t.seriesLayoutBy,a=n6(r,e,n,t.sourceHeader,t.dimensions),i=new cp({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:dt(t)});return i}function x1(r){return new cp({data:r,sourceFormat:Xr(r)?io:ln})}function r6(r){return new cp({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:dt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function jL(r){var t=VD;if(Xr(r))t=io;else if(Y(r)){r.length===0&&(t=tr);for(var e=0,n=r.length;e<n;e++){var a=r[e];if(a!=null){if(Y(a)||Xr(a)){t=tr;break}else if(xt(a)){t=un;break}}}}else if(xt(r)){for(var i in r)if(st(r,i)&&pr(r[i])){t=$n;break}}return t}function n6(r,t,e,n,a){var i,o;if(!r)return{dimensionsDefine:JL(a),startIndex:o,dimensionsDetectedCount:i};if(t===tr){var s=r;n==="auto"||n==null?QL(function(u){u!=null&&u!=="-"&&(et(u)?o==null&&(o=1):o=0)},e,s,10):o=Wt(n)?n:n?1:0,!a&&o===1&&(a=[],QL(function(u,f){a[f]=u!=null?u+"":""},e,s,1/0)),i=a?a.length:e===hs?s.length:s[0]?s[0].length:null}else if(t===un)a||(a=a6(r));else if(t===$n)a||(a=[],M(r,function(u,f){a.push(f)}));else if(t===ln){var l=eu(r[0]);i=Y(l)&&l.length||1}return{startIndex:o,dimensionsDefine:JL(a),dimensionsDetectedCount:i}}function a6(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ut(e)}function JL(r){if(r){var t=ot();return K(r,function(e,n){e=xt(e)?e:{name:e};var a={name:e.name,displayName:e.displayName,type:e.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function QL(r,t,e,n){if(t===hs)for(var a=0;a<e.length&&a<n;a++)r(e[a]?e[a][0]:null,a);else for(var i=e[0]||[],a=0;a<i.length&&a<n;a++)r(i[a],a)}function tP(r){var t=r.sourceFormat;return t===un||t===$n}var Es,Rs,ks,Os,eP,rP,nP=function(){function r(t,e){var n=_1(t)?t:x1(t);this._source=n;var a=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===io&&(this._offset=0,this._dimSize=e,this._data=a),rP(this,a,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;rP=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,v=l.dimensionsDefine,h=eP[w1(u,f)];if(W(o,h),u===io)o.getItem=e,o.count=a,o.fillStorage=n;else{var d=iP(u,f);o.getItem=it(d,null,s,c,v);var p=sP(u,f);o.count=it(p,null,s,c,v)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},n=function(o,s,l,u){for(var f=this._data,c=this._dimSize,v=0;v<c;v++){for(var h=u[v],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*c+v];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};eP=(t={},t[tr+"_"+Un]={pure:!0,appendData:i},t[tr+"_"+hs]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[un]={pure:!0,appendData:i},t[$n]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[ln]={appendData:i},t[io]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),vp=function(r){Y(r)||WM("series.data or dataset.source must be an array.")};Es={},Es[tr+"_"+Un]=vp,Es[tr+"_"+hs]=vp,Es[un]=vp,Es[$n]=function(r,t){for(var e=0;e<t.length;e++){var n=t[e].name;n==null&&WM("dimension name must not be null/undefined.")}},Es[ln]=vp;var aP=function(r,t,e,n){return r[n]},i6=(Rs={},Rs[tr+"_"+Un]=function(r,t,e,n){return r[n+t]},Rs[tr+"_"+hs]=function(r,t,e,n,a){n+=t;for(var i=a||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Rs[un]=aP,Rs[$n]=function(r,t,e,n,a){for(var i=a||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[n]:null}return i},Rs[ln]=aP,Rs);function iP(r,t){var e=i6[w1(r,t)];return e}var oP=function(r,t,e){return r.length},o6=(ks={},ks[tr+"_"+Un]=function(r,t,e){return Math.max(0,r.length-t)},ks[tr+"_"+hs]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},ks[un]=oP,ks[$n]=function(r,t,e){var n=e[0].name,a=n!=null?r[n]:null;return a?a.length:0},ks[ln]=oP,ks);function sP(r,t){var e=o6[w1(r,t)];return e}var b1=function(r,t,e){return r[t]},s6=(Os={},Os[tr]=b1,Os[un]=function(r,t,e){return r[e]},Os[$n]=b1,Os[ln]=function(r,t,e){var n=eu(r);return n instanceof Array?n[t]:n},Os[io]=b1,Os);function lP(r){var t=s6[r];return t}function w1(r,t){return r===tr?r+"_"+t:r}function Tu(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var a=r.getStore(),i=a.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=a.getDimensionProperty(o);return lP(i)(n,o,s)}else{var l=n;return i===ln&&(l=eu(n)),l}}}}var l6=/\{@(.+?)\}/g,hp=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),a=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,v=c==="series",h=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:a,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,a,i,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&Y(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(yt(i))return l.status=e,l.dimensionIndex=a,i(l);if(et(i)){var f=dL(i,l);return f.replace(l6,function(c,v){var h=v.length,d=v;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=Tu(s,t,d);if(o&&Y(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Tu(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function uP(r){var t,e;return xt(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Mc(r){return new u6(r)}var u6=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 a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(c||h<d)){var p=this._progress;if(Y(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,a,i){fP.reset(e,n,a,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:fP.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Y(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),fP=function(){var r,t,e,n,a,i={reset:function(l,u,f,c){t=l,r=u,e=f,n=c,a=Math.ceil(n/e),i.next=e>1&&n>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%a*e+Math.ceil(t/a),u=t>=r?null:l<n?l:t;return t++,u}}();function co(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Wt(r)&&r!=null&&r!=="-"&&(r=+ts(r)),r==null||r===""?NaN:Number(r))}var f6=ot({number:function(r){return parseFloat(r)},time:function(r){return+ts(r)},trim:function(r){return et(r)?hn(r):r}});function cP(r){return f6.get(r)}var vP={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},c6=function(){function r(t,e){if(!Wt(e)){var n="";ee(n)}this._opFn=vP[t],this._rvalFloat=ni(e)}return r.prototype.evaluate=function(t){return Wt(t)?this._opFn(t,this._rvalFloat):this._opFn(ni(t),this._rvalFloat)},r}(),hP=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=Wt(t)?t:ni(t),a=Wt(e)?e:ni(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=et(t),l=et(e);s&&(n=l?t:0),l&&(a=s?e:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},r}(),v6=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ni(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=ni(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function h6(r,t){return r==="eq"||r==="ne"?new v6(r==="eq",t):st(vP,r)?new c6(r,t):null}function dP(r){var t="",e=-1/0,n=-1/0,a=1/0,i=1/0;return r&&(r.g!=null&&(t+="G"+r.g,e=r.g),r.ge!=null&&(t+="GE"+r.ge,n=r.ge),r.l!=null&&(t+="L"+r.l,a=r.l),r.le!=null&&(t+="LE"+r.le,i=r.le)),{key:t,g:e,ge:n,l:a,le:i}}function pP(r,t){return t>r.g&&t>=r.ge&&t<r.l&&t<=r.le}var d6=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 co(t,e)},r}();function p6(r,t){var e=new d6,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Un&&ee(o);var s=[],l={},u=r.dimensionsDefine;if(u)M(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";st(l,y)&&ee(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=iP(a,Un);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(n,i,s,p)},e.getRawData=it(g6,null,r)),e.cloneRawData=it(y6,null,r);var v=sP(a,Un);e.count=it(v,null,n,i,s);var h=lP(a);e.retrieveValue=function(p,g){var y=c(n,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return e.getDimensionInfo=it(m6,null,s,l),e.cloneAllDimensionInfo=it(_6,null,s),e}function g6(r){var t=r.sourceFormat;if(!T1(t)){var e="";ee(e)}return r.data}function y6(r){var t=r.sourceFormat,e=r.data;if(!T1(t)){var n="";ee(n)}if(t===tr){for(var a=[],i=0,o=e.length;i<o;i++)a.push(e[i].slice());return a}else if(t===un){for(var a=[],i=0,o=e.length;i<o;i++)a.push(W({},e[i]));return a}}function m6(r,t,e){if(e!=null){if(Wt(e)||!isNaN(e)&&!st(t,e))return r[e];if(st(t,e))return t[e]}}function _6(r){return dt(r)}var gP=ot();function S6(r){r=dt(r);var t=r.type,e="";t||ee(e);var n=t.split(":");n.length!==2&&ee(e);var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),r.__isBuiltIn=a,gP.set(t,r)}function x6(r,t,e){var n=ue(r),a=n.length,i="";a||ee(i);for(var o=0,s=a;o<s;o++){var l=n[o];t=b6(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function b6(r,t,e,n){var a="";t.length||ee(a),xt(r)||ee(a);var i=r.type,o=gP.get(i);o||ee(a);var s=K(t,function(u){return p6(u,o)}),l=ue(o.transform({upstream:s[0],upstreamList:s,config:dt(r.config)}));return K(l,function(u,f){var c="";xt(u)||ee(c),u.data||ee(c);var v=jL(u.data);T1(v)||ee(c);var h,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Un,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Un,sourceHeader:0,dimensions:u.dimensions};return S1(u.data,h,null)})}function T1(r){return r===tr||r===un}var w6=typeof Uint32Array===ou?Array:Uint32Array,T6=typeof Uint16Array===ou?Array:Uint16Array,yP=typeof Int32Array===ou?Array:Int32Array,mP=typeof Float64Array===ou?Array:Float64Array,_P={float:mP,int:yP,ordinal:Array,number:Array,time:mP},C1;function Cu(r){return r>65535?w6:T6}function C6(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function SP(r,t,e,n,a){var i=_P[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(n)}var A1=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ot()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=C1[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],tP(a),this._dimensions=K(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===e)return i}else i=a.length;return a[i]={type:e},n.set(t,i),this._chunks[i]=new _P[e||"float"](this._rawCount),this._rawExtent[i]=ar(),i},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=ar());for(var l=i[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=e,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var a=e.count();return e.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=a[u];SP(n,u,f.type,l,!0)}for(var c=[],v=s;v<l;v++)for(var h=v-s,d=0;d<i;d++){var f=a[d],p=C1.arrayRows.call(this,t[h]||c,f.property,h,d);n[d][v]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=ar()),SP(i,f,c.type,e,n)}if(a.fillStorage)a.fillStorage(t,e,i,l);else for(var v=[],h=t;h<e;h++){v=a.getItem(h,v);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(v,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],a=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)}),nr(e);var n=this.count();return n===0?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(e[o]<t)a=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=e[i]}else t=new n(e.buffer,0,a)}else{var n=Cu(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Cu(n._rawCount),o=new i(a),s=[],l=t.length,u=0,f=t[0],c=n._chunks,v=0;v<a;v++){var h=void 0,d=n.getRawIndex(v);if(l===0)h=e(v);else if(l===1){var p=c[f][d];h=e(p,v)}else{for(var g=0;g<l;g++)s[g]=c[t[g]][d];s[g]=v,h=e.apply(null,s)}h&&(o[u++]=d)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var a=Ut(t),i=a.length;if(!i)return this;var o=e.count(),s=Cu(e._rawCount),l=new s(o),u=0,f=a[0],c=t[f][0],v=t[f][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=v||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var m=g[y],b=_[y];(m>=c&&m<=v||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=h[a[0]][w];(m>=c&&m<=v||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var C=!0,w=e.getRawIndex(y),T=0;T<i;T++){var D=a[T],m=h[D][w];(m<t[D][0]||m>t[D][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var a=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=ar();for(var c=0;c<s;c++){for(var v=t.getRawIndex(c),h=0;h<o;h++)l[h]=a[e[h]][v];l[o]=c;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=a[p];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,v,h=new(Cu(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),C=d-1,T=i[u];f=-1,v=b;for(var D=-1,A=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){A++,D<0&&(D=S);continue}c=Math.abs((C-y)*(x-T)-(C-_)*(m-T)),c>f&&(f=c,v=S)}A>0&&A<w-b&&(h[s++]=Math.min(D,v),v=Math.max(D,v)),h[s++]=v,u=v}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),a=n._chunks,i=Math.floor(1/e),o=a[t],s=this.count(),l=new(Cu(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,v=o[this.getRawIndex(c)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,c=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(c),S=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=ar(),v=new(Cu(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+a(s,y)||0,f-1));u[m]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),v[h++]=m}return i._count=h,i._indices=v,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(a[t[0]][s],i);break;case 2:e(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t,e){var n=this._chunks[t],a=ar();if(!n)return a;var i=this.count(),o=!this._indices&&!e;if(o)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=dP(e),f=u.key,c=l[f];if(c)return c.slice();for(var v=a[0],h=a[1],d=0;d<i;d++){var p=this.getRawIndex(d),g=n[p];(!e||pP(u,g))&&(g<v&&(v=g),g>h&&(h=g))}return l[f]=[v,h]},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][e]);return n},r.prototype.clone=function(t,e){var n=new r,a=this._chunks,i=t&&ua(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?C6(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=dt(this._extent),t._rawExtent=dt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var a=0;a<n;a++)e[a]=this._indices[a]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,a,i){return co(e[i],this._dimensions[i])}C1={arrayRows:t,objectRows:function(e,n,a,i){return co(e[n],this._dimensions[i])},keyedColumns:t,original:function(e,n,a,i){var o=e&&(e.value==null?e:e.value);return co(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,n,a,i){return e[i]}}}(),r}(),xP=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,a,i;if(dp(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Xr(s)?io:ln,i=[];var c=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},h=ut(c.seriesLayoutBy,v.seriesLayoutBy)||null,d=ut(c.sourceHeader,v.sourceHeader),p=ut(c.dimensions,v.dimensions),g=h!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||p;a=g?[S1(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[S1(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),a=e.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&wP(i)}var o,s=[],l=[];return M(t,function(u){u.prepareSource();var f=u.getSource(a||0),c="";a!=null&&!f&&wP(c),s.push(f),l.push(u._getVersionSign())}),n?o=x6(n,s,{datasetIndex:e.componentIndex}):a!=null&&(o=[r6(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];dp(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new A1,s.initData(new nP(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(dp(t)){var e=h1(t);return e?[e.getSourceManager()]:[]}else return K(LY(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,a;if(dp(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:a}},r}();function bP(r){var t=r.option.transform;t&&Rh(r.option.transform)}function dp(r){return r.mainType==="series"}function wP(r){throw new Error(r)}var A6="line-height:1";function TP(r){var t=r.lineHeight;return t==null?A6:"line-height:"+_r(t+"")+"px"}function CP(r,t){var e=r.color||F.color.tertiary,n=r.fontSize||12,a=r.fontWeight||"400",i=r.color||F.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+_r(n+"")+"px;color:"+_r(e)+";font-weight:"+_r(a+""),valueStyle:"font-size:"+_r(o+"")+"px;color:"+_r(i)+";font-weight:"+_r(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var M6=[0,10,20,30],D6=["",`
50
+ `,`
51
+
52
+ `,`
53
+
54
+
55
+ `];function ke(r,t){return t.type=r,t}function M1(r){return r.type==="section"}function AP(r){return M1(r)?I6:L6}function MP(r){if(M1(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return M(r.blocks,function(a){var i=MP(a);i>=t&&(t=i+ +(n&&(!i||M1(a)&&!a.noHeader)))}),t}return 0}function I6(r,t,e,n){var a=t.noHeader,i=P6(MP(t)),o=[],s=t.blocks||[];yr(!s||Y(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(st(u,l)){var f=new hP(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=AP(p)(y?W(W({},r),{valueFormatter:y}):r,p,g>0?i.html:0,n);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):D1(n,o.join(""),a?e:i.html);if(a)return c;var v=l1(t.header,"ordinal",r.useUTC),h=CP(n,r.renderMode).nameStyle,d=TP(n);return r.renderMode==="richText"?IP(r,v,h)+i.richText+c:D1(n,'<div style="'+h+";"+d+';">'+_r(v)+"</div>"+c,e)}function L6(r,t,e,n){var a=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=Y(S)?S:[S],K(S,function(x,b){return l1(x,Y(h)?h[b]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||F.color.secondary,a),v=i?"":l1(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.rawDataIndex),p=!s||!i,g=!s&&i,y=CP(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":c)+(i?"":IP(r,v,m))+(o?"":k6(r,d,p,g,_)):D1(n,(s?"":c)+(i?"":E6(v,!s,m))+(o?"":R6(d,p,g,_)),e)}}function DP(r,t,e,n,a,i){if(r){var o=AP(r),s={useUTC:a,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function P6(r){return{html:M6[r],richText:D6[r]}}function D1(r,t,e){var n='<div style="clear:both"></div>',a="margin: "+e+"px 0 0",i=TP(r);return'<div style="'+a+";"+i+';">'+t+n+"</div>"}function E6(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+_r(r)+"</span>"}function R6(r,t,e,n){var a=e?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return r=Y(r)?r:[r],'<span style="'+i+";"+n+'">'+K(r,function(o){return _r(o)}).join("&nbsp;&nbsp;")+"</span>"}function IP(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function k6(r,t,e,n,a){var i=[a],o=n?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,i)}function LP(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return As(n)}function PP(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var I1=function(){function r(){this.richTextStyles={},this._nextStyleNameId=W0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var a=n==="richText"?this._generateStyleName():null,i=_Y({color:e,type:t,renderMode:n,markerId:a});return et(i)?i:(this.richTextStyles[a]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};Y(e)?M(e,function(i){return W(n,i)}):W(n,e);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},r}();function EP(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=Y(s),u=LP(t,e),f,c,v,h;if(o>1||l&&!o){var d=O6(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=f=Tu(a,e,i[0]),c=p.type}else h=f=l?s[0]:s;var g=Y0(t),y=g&&t.name||"",m=a.getName(e),_=n?y:m;return ke("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[ke("nameValue",{markerType:"item",markerColor:u,name:_,noName:!hn(_),value:f,valueType:c,rawDataIndex:a.getRawIndex(e)})].concat(v||[])})}function O6(r,t,e,n,a){var i=t.getData(),o=ua(r,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(c){f(Tu(i,e,c),c)}):M(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(ke("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var vo=Et();function pp(r,t){return r.getName(t)||r.getId(t)}var gp="__universalTransitionEnabled",yp=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,a){this.seriesIndex=this.componentIndex,this.dataTask=Mc({count:B6,reset:V6}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,a);var i=vo(this).sourceManager=new xP(this);i.prepareSource();var o=this.getInitialData(e,a);kP(o,this),this.dataTask.context.data=o,vo(this).dataBeforeProcessed=o,RP(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var a=bc(this),i=a?Is(e):{},o=this.subType;Yt.hasClass(o)&&(o+="Series"),Rt(e,n.getTheme().get(this.subType)),Rt(e,this.getDefaultOption()),es(e,"label",["show"]),this.fillDataTextStyle(e.data),a&&Aa(e,i,a)},t.prototype.mergeOption=function(e,n){e=Rt(this.option,e,!0),this.fillDataTextStyle(e.data);var a=bc(this);a&&Aa(this.option,e,a);var i=vo(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,n);kP(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,vo(this).dataBeforeProcessed=o,RP(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Xr(e))for(var n=["show"],a=0;a<e.length;a++)e[a]&&e[a].label&&es(e[a],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=L1(this);if(n){var a=n.context.data;return e==null||!a.getLinkedData?a:a.getLinkedData(e)}else return vo(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=L1(this);if(n){var a=n.context;a.outputData=e,n!==this.dataTask&&(a.data=e)}vo(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ot(e)},t.prototype.getSourceManager=function(){return vo(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return vo(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,n,a,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(a);i==null&&(i=1/0);for(var f=[],c=1/0,v=-1,h=0,d=o.getDimensionIndex(n),p=o.getStore(),g=0,y=p.count();g<y;g++){var m=p.get(d,g),_=l.dataToCoord(m),S=u-_,x=Math.abs(S);x<=i&&((x<c||x===c&&S>=0&&v<0)&&(c=x,v=S,h=0),S===v&&(f[h++]=g))}return f.length=h,f},t.prototype.formatTooltip=function(e,n,a){return EP({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(te.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,a){var i=this.ecModel,o=p1.prototype.getColorFromPalette.call(this,e,n,a);return o||(o=i.getColorFromPalette(e,n,a)),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 a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=pp(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var a=[],i=0;i<e.length;i++)a[0]=e[i],this.isSelected(e[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=Ut(e),a=[],i=0;i<n.length;i++){var o=e[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(e,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[pp(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[gp])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){xt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],v=pp(e,c);u[v]=!0,this._selectedDataIndicesMap[v]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var h=n[l-1],v=pp(e,h);o.selectedMap=(a={},a[v]=!0,a),this._selectedDataIndicesMap=(i={},i[v]=e.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(a){var i=e.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return Yt.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}(Yt);ze(yp,hp),ze(yp,p1),aD(yp,Yt);function RP(r){var t=r.name;Y0(r)||(r.name=N6(r)||t)}function N6(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function B6(r){return r.model.getRawData().count()}function V6(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),z6}function z6(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function kP(r,t){M(Vf(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,Bt(F6,t))})}function F6(r,t){var e=L1(r);return e&&e.setOutputEnd((t||this).count()),t}function L1(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(r.uid))}return n}}const me=yp;var P1=function(){function r(){this.group=new mt,this.uid=Cs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){},r.prototype.updateLayout=function(t,e,n,a){},r.prototype.updateVisual=function(t,e,n,a){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();J0(P1),md(P1);const be=P1;function Ns(){var r=Et();return function(t){var e=r(t),n=t.pipelineContext,a=!!e.large,i=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var OP=Et(),G6=Ns(),E1=function(){function r(){this.group=new mt,this.uid=Cs("viewChart"),this.renderTask=Mc({plan:H6,reset:$6}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,a){},r.prototype.highlight=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&BP(i,a,"emphasis")},r.prototype.downplay=function(t,e,n,a){var i=t.getData(a&&a.dataType);i&&BP(i,a,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.updateVisual=function(t,e,n,a){this.render(t,e,n,a)},r.prototype.eachRendered=function(t){lo(this.group,t)},r.markUpdateMethod=function(t,e){OP(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function NP(r,t,e){r&&oc(r)&&(t==="emphasis"?li:ui)(r,e)}function BP(r,t,e){var n=rs(r,t),a=t&&t.highlightKey!=null?n8(t.highlightKey):null;n!=null?M(ue(n),function(i){NP(r.getItemGraphicEl(i),e,a)}):r.eachItemGraphicEl(function(i){NP(i,e,a)})}J0(E1),md(E1);function H6(r){return G6(r.model)}function $6(r){var t=r.model,e=r.ecModel,n=r.api,a=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=a&&OP(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,a),U6[l]}var U6={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 ve=E1;var mp="\0__throttleOriginMethod",VP="\0__throttleRate",zP="\0__throttleType";function R1(r,t,e){var n,a=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];n=new Date().getTime(),l=this,u=h;var p=f||t,g=f||e;f=null,s=n-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),a=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(h){f=h},v}function Au(r,t,e,n){var a=r[t];if(a){var i=a[mp]||a,o=a[zP],s=a[VP];if(s!==e||o!==n){if(e==null||!n)return r[t]=i;a=r[t]=R1(i,e,n==="debounce"),a[mp]=i,a[zP]=n,a[VP]=e}return a}}function Dc(r,t){var e=r[t];e&&e[mp]&&(e.clear&&e.clear(),r[t]=e[mp])}var FP=Et(),GP={itemStyle:is(JI,!0),lineStyle:is(jI,!0)},W6={lineStyle:"stroke",itemStyle:"fill"};function HP(r,t){var e=r.visualStyleMapper||GP[t];return e||(console.warn("Unknown style type '"+t+"'."),GP.itemStyle)}function $P(r,t){var e=r.visualDrawType||W6[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Y6={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=r.getModel(n),i=HP(r,n),o=i(a),s=a.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=$P(r,n),u=o[l],f=yt(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var v=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=v,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||yt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||yt(o.stroke)?v:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=W({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},Ic=new qt,X6={createOnAllSeries:!0,reset:function(r,t){if(!r.ignoreStyleOnData){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",a=HP(r,n),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ic.option=l[n];var u=a(Ic),f=o.ensureUniqueItemVisual(s,"style");W(f,u),Ic.option.decal&&(o.setItemVisual(s,"decal",Ic.option.decal),Ic.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Z6={performRawSeries:!0,overallReset:function(r){var t=ot();r.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+"-"+e.getColorBy();FP(e).scope=t.get(n)||t.set(n,{})}}),r.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.getRawData(),a={},i=e.getData(),o=FP(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=$P(e,s);i.each(function(u){var f=i.getRawIndex(u);a[f]=u}),n.each(function(u){var f=a[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var v=i.ensureUniqueItemVisual(f,"style"),h=n.getName(u)||u+"",d=n.count();v[l]=e.getColorFromPalette(h,o,d)}})}})}},_p=Math.PI;function K6(r,t){t=t||{},_t(t,{text:"loading",textColor:F.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:F.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new mt,n=new Ft({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var a=new Xt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Ft({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new O_({shape:{startAngle:-_p/2,endAngle:-_p/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:_p*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:_p*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var q6=function(){function r(t,e,n,a){this._stageTaskMap=ot(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!e&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),a=t.__preparePipelineContext?t.__preparePipelineContext(e,n):rD(t,e,n);t.pipelineContext=n.context=a},r.prototype.restorePipelines=function(t,e){var n=this,a=n._pipelineMap=ot();e.eachSeries(function(i){var o=t.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";yr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,e,n),a.overallReset&&this._createOverallStageTask(a,i,e,n)},this)},r.prototype.prepareView=function(t,e,n,a){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,a){a=a||{};var i=!1,o=this;M(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,v=f.overallTask;if(v){var h,d=v.agentStubMap;d.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&v.dirty(),o.updatePayload(v,n);var p=o.getPerformArgs(v,a.block);d.each(function(g){g.perform(p)}),v.perform(p)&&(i=!0)}else c&&c.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(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,a){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=ot(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,a).each(f);function f(c){var v=c.uid,h=s.set(v,o&&o.get(v)||Mc({plan:e7,reset:r7,count:a7}));h.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,h)}},r.prototype._createOverallStageTask=function(t,e,n,a){var i=this,o=e.overallTask=e.overallTask||Mc({reset:j6});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ot(),u=t.seriesType,f=t.getTargetSeries,c=t.dirtyOnOverallProgress,v=!1,h="";yr(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,d):f?f(n,a).each(d):M(n.getSeries(),d);function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(v=!0,Mc({reset:J6,onDirty:t7})));y.context={model:p,dirtyOnOverallProgress:c},y.agent=o,y.__block=c,i._pipe(p,y)}v&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=e),a.tail&&a.tail.pipe(e),a.tail=e,e.__idxInPipeline=a.count++,e.__pipeline=a},r.wrapStageHandler=function(t,e){return yt(t)&&(t={overallReset:t,seriesType:i7(t)}),t.uid=Cs("stageHandler"),e&&(t.visualType=e),t},r}();function j6(r){r.overallReset(r.ecModel,r.api,r.payload)}function J6(r){return r.dirtyOnOverallProgress&&Q6}function Q6(){this.agent.dirty(),this.getDownstream().dirty()}function t7(){this.agent&&this.agent.dirty()}function e7(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function r7(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ue(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?K(t,function(e,n){return UP(n)}):n7}var n7=UP(0);function UP(r){return function(t,e){var n=e.data,a=e.resetDefines[r];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function a7(r){return r.data.count()}function i7(r){Sp=null;try{r(Lc,WP)}catch{}return Sp}var Lc={},WP={},Sp;YP(Lc,$L),YP(WP,GD),Lc.eachSeriesByType=Lc.eachRawSeriesByType=function(r){Sp=r},Lc.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Sp=r.subType)};function YP(r,t){for(var e in t.prototype)r[e]=Te}const XP=q6;var pt=F.darkColor,ZP=pt.background,Pc=function(){return{axisLine:{lineStyle:{color:pt.axisLine}},splitLine:{lineStyle:{color:pt.axisSplitLine}},splitArea:{areaStyle:{color:[pt.backgroundTint,pt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:pt.axisMinorSplitLine}},axisLabel:{color:pt.axisLabel},axisName:{}}},KP={label:{color:pt.secondary},itemStyle:{borderColor:pt.borderTint},dividerLineStyle:{color:pt.border}},qP={darkMode:!0,color:pt.theme,backgroundColor:ZP,axisPointer:{lineStyle:{color:pt.border},crossStyle:{color:pt.borderShade},label:{color:pt.tertiary}},legend:{textStyle:{color:pt.secondary},pageTextStyle:{color:pt.tertiary}},textStyle:{color:pt.secondary},title:{textStyle:{color:pt.primary},subtextStyle:{color:pt.quaternary}},toolbox:{iconStyle:{borderColor:pt.accent50},feature:{dataView:{backgroundColor:ZP,textColor:pt.primary,textareaColor:pt.background,textareaBorderColor:pt.border,buttonColor:pt.accent50,buttonTextColor:pt.neutral00}}},tooltip:{backgroundColor:pt.neutral20,defaultBorderColor:pt.border,textStyle:{color:pt.tertiary}},dataZoom:{borderColor:pt.accent10,textStyle:{color:pt.tertiary},brushStyle:{color:pt.backgroundTint},handleStyle:{color:pt.neutral00,borderColor:pt.accent20},moveHandleStyle:{color:pt.accent40},emphasis:{handleStyle:{borderColor:pt.accent50}},dataBackground:{lineStyle:{color:pt.accent30},areaStyle:{color:pt.accent20}},selectedDataBackground:{lineStyle:{color:pt.accent50},areaStyle:{color:pt.accent30}}},visualMap:{textStyle:{color:pt.secondary},handleStyle:{borderColor:pt.neutral30}},timeline:{lineStyle:{color:pt.accent10},label:{color:pt.tertiary},controlStyle:{color:pt.accent30,borderColor:pt.accent30}},calendar:{itemStyle:{color:pt.neutral00,borderColor:pt.neutral20},dayLabel:{color:pt.tertiary},monthLabel:{color:pt.secondary},yearLabel:{color:pt.secondary}},matrix:{x:KP,y:KP,backgroundColor:{borderColor:pt.axisLine},body:{itemStyle:{borderColor:pt.borderTint}}},timeAxis:Pc(),logAxis:Pc(),valueAxis:Pc(),categoryAxis:Pc(),line:{symbol:"circle"},graph:{color:pt.theme},gauge:{title:{color:pt.secondary},axisLine:{lineStyle:{color:[[1,pt.neutral05]]}},axisLabel:{color:pt.axisLabel},detail:{color:pt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:pt.background}},radar:function(){var r=Pc();return r.axisName={color:pt.axisLabel},r.axisLine.lineStyle.color=pt.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:pt.neutral20,textStyle:{color:pt.secondary}},emphasis:{itemStyle:{color:pt.neutral30}}}},sunburst:{itemStyle:{borderColor:pt.background}},map:{itemStyle:{borderColor:pt.border,areaColor:pt.neutral10},label:{color:pt.tertiary},emphasis:{label:{color:pt.primary},itemStyle:{areaColor:pt.highlight}},select:{label:{color:pt.primary},itemStyle:{areaColor:pt.highlight}}},geo:{itemStyle:{borderColor:pt.border,areaColor:pt.neutral10},emphasis:{label:{color:pt.primary},itemStyle:{areaColor:pt.highlight}},select:{label:{color:pt.primary},itemStyle:{color:pt.highlight}}}};qP.categoryAxis.splitLine.show=!1;const o7=qP;var s7=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},a={};if(et(t)){var i=ma(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var v=o[c],h=u.lastIndexOf(v);if(h>0&&h===u.length-v.length){var d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:a}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,a,i));function f(c,v,h,d){return c[h]==null||v[d||h]===c[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),k1=["symbol","symbolSize","symbolRotate","symbolOffset"],jP=k1.concat(["symbolKeepAspect"]),l7={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={},a={},i=!1,o=0;o<k1.length;o++){var s=k1[o],l=r.get(s);yt(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(W({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=Ut(a);function f(c,v){for(var h=r.getRawValue(v),d=r.getDataParams(v),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(v,g,a[g](h,d))}}return{dataEach:i?f:null}}},u7={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<jP.length;s++){var l=jP[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function O1(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Ec(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function JP(r,t,e,n){switch(e){case"color":var a=r.ensureUniqueItemVisual(t,"style");a[r.getVisual("drawType")]=n,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,n);break}}function QP(r,t){function e(n,a){var i=[];return n.eachComponent({mainType:"series",subType:r,query:a},function(o){i.push(o.seriesIndex)}),i}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=W({},a),o.dispatchAction(W(a,{type:n[1],seriesIndex:e(i,a)}))})})}function Mu(r,t,e,n,a){var i=r+t;e.isSilent(i)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),v=rs(c,a.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:Y(v)?c.getName(v[0]):c.getName(v),selected:et(l)?l:W({},l)})}})}function f7(r,t,e){r.on("selectchanged",function(n){var a=e.getModel();n.isFromClick?(Mu("map","selectchanged",t,a,n),Mu("pie","selectchanged",t,a,n)):n.fromAction==="select"?(Mu("map","selected",t,a,n),Mu("pie","selected",t,a,n)):n.fromAction==="unselect"&&(Mu("map","unselected",t,a,n),Mu("pie","unselected",t,a,n))})}function Bs(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var c7=new dn;const Mn=c7;var t2={};function v7(r,t){t2[r]=t}function h7(r){return t2[r]}var e2={};function d7(r,t){e2[r]=t}function p7(r){return e2[r]}var xp=Et();function g7(r){xp(r).prepare={}}function y7(r){xp(r).fullUpdate={}}function r2(r){return xp(r).prepare}function Du(r){return xp(r).fullUpdate}var m7=Math.round(Math.random()*9),_7=typeof Object.defineProperty=="function",S7=function(){function r(){this._id="__ec_inner_"+m7++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return _7?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const x7=S7;var b7=Gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n+i),r.lineTo(e-a,n+i),r.closePath()}}),w7=Gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,a=t.width/2,i=t.height/2;r.moveTo(e,n-i),r.lineTo(e+a,n),r.lineTo(e,n+i),r.lineTo(e-a,n),r.closePath()}}),T7=Gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),v=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*h,l+s+v*h,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+c*h,l+s+v*h,e-f,l+s),r.closePath()}}),C7=Gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;r.moveTo(a,i),r.lineTo(a+o,i+e),r.lineTo(a,i+e/4*3),r.lineTo(a-o,i+e),r.lineTo(a,i),r.closePath()}}),A7={line:$e,rect:Ft,roundRect:Ft,square:Ft,circle:oo,diamond:w7,pin:T7,arrow:C7,triangle:b7},M7={line:function(r,t,e,n,a){a.x1=r,a.y1=t+n/2,a.x2=r+e,a.y2=t+n/2},rect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n},roundRect:function(r,t,e,n,a){a.x=r,a.y=t,a.width=e,a.height=n,a.r=Math.min(e,n)/4},square:function(r,t,e,n,a){var i=Math.min(e,n);a.x=r,a.y=t,a.width=i,a.height=i},circle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.r=Math.min(e,n)/2},diamond:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n},pin:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},arrow:function(r,t,e,n,a){a.x=r+e/2,a.y=t+n/2,a.width=e,a.height=n},triangle:function(r,t,e,n,a){a.cx=r+e/2,a.cy=t+n/2,a.width=e,a.height=n}},bp={};M(A7,function(r,t){bp[t]=new r});var D7=Gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=sd(r,t,e),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var a=bp[n];a||(n="rect",a=bp[n]),M7[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(r,a.shape,e)}}});function I7(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||F.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Oe(r,t,e,n,a,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=OI(r.slice(8),new Mt(t,e,n,a),o?"center":"cover"):r.indexOf("path://")===0?l=fc(r.slice(7),{},new Mt(t,e,n,a),o?"center":"cover"):l=new D7({shape:{symbolType:r,x:t,y:e,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=I7,i&&l.setColor(i),l}function Iu(r){return Y(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Vs(r,t){if(r!=null)return Y(r)||(r=[r,r]),[nt(r[0],t[0])||0,nt(ut(r[1],r[0]),t[1])||0]}function zs(r){return isFinite(r)}function L7(r,t,e){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,a=a*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),n=zs(n)?n:0,a=zs(a)?a:1,i=zs(i)?i:0,o=zs(o)?o:0;var s=r.createLinearGradient(n,i,a,o);return s}function P7(r,t,e){var n=e.width,a=e.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*a+e.y,l=l*i),o=zs(o)?o:.5,s=zs(s)?s:.5,l=l>=0&&zs(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function N1(r,t,e){for(var n=t.type==="radial"?P7(r,t,e):L7(r,t,e),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function E7(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function wp(r){return parseInt(r,10)}function Lu(r,t,e){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[a]||wp(s[n])||wp(r.style[n]))-(wp(s[i])||0)-(wp(s[o])||0)||0}function R7(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Wt(r)?[r]:Y(r)?r:null}function B1(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&R7(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var a=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(e=K(e,function(i){return i/a}),n/=a)}return[e,n]}var k7=new ba(!0);function Tp(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function n2(r){return typeof r=="string"&&r!=="none"}function Cp(r){var t=r.fill;return t!=null&&t!=="none"}function a2(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 i2(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 V1(r,t,e){var n=t_(t.image,t.__image,e);if(_d(n)){var a=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*Oh),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function O7(r,t,e,n,a){var i,o=Tp(e),s=Cp(e),l=e.strokePercent,u=l<1,f=!t.path;(!t.silent||u)&&f&&t.createPathProxy();var c=t.path||k7,v=t.__dirty;if(!n){var h=e.fill,d=e.stroke,p=s&&!!h.colorStops,g=o&&!!d.colorStops,y=s&&!!h.image,m=o&&!!d.image,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0;(p||g)&&(w=t.getBoundingRect()),p&&(_=v?N1(r,h,w):t.__canvasFillGradient,t.__canvasFillGradient=_),g&&(S=v?N1(r,d,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(x=v||!t.__canvasFillPattern?V1(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(b=v||!t.__canvasStrokePattern?V1(r,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),p?r.fillStyle=_:y&&(x?r.fillStyle=x:s=!1),g?r.strokeStyle=S:m&&(b?r.strokeStyle=b:o=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var T,D;r.setLineDash&&e.lineDash&&(i=B1(t),T=i[0],D=i[1]);var A=!0;(f||v&Wl)&&(c.setDPR(r.dpr),u?c.setContext(null):(c.setContext(r),A=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(r,u?l:1),T&&(r.setLineDash(T),r.lineDashOffset=D),n?(a.batchFill=s,a.batchStroke=o):e.strokeFirst?(o&&i2(r,e),s&&a2(r,e)):(s&&a2(r,e),o&&i2(r,e)),T&&r.setLineDash([])}function N7(r,t,e){var n=t.__image=t_(e.image,t.__image,t,t.onload);if(!(!n||!_d(n))){var a=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,a,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,c=o-u,v=s-f;r.drawImage(n,u,f,c,v,a,i,o,s)}else r.drawImage(n,a,i,o,s)}}function B7(r,t,e){var n,a=e.text;if(a!=null&&(a+=""),a){r.font=e.font||Ka,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=B1(t),i=n[0],o=n[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Tp(e)&&r.strokeText(a,e.x,e.y),Cp(e)&&r.fillText(a,e.x,e.y)):(Cp(e)&&r.fillText(a,e.x,e.y),Tp(e)&&r.strokeText(a,e.x,e.y)),i&&r.setLineDash([])}}var o2=["shadowBlur","shadowOffsetX","shadowOffsetY"],s2=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function l2(r,t,e,n,a){var i=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Vr(r,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?os.opacity:o}(n||t.blend!==e.blend)&&(i||(Vr(r,a),i=!0),r.globalCompositeOperation=t.blend||os.blend);for(var s=0;s<o2.length;s++){var l=o2[s];(n||t[l]!==e[l])&&(i||(Vr(r,a),i=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(i||(Vr(r,a),i=!0),r.shadowColor=t.shadowColor||os.shadowColor),i}function u2(r,t,e,n,a){var i=t.style,o=n?null:e&&e.style||{};if(i===o)return!1;var s=l2(r,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(Vr(r,a),s=!0),n2(i.fill)&&(r.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(Vr(r,a),s=!0),n2(i.stroke)&&(r.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(Vr(r,a),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Vr(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<s2.length;f++){var c=s2[f],v=c[0];(n||i[v]!==o[v])&&(s||(Vr(r,a),s=!0),r[v]=i[v]||c[1])}return s}function V7(r,t,e,n,a){return l2(r,t.style,e&&e.style,n,a)}function f2(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function z7(r,t,e){for(var n=!1,a=0;a<r.length;a++){var i=r[a];n=n||i.isZeroArea(),f2(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=n}function F7(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var c2=1,v2=2,h2=3,d2=4;function G7(r){var t=Cp(r),e=Tp(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Vr(r,t){t.batchFill&&(t.batchFill=!1,r.fill()),t.batchStroke&&(t.batchStroke=!1,r.stroke())}function p2(r,t){var e={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Fs(r,t,e),Pu(r,e)}function Fs(r,t,e){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Zr,t.__isRendered=!1;return}var a=t.__clipPaths,i=e.prevElClipPaths,o=t.style,s=!1,l=!1;if((!i||E7(a,i))&&(i&&(Vr(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Vr(r,e),r.save(),z7(a,r,e),s=!0,e.prevElClipPaths=a)),e.allClipped){t.__dirty&=~Zr,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(e.beforeBrushParam),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof Gt&&t.autoBatch&&G7(o);s||F7(n,u.transform)?(Vr(r,e),f2(r,t)):f||Vr(r,e),t instanceof Gt?(e.lastDrawType!==c2&&(l=!0,e.lastDrawType=c2),u2(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),O7(r,t,o,f,e)):t instanceof nc?(e.lastDrawType!==h2&&(l=!0,e.lastDrawType=h2),u2(r,t,u,l,e),B7(r,t,o)):t instanceof ir?(e.lastDrawType!==v2&&(l=!0,e.lastDrawType=v2),V7(r,t,u,l,e),N7(r,t,o)):t.getTemporalDisplayables&&(e.lastDrawType!==d2&&(l=!0,e.lastDrawType=d2),H7(r,t,e)),t.innerAfterBrush(),t.afterBrush&&(f&&Vr(r,e),t.afterBrush()),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Pu(r,t){Vr(r,t),t.prevElClipPaths&&r.restore()}function H7(r,t,e){var n=t.getDisplayables(),a=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),Fs(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Pu(r,i);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(e.beforeBrushParam),l.innerBeforeBrush(),Fs(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Pu(r,i),t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var z1=new x7,g2=new Xl(100),y2=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Eu(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";r.dirty&&z1.delete(r);var i=z1.get(r);if(i)return i;var o=_t(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/e,z1.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,v=0;v<y2.length;++v){var h=o[y2[v]];if(h!=null&&!Y(h)&&!et(h)&&!Wt(h)&&typeof h!="boolean"){c=!1;break}f.push(h)}var d;if(c){d=f.join(",")+(a?"-svg":"");var p=g2.get(d);p&&(a?u.svgElement=p:u.image=p)}var g=_2(o.dashArrayX),y=$7(o.dashArrayY),m=m2(o.symbol),_=U7(g),S=S2(y),x=!a&&Er.createCanvas(),b=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=T(),C;x&&(x.width=w.width*e,x.height=w.height*e,C=x.getContext("2d")),D(),c&&g2.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function T(){for(var A=1,L=0,I=_.length;L<I;++L)A=HM(A,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=HM(P,m[L].length);A*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var A=0,L=0;L<y.length;++L)A+=y[L];if(A<=0)return;for(var I=-S,P=0,R=0,E=0;I<w.height;){if(P%2===0){for(var N=R/2%m.length,O=0,G=0,$=0;O<w.width*2;){for(var H=0,L=0;L<g[E].length;++L)H+=g[E][L];if(H<=0)break;if(G%2===0){var X=(1-o.symbolSize)*.5,q=O+g[E][G]*X,J=I+y[P]*X,Q=g[E][G]*o.symbolSize,St=y[P]*o.symbolSize,Ht=$/2%m[N].length;gt(q,J,Q,St,m[N][Ht])}O+=g[E][G],++$,++G,G===g[E].length&&(G=0)}++E,E===g.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function gt(ft,Tt,ct,wt,k){var B=a?1:e,U=Oe(k,ft*B,Tt*B,ct*B,wt*B,o.color,o.symbolKeepAspect);if(a){var Z=n.painter.renderOneToVNode(U);Z&&b.children.push(Z)}else p2(C,U)}}}}function m2(r){if(!r||r.length===0)return[["rect"]];if(et(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!et(r[e])){t=!1;break}if(t)return m2([r]);for(var n=[],e=0;e<r.length;++e)et(r[e])?n.push([r[e]]):n.push(r[e]);return n}function _2(r){if(!r||r.length===0)return[[0,0]];if(Wt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!Wt(r[n])){e=!1;break}if(e)return _2([r]);for(var a=[],n=0;n<r.length;++n)if(Wt(r[n])){var t=Math.ceil(r[n]);a.push([t,t])}else{var t=K(r[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function $7(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Wt(r)){var t=Math.ceil(r);return[t,t]}var e=K(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function U7(r){return K(r,function(t){return S2(t)})}function S2(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}var W7=tc(Y7);function Y7(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Eu(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Eu(a,t)}}})}var X7=1,Z7=800,K7=900,q7=920,j7=1e3,J7=2e3,x2=5e3,b2=1e3,Q7=1100,F1=2e3,w2=3e3,t9=4e3,Ap=4500,e9=4600,r9=5e3,n9=6e3,T2=7e3,a9={PROCESSOR:{SERIES_FILTER:Z7,AXIS_STATISTICS:q7,FILTER:j7,STATISTIC:x2,STATISTICS:x2},VISUAL:{LAYOUT:b2,PROGRESSIVE_LAYOUT:Q7,GLOBAL:F1,CHART:w2,POST_CHART_LAYOUT:e9,COMPONENT:t9,BRUSH:r9,CHART_ITEM:Ap,ARIA:n9,DECAL:T2}},Ye="__flagInMainProcess",Mp="__mainProcessVersion",rr="__pendingUpdate",G1="__needsUpdateStatus",C2=/^[a-zA-Z0-9_]+$/,H1="__connectUpdateStatus",A2=0,i9=1,o9=2;function M2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return I2(this,r,t)}}function D2(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return I2(this,r,t)}}function I2(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),dn.prototype[t].apply(r,e)}var L2=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(dn),P2=L2.prototype;P2.on=D2("on"),P2.off=D2("off");var Gs,$1,Dp,hi,Ip,U1,W1,Ru,ku,E2,R2,Y1,k2,Lp,O2,N2,Dn,B2,Ou,V2=function(r){V(t,r);function t(e,n,a){var i=r.call(this,new s7)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},i.__v_skip=!0,i._dom=e;var o="canvas",s="auto",l=!1;i[Mp]=1,a.ssr&&cU(function(v){var h=Ct(v),d=h.dataIndex;if(d!=null){var p=ot();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=EM(e,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ut(a.useDirtyRect,l),useCoarsePointer:ut(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=R1(it(u.flush,u),17),i._updateTheme(n),i._locale=sY(a.locale||QI),i._coordSysMgr=new Sc;var f=i._api=O2(i);function c(v,h){return v.__prio-h.__prio}return Fh(Ep,c),Fh(q1,c),i._scheduler=new XP(i,f,q1,Ep),i._messageCenter=new L2,i._initEvents(),i.resize=it(i.resize,i),u.animation.on("frame",i._onframe,i),E2(u,i),R2(u,i),Rh(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,n=this._model,a=this._api;if(B2(this),this[rr]){var i=this[rr].silent;this[Ye]=!0,Ou(this);try{Gs(this),hi.update.call(this,null,this[rr].updateParams)}catch(l){throw this[Ye]=!1,this[rr]=null,l}this._zr.flush(),this[Ye]=!1,this[rr]=null,Ru.call(this,i),ku.call(this,i)}else if(e.unfinished){var o=X7;do{e.unfinished=!1;var s=Er.getTime();e.performSeriesTasks(n),e.performDataProcessorTasks(n),U1(this,n),e.performVisualTasks(n),Lp(this,this._model,a,"remain",{}),o-=Er.getTime()-s}while(o>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,a){if(!this[Ye]){if(this._disposed){this.id;return}var i,o,s;if(xt(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ye]=!0,Ou(this),!this._model||n){var l=new WY(this._api),u=this._theme,f=this._model=new $L;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},j1);var c={seriesTransition:s,optionChanged:!0};if(a)this[rr]={silent:i,updateParams:c},this[Ye]=!1,this.getZr().wakeUp();else{try{Gs(this),hi.update.call(this,null,c)}catch(v){throw this[rr]=null,this[Ye]=!1,v}this._ssr||this._zr.flush(),this[rr]=null,this[Ye]=!1,Ru.call(this,i),ku.call(this,i)}}},t.prototype.setTheme=function(e,n){if(!this[Ye]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[rr]&&(i==null&&(i=this[rr].silent),o=this[rr].updateParams,this[rr]=null),this[Ye]=!0,Ou(this);try{this._updateTheme(e),a.setTheme(this._theme),Gs(this),hi.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ye]=!1,s}this[Ye]=!1,Ru.call(this,i),ku.call(this,i)}}},t.prototype._updateTheme=function(e){et(e)&&(e=z2[e]),e&&(e=dt(e),e&&qL(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||te.hasGlobalWindow&&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(){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(a){a.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,a=this._model,i=[],o=this;M(n,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(F2[a]){var l=s,u=s,f=-s,c=-s,v=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();M(Rc,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(dt(e)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),c=o(b.bottom,c),v.push({dom:x,left:b.left,top:b.top})}}),l*=h,u*=h,f*=h,c*=h;var d=f-l,p=c-u,g=Er.createCanvas(),y=EM(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(v,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Ft({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(v,function(_){var S=new ir({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n,a){return Ip(this,"convertToPixel",e,n,a)},t.prototype.convertToLayout=function(e,n,a){return Ip(this,"convertToLayout",e,n,a)},t.prototype.convertFromPixel=function(e,n,a){return Ip(this,"convertFromPixel",e,n,a)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var a=this._model,i,o=ru(a,e);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(n,u))}},this)},this),!!i},t.prototype.getVisual=function(e,n){var a=this._model,i=ru(a,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?O1(s,l,n):Ec(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(s9,function(a){var i=function(o){var s=e.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&Bs(l,function(p){var g=Ct(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=W({},g.eventData),!0},!0),u){var c=u.componentType,v=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",v=u.seriesIndex);var h=c&&v!=null&&s.getComponent(c,v),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=a,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(a,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(a,i,e)});var n=this._messageCenter;M(K1,function(a,i){n.on(i,function(o){e.trigger(i,o)})}),f7(n,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&&JM(this.getDom(),Q1,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(n._chartsViews,function(o){o.dispose(i,a)}),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 Rc[n.id]},t.prototype.resize=function(e){if(!this[Ye]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=e&&e.silent;this[rr]&&(i==null&&(i=this[rr].silent),a=!0,this[rr]=null),this[Ye]=!0,Ou(this);try{a&&Gs(this),hi.update.call(this,{type:"resize",animation:W({duration:0},e&&e.animation)})}catch(o){throw this[Ye]=!1,o}this[Ye]=!1,Ru.call(this,i),ku.call(this,i)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(xt(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!J1[e]){var a=J1[e](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},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=W({},e);return n.type=Z1[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(xt(n)||(n={silent:!!n}),!!Pp[e.type]&&this._model){if(this[Ye]){this._pendingActions.push(e);return}var a=n.silent;W1.call(this,e,a);var i=n.flush;i?this._zr.flush():i!==!1&&te.browser.weChat&&this._throttledZrFlush(),Ru.call(this,a),ku.call(this,a)}},t.prototype.updateLabelLayout=function(){Mn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Gs=function(c){g7(c._model);var v=c._scheduler;v.restorePipelines(c._zr,c._model),v.prepareStageTasks(),$1(c,!0),$1(c,!1),v.plan()},$1=function(c,v){for(var h=c._model,d=c._scheduler,p=v?c._componentsViews:c._chartsViews,g=v?c._componentsMap:c._chartsMap,y=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;v?h.eachComponent(function(b,w){b!=="series"&&S(w)}):h.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,T=!w&&g[C];if(!T){var D=ma(b.type),A=v?be.getClass(D.main,D.sub):ve.getClass(D.sub);T=new A,T.init(h,m),g[C]=T,p.push(T),y.add(T.group)}b.__viewId=T.__id=C,T.__alive=!0,T.__model=b,T.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!v&&d.prepareView(T,b,h,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!v&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Dp=function(c,v,h,d,p){var g=c._model;if(g.setUpdatePayload(h),!d){M([].concat(c._componentsViews).concat(c._chartsViews),S);return}var y=Z0(h,d,p),m=h.excludeSeriesId,_;m!=null&&(_=ot(),M(ue(m),function(x){var b=Fe(x,null);b!=null&&_.set(b,!0)})),g&&g.eachComponent(y,function(x){var b=_&&_.get(x.id)!=null;if(!b)if(aI(h))if(x instanceof me)h.type===ds&&!h.notBlur&&!x.get(["emphasis","disabled"])&&KW(x,h,c._api);else{var w=M_(x.mainType,x.componentIndex,h.name,c._api),C=w.focusSelf,T=w.dispatchers;h.type===ds&&C&&!h.notBlur&&A_(x.mainType,x.componentIndex,c._api),T&&M(T,function(D){h.type===ds?li(D):ui(D)})}else I_(h)&&x instanceof me&&(JW(x,h,c._api),rI(x),Dn(c))},c),g&&g.eachComponent(y,function(x){var b=_&&_.get(x.id)!=null;b||S(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function S(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,c._api,h)}},hi={prepareAndUpdate:function(c){Gs(this),hi.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,v){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){y7(h),h.setUpdatePayload(c),y.restoreData(h,c),y.performSeriesTasks(h),g.create(h,d),Mn.trigger("coordsys:aftercreate",h,d),y.performDataProcessorTasks(h,c),U1(this,h),g.update(h,d),n(h),y.performVisualTasks(h,c);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Y1(this,h,d,c,v),Mn.trigger("afterupdate",h,d)}},updateTransform:function(c){var v=this,h=v._model,d=v._api;if(h){h.setUpdatePayload(c);var p=[];h.eachComponent(function(y,m){if(y!==Ta){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var g=ot();h.eachSeries(function(y){var m=v._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var S=m.updateTransform(y,h,d,c);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),v._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:g}),Lp(v,h,d,c,{},g),Mn.trigger("afterupdate",h,d)}},updateView:function(c){var v=this._model;v&&(v.setUpdatePayload(c),ve.markUpdateMethod(c,"updateView"),n(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0}),Y1(this,v,this._api,c,{}),Mn.trigger("afterupdate",v,this._api))},updateVisual:function(c){var v=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(d){d.getData().clearAllVisual()}),ve.markUpdateMethod(c,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,c,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=v.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,v._api,c)}}),h.eachSeries(function(d){var p=v._chartsMap[d.__viewId];p.updateVisual(d,h,v._api,c)}),Mn.trigger("afterupdate",h,this._api))},updateLayout:function(c){hi.update.call(this,c)}};function e(c,v,h,d,p){if(c._disposed){c.id;return}for(var g=c._model,y=c._coordSysMgr.getCoordinateSystems(),m,_=ru(g,h),S=0;S<y.length;S++){var x=y[S];if(x[v]&&(m=x[v](g,_,d,p))!=null)return m}}Ip=e,U1=function(c,v){var h=c._chartsMap,d=c._scheduler;v.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},W1=function(c,v){var h=this,d=this.getModel(),p=c.type,g=c.escapeConnect,y=Pp[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&ma(m[0]);this[Ye]=!0,Ou(this);var x=[c],b=!1;c.batch&&(b=!0,x=K(c.batch,function(E){return E=_t(W({},E),c),E.batch=null,E}));var w=[],C,T=[],D=y.nonRefinedEventType,A=I_(c),L=aI(c);if(L&&eI(this._api),M(x,function(E){var N=y.action(E,d,h._api);if(y.refineEvent?T.push(N):C=N,C=C||W({},E),C.type=D,w.push(C),L){var O=X0(c),G=O.queryOptionMap,$=O.mainTypeSpecified,H=$?G.keys()[0]:"series";Dp(h,_,E,H),Dn(h)}else A?(Dp(h,_,E,"series"),Dn(h)):S&&Dp(h,_,E,S.main,S.sub)}),_!=="none"&&!L&&!A&&!S)try{this[rr]?(Gs(this),hi.update.call(this,c),this[rr]=null):hi[_].call(this,c)}catch(E){throw this[Ye]=!1,E}if(b?C={type:D,escapeConnect:g,batch:w}:C=w[0],this[Ye]=!1,!v){var I=void 0;if(y.refineEvent){var P=y.refineEvent(T,c,d,this._api).eventContent;yr(xt(P)),I=_t({type:y.refinedEventType},P),I.fromAction=c.type,I.fromActionPayload=c,I.escapeConnect=!0}var R=this._messageCenter;R.trigger(C.type,C),I&&R.trigger(I.type,I)}},Ru=function(c){for(var v=this._pendingActions;v.length;){var h=v.shift();W1.call(this,h,c)}},ku=function(c){!c&&this.trigger("updated")},E2=function(c,v){c.on("rendered",function(h){v.trigger("rendered",h),c.animation.isFinished()&&!v[rr]&&!v._scheduler.unfinished&&!v._pendingActions.length?v.trigger("finished"):c.refresh()})},R2=function(c,v){c.on("mouseover",function(h){var d=h.target,p=Bs(d,oc);p&&(qW(p,h,v._api),Dn(v))}).on("mouseout",function(h){var d=h.target,p=Bs(d,oc);p&&(jW(p,h,v._api),Dn(v))}).on("click",function(h){var d=h.target,p=Bs(d,function(m){return Ct(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=Ct(p);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(c){c.clearColorPalette(),c.eachSeries(function(v){v.clearColorPalette()})}function a(c){var v=[],h=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:v).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=v.concat(h),g,y;Fh(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Y1=function(c,v,h,d,p){a(v),k2(c,v,h,d,p),M(c._chartsViews,function(g){g.__alive=!1}),Lp(c,v,h,d,p),M(c._chartsViews,function(g){g.__alive||g.remove(v,h)})},k2=function(c,v,h,d,p,g){M(g||c._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,h,d),l(m,y),f(m,y)})},Lp=function(c,v,h,d,p,g){var y=c._scheduler;p=W(p||{},{updatedSeries:v.getSeries()}),Mn.trigger("series:beforeupdate",v,h,p);var m=!1;v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),rI(_)}),y.unfinished=m||y.unfinished,Mn.trigger("series:layoutlabels",v,h,p),Mn.trigger("series:transition",v,h,p),v.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,v),Mn.trigger("series:afterupdate",v,h,p)},Dn=function(c){c[G1]=!0,c.getZr().wakeUp()},Ou=function(c){c[Mp]=(c[Mp]+1)%1e6},B2=function(c){c[G1]&&(c.getZr().storage.traverse(function(v){hu(v)||i(v)}),c[G1]=!1)};function i(c){for(var v=[],h=c.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||v.push(p)}c.selected&&c.states.select&&v.push("select"),c.hoverState===Dd&&c.states.emphasis?v.push("emphasis"):c.hoverState===ac&&c.states.blur&&v.push("blur"),c.useStates(v)}function o(c,v){var h=c._zr;if(h.painter.type==="canvas"){var d=h.storage,p=0;d.traverse(function(y){y.isGroup||p++});var g=p>ut(v.get("hoverLayerThreshold"),LL.hoverLayerThreshold)&&!te.node&&!te.worker;(c._usingTHL||g)&&(v.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=c._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==du&&(S.hoverLayer=g?kI:RI)})}}),c._usingTHL=g)}}function s(c,v){var h=c.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(c,v){if(!c.preventAutoZ){var h=bs(c);v.eachRendered(function(d){return Zd(d,h.z,h.zlevel),!0})}}function u(c,v){v.eachRendered(function(h){if(!hu(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,v){var h=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(hu(y))return;if(y instanceof Gt&&a8(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}O2=function(c){return new(function(v){V(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){li(d,p),Dn(c)},h.prototype.leaveEmphasis=function(d,p){ui(d,p),Dn(c)},h.prototype.enterBlur=function(d){jD(d),Dn(c)},h.prototype.leaveBlur=function(d){T_(d),Dn(c)},h.prototype.enterSelect=function(d){JD(d),Dn(c)},h.prototype.leaveSelect=function(d){QD(d),Dn(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},h.prototype.getECUpdateCycleVersion=function(){return c[Mp]},h.prototype.usingTHL=function(){return c._usingTHL},h}(GD))(c)},N2=function(c){function v(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[H1]=d}}M(Z1,function(h,d){c._messageCenter.on(d,function(p){if(F2[c.group]&&c[H1]!==A2){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),y=[];M(Rc,function(m){m!==c&&m.group===c.group&&y.push(m)}),v(y,A2),M(y,function(m){m[H1]!==i9&&m.dispatchAction(g)}),v(y,o9)}})})}}(),t}(dn),X1=V2.prototype;X1.on=M2("on"),X1.off=M2("off"),X1.one=function(r,t,e){var n=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(r,a)}this.on.call(this,r,a,e)};var s9=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ddt(r){}var Pp={},Z1={},K1={},q1=[],j1=[],Ep=[],z2={},J1={},Rc={},F2={},l9=+new Date-0,Q1="_echarts_instance_";function u9(r,t,e){var n=!(e&&e.ssr);if(n){var a=f9(r);if(a)return a}var i=new V2(r,t,e);return i.id="ec_"+l9++,Rc[i.id]=i,n&&JM(r,Q1,i.id),N2(i),Mn.trigger("afterinit",i),i}function f9(r){return Rc[OU(r,Q1)]}function G2(r,t){z2[r]=t}function H2(r){Lt(j1,r)<0&&j1.push(r)}function $2(r,t){eS(q1,r,t,J7)}function c9(r){tS("afterinit",r)}function v9(r){tS("afterupdate",r)}function tS(r,t){Mn.on(r,t)}function Ma(r,t,e){var n,a,i,o,s;yt(t)&&(e=t,t=""),xt(r)?(n=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(n=r,a=t);function l(f){return f.toLowerCase()}a=l(a||n);var u=i?l(n):a;Pp[n]||(yr(C2.test(n)&&C2.test(a)),i&&yr(a!==n),Pp[n]={actionType:n,refinedEventType:a,nonRefinedEventType:u,update:o,action:e,refineEvent:i},K1[a]=1,i&&s&&(K1[u]=1),Z1[u]=n)}function h9(r,t){Sc.register(r,t)}function d9(r,t){eS(Ep,r,t,b2,"layout")}function Hs(r,t){eS(Ep,r,t,w2,"visual")}var U2=[];function eS(r,t,e,n,a,i){if((yt(t)||xt(t))&&(e=t,t=n),!(Lt(U2,e)>=0)){U2.push(e);var o=XP.wrapStageHandler(e,a);o.__prio=t,o.__raw=e,r.push(o)}}function W2(r,t){J1[r]=t}function p9(r,t,e){var n=h7("registerMap");n&&n(r,t,e)}var g9=S6;Hs(F1,Y6),Hs(Ap,X6),Hs(Ap,Z6),Hs(F1,l7),Hs(Ap,u7),Hs(T2,W7),H2(qL),$2(K7,QY),W2("default",K6),Ma({type:ds,event:ds,update:ds},Te),Ma({type:Id,event:Id,update:Id},Te),Ma({type:Ld,event:x_,update:Ld,action:Te,refineEvent:rS,publishNonRefinedEvent:!0}),Ma({type:S_,event:x_,update:S_,action:Te,refineEvent:rS,publishNonRefinedEvent:!0}),Ma({type:Pd,event:x_,update:Pd,action:Te,refineEvent:rS,publishNonRefinedEvent:!0});function rS(r,t,e,n){return{eventContent:{selected:QW(e),isFromClick:t.isFromClick||!1}}}G2("default",{}),G2("dark",o7);var Y2=[],y9={registerPreprocessor:H2,registerProcessor:$2,registerPostInit:c9,registerPostUpdate:v9,registerUpdateLifecycle:tS,registerAction:Ma,registerCoordinateSystem:h9,registerLayout:d9,registerVisual:Hs,registerTransform:g9,registerLoading:W2,registerMap:p9,registerImpl:v7,PRIORITY:a9,ComponentModel:Yt,ComponentView:be,SeriesModel:me,ChartView:ve,registerComponentModel:function(r){Yt.registerClass(r)},registerComponentView:function(r){be.registerClass(r)},registerSeriesModel:function(r){me.registerClass(r)},registerChartView:function(r){ve.registerClass(r)},registerCustomSeries:function(r,t){d7(r,t)},registerSubTypeDefaulter:function(r,t){Yt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){uU(r,t)}};function Nt(r){if(Y(r)){M(r,function(t){Nt(t)});return}Lt(Y2,r)>=0||(Y2.push(r),yt(r)&&(r={install:r}),r.install(y9))}function kc(r){return r==null?0:r.length||1}function X2(r){return r}var m9=function(){function r(t,e,n,a,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||X2,this._newKeyGetter=a||X2,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},a=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=kc(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],f=a[l],c=kc(u),v=kc(f);if(c>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(c===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(c===1&&v===1)this._update&&this._update(f,u),a[l]=null;else if(c>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var a=t[n],i=e[a],o=kc(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[a]=null}},r.prototype._initIndexMap=function(t,e,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!e){var l=e[s],u=kc(l);u===0?(e[s]=o,i&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const di=m9;var _9=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function S9(r,t){var e={},n=e.encode={},a=ot(),i=[],o=[],s={};M(r.dimensions,function(v){var h=r.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;nS(n,d)[p]=v,h.isExtraCoord||(a.set(d,1),x9(h.type)&&(i[0]=v),nS(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}BD.each(function(g,y){var m=nS(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};a.each(function(v,h){var d=n[h];u[h]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=K(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(i=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,e.userOutput=new _9(s,t),e}function nS(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Rp(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function x9(r){return!(r==="ordinal"||r==="time")}var b9=function(){function r(t){this.otherDims={},t!=null&&W(this,t)}return r}();const kp=b9;var w9=Et(),T9={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Z2=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=q2(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return ut(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=tP(this.source),n=!j2(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=T9[u]||"f",f&&(a+=f.uid),a+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(e);o&&(a=o.name)}t.push(a)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function K2(r){return r instanceof Z2}function aS(r){for(var t=ot(),e=0;e<(r||[]).length;e++){var n=r[e],a=xt(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,e)}return t}function q2(r){var t=w9(r);return t.dimNameMap||(t.dimNameMap=aS(r.dimensionsDefine))}function j2(r){return r>30}var Oc=xt,ho=K,C9=typeof Int32Array>"u"?Array:Int32Array,A9="e\0\0",J2=-1,M9=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],D9=["_approximateExtent"],Q2,Op,Nc,Bc,iS,Vc,oS,I9=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;K2(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],v=et(c)?new kp({name:c}):c instanceof kp?c:new kp(c),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(h),i[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),a&&(v.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ot();M(o,function(g){p.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var a=this._schema.getSourceDimension(e);if(a)return a.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Wt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var a=this,i;if(t instanceof A1&&(i=t),!i){var o=this.dimensions,s=_1(t)||pr(t)?new nP(t,o.length):t;i=new A1;var l=ho(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=S9(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=e[l],o&&oS(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var a=this._dimInfos[e[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==io&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===ln;if(l&&!a.pure)for(var u=[],f=t;f<e;f++){var c=a.getItem(f,u);if(!this.hasItemOption&&bU(c)&&(this.hasItemOption=!0),c){var v=c.name;i[f]==null&&v!=null&&(i[f]=Fe(v,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Fe(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)oS(this,f);Q2(this)}},r.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Oc(t)?W(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=Nc(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},r.prototype.getId=function(t){return Op(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,a=this._store;return Y(t)?a.getValues(ho(t,function(i){return n._getStoreDimIndex(i)}),e):a.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,a=e.length;n<a;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],a=n&&n[e];return a==null||isNaN(a)?J2:a},r.prototype.each=function(t,e,n){yt(t)&&(n=e,e=t,t=[]);var a=n||this,i=ho(Bc(t),this._getStoreDimIndex,this);this._store.each(i,a?it(e,a):e)},r.prototype.filterSelf=function(t,e,n){yt(t)&&(n=e,e=t,t=[]);var a=n||this,i=ho(Bc(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?it(e,a):e),this},r.prototype.selectRange=function(t){var e=this,n={},a=Ut(t);return M(a,function(i){var o=e._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){yt(t)&&(n=e,e=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(e&&e.apply(this,arguments))},n),a},r.prototype.map=function(t,e,n,a){var i=n||a||this,o=ho(Bc(t),this._getStoreDimIndex,this),s=Vc(this);return s._store=this._store.map(o,i?it(e,i):e),s},r.prototype.modify=function(t,e,n,a){var i=n||a||this,o=ho(Bc(t),this._getStoreDimIndex,this);this._store.modify(o,i?it(e,i):e)},r.prototype.downSample=function(t,e,n,a){var i=Vc(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,a),i},r.prototype.minmaxDownSample=function(t,e){var n=Vc(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Vc(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new qt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new di(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Op(t,n)},function(n){return Op(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Oc(t)?W(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],a=n&&n[e];return a??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[e];return i==null&&(i=this.getVisual(e),Y(i)?i=i.slice():Oc(i)&&(i=W({},i)),a[e]=i),i},r.prototype.setItemVisual=function(t,e,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Oc(e)?W(a,e):a[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Oc(t)?W(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?W(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;y_(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,a){n&&t&&t.call(e,n,a)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ho(this.dimensions,this._getDimInfo,this),this.hostModel)),iS(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];yt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return e.apply(this,[a].concat(Vm(arguments)))})},r.internalField=function(){Q2=function(t){var e=t._invertedIndicesMap;M(e,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=e[a]=new C9(o.categories.length);for(var l=0;l<n.length;l++)n[l]=J2;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Nc=function(t,e,n){return Fe(t._getCategory(e,n),null)},Op=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=Nc(t,t._idDimIdx,e)),n==null&&(n=A9+e),n},Bc=function(t){return Y(t)||(t=t!=null?[t]:[]),t},Vc=function(t){var e=new r(t._schema?t._schema:ho(t.dimensions,t._getDimInfo,t),t.hostModel);return iS(e,t),e},iS=function(t,e){M(M9.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,M(D9,function(n){t[n]=dt(e[n])}),t._calculationInfo=W({},e._calculationInfo)},oS=function(t,e){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=a[e];if(s==null&&i!=null&&(n[e]=s=Nc(t,i,e)),l==null&&o!=null&&(a[e]=l=Nc(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[e]=l}}}(),r}();const zr=I9;function zc(r,t){_1(r)||(r=x1(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],a=ot(),i=[],o=L9(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&j2(o),l=n===r.dimensionsDefine,u=l?q2(r):aS(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=ot(f),v=new yP(o),h=0;h<v.length;h++)v[h]=-1;function d(T){var D=v[T];if(D<0){var A=n[T],L=xt(A)?A:{name:A},I=new kp,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=i.length;return v[T]=R,I.storeDimIndex=T,i.push(I),I}return i[D]}if(!s)for(var h=0;h<o;h++)d(h);c.each(function(T,D){var A=ue(T).slice();if(A.length===1&&!et(A[0])&&A[0]<0){c.set(D,!1);return}var L=c.set(D,[]);M(A,function(I,P){var R=et(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,g(d(R),D,P))})});var p=0;M(e,function(T){var D,A,L,I;if(et(T))D=T,I={};else{I=T,D=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=W({},I),I.ordinalMeta=P,A=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=c.get(D);if(R!==!1){if(R=ue(R),!R.length)for(var E=0;E<(A&&A.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}M(R,function(N,O){var G=d(N);if(l&&I.type!=null&&(G.type=I.type),g(_t(G,I),D,O),G.name==null&&A){var $=A[O];!xt($)&&($={name:$}),G.name=G.displayName=$.name,G.defaultTooltip=$.defaultTooltip}L&&_t(G.otherDims,L)})}});function g(T,D,A){BD.get(D)!=null?T.otherDims[D]=A:(T.coordDim=D,T.coordDimIndex=A,a.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(T){T.name==null&&(T.name=T.coordDim)}if(s)M(i,function(T){x(T)}),i.sort(function(T,D){return T.storeDimIndex-D.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),C=w.coordDim;C==null&&(w.coordDim=P9(S,a,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(RL(r,b)===or.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return yd(i,function(T){return T.name},function(T,D){D>0&&(T.name=T.name+(D-1))}),new Z2({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function L9(r,t,e,n){var a=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(i){var o;xt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function P9(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var E9=function(){function r(t){this.coordSysDims=[],this.axisMap=ot(),this.categoryAxisMap=ot(),this.coordSysName=t}return r}();function R9(r){var t=r.get("coordinateSystem"),e=new E9(t),n=k9[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var k9={cartesian2d:function(r,t,e,n){var a=r.getReferringComponents("xAxis",Me).models[0],i=r.getReferringComponents("yAxis",Me).models[0];t.coordSysDims=["x","y"],e.set("x",a),e.set("y",i),Nu(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Nu(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var a=r.getReferringComponents("singleAxis",Me).models[0];t.coordSysDims=["single"],e.set("single",a),Nu(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var a=r.getReferringComponents("polar",Me).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Nu(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Nu(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 a=r.ecModel,i=a.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Nu(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,n){var a=r.getReferringComponents("matrix",Me).models[0];t.coordSysDims=["x","y"];var i=a.getDimensionModel("x"),o=a.getDimensionModel("y");e.set("x",i),e.set("y",o),n.set("x",i),n.set("y",o)}};function Nu(r){return r.get("type")==="category"}function O9(r,t,e){e=e||{};var n=e.byIndex,a=e.stackedCoordDimension,i,o,s;N9(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,v,h=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(M(i,function(S,x){et(S)&&(i[x]=S={name:S}),d(S)||(h=!1)}),M(i,function(S,x){l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!f&&d(S)&&(!h||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(f=S))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=f.coordDim,g=f.type,y=0;M(i,function(S){S.coordDim===p&&y++});var m={name:c,coordDim:p,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:v,coordDim:v,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(v,g),_.storeDimIndex=s.ensureCalculationDimension(c,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:c}}function N9(r){return!K2(r.schema)}function po(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function tE(r,t){return po(r,t)?r.getCalculationInfo("stackResultDimension"):t}function B9(r,t){var e=r.get("coordinateSystem"),n=Sc.get(e),a;return t&&t.coordSysDims&&(a=K(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=Rp(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function V9(r,t,e){var n,a;return e&&M(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(r[n].otherDims.itemName=0),n}function pi(r,t,e){e=e||{};var n=t.getSourceManager(),a,i=!1;r?(i=!0,a=x1(r)):(a=n.getSource(),i=a.sourceFormat===ln);var o=R9(t),s=B9(t,o),l=e.useEncodeDefaulter,u=yt(l)?l:l?Bt(EL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=zc(a,f),v=V9(c.dimensions,e.createInvertedIndices,o),h=i?null:n.getSharedDataStore(c),d=O9(t,{schema:c,store:h}),p=new zr(c,t);p.setCalculationInfo(d);var g=v!=null&&z9(a)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function z9(r){if(r.sourceFormat===ln){var t=F9(r.data||[]);return!Y(eu(t))}}function F9(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var eE=function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();md(eE);const Da=eE;var G9=0,H9=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++G9,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,n=e.data,a=n&&K(n,$9);return new r({categories:a,needCollect:!a,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(!et(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var a=this._getOrCreateMap();return e=a.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,a.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ot(this.categories))},r}();function $9(r){return xt(r)&&r.value!=null?r.value:r+""}const Fc=H9;var Qr=0,Gc=1,U9={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},rE=Ut(U9),gi=2,nE=3;function sS(r,t,e){var n;r=r||{};var a=Le();if(a){var i=a.createBreakScaleMapper(t,e);i.hasBreaks()&&(M(rE,function(o){i[o]&&(r[o]=it(i[o],i))}),n=i)}return n==null&&fS(r,e),{brk:n,mapper:r}}function lS(r,t){M(rE,function(e){r[e]=t[e]})}function uS(r,t){r.freeze=Te}function Hc(r){return r.getExtentUnsafe(Qr,gi)}function $c(r,t){return r.getExtentUnsafe(Gc,t)||r.getExtentUnsafe(Qr,t)}function W9(r){var t=$c(r,nE);return t[1]-t[0]}function Np(r){var t=r.getExtentUnsafe(Qr,nE);return t[1]-t[0]}function fS(r,t){var e=r||{},n=[];return e._extents=n,n[Qr]=t?t.slice():ar(),W(e,Y9),e}var Y9={needTransform:function(){return!1},normalize:function(r){var t=this._extents[Gc]||this._extents[Qr];return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])},scale:function(r){var t=this._extents[Gc]||this._extents[Qr];return r*(t[1]-t[0])+t[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var t=$c(this,null);return r>=t[0]&&r<=t[1]},getExtent:function(){return this._extents[Qr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,t){aE(this._extents,Qr,r,t)},setExtent2:function(r,t,e){var n=this._extents;n[r]||(n[r]=n[Qr].slice()),aE(n,r,t,e)},freeze:function(){}};function aE(r,t,e,n){ns(e,n)&&(r[t][0]=e,r[t][1]=n)}function iE(r){return Bp(r)||Bu(r)}function Bp(r){return r.type==="interval"}function Uc(r){return r.type==="time"}function Bu(r){return r.type==="log"}function wr(r){return r.type==="ordinal"}function X9(r){var t=H0(r),e=Jo(10,t),n=ei(r/e);return n?n===2?n=3:n===3?n=5:n*=2:n=1,Zt(n*e,-t)}function $s(r){return ri(r)+2}function Vp(r,t){return jf(r)/jf(t)}function cS(r,t,e){var n=e&&e.lookup;if(n){for(var a=0;a<n.from.length;a++)if(r===n.from[a])return n.to[a]}return Jo(t,r)}function oE(r,t,e){var n=r.slice();if(n[0]===n[1]){var a=e&&e.ctnShp;if(n[0]!==0){var i=Ae(n[0]);t[1]||(n[1]+=i/2),n[0]-=i/2}else a&&(n[0]=-1),n[1]=1}return(!ai(n[0])||!ai(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function Z9(r,t){return[r[0]!==t[0],r[1]!==t[1]]}function zp(r,t){return r=r||t,ei(Vt(r,1))}function sE(r,t,e){var n=Hc(r),a=n[0],i=r.count(),o=Math.max((t||0)+1,1);a!==0&&o>1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&l(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)l(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&l(n[1],!0,!0);function l(u,f,c){e({value:u,offInterval:f},c)}}var lE=function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="ordinal",n.parse=t.parse,lS(n,t.decoratedMethods);var a=e.ordinalMeta;a||(a=new Fc({})),Y(a)&&(a=new Fc({categories:K(a,function(o){return xt(o)?o.value:o})})),n._ordinalMeta=a;var i=sS(null,null,e.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,uS(n),n}return t.parse=function(e){return e==null?e=NaN:et(e)?(e=this._ordinalMeta.getOrdinal(e),e==null&&(e=NaN)):e=ei(e),e},t.prototype.getTicks=function(){var e=[];return sE(this,0,function(n){e.push(n)}),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,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=ae(s,n.length);o<l;++o){var u=a[o]=n[o];i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;a[o]=f,i[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){var e=Hc(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(ei(this._mapper.scale(e)))},transformIn:function(e,n){return this._mapper.transformIn(this._getTickNumber(e),n)},transformOut:function(e,n){return this.getRawOrdinalNumber(this._mapper.transformOut(e,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,n){return this._mapper.getExtentUnsafe(e,n)},setExtent:function(e,n){return this._mapper.setExtent(e,n)},setExtent2:function(e,n,a){return this._mapper.setExtent2(e,n,a)}},t}(Da);Da.registerClass(lE);const Fp=lE;function vS(r,t,e,n){for(var a=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,c=[],v=l.value-u.value,h=v/t,d=$s(h);f<t-1;){var p=Zt(u.value+(f+1)*h,d);p>o[0]&&p<o[1]&&c.push(p),f++}var g=Le();g&&g.pruneTicksByBreak("auto",c,e,function(y){return y},n,o),i.push(c)}}return i}var uE=function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="interval",n.parse=t.parse,e=e||{};var a=eL(n,e),i=sS(n,a,null);return n.brk=i.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return t.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.getConfig=function(){return dt(this._cfg)},t.prototype.setConfig=function(e){var n=Hc(this);this._cfg=e=dt(e),e.niceExtent==null&&(e.niceExtent=n.slice()),e.intervalPrecision==null&&(e.intervalPrecision=$s(e.interval))},t.prototype.getTicks=function(e){e=e||{};var n=this._cfg,a=n.interval,i=Hc(this),o=n.niceExtent,s=n.intervalPrecision,l=Le(),u=this.brk,f=l&&u,c=[];if(!a)return c;if(e.breakTicks==="only_break"&&f)return l.addBreaksToTicks(c,u.breaks,i),c;var v=3e3;i[0]<o[0]&&c.push({value:e.expandToNicedExtent?Zt(o[0]-a,s):i[0]});for(var h=function(_,S){return ei((S-_)/a)},d=n.intervalCount,p=o[0],g=0;;g++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(g>d)break;p=ae(p,o[1]),g===d&&(p=o[1])}if(c.push({value:p}),p=Zt(p+a,s),u){var y=u.calcNiceTickMultiple(p,h);y>=0&&(p=Zt(p+y*a,s))}if(c.length>0&&p===c[c.length-1].value)break;if(c.length>v)return[]}var m=c.length?c[c.length-1].value:o[1];return i[1]>m&&c.push({value:e.expandToNicedExtent?Zt(m+a,s):i[1]}),f&&l.pruneTicksByBreak(e.pruneByBreak,c,u.breaks,function(_){return _.value},n.interval,i),f&&e.breakTicks!=="none"&&l.addBreaksToTicks(c,u.breaks,i),c},t.prototype.getMinorTicks=function(e){return vS(this,e,tp(this),this._cfg.interval)},t.prototype.getLabel=function(e,n){if(e==null)return"";var a=n&&n.precision;a==null?a=ri(e.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=Zt(e.value,a,!0);return cL(i)},t.type="interval",t}(Da);Da.registerClass(uE);const Us=uE;var K9=function(r,t,e,n){for(;e<n;){var a=e+n>>>1;r[a][1]<t?e=a+1:n=a}return e},fE=function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="time",n.parse=t.parse,n._locale=e.locale,n._useUTC=e.useUTC,n._interval=0;var a=eL(n,e),i=sS(n,a,null);return n.brk=i.brk,n}return t.prototype.getLabel=function(e){return ap(e.value,nL[gY(yc(this._minLevelUnit))]||nL.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,n,a){return yY(e,n,a,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e=e||{};var n=this._interval,a=Hc(this),i=Le(),o=this.brk,s=i&&o,l=[];if(!n)return l;var u=this._useUTC;if(s&&e.breakTicks==="only_break")return Le().addBreaksToTicks(l,o.breaks,a),l;l=rX(this._minLevelUnit,this._approxInterval,u,a,Np(this),o);var f=fn.length-1,c=0;return M(l,function(v){v.time&&(f=Math.min(f,Lt(fn,v.time.upperTimeUnit)),c=Math.max(c,v.time.level))}),s&&Le().pruneTicksByBreak(e.pruneByBreak,l,o.breaks,function(v){return v.value},this._approxInterval,a),s&&e.breakTicks!=="none"&&Le().addBreaksToTicks(l,o.breaks,a,function(v){for(var h=Math.max(Lt(fn,Su(v.vmin,u)),Lt(fn,Su(v.vmax,u))),d=0,p=0;p<fn.length;p++)if(!cE(fn[p],v.vmin,v.vmax,u)){d=p;break}var g=Math.min(d,f),y=Math.max(g,h);return{level:c,lowerTimeUnit:fn[y],upperTimeUnit:fn[g]}}),l},t.prototype.getMinorTicks=function(e){return vS(this,e,tp(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Wt(e)?Math.round(e):+ts(e)},t.type="time",t}(Da),Gp=[["second",Q_],["minute",t1],["hour",gc],["quarter-day",gc*6],["half-day",gc*12],["day",Cn*1.2],["half-week",Cn*3.5],["week",Cn*7],["month",Cn*31],["quarter",Cn*95],["half-year",rL/2],["year",rL]];function cE(r,t,e,n){return e1(new Date(t),r,n).getTime()===e1(new Date(e),r,n).getTime()}function q9(r,t){return r/=Cn,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function j9(r){var t=30*Cn;return r/=t,r>6?6:r>3?3:r>2?2:1}function J9(r){return r/=gc,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function vE(r,t){return r/=t?t1:Q_,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Q9(r){return Vt($0(r,!0),1)}function tX(r,t,e){var n=Math.max(0,Lt(fn,t)-1);return e1(new Date(r),fn[n],e).getTime()}function eX(r,t){var e=new Date(0);e[r](1);var n=e.getTime();e[r](1+t);var a=e.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function rX(r,t,e,n,a,i){var o=3e3,s=vY,l=0;function u(E,N,O,G,$,H,X){for(var q=eX($,E),J=N,Q=new Date(J);J<O&&J<=n[1]&&(X.push({value:J}),!(l++>o));)if(Q[$](Q[G]()+E),J=Q.getTime(),i){var St=i.calcNiceTickMultiple(J,q);St>0&&(Q[$](Q[G]()+St*E),J=Q.getTime())}X.push({value:J,notAdd:J>n[1]})}function f(E,N,O){var G=[],$=!N.length;if(!cE(yc(E),n[0],n[1],e)){$&&(N=[{value:tX(n[0],E,e)},{value:n[1]}]);for(var H=0;H<N.length-1;H++){var X=N[H].value,q=N[H+1].value;if(X!==q){var J=void 0,Q=void 0,St=void 0,Ht=!1;switch(E){case"year":J=Math.max(1,Math.round(t/Cn/365)),Q=aL(e),St=mY(e);break;case"half-year":case"quarter":case"month":J=j9(t),Q=r1(e),St=iL(e);break;case"week":case"half-week":case"day":J=q9(t),Q=n1(e),St=oL(e),Ht=!0;break;case"half-day":case"quarter-day":case"hour":J=J9(t),Q=a1(e),St=sL(e);break;case"minute":J=vE(t,!0),Q=i1(e),St=lL(e);break;case"second":J=vE(t,!1),Q=o1(e),St=uL(e);break;case"millisecond":J=Q9(t),Q=s1(e),St=fL(e);break}q>=n[0]&&X<=n[1]&&u(J,X,q,Q,St,Ht,G),E==="year"&&O.length>1&&H===0&&O.unshift({value:O[0].value-J})}}for(var H=0;H<G.length;H++)O.push(G[H])}}for(var c=[],v=[],h=0,d=0,p=0;p<s.length;++p){var g=yc(s[p]);if(pY(s[p])){f(s[p],c[c.length-1]||[],v);var y=s[p+1]?yc(s[p+1]):null;if(g!==y){if(v.length){d=h,v.sort(function(E,N){return E.value-N.value});for(var m=[],_=0;_<v.length;++_){var S=v[_].value;(_===0||v[_-1].value!==S)&&(m.push(v[_]),S>=n[0]&&S<=n[1]&&h++)}var x=a/t;if(h>x*1.5&&d>x/1.5||(c.push(m),h>x||r===s[p]))break}v=[]}}}for(var b=ne(K(c,function(E){return ne(E,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(E){return E.length>0}),w=b.length-1,C=[],p=0;p<b.length;++p)for(var T=b[p],D=0;D<T.length;++D){var A=Su(T[D].value,e);C.push({value:T[D].value,time:{level:w-p,upperTimeUnit:A,lowerTimeUnit:A}})}yd(C,FU,null),C.sort(function(E,N){return E.value-N.value});var L=C[0],I=C[C.length-1],P=Su(n[0],e),R=Su(n[1],e);return(!L||L.value>n[0])&&C.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!I||I.value<n[1])&&C.push({value:n[1],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),C}var nX=function(r,t){var e=r.getExtent();if(e[0]===e[1]&&(e[0]-=Cn,e[1]+=Cn),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-Cn}r.setExtent(e[0],e[1]);var a=zp(t.splitNumber,10),i=Np(r)/a,o=t.minInterval,s=t.maxInterval;o!=null&&i<o&&(i=o),s!=null&&i>s&&(i=s);var l=Gp.length,u=Math.min(K9(Gp,i,0,l),l-1),f=Gp[u][1],c=Gp[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:c})};Da.registerClass(fE);const aX=fE;var Hp=0,$p=1,iX=2,hE=function(r){V(t,r);function t(e){var n=r.call(this)||this;n.type="log",n.parse=Us.parse,n.base=e.logBase||10;var a=[],i=[],o=n._lookup={from:a,to:i};a[Hp]=a[$p]=i[Hp]=i[$p]=NaN,lS(n,t.mapperMethods);var s=Le(),l=e.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},iX,u),n.powStub=new Us({breakParsed:u.original}),n.intervalStub=new Us({breakParsed:u.transformed}),uS(n,n.intervalStub),n}return t.prototype.getTicks=function(e){var n=this.base,a=this.powStub,i=Le(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return K(o.getTicks(e||{}),function(f){var c=f.value,v=cS(c,n,u),h;if(i){var d=i.getTicksBreakOutwardTransform(this,f,tp(a),this._lookup);d&&(h=d.vBreak,v=d.tickVal)}return{value:v,break:h}},this)},t.prototype.getMinorTicks=function(e){return vS(this,e,tp(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,n){return this.intervalStub.getLabel(e,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Vp(e,this.base))},scale:function(e){return cS(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,n){return e=Vp(e,this.base),n&&n.depth===gi?e:this.intervalStub.transformIn(e,n)},transformOut:function(e,n){var a=n?n.depth:null;return dE.depth=a,pE.lookup=this._lookup,cS(a===gi?e:this.intervalStub.transformOut(e,dE),this.base,pE)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,n){this.setExtent2(Qr,e,n)},setExtent2:function(e,n,a){if(!(!ns(n,a)||n<=0||a<=0)){var i=gE,o=gE;if(e===Qr){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(e,i[Hp]=n,i[$p]=a);var l=this.base;this.intervalStub.setExtent2(e,o[Hp]=Vp(n,l),o[$p]=Vp(a,l))}},getFilter:function(){return{g:0}},sanitize:function(e,n){return ns(n[0],n[1])&&Sn(e)&&e<=0&&(e=n[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,n){return n===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,n)}},t}(Da);Da.registerClass(hE);var dE={},pE={},gE=[];const oX=hE;var yE={value:1,category:1,time:1,log:1},mE=Et();function Up(r){var t=r.get("type");return(t==null||!st(yE,t)&&!Da.getClass(t))&&(t="value"),t}function Wc(r,t,e){var n=Le(),a;switch(n&&(a=_E(r,t,e)),t){case"category":return new Fp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:ar()});case"time":return new aX({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new oX({logBase:r.get("logBase"),breakOption:a});case"value":return new Us({breakOption:a});default:return new(Da.getClass(t)||Us)({})}}function sX(r,t,e){var n=e?$c(r,null):r.getExtentUnsafe(Qr,null),a=n[0],i=n[1];return ns(a,i)?a===t||i===t?uX:a<t&&i>t?lX:hS:hS}var lX=1,uX=2,hS=3;function fX(r){mE(r).noOnMyZero=!0}function cX(r){return mE(r).noOnMyZero}function Yc(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=hY(t);return function(a,i){return r.scale.getFormattedLabel(a,i,e)}}else{if(et(t))return function(a){var i=r.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(yt(t)){if(r.type==="category")return function(a,i){return t(Wp(r,a),a.value-r.scale.getExtent()[0],null)};var n=Le();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(Wp(r,a),i,o)}}else return function(a){return r.scale.getLabel(a)}}}function Wp(r,t){var e=r.scale;return wr(e)?e.getLabel(t):t.value}function dS(r){var t=r.get("interval");return t??"auto"}function vX(r){return r.type==="category"&&dS(r.getLabelModel())===0}function hX(r,t){var e={};return M(r.mapDimensionsAll(t),function(n){e[tE(r,n)]=!0}),Ut(e)}function Vu(r){return r==="middle"||r==="center"}function Xc(r){return r.getShallow("show")}function _E(r,t,e){var n=r.get("breaks",!0);if(n!=null)return!Le()||!e||!dX(t)?void 0:n}function dX(r){return r!=="category"}function SE(r,t,e,n,a,i){var o=Bu(r),s=o?r.intervalStub:r;if(s.setExtent(n[0],n[1]),o){var l=r.powStub,u={depth:gi},f=r.transformOut(n[0],u),c=r.transformOut(n[1],u),v=Z9(e,n);t[0]&&!v[0]&&(f=a[0]),t[1]&&!v[1]&&(c=a[1]),l.setExtent(f,c)}s.setConfig(i)}function zu(r,t){return wr(r)?r.getRawOrdinalNumber(t.value):t.value}function Zc(r,t){return wr(r)&&!!t.get("boundaryGap")}var Kc=function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}(),pX=au(),Yp="|&",Fu=Et(),xE=-2,gX=-1,yX=Et();function pS(r,t){var e=r.model,n=Fu(Du(e.ecModel)).keyed,a=n&&n.get(t);return a&&a.get(e.uid)}function mX(r,t){return wE(pS(r,t))}function _X(r,t){var e=[];return bE(r.model.ecModel,function(n){for(var a=0;a<t.length;a++)t[a]&&n.serByIdx[t[a].seriesIndex]&&e.push(wE(n))}),e}function bE(r,t){var e=Fu(Du(r)).keyed;e&&e.each(function(n,a){n.each(function(i,o){t(i,a,o)})})}function wE(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function SX(r,t){var e=r.model.ecModel,n=Fu(Du(e)).axSer;n&&Xp(e,n.get(r.model.uid),t)}function Ws(r,t,e){var n=pS(r,t);n&&Xp(r.model.ecModel,n.sers,e)}function Xp(r,t,e){if(t)for(var n=0;n<t.length;n++){var a=t[n];r.isSeriesFiltered(a)||e(a)}}function xX(r,t){var e=pS(r,t);if(!e||!e.sers.length)return 0;var n=0;return Xp(r.model.ecModel,e.sers,function(){n++}),n}function gS(r,t,e){var n=Fu(Du(r)).keyed,a=n&&n.get(t);a&&a.each(function(i){e(i.axis)})}function TE(r,t){var e=r.model,n=Fu(Du(e.ecModel)).keys;n&&M(n.get(e.uid),function(a){t(a)})}function bX(r){var t=yX(r2(r)),e=t.keyed||(t.keyed=ot());bE(r,function(n,a,i){var o=e.get(a)||e.set(a,ot()),s=o.get(i)||o.set(i,{});n.metrics.liPosMinGap&&CE.liPosMinGap(r,n,s)})}function wX(r,t){CE[r]=t}var CE={};function Ys(r,t,e){if(r){var n=t.ecModel,a=Fu(Du(n)),i=r.model.uid,o=a.axSer||(a.axSer=ot()),s=o.get(i)||o.set(i,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===r,f=_S.get(yS(l,u,e))||_S.get(yS(l,u,null));if(f){var c=a.keyed||(a.keyed=ot()),v=a.keys||(a.keys=ot()),h=f.key,d=c.get(h)||c.set(h,ot()),p=d.get(i);p||(p=d.set(i,{axis:r,sers:[],serByIdx:[]}),p.metrics=f.getMetrics(r),(v.get(i)||v.set(i,[])).push(h)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function yS(r,t,e){return r+Yp+ut(t,!0)+Yp+(e||"")}function mS(r,t){var e=yS(t.seriesType,t.baseAxis,t.coordSysType);_S.set(e,t),pX(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:bX})})}var _S=ot(),TX=Et(),Gu=1,CX=2,AX=3,AE=function(){function r(t,e,n,a,i){var o=wr(t),s=o?e.getCategories().length:null,l;if(o){var u=e.getCategories(!0);l=u&&!u.length}var f=n.slice();(Bp(t)||Bu(t)||Uc(t))&&(tD(f,qc(t,e.get("dataMin",!0))),eD(f,qc(t,e.get("dataMax",!0)))),VU(f)||(f[0]=f[1]=NaN);var c=[],v=[!1,!1],h=e.get("min",!0);h==="dataMin"?(c[0]=f[0],v[0]=!0):(c[0]=qc(t,yt(h)?h({min:f[0],max:f[1]}):h),v[0]=c[0]!=null);var d=e.get("max",!0);d==="dataMax"?(c[1]=f[1],v[1]=!0):(c[1]=qc(t,yt(d)?d({min:f[0],max:f[1]}):d),v[1]=c[1]!=null);var p=MX(t,e),g=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]==null&&(c[0]=o?l?f[0]:s?0:NaN:f[0]-p[0]*g),c[1]==null&&(c[1]=o?l?f[1]:s?s-1:NaN:f[1]+p[1]*g),!ai(c[0])&&(c[0]=NaN),!ai(c[1])&&(c[1]=NaN);var y=l||gr(c[0])||gr(c[1])||o&&!s,m=Bp(t),_=m&&e.needIncludeZero&&e.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!v[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!v[1]&&(c[1]=0));var S=!1;c[0]>c[1]&&(c.reverse(),S=!0);var x=qc(t,e.get("startValue",!0)),b=x!=null;!Sn(x)&&a&&(x=t.getDefaultStartValue?t.getDefaultStartValue():0),Sn(x)&&(b||!m||_)&&(x<c[0]&&!v[0]?(c[0]=x,v[0]=!0):x>c[1]&&!v[1]&&(c[1]=x,v[1]=!0));var w=this._i={scale:t,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};ME(w,c)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,a=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return e[0]!=null&&(s[0]=e[0],i[0]=a[0]=!0),e[1]!=null&&(s[1]=e[1],i[1]=a[1]=!0),ME(t,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},r}();function ME(r,t){var e=r.scale,n=r.dataMM;e.sanitize&&(t[0]=e.sanitize(t[0],n),t[1]=e.sanitize(t[1],n),gd(t))}function qc(r,t){return t==null?null:gr(t)?NaN:r.parse(t)}function MX(r,t){var e;if(wr(r))e=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),e=Y(n)?n:[n,n]}return[DE(e[0]),DE(e[1])]}function DE(r){return ga(typeof r=="boolean"?0:r,1)||0}function IE(r){var t=TX(r.scale);return t.extent||(t.extent=ar()),t}function DX(r,t){IE(r).dimIdxInCoord=t.get(r.dim)}function Xs(r,t){var e=r.scale,n=r.model,a=r.dim;e.rawExtentInfo||IX(e,r,a,n,t)}function IX(r,t,e,n,a){var i=IE(t),o=i.extent,s=!1;SX(t,function(f){if(f.boxCoordinateSystem){var c=mL(f).coord,v=i.dimIdxInCoord;if(v>=0){if(Y(c)){var h=c[v];h!=null&&!Y(h)&&j0(o,r.parse(h))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var p=r.getFilter?r.getFilter():null;M(hX(d,e),function(g){BU(o,d.getApproximateExtent(g,p))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var l=PX(r,t,n),u=new AE(r,n,o,s,l);LE(r,u,a),i.extent=null}function LX(r,t){var e=r.scale;LE(e,new AE(e,r.model,t,!1,!1),AX)}function LE(r,t,e){r.rawExtentInfo=t,t.from=e}function Zp(r,t){SS.set(r,t)}var SS=ot();function PE(r,t,e,n,a){r.rawExtentInfo||LX({scale:r,model:t},a||ar());var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),n&&i.tggAxInv&&e&&!e.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function PX(r,t,e){var n=Zc(r,e),a=e.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return TE(t,function(o){i=!!SS.get(o)||i}),i}function EX(r,t,e,n){if(e.ctnShp){var a;if(TE(r,function(s){var l=SS.get(s);if(l){var u=l(r,n);u&&(a=a||[0,0],tD(a,u[0]),eD(a,u[1]),fX(r))}}),!!a){var i=t.getExtent();if(wr(t))r.onBand||t.setExtent2(Gc,ae(i[0],i[0]+a[0]),Vt(i[1],i[1]+a[1]));else{var o=i.slice();e.zoomFixMM[0]||(o[0]=ae(o[0],t.transformOut(t.transformIn(o[0],null)+a[0],null))),e.zoomFixMM[1]||(o[1]=Vt(o[1],t.transformOut(t.transformIn(o[1],null)+a[1],null))),(o[0]<i[0]||o[1]>i[1])&&t.setExtent2(Gc,o[0],o[1])}}}}function EE(r,t){var e=Bu(r),n=e?r.intervalStub:r,a=t.fixMinMax||[],i=e?r.getExtent():null,o=n.getExtent(),s=oE(o,a,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var l=e?kX(n,t):RX(n,t),u=l.intervalPrecision,f=l.interval,c=t.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=$s(c)),a[0]||(s[0]=Zt(Hn(s[0]/f)*f,u)),a[1]||(s[1]=Zt(jo(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),SE(r,a,o,s,i,l)}function RX(r,t){var e=zp(t.splitNumber,5),n=Np(r),a=t.minInterval,i=t.maxInterval,o=$0(n/e,!0);a!=null&&o<a&&(o=a),i!=null&&o>i&&(o=i);var s=$s(o),l=r.getExtent(),u=[Zt(jo(l[0]/o)*o,s),Zt(Hn(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function kX(r,t){var e=zp(t.splitNumber,10),n=r.getExtent(),a=Np(r),i=Vt(BM(a),1),o=e/a*i;o<=.5&&(i*=10);var s=$s(i),l=[Zt(jo(n[0]/i)*i,s),Zt(Hn(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:l}}function Hu(r){var t=r.scale,e=r.model,n=e.axis,a=e.ecModel;OX(t,e,n,a,null)}function OX(r,t,e,n,a){var i=PE(r,t,n,e,a),o=Bp(r)||Uc(r);RE(r,{splitNumber:t.get("splitNumber"),fixMinMax:i.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:i}),e&&n&&EX(e,r,i,n)}function RE(r,t){NX[r.type](r,t)}var NX={interval:EE,log:EE,time:nX,ordinal:Te},BX=1e-8;function kE(r,t){return Math.abs(r-t)<BX}function Zs(r,t,e){var n=0,a=r[0];if(!a)return!1;for(var i=1;i<r.length;i++){var o=r[i];n+=oi(a[0],a[1],o[0],o[1],t,e),a=o}var s=r[0];return(!kE(a[0],s[0])||!kE(a[1],s[1]))&&(n+=oi(a[0],a[1],s[0],s[1],t,e)),n!==0}var VX=[];function xS(r,t){for(var e=0;e<r.length;e++)Ce(r[e],r[e],t)}function OE(r,t,e,n){for(var a=0;a<r.length;a++){var i=r[a];n&&(i=n.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Hi(t,t,i),$i(e,e,i))}}function zX(r){for(var t=0,e=0,n=0,a=r.length,i=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;t+=f,e+=(i+l)*f,n+=(o+u)*f,i=l,o=u}return t?[e/t/3,n/t/3,t]:[r[0][0]||0,r[0][1]||0]}var NE=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),BE=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),VE=function(){function r(t){this.type="linestring",this.points=t}return r}(),zE=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,n,a=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>a&&(n=o,a=l)}if(n)return zX(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var n=this._rect;if(n&&!e)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?OE(s.exterior,a,i,e):M(s.points,function(l){OE(l,a,i,e)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new Mt(a[0],a[1],i[0]-a[0],i[1]-a[1]),e||(this._rect=n),n},t.prototype.contain=function(e){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(e[0],e[1]))return!1;t:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Zs(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Zs(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,n,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Mt(e,n,a,i),u=o.calculateTransform(l),f=this.geometries,c=0;c<f.length;c++){var v=f[c];v.type==="polygon"?(xS(v.exterior,u),M(v.interiors,function(h){xS(h,u)})):M(v.points,function(h){xS(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(NE),FX=function(r){V(t,r);function t(e,n){var a=r.call(this,e)||this;return a.type="geoSVG",a._elOnlyForCalculate=n,a}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,n=e.getBoundingRect(),a=[n.x+n.width/2,n.y+n.height/2],i=Hl(VX),o=e;o&&!o.isGeoSVGGraphicRoot;)gn(i,o.getLocalTransform(),i),o=o.parent;return yn(i,i),Ce(a,a,i),a},t}(NE);function GX(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var n=t.features;return M(n,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=FE(s,o,e);break;case"Polygon":bS(s,o,e);break;case"MultiLineString":bS(s,o,e);break;case"MultiPolygon":M(s,function(l,u){return bS(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function bS(r,t,e){for(var n=0;n<r.length;n++)r[n]=FE(r[n],t[n],e)}function FE(r,t,e){for(var n=[],a=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,n.push([s/e,l/e])}return n}function HX(r,t){return r=GX(r),K(ne(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,a=e.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new BE(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new BE(l[0],l.slice(1)))});break;case"LineString":i.push(new VE([a.coordinates]));break;case"MultiLineString":i.push(new VE(a.coordinates))}var s=new zE(n[t||"name"],i,n.cp);return s.properties=n,s})}var $X=Et(),jc=Et(),Kn={estimate:1,determine:2};function Kp(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function UX(r,t){var e=r.getLabelModel().get("customValues");if(e){var n=r.scale;return{labels:K(GE(e,n),function(a,i){return{formattedLabel:Yc(r)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return r.type==="category"?YX(r,t):ZX(r)}function WX(r,t,e){var n=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:GE(a,n)}:r.type==="category"?XX(r,t):{ticks:n.getTicks(e)}}function GE(r,t){var e=t.getExtent(),n=[];return M(r,function(a){a=t.parse(a),a>=e[0]&&a<=e[1]&&n.push(a)}),yd(n,GU,null),nr(n),K(n,function(a){return{value:a}})}function YX(r,t){var e=r.getLabelModel(),n=HE(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:n}function HE(r,t,e){var n=qX(r),a=dS(t),i=e.kind===Kn.estimate;if(!i){var o=UE(n,a);if(o)return o}var s,l;yt(a)?s=qp(r,a,!1):(l=a==="auto"?jX(r,e):a,s=qp(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return wS(n,a,u),!0}):wS(n,a,u),u}function XX(r,t){var e=KX(r),n=dS(t),a=UE(e,n);if(a)return a;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),yt(n))i=qp(r,n,!0);else if(n==="auto"){var s=HE(r,r.getLabelModel(),Kp(Kn.determine));o=s.labelCategoryInterval,i=K(s.labels,function(l){return l.tick})}else o=n,i=qp(r,o,!0);return wS(e,n,{ticks:i,tickCategoryInterval:o})}function ZX(r){var t=r.scale.getTicks(),e=Yc(r);return{labels:K(t,function(n,a){return{formattedLabel:e(n,a),rawLabel:r.scale.getLabel(n),tick:n}})}}var KX=$E("axisTick"),qX=$E("axisLabel");function $E(r){return function(e){return jc(e)[r]||(jc(e)[r]={list:[]})}}function UE(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function wS(r,t,e){return r.list.push({key:t,value:e}),e}function jX(r,t){if(t.kind===Kn.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return jc(r).autoInterval=e,!0}),e}var n=jc(r).autoInterval;return n??(jc(r).autoInterval=r.calculateCategoryInterval(t))}function JX(r,t){var e=t.kind,n=tZ(r),a=Yc(r),i=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],v=r.dataToCoord(c+1)-r.dataToCoord(c),h=Math.abs(v*Math.cos(i)),d=Math.abs(v*Math.sin(i)),p=0,g=0;c<=s[1];c+=u){var y=0,m=0,_=od(a({value:c}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===Kn.estimate)return t.out.noPxChangeTryDetermine.push(it(QX,null,r,b,l)),b;var w=WE(r,b,l);return w??b}function QX(r,t,e){return WE(r,t,e)==null}function WE(r,t,e){var n=$X(r.model),a=r.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=e,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function tZ(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 qp(r,t,e){var n=Yc(r),a=r.scale,i=[],o=yt(t);return sE(a,o?0:t,function(s,l){var u=a.getLabel(s);if(o){var f=!!t(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(e?s:{formattedLabel:n(s),rawLabel:u,tick:s})}),i}var eZ=.8;function sr(r,t){t=t||{};var e={w:NaN,w2:NaN},n=r.scale,a=t.fromStat,i=t.min,o=W9(n);Sn(o)||(o=NaN);var s=r.getExtent(),l=Ae(s[1]-s[0]);return wr(n)?rZ(e,r,o,l):a&&nZ(e,r,o,l,a),i!=null&&(e.w=Sn(e.w)?Vt(i,e.w):i),e}function rZ(r,t,e,n){var a=t.onBand,i=e+(a?1:0);i===0&&(i=1),r.w=n/i,!a&&e&&n&&(r.w2=r.w*e/n)}function nZ(r,t,e,n,a){var i=!1,o=-1/0;M(a.key?[mX(t,a.key)]:_X(t,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),i=!1):l===xE&&(i=!0))}),Sn(e)&&e>0&&Sn(o)?(r.w=n/e*o,r.w2=o):i&&(r.w=n*eZ,r.w2=r.w*e/n)}var YE=[0,1],aZ=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]),a=Math.max(e[0],e[1]);return t>=n&&t<=a},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},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.scale;return t=n.normalize(n.parse(t)),Jt(t,YE,XE(this),e)},r.prototype.coordToData=function(t,e){var n=Jt(t,XE(this),YE,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=WX(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=K(n.ticks,function(s){return{coord:this.dataToCoord(zu(this.scale,s)),tick:s}},this),i=e.get("alignWithLabel"),o=iZ(this,a,i);return K(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(wr(this.scale))return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),a=K(n,function(i){return K(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(t){return t=t||Kp(Kn.determine),UX(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return sr(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(t){return t=t||Kp(Kn.determine),JX(this,t)},r}();function XE(r){var t=r.getExtent();if(r.onBand){var e=t[1]-t[0],n=e/r.scale.count()/2;t[0]+=n,t[1]-=n}return t}function iZ(r,t,e){var n=t.length;if(!r.onBand||e||!n)return!1;var a=sr(r).w;if(!a)return!1;M(t,function(s){s.coord-=a/2});var i=r.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}const qn=aZ;var Jc=Math.PI*2,Ks=ba.CMD,oZ=["top","right","bottom","left"];function sZ(r,t,e,n,a){var i=e.width,o=e.height;switch(r){case"top":n.set(e.x+i/2,e.y-t),a.set(0,-1);break;case"bottom":n.set(e.x+i/2,e.y+o+t),a.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),a.set(-1,0);break;case"right":n.set(e.x+i+t,e.y+o/2),a.set(1,0);break}}function lZ(r,t,e,n,a,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(n-a)%Jc<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var v=n;n=on(a),a=on(v)}else n=on(n),a=on(a);n>a&&(a+=Jc);var h=Math.atan2(s,o);if(h<0&&(h+=Jc),h>=n&&h<=a||h+Jc>=n&&h+Jc<=a)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(a)+r,y=e*Math.sin(a)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function jp(r,t,e,n,a,i,o,s){var l=a-r,u=i-t,f=e-r,c=n-t,v=Math.sqrt(f*f+c*c);f/=v,c/=v;var h=l*f+u*c,d=h/v;s&&(d=Math.min(Math.max(d,0),1)),d*=v;var p=o[0]=r+d*f,g=o[1]=t+d*c;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function ZE(r,t,e,n,a,i,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,l=t+n,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(f-i)*(f-i))}var jn=[];function uZ(r,t,e){var n=ZE(t.x,t.y,t.width,t.height,r.x,r.y,jn);return e.set(jn[0],jn[1]),n}function fZ(r,t,e){for(var n=0,a=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,v=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(n=f[h],a=f[h+1],i=n,o=a);var p=u;switch(d){case Ks.M:i=f[h++],o=f[h++],n=i,a=o;break;case Ks.L:p=jp(n,a,f[h],f[h+1],c,v,jn,!0),n=f[h++],a=f[h++];break;case Ks.C:p=JA(n,a,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],c,v,jn),n=f[h++],a=f[h++];break;case Ks.Q:p=tM(n,a,f[h++],f[h++],f[h],f[h+1],c,v,jn),n=f[h++],a=f[h++];break;case Ks.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],x=f[h++];h+=1;var b=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var w=(c-g)*_/m+g;p=lZ(g,y,_,S,S+x,b,w,v,jn),n=Math.cos(S+x)*m+g,a=Math.sin(S+x)*_+y;break;case Ks.R:i=n=f[h++],o=a=f[h++];var C=f[h++],T=f[h++];p=ZE(i,o,C,T,c,v,jn);break;case Ks.Z:p=jp(n,a,i,o,c,v,jn,!0),n=i,a=o;break}p<u&&(u=p,e.set(jn[0],jn[1]))}return u}var Jn=new bt,de=new bt,Ee=new bt,Ia=new bt,La=new bt;function KE(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var a=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||oZ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),c=f&&yn([],f),v=t.get("length2")||0;u&&Ee.copy(u);for(var h=0;h<o.length;h++){var d=o[h];sZ(d,0,s,Jn,Ia),bt.scaleAndAdd(de,Jn,Ia,v),de.transform(c);var p=r.getBoundingRect(),g=u?u.distance(de):r instanceof Gt?fZ(de,r.path,Ee):uZ(de,p,Ee);g<l&&(l=g,de.transform(f),Ee.transform(f),Ee.toArray(i[0]),de.toArray(i[1]),Jn.toArray(i[2]))}qE(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Jp=[],Fr=new bt;function qE(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Jn.fromArray(r[0]),de.fromArray(r[1]),Ee.fromArray(r[2]),bt.sub(Ia,Jn,de),bt.sub(La,Ee,de);var e=Ia.len(),n=La.len();if(!(e<.001||n<.001)){Ia.scale(1/e),La.scale(1/n);var a=Ia.dot(La),i=Math.cos(t);if(i<a){var o=jp(de.x,de.y,Ee.x,Ee.y,Jn.x,Jn.y,Jp,!1);Fr.fromArray(Jp),Fr.scaleAndAdd(La,o/Math.tan(Math.PI-t));var s=Ee.x!==de.x?(Fr.x-de.x)/(Ee.x-de.x):(Fr.y-de.y)/(Ee.y-de.y);if(isNaN(s))return;s<0?bt.copy(Fr,de):s>1&&bt.copy(Fr,Ee),Fr.toArray(r[1])}}}}function cZ(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Jn.fromArray(r[0]),de.fromArray(r[1]),Ee.fromArray(r[2]),bt.sub(Ia,de,Jn),bt.sub(La,Ee,de);var n=Ia.len(),a=La.len();if(!(n<.001||a<.001)){Ia.scale(1/n),La.scale(1/a);var i=Ia.dot(t),o=Math.cos(e);if(i<o){var s=jp(de.x,de.y,Ee.x,Ee.y,Jn.x,Jn.y,Jp,!1);Fr.fromArray(Jp);var l=Math.PI/2,u=Math.acos(La.dot(t)),f=l+u-e;if(f>=l)bt.copy(Fr,Ee);else{Fr.scaleAndAdd(La,s/Math.tan(Math.PI/2-f));var c=Ee.x!==de.x?(Fr.x-de.x)/(Ee.x-de.x):(Fr.y-de.y)/(Ee.y-de.y);if(isNaN(c))return;c<0?bt.copy(Fr,de):c>1&&bt.copy(Fr,Ee)}Fr.toArray(r[1])}}}}function TS(r,t,e,n){var a=e==="normal",i=a?r:r.ensureState(e);i.ignore=t;var o=n.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=n.getModel("lineStyle").getLineStyle();a?r.useStyle(s):i.style=s}function vZ(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 a=Gi(n[0],n[1]),i=Gi(n[1],n[2]);if(!a||!i){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*e,s=Bh([],n[1],n[0],o/a),l=Bh([],n[1],n[2],o/i),u=Bh([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function CS(r,t,e){var n=r.getTextGuideLine(),a=r.getTextContent();if(!a){n&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<ic.length;l++){var u=ic[l],f=t[u],c=u==="normal";if(f){var v=f.get("show"),h=c?s:ut(a.states[u]&&a.states[u].ignore,s);if(h||!ut(v,o)){var d=c?n:n&&n.states[u];d&&(d.ignore=!0),n&&TS(n,!0,u,f);continue}n||(n=new xr,r.setTextGuideLine(n),!c&&(s||!o)&&TS(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),TS(n,!1,u,f)}}if(n){_t(n.style,e),n.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=vZ}}function AS(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Or.length;n++){var a=Or[n];e[a]=r.getModel([a,t])}return e}var jE=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],hZ=1,Qp=2,JE=hZ|Qp;function tg(r,t,e){e=e||JE,t?r.dirty|=e:r.dirty&=~e}function QE(r,t){return t=t||JE,r.dirty==null||!!(r.dirty&t)}function Pa(r){if(r)return QE(r)&&tR(r,r.label,r),r}function tR(r,t,e){var n=t.getComputedTransform();r.transform=H_(r.transform,n);var a=r.localRect=dc(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=mu.textMargin);for(var c=0;c<4;c++)MS[c]=f===mu.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===mu.textMargin&&xs(a,MS,!1,!1);var v=r.rect=dc(r.rect,a);return n&&v.applyTransform(n),f===mu.minMargin&&xs(v,MS,!1,!1),r.axisAligned=G_(n),(r.label=r.label||{}).ignore=t.ignore,tg(r,!1),tg(r,!0,Qp),r}var MS=[0,0,0,0];function dZ(r,t,e){return r.transform=H_(r.transform,e),r.localRect=dc(r.localRect,t),r.rect=dc(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=G_(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function DS(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var n=r.rect;n&&(n.x+=t.x,n.y+=t.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,e)}}function IS(r,t){for(var e=0;e<jE.length;e++){var n=jE[e];r[n]==null&&(r[n]=t[n])}return Pa(r)}function eR(r){var t=r.obb;return(!t||QE(r,Qp))&&(r.obb=t=t||new II,t.fromBoundingRect(r.localRect,r.transform),tg(r,!1,Qp)),t}function LS(r,t,e,n,a){var i=r.length,o=Dt[t],s=Ie[t];if(i<2)return!1;r.sort(function(T,D){return T.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0,v=0;v<i;v++){var h=r[v],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var p=Math.max(-u,0);c+=p,l=d[o]+d[s]}c>0&&a&&b(-c/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&C(-m),_<0&&C(_);function S(){m=g.rect[o]-e,_=n-y.rect[o]-y.rect[s]}function x(T,D,A){if(T<0){var L=Math.min(D,-T);if(L>0){b(L*A,0,i);var I=L+T;I<0&&w(-I*A,1)}else w(-T*A,1)}}function b(T,D,A){T!==0&&(f=!0);for(var L=D;L<A;L++){var I=r[L],P=I.rect;P[o]+=T,I.label[o]+=T}}function w(T,D){for(var A=[],L=0,I=1;I<i;I++){var P=r[I-1].rect,R=Math.max(r[I].rect[o]-P[o]-P[s],0);A.push(R),L+=R}if(L){var E=Math.min(Math.abs(T)/L,D);if(T>0)for(var I=0;I<i-1;I++){var N=A[I]*E;b(N,0,I+1)}else for(var I=i-1;I>0;I--){var N=A[I-1]*E;b(-N,I,i)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(i-1)),L=0;L<i-1;L++)if(D>0?b(A,0,L+1):b(-A,i-L-1,i),T-=A,T<=0)return}return f}function pZ(r){for(var t=0;t<r.length;t++){var e=r[t],n=e.defaultAttr,a=e.labelLine;e.label.attr("ignore",n.ignore),a&&a.attr("ignore",n.labelGuideIgnore)}}function rR(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var a=Pa(r[n]);if(!a.label.ignore){for(var i=a.label,o=a.labelLine,s=!1,l=0;l<t.length;l++)if(eg(a,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(a)}}}function eg(r,t,e,n){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,n)?!1:r.axisAligned&&t.axisAligned?!0:eR(r).intersect(eR(t),e,n)}function gZ(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function yZ(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:gZ(n&&n.shape.points)}}var nR=["align","verticalAlign","width","height","fontSize"],Gr=new Qi,PS=Et(),mZ=Et();function rg(r,t,e){for(var n=0;n<e.length;n++){var a=e[n];t[a]!=null&&(r[a]=t[a])}}var ng=["x","y","rotation"],_Z=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();Mt.applyTransform(f,f,u),u?Gr.setLocalTransform(u):(Gr.x=Gr.y=Gr.rotation=Gr.originX=Gr.originY=0,Gr.scaleX=Gr.scaleY=1),Gr.rotation=on(Gr.rotation);var c=a.__hostTarget,v;if(c){v=c.getBoundingRect().plain();var h=c.getComputedTransform();Mt.applyTransform(v,v,h)}var d=v&&c.getTextGuideLine();this._labelList.push({label:a,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:v,priority:v?v.width*v.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:d&&d.ignore,x:Gr.x,y:Gr.y,scaleX:Gr.scaleX,scaleY:Gr.scaleY,rotation:Gr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,a=n.get("labelLayout");(yt(a)||Ut(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Ct(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,a)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function a(_,S){return function(){KE(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;yt(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(yZ(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var v=!1;if(f.x!=null?(s.x=nt(f.x,e),s.setStyle("x",0),v=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=nt(f.y,n),s.setStyle("y",0),v=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),v=!1)}var d=PS(s);d.needsUpdateLabelLine=v,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<nR.length;p++){var g=nR[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),a=[];M(this._labelList,function(l){l.defaultAttr.ignore||a.push(IS({},l))});var i=ne(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ne(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});LS(i,0,0,e),LS(o,1,0,n);var s=ne(a,function(l){return l.layoutOption.hideOverlap});pZ(s),rR(s)},r.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(e){var n=e.__model,a=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=PS(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),i&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),a=Ct(t),i=a.dataIndex;if(n&&i!=null){var o=e.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");CS(t,AS(s),l),KE(t,c)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),a=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!hu(t))){var i=PS(n),o=i.oldLayout,s=Ct(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var v=t.prevStates;v&&(Lt(v,"select")>=0&&n.attr(i.oldLayoutSelect),Lt(v,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),Kt(n,u,e,l)}else if(n.attr(u),!yu(n).valueAnimation){var c=ut(n.style.opacity,1);n.style.opacity=0,pe(n,{style:{opacity:c}},e,l)}if(i.oldLayout=u,n.states.select){var h=i.oldLayoutSelect={};rg(h,u,ng),rg(h,n.states.select,ng)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};rg(d,u,ng),rg(d,n.states.emphasis,ng)}qI(n,l,f,e,e)}if(a&&!a.ignore&&!a.invisible){var i=mZ(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Kt(a,{shape:p},e)):(a.setShape(p),a.style.strokePercent=0,pe(a,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const SZ=_Z;var ES=Et();function xZ(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var a=ES(e).labelManager;a||(a=ES(e).labelManager=new SZ),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var a=ES(e).labelManager;M(n.updatedSeries,function(i){a.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),a.updateLayoutConfig(e),a.layout(e),a.processLabelsOverall()})}var RS=Math.sin,kS=Math.cos,aR=Math.PI,qs=Math.PI*2,bZ=180/aR,wZ=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,n,a,i,o){this._add("C",t,e,n,a,i,o)},r.prototype.quadraticCurveTo=function(t,e,n,a){this._add("Q",t,e,n,a)},r.prototype.arc=function(t,e,n,a,i,o){this.ellipse(t,e,n,n,0,a,i,o)},r.prototype.ellipse=function(t,e,n,a,i,o,s,l){var u=s-o,f=!l,c=Math.abs(u),v=ji(c-qs)||(f?u>=qs:-u>=qs),h=u>0?u%qs:u%qs+qs,d=!1;v?d=!0:ji(c)?d=!1:d=h>=aR==!!f;var p=t+n*kS(o),g=e+a*RS(o);this._start&&this._add("M",p,g);var y=Math.round(i*bZ);if(v){var m=1/this._p,_=(f?1:-1)*(qs-m);this._add("A",n,a,y,1,+f,t+n*kS(o+_),e+a*RS(o+_)),m>.01&&this._add("A",n,a,y,0,+f,p,g)}else{var S=t+n*kS(s),x=e+a*RS(s);this._add("A",n,a,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,n,a){this._add("M",t,e),this._add("l",n,0),this._add("l",0,a),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,a,i,o,s,l,u){for(var f=[],c=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*c)/c)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const iR=wZ;var Qc="none",TZ=Math.round;function CZ(r){var t=r.fill;return t!=null&&t!==Qc}function AZ(r){var t=r.stroke;return t!=null&&t!==Qc}var OS=["lineCap","miterLimit","lineJoin"],MZ=K(OS,function(r){return"stroke-"+r.toLowerCase()});function DZ(r,t,e,n){var a=t.opacity==null?1:t.opacity;if(e instanceof ir){r("opacity",a);return}if(CZ(t)){var i=Yf(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(n||o<1)&&r("fill-opacity",o)}else r("fill",Qc);if(AZ(t)){var s=Yf(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,c=t.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||c)&&r("paint-order",c?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),t.lineDash){var v=B1(e),h=v[0],d=v[1];h&&(d=TZ(d||0),r("stroke-dasharray",h.join(",")),(d||n)&&r("stroke-dashoffset",d))}else n&&r("stroke-dasharray",Qc);for(var p=0;p<OS.length;p++){var g=OS[p];if(n||t[g]!==Ad[g]){var y=t[g]||Ad[g];y&&r(MZ[p],y)}}}else n&&r("stroke",Qc)}var oR="http://www.w3.org/2000/svg",sR="http://www.w3.org/1999/xlink",IZ="http://www.w3.org/2000/xmlns/",LZ="http://www.w3.org/XML/1998/namespace",lR="ecmeta_";function uR(r){return document.createElementNS(oR,r)}function je(r,t,e,n,a){return{tag:r,attrs:e||{},children:n,text:a,key:t}}function PZ(r,t){var e=[];if(t)for(var n in t){var a=t[n],i=n;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function EZ(r){return"</"+r+">"}function NS(r,t){t=t||{};var e=t.newline?`
56
+ `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return PZ(o,s)+(o!=="style"?_r(l):l||"")+(i?""+e+K(i,function(u){return n(u)}).join(e)+e:"")+EZ(o)}return n(r)}function RZ(r,t,e){e=e||{};var n=e.newline?`
57
+ `:"",a=" {"+n,i=n+"}",o=K(Ut(r),function(l){return l+a+K(Ut(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=K(Ut(t),function(l){return"@keyframes "+l+a+K(Ut(t[l]),function(u){return u+a+K(Ut(t[l][u]),function(f){var c=t[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function BS(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function fR(r,t,e,n){return je("svg","root",{width:r,height:t,xmlns:oR,"xmlns:xlink":sR,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var kZ=0;function cR(){return kZ++}var vR={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"},js="transform-origin";function OZ(r,t,e){var n=W({},r.shape);W(n,t),r.buildPath(e,n);var a=new iR;return a.reset(fM(r)),e.rebuildPath(a,1),a.generateStr(),a.getStr()}function NZ(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[js]=e+"px "+n+"px")}var BZ={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function hR(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function VZ(r,t,e){var n=r.shape.paths,a={},i,o;if(M(n,function(l){var u=BS(e.zrId);u.animation=!0,ag(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=Ut(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=hR(a,e);return i.replace(o,s)}}function dR(r){return et(r)?vR[r]?"cubic-bezier("+vR[r]+")":s0(r)?r:"":""}function ag(r,t,e,n){var a=r.animators,i=a.length,o=[];if(r instanceof zd){var s=VZ(r,t,e);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],v=dR(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},b={},w={},C="animation-timing-function";function T(gt,ft,Tt){for(var ct=gt.getTracks(),wt=gt.getMaxTime(),k=0;k<ct.length;k++){var B=ct[k];if(B.needsAnimate()){var U=B.keyframes,Z=B.propName;if(Tt&&(Z=Tt(Z)),Z)for(var j=0;j<U.length;j++){var tt=U[j],lt=Math.round(tt.time/wt*100)+"%",at=dR(tt.easing),ht=tt.rawValue;(et(ht)||Wt(ht))&&(ft[lt]=ft[lt]||{},ft[lt][Z]=tt.rawValue,at&&(ft[lt][C]=at))}}}}for(var D=0;D<S;D++){var A=_[D],L=A.targetName;L?L==="shape"&&T(A,b):!n&&T(A,x)}for(var I in x){var P={};ha(P,r),W(P,x[I]);var R=cM(P),E=x[I][C];w[I]=R?{transform:R}:{},NZ(w[I],P),E&&(w[I][C]=E)}var N,O=!0;for(var I in b){w[I]=w[I]||{};var G=!N,E=b[I][C];G&&(N=new ba);var $=N.len();N.reset(),w[I].d=OZ(r,b[I],N);var H=N.len();if(!G&&$!==H){O=!1;break}E&&(w[I][C]=E)}if(!O)for(var I in w)delete w[I].d;if(!n)for(var D=0;D<S;D++){var A=_[D],L=A.targetName;L==="style"&&T(A,w,function(ct){return BZ[ct]})}for(var X=Ut(w),q=!0,J,D=1;D<X.length;D++){var Q=X[D-1],St=X[D];if(w[Q][js]!==w[St][js]){q=!1;break}J=w[Q][js]}if(q&&J){for(var I in w)w[I][js]&&delete w[I][js];t[js]=J}if(ne(X,function(gt){return Ut(w[gt]).length>0}).length){var Ht=hR(w,e);return Ht+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+cR();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function zZ(r,t,e){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};pR(n,t,e,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=a.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=d0(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};i&&(n.fill=i),a.stroke&&(n.stroke=a.stroke),u&&(n["stroke-width"]=u),pR(n,t,e,!0)}}function pR(r,t,e,n){var a=JSON.stringify(r),i=e.cssStyleCache[a];i||(i=e.zrId+"-cls-"+cR(),e.cssStyleCache[a]=i,e.cssNodes["."+i+(n?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var tv=Math.round;function gR(r){return r&&et(r.src)}function yR(r){return r&&yt(r.toDataURL)}function VS(r,t,e,n){DZ(function(a,i){var o=a==="fill"||a==="stroke";o&&uM(i)?wR(t,r,a,n):o&&g0(i)?TR(e,r,a,n):r[a]=i,o&&n.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),YZ(e,r,n)}function zS(r,t){var e=fU(t);e&&(e.each(function(n,a){n!=null&&(r[(lR+a).toLowerCase()]=n+"")}),t.isSilent()&&(r[lR+"silent"]="true"))}function mR(r){return ji(r[0]-1)&&ji(r[1])&&ji(r[2])&&ji(r[3]-1)}function FZ(r){return ji(r[4])&&ji(r[5])}function FS(r,t,e){if(t&&!(FZ(t)&&mR(t))){var n=e?10:1e4;r.transform=mR(t)?"translate("+tv(t[4]*n)/n+" "+tv(t[5]*n)/n+")":L4(t)}}function _R(r,t,e){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(tv(n[i][0]*e)/e),a.push(tv(n[i][1]*e)/e);t.points=a.join(" ")}function SR(r){return!r.smooth}function GZ(r){var t=K(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,n,a){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(n[o[1]]=tv(s*a)/a)}}}var HZ={circle:[GZ(["cx","cy","r"])],polyline:[_R,SR],polygon:[_R,SR]};function $Z(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function xR(r,t){var e=r.style,n=r.shape,a=HZ[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&fM(r)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&$Z(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;c&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var h=v.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new iR),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return FS(i,r.transform),VS(i,e,r,t),zS(i,r),t.animation&&ag(r,i,t),t.emphasis&&zZ(r,i,t),je(s,r.id+"",i)}function UZ(r,t){var e=r.style,n=e.image;if(n&&!et(n)&&(gR(n)?n=n.src:yR(n)&&(n=n.toDataURL())),!!n){var a=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),FS(l,r.transform),VS(l,e,r,t),zS(l,r),t.animation&&ag(r,l,t),je("image",r.id+"",l)}}function WZ(r,t){var e=r.style,n=e.text;if(n!=null&&(n+=""),!(!n||isNaN(e.x)||isNaN(e.y))){var a=e.font||Ka,i=e.x||0,o=E4(e.y||0,qf(a),e.textBaseline),s=P4[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(PD(e)){var u="",f=e.fontStyle,c=ID(e.fontSize);if(!parseFloat(c))return;var v=e.fontFamily||gA,h=e.fontWeight;u+="font-size:"+c+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),FS(l,r.transform),VS(l,e,r,t),zS(l,r),t.animation&&ag(r,l,t),je("text",r.id+"",l,void 0,n)}}function bR(r,t){if(r instanceof Gt)return xR(r,t);if(r instanceof ir)return UZ(r,t);if(r instanceof nc)return WZ(r,t)}function YZ(r,t,e){var n=r.style;if(R4(n)){var a=k4(r),i=e.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,v=n.shadowBlur,h=Yf(n.shadowColor),d=h.opacity,p=h.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=je("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[je("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[a]=o}t.filter=jh(o)}}function wR(r,t,e,n){var a=r[e],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(sM(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(lM(a))i="radialGradient",o.cx=ut(a.x,.5),o.cy=ut(a.y,.5),o.r=ut(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=p0(s[u].offset)*100+"%",v=s[u].color,h=Yf(v),d=h.color,p=h.opacity,g={offset:c};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(je("stop",u+"",g))}var y=je(i,"",o,l),m=NS(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=je(i,S,o,l)),t[e]=jh(S)}function TR(r,t,e,n){var a=r.style[e],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(oM(a)){var v=a.imageWidth,h=a.imageHeight,d=void 0,p=a.image;if(et(p)?d=p:gR(p)?d=p.src:yR(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";yr(v,g),yr(h,g)}else if(v==null||h==null){var y=function(D,A){if(D){var L=D.elm,I=v||A.width,P=h||A.height;D.tag==="pattern"&&(u?(P=1,I/=i.width):f&&(I=1,P/=i.height)),D.attrs.width=I,D.attrs.height=P,L&&(L.setAttribute("width",I),L.setAttribute("height",P))}},m=t_(d,null,r,function(D){l||y(b,D),y(c,D)});m&&m.width&&m.height&&(v=v||m.width,h=h||m.height)}c=je("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else a.svgElement&&(c=dt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(c){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=cM(a);x&&(o.patternTransform=x);var b=je("pattern","",o,[c]),w=NS(b),C=n.patternCache,T=C[w];T||(T=n.zrId+"-p"+n.patternIdx++,C[w]=T,o.id=T,b=n.defs[T]=je("pattern",T,o,[c])),t[e]=jh(T)}}function XZ(r,t,e){var n=e.clipPathCache,a=e.defs,i=n[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=je("clipPath",i,o,[xR(r,e)])}t["clip-path"]=jh(i)}function CR(r){return document.createTextNode(r)}function Js(r,t,e){r.insertBefore(t,e)}function AR(r,t){r.removeChild(t)}function MR(r,t){r.appendChild(t)}function DR(r){return r.parentNode}function IR(r){return r.nextSibling}function GS(r,t){r.textContent=t}var LR=58,ZZ=120,KZ=je("","");function HS(r){return r===void 0}function Ea(r){return r!==void 0}function qZ(r,t,e){for(var n={},a=t;a<=e;++a){var i=r[a].key;i!==void 0&&(n[i]=a)}return n}function ev(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function rv(r){var t,e=r.children,n=r.tag;if(Ea(n)){var a=r.elm=uR(n);if($S(KZ,r),Y(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&MR(a,rv(i))}else Ea(r.text)&&!xt(r.text)&&MR(a,CR(r.text))}else r.elm=CR(r.text);return r.elm}function PR(r,t,e,n,a){for(;n<=a;++n){var i=e[n];i!=null&&Js(r,rv(i),t)}}function ig(r,t,e,n){for(;e<=n;++e){var a=t[e];if(a!=null)if(Ea(a.tag)){var i=DR(a.elm);AR(i,a.elm)}else AR(r,a.elm)}}function $S(r,t){var e,n=t.elm,a=r&&r.attrs||{},i=t.attrs||{};if(a!==i){for(e in i){var o=i[e],s=a[e];s!==o&&(o===!0?n.setAttribute(e,""):o===!1?n.removeAttribute(e):e==="style"?n.style.cssText=o:e.charCodeAt(0)!==ZZ?n.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?n.setAttributeNS(IZ,e,o):e.charCodeAt(3)===LR?n.setAttributeNS(LZ,e,o):e.charCodeAt(5)===LR?n.setAttributeNS(sR,e,o):n.setAttribute(e,o))}for(e in a)e in i||n.removeAttribute(e)}}function jZ(r,t,e){for(var n=0,a=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],f=e[l],c,v,h,d;n<=i&&a<=l;)o==null?o=t[++n]:s==null?s=t[--i]:u==null?u=e[++a]:f==null?f=e[--l]:ev(o,u)?($u(o,u),o=t[++n],u=e[++a]):ev(s,f)?($u(s,f),s=t[--i],f=e[--l]):ev(o,f)?($u(o,f),Js(r,o.elm,IR(s.elm)),o=t[++n],f=e[--l]):ev(s,u)?($u(s,u),Js(r,s.elm,o.elm),s=t[--i],u=e[++a]):(HS(c)&&(c=qZ(t,n,i)),v=c[u.key],HS(v)?Js(r,rv(u),o.elm):(h=t[v],h.tag!==u.tag?Js(r,rv(u),o.elm):($u(h,u),t[v]=void 0,Js(r,h.elm,o.elm))),u=e[++a]);(n<=i||a<=l)&&(n>i?(d=e[l+1]==null?null:e[l+1].elm,PR(r,d,e,a,l)):ig(r,t,n,i))}function $u(r,t){var e=t.elm=r.elm,n=r.children,a=t.children;r!==t&&($S(r,t),HS(t.text)?Ea(n)&&Ea(a)?n!==a&&jZ(e,n,a):Ea(a)?(Ea(r.text)&&GS(e,""),PR(e,null,a,0,a.length-1)):Ea(n)?ig(e,n,0,n.length-1):Ea(r.text)&&GS(e,""):r.text!==t.text&&(Ea(n)&&ig(e,n,0,n.length-1),GS(e,t.text)))}function JZ(r,t){if(ev(r,t))$u(r,t);else{var e=r.elm,n=DR(e);rv(t),n!==null&&(Js(n,t.elm,IR(e)),ig(n,[r],0,0))}return t}var QZ=0,tK=function(){function r(t,e,n){if(this.type="svg",this.configLayer=eK(),this.storage=e,this._opts=n=W({},n),this.root=t,this._id="zr"+QZ++,this._oldVNode=fR(n.width,n.height),t&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=uR("svg");$S(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var 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",JZ(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return bR(t,BS(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=BS(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=rK(n,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=je("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=K(Ut(i.defs),function(v){return i.defs[v]});if(u.length&&o.push(je("defs","defs",{},u)),t.animation){var f=RZ(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=je("style","stl",{},[],f);o.push(c)}}return fR(n,a,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},NS(this.renderToVNode({animation:ut(t.cssAnimation,!0),emphasis:ut(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ut(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var a=t.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=t[f];if(!c.invisible){var v=c.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};XZ(v[y],m,e);var _=je("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=v;var S=bR(c,e);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(t,e){var n=this._opts,a=this.root,i=this._viewport;if(t!=null&&(n.width=t),e!=null&&(n.height=e),a&&i&&(i.style.display="none",t=Lu(a,0,n),e=Lu(a,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(g0(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=N4(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},r}();function eK(r){return function(){}}function rK(r,t,e,n){var a;if(e&&e!=="none")if(a=je("rect","bg",{width:r,height:t,x:"0",y:"0"}),uM(e))wR({fill:e},a.attrs,"fill",n);else if(g0(e))TR({style:{fill:e},dirty:Te,getBoundingRect:function(){return{width:r,height:t}}},a.attrs,"fill",n);else{var i=Yf(e),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const nK=tK;function aK(r){r.registerPainter("svg",nK)}function ER(r,t,e){var n=Er.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*e,n.height=i*e,n}function US(r){return!r.__cursors.get(LI)}function RR(r){var t=r.__cursors.get(LI);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var iK=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=$d,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var o;a=a||ad,typeof e=="string"?o=ER(e,n,a):xt(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(TA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.afterBrush=function(){this.__prevIdx=RR(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=ER("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Mt(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var x=new Mt(0,0,0,0);x.copy(S),o.push(x)}else{for(var b=!1,w=1/0,C=0,T=0;T<o.length;++T){var D=o[T];if(D.intersect(S)){var A=new Mt(0,0,0,0);A.copy(D),A.union(S),o[T]=A,b=!0;break}else if(l){u.copy(S),u.union(D);var L=S.width*S.height,I=D.width*D.height,P=u.width*u.height,R=P-L-I;R<w&&(w=R,C=T)}}if(l&&(o[C].union(S),b=!0),!b){var x=new Mt(0,0,0,0);x.copy(S),o.push(x)}l||(l=o.length>=s)}}for(var c=RR(this),v=c.startIdx;v<c.endIdx;++v){var h=e[v];if(h){var d=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&Zr||!d)?h.getPrevPaintRect():null;p&&f(p);var g=d&&(h.__dirty&Zr||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}}for(var y=this.__prevIdx,v=y.startIdx;v<y.endIdx;++v){var h=n[v],d=h&&h.shouldBePainted(a,i,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var m;do{m=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var _=v+1;_<o.length;)o[v].intersect(o[_])?(m=!0,o[v].union(o[_]),o.splice(_,1)):_++;v++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),i.width=e*a,i.height=n*a,s&&(s.width=e*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(e,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,c=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Ph(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||N1(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else R$(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=V1(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!a||u?d(0,0,s,l):a.length&&M(a,function(p){d(p.x*c,p.y*c,p.width*c,p.height*c)})},t}(dn);const kR=iK;var OR=1e5,Qs=314159,WS=void 0,oK=1,YS=2;function sK(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function lK(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}function NR(r,t,e,n){var a=new kR(r,t,t.dpr);return a.zlevel=e,a.zlevel2=n,a.__builtin__=!0,BR(a),a}function BR(r){r.__cursorStack=[],r.__cursors=ot()}function uK(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function fK(r,t){var e=r.__cursors,n=+t;return e.get(n)||(r.__cursorStack.push(n),e.set(n,uK({key:n})))}function og(r,t){for(var e=r.__cursorStack,n=0;n<e.length;n++)t(r.__cursors.get(e[n]))}function XS(r,t){var e=r.layers;return e[t]||(e[t]=new Array(3))}function Tr(r,t,e){for(var n=r.layerStack,a=0;a<n.length;a++){var i=n[a].zl,o=n[a].zl2,s=r.layers[i][o];(!e||(!(e&nv)||s.__builtin__)&&(!(e&ZS)||!s.__builtin__)&&(!(e&VR)||s!==r.hoverlayer))&&t(s,i,o,a)}}var nv=1,ZS=2,VR=4,sg=nv|VR,cK=function(){function r(t,e,n,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=W({},n||{}),this.dpr=n.devicePixelRatio||ad,this._singleCanvas=i,this.root=t;var o=t.style;if(o&&(TA(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],i){var l=t,u=l.width,f=l.height;n.width!=null&&(u=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=NR(l,this,Qs,$d);c.initContext(),this._insertLayer(c,Qs,$d,!0),this._domRoot=t}else{this._width=Lu(t,0,n),this._height=Lu(t,1,n);var s=this._domRoot=lK(this._width,this._height);t.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e;t&&!xt(t)?e={paintAll:!!t}:e=t||{};var n=ut(e.refresh,!0),a=ut(e.refreshHover,!1);if(a&&(this._hoverLayerDirty=YS),!n)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(i,o,this._redrawId);var s=this._backgroundColor;return Tr(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},ZS),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=WS,n!==WS&&(!e&&n===YS&&(e=this._i.hoverlayer=this._ensureLayer(OR)),!!e)){e.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,o=0,s=t.length;o<s;o++){var l=t[o];if(l.__inHover){i||(i=e.ctx,i.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Fs(i,l,a),u&&(l.style=f)}}i&&(Pu(i,a),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(OR)},r.prototype.paintOne=function(t,e){p2(t,e)},r.prototype._paintList=function(t,e,n){if(this._redrawId===n){var a=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),a)Tr(this._i,function(o){o.afterBrush&&o.afterBrush()},sg),this._paintHoverList(t);else{var i=this;i0(function(){i._paintList(t,e,n)})}}},r.prototype._compositeManually=function(){var t=this._ensureLayer(Qs).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),Tr(this._i,function(a){a.virtual&&t.drawImage(a.dom,0,0,e,n)},nv)},r.prototype._doPaintList=function(t,e){var n=this,a=!0;return Tr(this._i,function(i){var o=!1;if(og(i,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!i.__dirty)){var s=n._opts.useDirtyRect&&!US(i)?i.createRepaintRects(t,e,n._width,n._height):null,l=n._i.layerStack[0],u=!0;if(i.__dirty){u=!1,i.__dirty=!1;var f=i.zlevel===l.zl&&i.zlevel2===l.zl2?n._backgroundColor:null;i.clear(!1,f,s)}og(i,function(c){var v=n._paintPerCursor(i,c,t,s,u);a=a&&v})}},sg),te.wxa&&Tr(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),a},r.prototype._paintPerCursor=function(t,e,n,a,i){var o=t.ctx;if(a)if(!a.length)e.drawIdx=e.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(t,e,n,u,i),o.restore()}else o.save(),this._paintPerCursorInRect(t,e,n,null,i),o.restore();return e.drawIdx>=e.endIdx},r.prototype._paintPerCursorInRect=function(t,e,n,a,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=t.ctx,l=US(t),u=l&&Er.getTime(),f=e.drawIdx,c=e.notClearIdx,v=c>=0?Math.min(c,f):f;v<e.endIdx;v++){var h=n[v];if(!(v<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=YS),a!=null){var d=h.getPaintRect();d&&d.intersect(a)&&(Fs(s,h,o),h.setPrevPaintRect(d))}else Fs(s,h,o);if(l){var p=Er.getTime()-u;if(p>15){v++;break}}}}Pu(s,o),e.drawIdx=Math.max(v,f)},r.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},r.prototype._ensureLayer=function(t,e,n){e=e||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(t=Qs,e=0);var i=XS(this._i,t)[e];return i||(i=NR("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&Rt(i,this._layerConfig[t],!0),(n||a&&t!==Qs)&&(i.virtual=!0),this._insertLayer(i,t,e,!1),i.initContext()),i},r.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},r.prototype._insertLayer=function(t,e,n,a){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if(!(o[e]&&o[e][n])&&sK(t)){for(var f=s.length,c=0;c<f&&(s[c].zl<e||s[c].zl===e&&s[c].zl2<n);)c++;if(c>0&&(u=XS(i,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:e,zl2:n}),XS(i,e)[n]=t,!a&&!t.virtual)if(u){var v=u.dom;v.nextSibling?l.insertBefore(t.dom,v.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(t,e){return Tr(this._i,function(n,a){t.call(e,n,a)})},r.prototype.eachBuiltinLayer=function(t,e){return Tr(this._i,function(n,a){t.call(e,n,a)},nv)},r.prototype.eachOtherLayer=function(t,e){return Tr(this._i,function(n,a){t.call(e,n,a)},ZS)},r.prototype.getLayers=function(){var t={};return Tr(this._i,function(e,n,a){t[e.id]=e}),t},r.prototype._updateLayerStatus=function(t,e){var n=this;if(n._singleCanvas)for(var a=1;a<t.length;a++){var i=t[a];if(i.zlevel!==t[a-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}Tr(n._i,function(g){g.__dirty=!1,og(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},sg);for(var o,s=null,l=null,u=!1,f=0,c=t.length;f<c;f++){var i=t[f],v=i.zlevel,h=i.incremental,d=void 0;if(o!==v&&(o=v,u=!1),h?(u=!0,d=O8):d=u?k8:$d,(!s||v!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(v,d),l=null,!s.__builtin__)){Om("ZLevel "+v+" has been used by unknown layer "+s.id);continue}if((!l||h!==l.key)&&(l=fK(s,h),!l.used))if(l.used=!0,!e&&l.first===i.id){var p=f-l.startIdx;l.startIdx=f,l.drawIdx+=p,l.endIdx+=p}else s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,i.__dirty&Zr&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Tr(n._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(!S.used)g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var x=S.endIdxNew;(US(g)?x<S.drawIdx:x!==S.endIdx||!x||t[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?t[x-1].id:NaN}}g.__dirty&&(og(g,function(b){b.drawIdx=b.startIdx}),n._hoverLayerDirty===WS&&(n._hoverLayerDirty=oK))},sg)},r.prototype.clear=function(){return Tr(this._i,function(t){t.clear(),BR(t)},nv),this},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Tr(this._i,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Rt(n[t],e,!0):n[t]=e,Tr(this._i,function(a,i){Rt(a,n[i],!0)})}},r.prototype.delLayer=function(t){for(var e=this._i.layerStack,n=this._i.layers,a=e.length-1;a>=0;a--){var i=e[a];if(i.zl===t){var o=n[t][i.zl2];if(o.__builtin__)continue;if(e.splice(a,1),n[t][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;t!=null&&(a.width=t),e!=null&&(a.height=e),t=Lu(i,0,a),e=Lu(i,1,a),n.style.display="",(this._width!==t||e!==this._height)&&(n.style.width=t+"px",n.style.height=e+"px",Tr(this._i,function(o){o.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this._ensureLayer(Qs).resize(t,e)}return this},r.prototype.clearLayer=function(t){M(this._i.layers[t],function(e){e&&!e.__builtin__&&e.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Qs][0].dom;var e=new kR("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=e.dom.width,i=e.dom.height;Tr(this._i,function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Fs(n,f,o)}Pu(n,o)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const vK=cK;function hK(r){r.registerPainter("canvas",vK)}var dK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return pi(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new mt,a=Oe("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(a),a.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=Oe(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);n.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=F.color.neutral00,u.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t}(me);const pK=dK;function Uu(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var a=Tu(r,t,e[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<e.length;o++)i.push(Tu(r,t,e[o]));return i.join(" ")}}function zR(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],a=0;a<e.length;a++){var i=r.getDimensionIndex(e[a]);i>=0&&n.push(t[i])}return n.join(" ")}var gK=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return o.updateData(e,n,a,i),o}return t.prototype._createSymbol=function(e,n,a,i,o,s){this.removeAll();var l=Oe(e,-1,-1,2,2,null,s);l.attr({z2:ut(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=yK,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){li(this.childAt(0))},t.prototype.downplay=function(){ui(this.childAt(0))},t.prototype.setZ=function(e,n){var a=this.childAt(0);a.zlevel=e,a.z=n},t.prototype.setDraggable=function(e,n){var a=this.childAt(0);a.draggable=e,a.cursor=!n&&e?"move":a.cursor},t.prototype.updateData=function(e,n,a,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,n),u=t.getSymbolZ2(e,n),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var v=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(d):Kt(h,d,s,n),wn(h)}if(this._updateCommon(e,n,l,a,i),f){var h=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,pe(h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,a,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,v,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,v=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Ue(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Vs(e.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(n,"style"),w=b.fill;if(s instanceof ir){var C=s.style;s.useStyle(W({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else s.__isEmptyBrush?s.useStyle(W({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(n,"liftZ"),D=this._z2;T!=null?D==null&&(this._z2=s.z2,s.z2+=T):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;qe(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:b.opacity});function L(R){return A?e.getName(R):Uu(e,R)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),ge(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,a){var i=this.childAt(0),o=Ct(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&so(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();so(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return Iu(e.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(e,n){return e.getItemVisual(n,"z2")},t}(mt);function yK(r,t){this.parent.drift(r,t)}const av=gK;function lg(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n&&n.isIgnore&&n.isIgnore(e))&&!(n&&n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function FR(r){return r!=null&&!xt(r)&&(r={isIgnore:r}),r||{}}function GR(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:Ue(t),cursorStyle:t.get("cursor")}}function HR(r,t,e,n,a,i,o){var s=new r(t,e,n,a);return s.setPosition(i),t.setItemGraphicEl(e,s),o.add(s),s}var mK=function(){function r(t){this.group=new mt,this._SymbolCtor=t||av}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=FR(e);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=this._seriesScope=GR(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||n.removeAll(),t.diff(i).add(function(c){var v=f(c);lg(t,v,c,e)&&HR(o,t,c,l,u,v,n)}).update(function(c,v){var h=i.getItemGraphicEl(v),d=f(c);if(!lg(t,d,c,e)){n.remove(h);return}var p=t.getItemVisual(c,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(t,c,l,u),h.setPosition(d);else{h.updateData(t,c,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Kt(h,y,a)}n.add(h),t.setItemGraphicEl(c,h)}).remove(function(c){var v=i.getItemGraphicEl(c);v&&v.fadeOut(function(){n.remove(v)},a)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=this,a=e.getStore(),i=0,o=a.count();i<o;i++){var s=e.getItemGraphicEl(i),l=n._getSymbolPoint(i);lg(e,l,i,t)?(s=s||HR(n._SymbolCtor,e,i,n._seriesScope,{disableAnimation:!0},l,n.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(n.group.remove(s),e.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=GR(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n,a){this._progressiveEls=[],a=FR(a);function i(u){u.isGroup||(u.incremental=n,u.ensureState("emphasis").hoverLayer=du)}for(var o=t.start;o<t.end;o++){var s=e.getItemLayout(o);if(lg(e,s,o,a)){var l=new this._SymbolCtor(e,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),e.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(t){lo(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){e.remove(a)},n.hostModel)}):e.removeAll()},r}();const iv=mK;function $R(r,t,e){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=_K(a,e),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=K(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return po(t,c[0])&&(v=!0,c[0]=h),po(t,c[1])&&(v=!0,c[1]=h),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function _K(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:Wt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function UR(r,t,e,n){var a=NaN;r.stacked&&(a=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function In(r,t){return!isFinite(r)||!isFinite(t)}var SK=typeof Float32Array!==ou?Float32Array:void 0,xK=typeof Float64Array!==ou?Float64Array:void 0;function Ra(r){return KS({ctor:SK},r).arr}function KS(r,t){var e=r.arr,n=r.ctor;if(t>pd&&(t=pd),!e||r.typed&&e.length<t){var a=void 0;if(n)try{a=new n(t),r.typed=!0,e&&a.set(e)}catch{}if(!a&&(a=[],r.typed=!1,e))for(var i=0,o=e.length;i<o;i++)a[i]=e[i];r.arr=a}return r}function bK(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,a){e.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function wK(r,t,e,n,a,i,o,s){for(var l=bK(r,t),u=[],f=[],c=[],v=[],h=[],d=[],p=[],g=$R(a,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var C=y[b],T=y[b+1],D=m[w],A=m[w+1];(isNaN(C)||isNaN(T))&&(C=D,T=A),u.push(C,T),f.push(D,A),c.push(e[b],e[b+1]),v.push(n[w],n[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);w=L*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var R=UR(g,a,t,L);c.push(R[0],R[1]),v.push(n[w],n[w+1]),p.push(t.getRawIndex(L));break;case"-":x=!1}x&&(h.push(S),d.push(d.length))}d.sort(function(Q,St){return p[Q]-p[St]});for(var E=u.length,N=Ra(E),O=Ra(E),G=Ra(E),$=Ra(E),H=[],_=0;_<d.length;_++){var X=d[_],q=_*2,J=X*2;N[q]=u[J],N[q+1]=u[J+1],O[q]=f[J],O[q+1]=f[J+1],G[q]=c[J],G[q+1]=c[J+1],$[q]=v[J],$[q+1]=v[J+1],H[_]=h[X]}return{current:N,next:O,stackedOnCurrent:G,stackedOnNext:$,status:H}}var go=Math.min,yo=Math.max;function qS(r,t,e,n,a,i,o,s,l){for(var u,f,c,v,h,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=a||p<0)break;if(In(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),c=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<n;)g++,x+=i,p+=i,b=t[x*2],w=t[x*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;In(b,w)&&C<n;)C++,x+=i,b=t[x*2],w=t[x*2+1];var T=.5,D=0,A=0,L=void 0,I=void 0;if(C>=n||In(b,w))h=y,d=m;else{D=b-u,A=w-f;var P=y-u,R=b-y,E=m-f,N=w-m,O=void 0,G=void 0;if(s==="x"){O=Math.abs(P),G=Math.abs(R);var $=D>0?1:-1;h=y-$*O*o,d=m,L=y+$*G*o,I=m}else if(s==="y"){O=Math.abs(E),G=Math.abs(N);var H=A>0?1:-1;h=y,d=m-H*O*o,L=y,I=m+H*G*o}else O=Math.sqrt(P*P+E*E),G=Math.sqrt(R*R+N*N),T=G/(G+O),h=y-D*o*(1-T),d=m-A*o*(1-T),L=y+D*o*T,I=m+A*o*T,L=go(L,yo(b,y)),I=go(I,yo(w,m)),L=yo(L,go(b,y)),I=yo(I,go(w,m)),D=L-y,A=I-m,h=y-D*O/G,d=m-A*O/G,h=go(h,yo(u,y)),d=go(d,yo(f,m)),h=yo(h,go(u,y)),d=yo(d,go(f,m)),D=y-h,A=m-d,L=y+D*G/O,I=m+A*G/O}r.bezierCurveTo(c,v,h,d,y,m),c=L,v=I}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var WR=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),TK=function(r){V(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:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new WR},t.prototype.buildPath=function(e,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&In(a[o*2-2],a[o*2-1]);o--);for(;i<o&&In(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=qS(e,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=ba.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var v=i[c++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=i[c++],l=i[c++];break;case o.L:if(h=i[c++],d=i[c++],_=u?(e-s)/(h-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[c++],d=i[c++],p=i[c++],g=i[c++],y=i[c++],m=i[c++];var x=u?Wh(s,h,p,y,e,f):Wh(l,d,g,m,e,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?Ke(l,d,g,m,w):Ke(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Gt),CK=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(WR),YR=function(r){V(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 CK},t.prototype.buildPath=function(e,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&In(a[s*2-2],a[s*2-1]);s--);for(;o<s&&In(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=qS(e,a,o,s,s,1,n.smooth,l,n.connectNulls);qS(e,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,e.closePath()}},t}(Gt);function XR(r,t,e,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new Ft({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=yt(a)?function(g){a(g,c)}:null;pe(c,{shape:{width:l,height:u,x:o,y:s}},e,null,n,p)}return c}function ZR(r,t,e){var n=r.getArea(),a=Zt(n.r0,1),i=Zt(n.r,1),o=new Nr({shape:{cx:Zt(r.cx,1),cy:Zt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,pe(o,{shape:{endAngle:n.endAngle,r:i}},e)}return o}function tl(r,t,e,n,a){if(r){if(r.type==="polar")return ZR(r,t,e);if(r.type==="cartesian2d")return XR(r,t,e,n,a)}else return null;return null}var ov=0,sv=1,lv=2;function Wu(r,t,e){r?t.setClipPath(e):t.removeClipPath()}function KR(r){var t=r.coordinateSystem;if(r.get("clip",!0)&&t&&(!t.shouldClip||t.shouldClip()))return t.getArea&&t.getArea(.1)}function el(r,t){return r.type===t}function qR(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"&&!!r.getViewRect}function jR(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||st(r,"text")))}function JR(r,t,e){var n=r,a,i,o;if(t==="text")o=n;else{o={},st(n,"text")&&(o.text=n.text),st(n,"rich")&&(o.rich=n.rich),st(n,"textFill")&&(o.fill=n.textFill),st(n,"textStroke")&&(o.stroke=n.textStroke),st(n,"fontFamily")&&(o.fontFamily=n.fontFamily),st(n,"fontSize")&&(o.fontSize=n.fontSize),st(n,"fontStyle")&&(o.fontStyle=n.fontStyle),st(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=st(n,"textPosition");e?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),st(n,"textPosition")&&(a.position=n.textPosition),st(n,"textOffset")&&(a.offset=n.textOffset),st(n,"textRotation")&&(a.rotation=n.textRotation),st(n,"textDistance")&&(a.distance=n.textDistance)}return QR(o,r),M(o.rich,function(l){QR(l,l)}),{textConfig:a,textContent:i}}function QR(r,t){t&&(t.font=t.textFont||t.font,st(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),st(t,"textAlign")&&(r.align=t.textAlign),st(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),st(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),st(t,"textWidth")&&(r.width=t.textWidth),st(t,"textHeight")&&(r.height=t.textHeight),st(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),st(t,"textPadding")&&(r.padding=t.textPadding),st(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),st(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),st(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),st(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),st(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),st(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),st(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function tk(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||F.color.neutral99;ek(n,t);var o=n.textFill==null;return a?o&&(n.textFill=e.insideFill||F.color.neutral00,!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||F.color.neutral00),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,M(t.rich,function(s){ek(s,s)}),n}function ek(r,t){t&&(st(t,"fill")&&(r.textFill=t.fill),st(t,"stroke")&&(r.textStroke=t.fill),st(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),st(t,"font")&&(r.font=t.font),st(t,"fontStyle")&&(r.fontStyle=t.fontStyle),st(t,"fontWeight")&&(r.fontWeight=t.fontWeight),st(t,"fontSize")&&(r.fontSize=t.fontSize),st(t,"fontFamily")&&(r.fontFamily=t.fontFamily),st(t,"align")&&(r.textAlign=t.align),st(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),st(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),st(t,"width")&&(r.textWidth=t.width),st(t,"height")&&(r.textHeight=t.height),st(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),st(t,"padding")&&(r.textPadding=t.padding),st(t,"borderColor")&&(r.textBorderColor=t.borderColor),st(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),st(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),st(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),st(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),st(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),st(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),st(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),st(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),st(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),st(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}function rk(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function nk(r){for(var t=ar(),e=ar(),n=0;n<r.length;){var a=r[n++],i=r[n++];In(a,i)||(j0(t,a),j0(e,i))}return[t,e]}function ak(r,t){var e=nk(r),n=e[0],a=e[1],i=nk(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(n[1]-o[1]),Math.abs(a[1]-s[1]))}function ik(r){return Wt(r)?r:r?.5:0}function AK(r,t,e){if(e.valueDim==null)return[];for(var n=t.count(),a=Ra(n*2),i=0;i<n;i++){var o=UR(e,r,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function mo(r,t,e,n,a){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],v=[];if(a){for(l=0;l<r.length;l+=2){var h=t||r;In(h[l],h[l+1])||v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function MK(r,t){var e=[],n=r.length,a,i;function o(f,c,v){var h=f.coord,d=(v-h)/(c.coord-h),p=I4(d,[f.color,c.color]);return{coord:v,color:p}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>t){i?e.push(o(i,l,t)):a&&e.push(o(a,l,0),o(a,l,t));break}else a&&(e.push(o(a,l,0)),a=null),e.push(l),i=l}return e}function DK(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(i){var l=t.getAxis(a),u=K(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var v=MK(u,a==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=v[0].coord-d,g=v[h-1].coord+d,y=g-p;if(y<.001)return"transparent";M(v,function(_){_.offset=(_.coord-p)/y}),v.push({offset:h?v[h-1].offset:.5,color:c[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:c[0]||"transparent"});var m=new cu(0,0,0,0,v,!0);return m[a]=p,m[a+"2"]=g,m}}}function IK(r,t,e){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(a&&LK(i,t))){var o=t.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){l.tick.offInterval||(s[zu(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function LK(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(av.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function PK(r){for(var t=r.length/2;t>0&&In(r[t*2-2],r[t*2-1]);t--);return t-1}function ok(r,t){return[r[t*2],r[t*2+1]]}function EK(r,t,e){for(var n=r.length/2,a=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!In(o,r[u*2+1-a])){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function sk(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Or.length;t++)if(r.get([Or[t],"endLabel","show"]))return!0;return!1}function jS(r,t,e,n){if(el(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=sk(n)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),f=XR(t,e,n,function(){var h=r._endLabel;h&&e&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,v=Math.max(c.width,c.height);u?(c.y-=v,c.height+=v*2):(c.x-=v,c.width+=v*2)}return l&&l(1,f),f}else return ZR(t,e,n)}function RK(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),a=e.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var kK=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new mt,n=new iv;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=it(this._changePolyState,this)},t.prototype.render=function(e,n,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=$R(i,s,_),x=m&&AK(i,s,S),b=e.get("showSymbol"),w=e.get("connectNulls"),C=b&&!c&&IK(e,s,i),T=this._data;T&&T.eachItemGraphicEl(function(ft,Tt){ft.__temp&&(o.remove(ft),T.setItemGraphicEl(Tt,null))}),b||h.remove(),o.add(g);var D=c?!1:e.get("step"),A;i&&i.getArea&&e.get("clip",!0)&&(A=i.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var L=DK(s,i,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===i.type&&D===this._step))b&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ft){return[f[ft*2],f[ft*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,A),D&&(x&&(x=mo(x,f,i,D,w)),f=mo(f,null,i,D,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,As(L)),g.setClipPath(jS(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,As(L));var I=g.getClipPath();if(I){var P=jS(this,i,!1,e);pe(I,{shape:P.shape},e)}else g.setClipPath(jS(this,i,!0,e));b&&h.updateData(s,{isIgnore:C,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ft){return[f[ft*2],f[ft*2+1]]}}),(!rk(this._stackedOnPoints,x)||!rk(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,a,D,_,w):(D&&(x&&(x=mo(x,f,i,D,w)),f=mo(f,null,i,D,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var R=e.getModel("emphasis"),E=R.get("focus"),N=R.get("blurScope"),O=R.get("disabled");if(d.useStyle(_t(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),He(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=d.getState("emphasis").style;G.lineWidth=+d.style.lineWidth+1}Ct(d).seriesIndex=e.seriesIndex,ge(d,E,N,O);var $=ik(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:H,connectNulls:w}),p){var X=s.getCalculationInfo("stackedOnSeries"),q=0;p.useStyle(_t(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(q=ik(X.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:q,smoothMonotone:H,connectNulls:w}),He(p,e,"areaStyle"),Ct(p).seriesIndex=e.seriesIndex,ge(p,E,N,O)}var J=this._changePolyState;s.eachItemGraphicEl(function(ft){ft&&(ft.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=D,this._valueOrigin=_;var Q=e.get("triggerEvent"),St=e.get("triggerLineEvent"),Ht=St===!0||Q===!0||Q==="line",gt=St===!0||Q===!0||Q==="area";this.packEventData(e,d,Ht),p&&this.packEventData(e,p,gt)},t.prototype.packEventData=function(e,n,a){Ct(n).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line",selfType:n===this._polygon?"area":"line"}:null},t.prototype.highlight=function(e,n,a,i){var o=e.getData(),s=rs(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(In(f,c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new av(o,s),u.x=f,u.y=c,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ve.prototype.highlight.call(this,e,n,a,i)},t.prototype.downplay=function(e,n,a,i){var o=e.getData(),s=rs(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ve.prototype.downplay.call(this,e,n,a,i)},t.prototype._changePolyState=function(e){var n=this._polygon;Rd(this._polyline,e),n&&Rd(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new TK({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new YR({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(e,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");yt(f)&&(f=f(null));var c=u.get("animationDelay")||0,v=yt(c)?c(null):c;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=a;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var C=yt(c)?c(d):f*w+v,T=p.getSymbolPath(),D=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,a){var i=e.getModel("endLabel");if(sk(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Xt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=PK(l);f>=0&&(qe(s,Ue(e,"endLabel"),{inheritColor:a,labelFetcher:e,labelDataIndex:f,defaultText:function(c,v,h){return h!=null?zR(o,h):Uu(o,c)},enableTextSetter:!0},RK(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),v=a.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",C=EK(c,S,w),T=C.range,D=T[1]-T[0],A=void 0;if(D>=1){if(D>1&&!h){var L=ok(c,T[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(A=v.getRawValue(T[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=v.getRawValue(T[0]),P=v.getRawValue(T[1]);o&&(A=QM(a,d,I,P,C.t))}i.lastFrameIndex=T[0]}else{var R=e===1||i.lastFrameIndex>0?T[0]:0,L=ok(c,R);o&&(A=v.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+b})}if(o){var E=yu(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,v=wK(this._data,e,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,g=v.stackedOnNext;if(o&&(d=mo(v.stackedOnCurrent,v.current,a,o,l),h=mo(v.current,null,a,o,l),g=mo(v.stackedOnNext,v.next,a,o,l),p=mo(v.next,null,a,o,l)),ak(h,p)>3e3||f&&ak(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=h;var y={shape:{points:p}};v.current!==h&&(y.shape.__points=v.next),u.stopAnimation(),Kt(u,y,c),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Kt(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var b=e.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<m.length;C++){var T=m[C].el,D=m[C].ptIdx*2;T.x=w[D],T.y=w[D+1],T.markRedraw()}})},t.prototype.remove=function(e){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ve);const OK=kK;function uv(r,t){return{seriesType:r,plan:Ns(),reset:function(e){var n=e.getData(),a=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(a){var s=K(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");po(n,s[0])&&(s[0]=u),po(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Ra(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var b=f.get(c,_);x=a.dataToPoint(b,null,m)}else y[0]=f.get(c,_),y[1]=f.get(v,_),x=a.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):d.setItemLayout(_,x.slice())}o&&(d.setLayout("points",g),d.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var NK={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},BK=function(r){return Math.round(r.length/2)};function lk(r){return{seriesType:r,reset:function(t,e,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(c||1),h=Math.round(s/v);if(isFinite(h)&&h>1){i==="lttb"?t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/h));var d=void 0;et(i)?d=NK[i]:yt(i)&&(d=i),d&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,d,BK))}}}}}function VK(r){r.registerChartView(OK),r.registerSeriesModel(pK),r.registerLayout(uv("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,lk("line"))}var zK=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var 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}(qn);const uk=zK;var JS=null;function FK(r){JS||(JS=r)}function fv(){return JS}var ug="expandAxisBreak",fk="collapseAxisBreak",ck="toggleAxisBreak",QS="axisbreakchanged",GK={type:ug,event:QS,update:"update",refineEvent:tx},HK={type:fk,event:QS,update:"update",refineEvent:tx},$K={type:ck,event:QS,update:"update",refineEvent:tx};function tx(r,t,e,n){var a=[];return M(r,function(i){a=a.concat(i.eventBreaks)}),{eventContent:{breaks:a}}}function UK(r){r.registerAction(GK,t),r.registerAction(HK,t),r.registerAction($K,t);function t(e,n){var a=[],i=ru(n,e);function o(s,l){M(i[s],function(u){var f=u.updateAxisBreaks(e);M(f.breaks,function(c){var v;a.push(_t((v={},v[l]=u.componentIndex,v),c))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var _o=Math.PI,WK=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],YK=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],rl=Et(),vk=Et(),hk=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,a=this.recordMap,i=a[e]||(a[e]=[]);return i[n]||(i[n]={ready:{}})},r}();function XK(r,t,e,n){var a=e.axis,i=t.ensureRecord(e),o=[],s,l=rx(r.axisName)&&Vu(r.nameLocation);M(n,function(d){var p=Pa(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?yn(cv,g.transform):Hl(cv),p.transform&&gn(cv,cv,p.transform),Mt.copy(fg,p.localRect),fg.applyTransform(cv),s?s.union(fg):Mt.copy(s=new Mt(0,0,0,0),fg))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=a.getExtent(),v=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-v;s.union(new Mt(v,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var cv=Se(),fg=new Mt(0,0,0,0),dk=function(r,t,e,n,a,i){if(Vu(r.nameLocation)){var o=i.stOccupiedRect;o&&pk(dZ({},o,i.transGroup.transform),n,a)}else gk(i.labelInfoList,i.dirVec,n,a)};function pk(r,t,e){var n=new bt;eg(r,t,n,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&DS(t,n)}function gk(r,t,e,n){for(var a=bt.dot(n,t)>=0,i=0,o=r.length;i<o;i++){var s=r[a?i:o-1-i];s.label.ignore||pk(s,e,n)}}var nl=function(){function r(t,e,n,a){this.group=new mt,this._axisModel=t,this._api=e,this._local={},this._shared=a||new hk(dk),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},a=ut(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=ut(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:ut(t.nameDirection,1),tickDirection:ut(t.tickDirection,1),labelDirection:ut(t.labelDirection,1),labelOffset:ut(t.labelOffset,0),silent:ut(t.silent,!0),axisName:a,nameLocation:nn(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:rx(a)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new mt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new bt(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(ZK,function(a){t[a]&&KK[a](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},r.innerTextLayout=function(t,e,n){var a=NM(e-t),i,o;return tu(a)?(o=n>0?"top":"bottom",i="center"):tu(a-_o)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<_o?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),ZK=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],KK={axisLine:function(r,t,e,n,a,i,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],v=f[0]>c[0];u&&(Ce(f,f,u),Ce(c,c,u));var h=W({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(n.get(["axisLine","breakLine"])&&ep(n.axis.scale))fv().buildAxisBreakLine(n,a,i,d);else{var p=new $e(W({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));pu(p.shape,p.style.lineWidth),p.anid="line",a.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);et(g)&&(g=[g,g]),(et(y)||Wt(y))&&(y=[y,y]);var m=Vs(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];M([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(x,b){if(g[b]!=="none"&&g[b]!=null){var w=Oe(g[b],-_/2,-S/2,_,S,h.stroke,!0),C=x.r+x.offset,T=v?c:f;w.attr({rotation:x.rotate,x:T[0]+C*Math.cos(r.rotation),y:T[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),a.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,n,a,i,o,s){var l=_k(t,a,s);l&&yk(r,t,e,n,a,i,o,Kn.estimate)},axisTickLabelDetermine:function(r,t,e,n,a,i,o,s){var l=_k(t,a,s);l&&yk(r,t,e,n,a,i,o,Kn.determine);var u=QK(r,a,i,n);JK(r,t.labelLayoutList,u),tq(r,a,i,n,r.tickDirection)},axisName:function(r,t,e,n,a,i,o,s){var l=e.ensureRecord(n);t.nameEl&&(a.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(rx(u)){var f=r.nameLocation,c=r.nameDirection,v=n.getModel("nameTextStyle"),h=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new bt(0,0),y=new bt(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var m=Se();y.transform(Ui(m,m,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*_o/180);var S,x;Vu(f)?S=nl.innerTextLayout(r.rotation,_??r.rotation,c):(S=qK(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var b=v.getFont(),w=n.get("nameTruncate",!0)||{},C=w.ellipsis,T=Rr(r.raw.nameTruncateMaxWidth,w.maxWidth,x),D=s.nameMarginLevel||0,A=new Xt({x:g.x,y:g.y,rotation:S.rotation,silent:nl.isLabelSilent(n),style:ce(v,{text:u,font:b,overflow:"truncate",width:T,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(ci({el:A,componentModel:n,itemName:u}),A.__fullText=u,A.anid="name",n.get("triggerEvent")){var L=nl.makeAxisEventDataBase(n);L.targetType="axisName",L.name=u,Ct(A).eventData=L}i.add(A),A.updateTransform(),t.nameEl=A;var I=l.nameLayout=Pa({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:Vu(f)?WK[D]:YK[D]});if(l.nameLocation=f,a.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&I){var P=e.ensureRecord(n);e.resolveAxisNameOverlap(r,e,n,I,y,P)}}}};function yk(r,t,e,n,a,i,o,s){Sk(t)||eq(r,t,a,s,n,o);var l=t.labelLayoutList;rq(r,n,l,i),iq(n,r.rotation,l);var u=r.optionHideOverlap;jK(n,l,u),u&&rR(ne(l,function(f){return f&&!f.label.ignore})),XK(r,e,n,l)}function qK(r,t,e,n){var a=NM(e-r),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return tu(a-_o/2)?(o=l?"bottom":"top",i="center"):tu(a-_o*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<_o*1.5&&a>_o/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function jK(r,t,e){var n=r.axis,a=r.get(["axisLabel","customValues"]);if(vX(n))return;function i(u,f,c){var v=Pa(t[f]),h=Pa(t[c]),d=n.scale;if(!(!v||!h)){if(u==null){if(!e&&a)return;var p=rl(v.label).labelInfo.tick;if(Uc(d)&&p.notNice||wr(d)&&p.offInterval){Yu(v.label);return}}if(u===!1||v.suggestIgnore){Yu(v.label);return}if(h.suggestIgnore){Yu(h.label);return}var g=.1;if(!e){var y=[0,0,0,0];v=IS({marginForce:y},v),h=IS({marginForce:y},h)}eg(v,h,null,{touchThreshold:g})&&Yu(u?h.label:v.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=t.length;i(o,0,1),i(s,l-1,l-2)}function JK(r,t,e){r.showMinorTicks||M(t,function(n){if(n&&n.label.ignore)for(var a=0;a<e.length;a++){var i=e[a],o=vk(i),s=rl(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Yu(i);return}}})}function Yu(r){r&&(r.ignore=!0)}function mk(r,t,e,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Ce(o,o,t),Ce(s,s,t));var f=new $e({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});pu(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f);var c=vk(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function QK(r,t,e,n){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),f=mk(u,e.transform,l,_t(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function tq(r,t,e,n,a){var i=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=_t(l.getLineStyle(),_t(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var v=mk(s[c],e.transform,u,f,"minorticks_"+c),h=0;h<v.length;h++)t.add(v[h])}}function _k(r,t,e){if(Sk(r)){var n=r.axisLabelsCreationContext,a=n.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<a.length;o++)i=i&&a[o]();if(i)return!1}a.length&&(t.remove(r.labelGroup),ex(r,null,null,null))}return!0}function eq(r,t,e,n,a,i){var o=a.axis,s=Rr(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new mt;e.add(l);var u=Kp(n);if(!s||o.scale.isBlank()){ex(t,[],l,u);return}var f=a.getModel("axisLabel"),c=o.getViewLabels(u),v=(Rr(r.raw.labelRotate,f.get("rotate"))||0)*_o/180,h=nl.innerTextLayout(r.rotation,v,r.labelDirection),d=a.getCategories&&a.getCategories(!0),p=[],g=a.get("triggerEvent"),y=1/0,m=-1/0;M(c,function(S,x){var b,w=S.tick,C=S.formattedLabel,T=S.rawLabel,D=f,A=zu(o.scale,w);if(d&&d[A]){var L=d[A];xt(L)&&L.textStyle&&(D=new qt(L.textStyle,f,a.ecModel))}var I=D.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=D.getShallow("align",!0)||h.textAlign,R=ut(D.getShallow("alignMinLabel",!0),P),E=ut(D.getShallow("alignMaxLabel",!0),P),N=D.getShallow("verticalAlign",!0)||D.getShallow("baseline",!0)||h.textVerticalAlign,O=ut(D.getShallow("verticalAlignMinLabel",!0),N),G=ut(D.getShallow("verticalAlignMaxLabel",!0),N),$=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,$),m=Math.max(m,$);var H=new Xt({x:0,y:0,rotation:0,silent:nl.isLabelSilent(a),z2:$,style:ce(D,{text:C,align:x===0?R:x===c.length-1?E:P,verticalAlign:x===0?O:x===c.length-1?G:N,fill:yt(I)?I(o.type==="category"?T:o.type==="value"?A+"":A,x):I})});H.anid="label_"+A;var X=rl(H);if(X.labelInfo=S,X.layoutRotation=h.rotation,ci({el:H,componentModel:a,itemName:C,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:T,tickIndex:x}}),g){var q=nl.makeAxisEventDataBase(a);q.targetType="axisLabel",q.value=T,q.tickIndex=x;var J=S.tick.break;if(J){var Q=J.parsedBreak;q.break={start:Q.vmin,end:Q.vmax}}o.type==="category"&&(q.dataIndex=A),Ct(H).eventData=q,J&&aq(a,i,H,J)}p.push(H),l.add(H)});var _=K(p,function(S){return{label:S,priority:rl(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});ex(t,_,l,u)}function Sk(r){return!!r.labelLayoutList}function ex(r,t,e,n){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=n}function rq(r,t,e,n){var a=t.get(["axisLabel","margin"]);M(e,function(i,o){var s=Pa(i);if(s){var l=s.label,u=rl(l);s.suggestIgnore=l.ignore,l.ignore=!1,ha(yi,nq);var f=t.axis;yi.x=f.dataToCoord(zu(f.scale,u.labelInfo.tick)),yi.y=r.labelOffset+r.labelDirection*a,yi.rotation=u.layoutRotation,n.add(yi),yi.updateTransform(),n.remove(yi),yi.decomposeTransform(),ha(l,yi),l.markRedraw(),tg(s,!0),Pa(s)}})}var yi=new Ft,nq=new Ft;function rx(r){return!!r}function aq(r,t,e,n){e.on("click",function(a){var i={type:ug,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function iq(r,t,e){var n=Le();if(n){var a=n.retrieveAxisBreakPairs(e,function(o){return o&&rl(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&M(a,function(o){fv().adjustBreakLabelPair(r.axis.inverse,t,[Pa(e[o[0]]),Pa(e[o[1]])])})}}const mi=nl;function cg(r,t,e){e=e||{};var n=t.axis,a={},i=n.getAxesOnZeroOf()[0],o=n.position,s=i?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,v=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));v[f.onZero]=Math.max(Math.min(h,v[1]),v[0])}a.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=d[o],a.labelOffset=i?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Rr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var p=t.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-p:p,a.z2=1,a}function oq(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function sq(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Me).models[0];t[n]=i}),t}function lq(r,t,e,n,a,i){for(var o=cg(r,e),s=!1,l=!1,u=0;u<t.length;u++)iE(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new mi(e,n,o,a)}function uq(r,t,e){var n=cg(t,e);r.updateCfg(n)}function fq(r){return r.dim+"_"+r.index}function cq(){wX("liPosMinGap",vq)}function vq(r,t,e){var n=ot(),a=e.serUids,i=e.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,c=dP(f);function v(_){Xp(r,t.sers,function(S){var x=S.getRawData(),b=x.getDimensionIndex(x.mapDimension(s.dim));b>=0&&_(b,S,x.getStore())})}var h=0;if(v(function(_,S,x){n.set(S.uid,1),(!a||!a.hasKey(S.uid))&&(o=!0),h+=x.count()}),(!a||a.keys().length!==n.keys().length)&&(o=!0),!o&&i!=null){t.liPosMinGap=i;return}KS(al,h);var d=0;v(function(_,S,x){for(var b=0,w=x.count();b<w;++b){var C=x.get(_,b);isFinite(C)&&(!f||pP(c,C))&&(u&&(C=l.transformIn(C,null)),al.arr[d++]=C)}});var p=al.typed?al.arr.subarray(0,d):(al.arr.length=d,al.arr);al.typed?p.sort():nr(p);for(var g=1/0,y=1;y<d;++y){var m=p[y]-p[y-1];m>0&&m<g&&(g=m)}e.liPosMinGap=t.liPosMinGap=Sn(g)?g:d>0?xE:gX,e.serUids=n}var al=KS({ctor:xK},50);function vg(r){return function(t,e){var n=sr(t,{fromStat:{key:r}});if(Sn(n.w2))return[-n.w2/2,n.w2/2]}}function il(r){return r+Yp}function ol(r,t){return r+Yp+t}function nx(r){return cq(),{liPosMinGap:!wr(r.scale)}}var ka="bar",vv="pictorialBar";function xk(r,t,e,n){mS(r,{key:t,seriesType:e,coordSysType:n,getMetrics:nx})}function bk(r){var t=r.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var wk={left:0,right:0,top:0,bottom:0},hg=["25%","25%"],Qn="cartesian2d",hq=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,n){var a=Is(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&e.outerBounds&&Aa(e.outerBounds,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Aa(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:wk,outerBoundsContain:"all",outerBoundsClampWidth:hg[0],outerBoundsClampHeight:hg[1],backgroundColor:F.color.transparent,borderWidth:1,borderColor:F.color.neutral30},t}(Yt),dq=au(),ax="__ec_stack_";function Tk(r){return r.get("stack")||ax+r.seriesIndex}function pq(r){if(wr(r.axis.scale)){for(var t=sr(r.axis),e=[],n=0;n<r.count;n++)e.push(_t({stackId:ax+n},r));for(var a=Ck({bandWidthResult:t,seriesInfo:e}),i=[],n=0;n<r.count;n++){var o=a[ax+n];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}function gq(r,t){var e=yq(r,t);return e.columnMap=Ck(e),e}function yq(r,t){var e=ol(t,Qn),n=[],a=sr(r,{fromStat:{key:e},min:1});return Ws(r,e,function(i){n.push({barWidth:nt(i.get("barWidth"),a.w),barMaxWidth:nt(i.get("barMaxWidth"),a.w),barMinWidth:nt(i.get("barMinWidth")||(Dk(i)?.5:1),a.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:Tk(i)})}),{bandWidthResult:a,seriesInfo:n}}function Ck(r){var t=r.bandWidthResult.w,e=t,n=0,a,i,o=[],s={};M(r.seriesInfo,function(p,g){g||(i=p.defaultBarGap||0);var y=p.stackId;st(s,y)||n++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=p.barWidth;_&&!m.width&&(m.width=_,_=ae(e,_),e-=_);var S=p.barMaxWidth;S&&(m.maxWidth=S);var x=p.barMinWidth;x&&(m.minWidth=x);var b=p.barGap;b!=null&&(i=b);var w=p.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=Vt(35-o.length*4,15)+"%");var l=nt(a,t),u=nt(i,1),f=(e-l)/(n+(n-1)*u);f=Vt(f,0),M(o,function(p){var g=s[p],y=g.maxWidth,m=g.minWidth;if(g.width){var _=g.width;y&&(_=ae(_,y)),m&&(_=Vt(_,m)),g.width=_,e-=_+u*_,n--}else{var _=f;y&&y<_&&(_=ae(y,e)),m&&m>_&&(_=m),_!==f&&(g.width=_,e-=_+u*_,n--)}}),f=(e-l)/(n+(n-1)*u),f=Vt(f,0);var c=0,v;M(o,function(p){var g=s[p];g.width||(g.width=f),v=g,c+=g.width*(1+u)}),v&&(c-=v.width*u);var h={},d=-c/2;return M(o,function(p){var g=s[p];h[p]=h[p]||{bandWidth:t,offset:d,width:g.width},d+=g.width*(1+u)}),h}function Ak(r){return{seriesType:r,overallReset:function(t){var e=ol(r,Qn);gS(t,e,function(n){var a=gq(n,r);Ws(n,e,function(i){var o=a.columnMap[Tk(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Mk(r){return{seriesType:r,plan:Ns(),reset:function(t){if(oq(t)){var e=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(a.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=po(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(bk(i))),d=Dk(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&Ra(x*3),w=d&&l&&Ra(x*3),C=d&&Ra(x),T=n.master.getRect(),D=v?T.width:T.height,A,L=S.getStore(),I=0;(A=_.next())!=null;){var P=L.get(c?g:o,A),R=L.get(s,A),E=h,N=void 0;c&&(N=+P-L.get(o,A));var O=void 0,G=void 0,$=void 0,H=void 0;if(v){var X=n.dataToPoint([P,R]);c&&(E=n.dataToPoint([N,R])[0]),O=E,G=X[1]+m,$=X[0]-E,H=y,Ae($)<p&&($=($<0?-1:1)*p)}else{var X=n.dataToPoint([R,P]);c&&(E=n.dataToPoint([R,N])[1]),O=X[0]+m,G=E,$=y,H=X[1]-E,Ae(H)<p&&(H=(H<=0?-1:1)*p)}d?(b[I]=O,b[I+1]=G,b[I+2]=v?$:H,w&&(w[I]=v?T.x:O,w[I+1]=v?G:T.y,w[I+2]=D),C[A]=A):S.setItemLayout(A,{x:O,y:G,width:$,height:H}),I+=3}d&&S.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:v})}}}}}}function Dk(r){return r.pipelineContext&&r.pipelineContext.large}function mq(r){return vg(ol(r,Qn))}function Ik(r){dq(r,function(){function t(e){var n=ol(e,Qn);xk(r,n,e,Qn),Zp(n,mq(e))}t("bar"),t("pictorialBar")})}var Lk=function(r){V(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 pi(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(v,h){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(w===g){_=b;break}else if(w<g)m=b;else if(m!=null&&w>g){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t}(me);me.registerClass(Lk);const dg=Lk;var _q=function(r){V(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 pi(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(e,n){var a=rD(this,e,n);return a.progressiveRender&&(a.large=!0),a},t.prototype.brushSelector=function(e,n,a){return a.rect(n.getItemLayout(e))},t.type="series."+ka,t.dependencies=["grid","polar"],t.defaultOption=uo(dg.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:F.color.primary,borderWidth:2}},realtimeSort:!1}),t}(dg);const Sq=_q;var xq=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}(),bq=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xq},t.prototype.buildPath=function(e,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,v=n.clockwise,h=Math.PI*2,d=v?c-f<h:f-c<h;d||(f=c-(v?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+a,g*o+i),e.arc(p*u+a,g*u+i,l,-Math.PI+f,f,!v)):e.moveTo(p*s+a,g*s+i),e.arc(a,i,s,f,c,!v),e.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!v),o!==0&&e.arc(a,i,o,c,f,v)},t}(Gt);const pg=bq;function wq(r,t){t=t||{};var e=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return sd(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(v-h)/2:0,_=Math.cos,S=Math.sin,x=f+v*_(p),b=c+v*S(p),w="left",C="top";switch(s){case"startArc":x=f+(h-l)*_(y),b=c+(h-l)*S(y),w="center",C="top";break;case"insideStartArc":x=f+(h+l)*_(y),b=c+(h+l)*S(y),w="center",C="bottom";break;case"startAngle":x=f+d*_(p)+gg(p,l+m,!1),b=c+d*S(p)+yg(p,l+m,!1),w="right",C="middle";break;case"insideStartAngle":x=f+d*_(p)+gg(p,-l+m,!1),b=c+d*S(p)+yg(p,-l+m,!1),w="left",C="middle";break;case"middle":x=f+d*_(y),b=c+d*S(y),w="center",C="middle";break;case"endArc":x=f+(v+l)*_(y),b=c+(v+l)*S(y),w="center",C="bottom";break;case"insideEndArc":x=f+(v-l)*_(y),b=c+(v-l)*S(y),w="center",C="top";break;case"endAngle":x=f+d*_(g)+gg(g,l+m,!0),b=c+d*S(g)+yg(g,l+m,!0),w="left",C="middle";break;case"insideEndAngle":x=f+d*_(g)+gg(g,-l+m,!0),b=c+d*S(g)+yg(g,-l+m,!0),w="right",C="middle";break;default:return sd(n,a,i)}return n=n||{},n.x=x,n.y=b,n.align=w,n.verticalAlign=C,n}}function Tq(r,t,e,n){if(Wt(n)){r.setTextConfig({rotation:n});return}else if(Y(t)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function gg(r,t,e){return t*Math.sin(r)*(e?-1:1)}function yg(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Oa(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:K(n,function(i){return ga(i,a)})}}var ix=Math.max,ox=Math.min,Cq=function(r){V(t,r);function t(){var e=r.call(this)||this;return e.type=ka,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,a,i){this._model=e,this._removeOnRenderedListener(a),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,a):this._renderNormal(e,n,a,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){lo(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,n,a,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var v=e.isAnimationEnabled()?e:null,h=Aq(e,u);h&&this._enableRealtimeSort(h,s,a);var d=e.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function C(A){var L=mg[u.type](s,A);if(!L)return null;var I=Rq(u,c,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[A]=I,I}s.diff(l).add(function(A){var L=s.getItemModel(A),I=mg[u.type](s,A,L);if(I&&(y&&C(A),!(!s.hasValue(A)||!Ok[u.type](I)))){var P=!1;d&&(P=Pk[u.type](p,I));var R=Ek[u.type](e,s,A,I,c,v,f.model,!1,g);h&&(R.forceLabelAnimation=!0),Bk(R,s,A,L,I,e,c,u.type==="polar"),b?R.attr({shape:I}):h?Rk(h,v,R,I,A,c,!1,!1):pe(R,{shape:I},e,A),s.setItemGraphicEl(A,R),o.add(R),R.ignore=P}}).update(function(A,L){var I=s.getItemModel(A),P=mg[u.type](s,A,I);if(P){if(y){var R=void 0;x.length===0?R=C(L):(R=x[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[A]=R);var E=mg[u.type](s,A),N=Gk(c,E,u);Kt(R,{shape:N},v,A)}var O=l.getItemGraphicEl(L);if(!s.hasValue(A)||!Ok[u.type](P)){o.remove(O);return}var G=!1;d&&(G=Pk[u.type](p,P),G&&o.remove(O));var $=O&&(O.type==="sector"&&g||O.type==="sausage"&&!g);if($&&(O&&fi(O,e,L),O=null),O?wn(O):O=Ek[u.type](e,s,A,P,c,v,f.model,!0,g),h&&(O.forceLabelAnimation=!0),w){var H=O.getTextContent();if(H){var X=yu(H);X.prevValue!=null&&(X.prevValue=X.value)}}else Bk(O,s,A,I,P,e,c,u.type==="polar");b?O.attr({shape:P}):h?Rk(h,v,O,P,A,c,!0,w):Kt(O,{shape:P},e,A,null),s.setItemGraphicEl(A,O),O.ignore=G,o.add(O)}}).remove(function(A){var L=l.getItemGraphicEl(A);L&&fi(L,e,A)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new mt);T.removeAll();for(var D=0;D<S.length;++D)T.add(S[D]);o.add(T),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,a){this._clear(),zk(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),zk(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&tl(e.coordinateSystem,!1,e),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,a){var i=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,a){var i=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:K(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,a){for(var i=a.scale,o=e.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,a,i){if(this._isOrderChangedWithinSameData(e,n,a)){var o=this._dataSort(e,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,a){var i=n.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.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,a=this._data;e&&e.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){fi(i,e,Ct(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=ka,t}(ve),Pk={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 a=r.x+r.width,i=r.y+r.height,o=ix(t.x,r.x),s=ox(t.x+t.width,a),l=ix(t.y,r.y),u=ox(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>a?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||c},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 a=ox(t.r,r.r),i=ix(t.r0,r.r0);t.r=a,t.r0=i;var o=a-i<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Ek={cartesian2d:function(r,t,e,n,a,i,o,s,l){var u=new Ft({shape:W({},n),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,t,e,n,a,i,o,s,l){var u=!a&&l?pg:Nr,f=new u({shape:n,z2:1});f.name="item";var c=Nk(a);if(f.calculateTextPosition=wq(c,{isRoundCap:u===pg}),i){var v=f.shape,h=a?"r":"endAngle",d={};v[h]=a?n.r0:n.startAngle,d[h]=n[h],(s?Kt:pe)(f,{shape:d},i)}return f}};function Aq(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 Rk(r,t,e,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Kt:pe)(e,{shape:l},t,a,null);var f=t?r.baseAxis.model:null;(o?Kt:pe)(e,{shape:u},f,a)}function kk(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var Mq=["x","y","width","height"],Dq=["cx","cy","r","startAngle","endAngle"],Ok={cartesian2d:function(r){return!kk(r,Mq)},polar:function(r){return!kk(r,Dq)}},mg={cartesian2d:function(r,t,e){var n=r.getItemLayout(t);if(!n)return null;var a=e?Lq(e,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,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 Iq(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Nk(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 Bk(r,t,e,n,a,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Oa(n.getModel("itemStyle"),f,!0);W(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?kq(a,i.coordinateSystem):Oq(a,i.coordinateSystem),d=Ue(n);qe(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Uu(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,Tq(r,g==="outside"?h:g,Nk(o),n.get(["label","rotate"]))}KI(p,d,i.getRawValue(e),function(m){return zR(t,m)});var y=n.getModel(["emphasis"]);ge(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),He(r,n),Iq(a)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Lq(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var Pq=function(){function r(){}return r}(),Vk=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Pq},t.prototype.buildPath=function(e,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(Gt);function zk(r,t,e,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=n?ya(r):0;if(u){var c=new Vk({shape:{points:u},incremental:f,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),e&&e.push(c)}var v=new Vk({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(a.getVisual("style")),v.style.stroke=null,Ct(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",Fk),v.on("mousemove",Fk)),e&&e.push(v)}var Fk=R1(function(r){var t=this,e=Eq(t,r.offsetX,r.offsetY);Ct(t).dataIndex=e>=0?e:null},30,!1);function Eq(r,t,e){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var v=f*3;if(l[n]=u,l[a]=i[v+2],s[n]=i[v+n],s[a]=i[v+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Gk(r,t,e){if(el(e,"cartesian2d")){var n=t,a=e.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=e.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Rq(r,t,e){var n=r.type==="polar"?Nr:Ft;return new n({shape:Gk(t,e,r),silent:!0,z2:0})}function kq(r,t){if(r.height===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function Oq(r,t){if(r.width===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"left":"right"}return r.width>=0?"right":"left"}const Nq=Cq;function Bq(r){r.registerChartView(Nq),r.registerSeriesModel(Sq),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ak(ka)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Mk(ka)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lk(ka)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})}),Ik(r)}function hv(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}function Xu(r,t,e){t=Y(t)&&{coordDimensions:t}||W({encodeDefine:r.getEncode()},t);var n=r.getSource(),a=zc(n,t).dimensions,i=new zr(a,r);return i.initData(n,e),i}var Vq=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 Zu=Vq;var So="pie",zq=Et(),Hk=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zu(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Xu(this,{coordDimensions:["value"],encodeDefaulter:Bt(v1,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),a=zq(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=mU(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){es(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.type="series."+So,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(me);wY({fullType:Hk.type,getCoord2:function(r){return r.getShallow("center")}});const Fq=Hk;var Gq=Math.PI/180;function $k(r,t,e,n,a,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),x=n+_.len,b=x*x,w=Math.sqrt(Math.abs((1-S*S/y)*b)),C=t+(w+_.len2)*a,T=C-_.label.x,D=_.targetTextWidth-T*a;Uk(_,D,!0),_.label.x=C}}function c(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*a,w=n+_.len,C=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=C,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var v=r.length,h=0;h<v;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}LS(r,1,l,l+o)&&c(r)}function Hq(r,t,e,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,v=0;v<r.length;v++){var h=r[v].label;sx(r[v])||(h.x<t?(f=Math.min(f,h.x),l.push(r[v])):(c=Math.max(c,h.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var d=r[v];if(!sx(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+a-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=f-o-d.bleedMargin:g=o+a-c-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+a-h.x-d.bleedMargin,d.targetTextWidth=g,Uk(d,g,!1)}}$k(u,t,e,n,1,a,i,o,s,c),$k(l,t,e,n,-1,a,i,o,s,f);for(var v=0;v<r.length;v++){var d=r[v];if(!sx(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,x=d.rect.width+S,b=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+a-d.edgeDistance-x-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=h.y}}}function Uk(r,t,e){if(r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,h=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",h)}Wk(i,n)}}}function Wk(r,t){Yk.rect=r,tR(Yk,t,$q)}var $q={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Yk={};function sx(r){return r.position==="center"}function Uq(r){var t=r.getData(),e=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*Gq,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,v=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),C=w.shape,T=w.getTextContent(),D=w.getTextGuideLine(),A=t.getItemModel(b),L=A.getModel("label"),I=L.get("position")||A.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=nt(L.get("edgeDistance"),u),N=L.get("bleedMargin");N==null&&(N=Math.min(u,v)>200?10:2);var O=A.getModel("labelLine"),G=O.get("length");G=nt(G,u);var $=O.get("length2");if($=nt($,u),Math.abs(C.endAngle-C.startAngle)<o){M(T.states,h),T.ignore=!0,D&&(M(D.states,h),D.ignore=!0);return}if(d(T)){var H=(C.startAngle+C.endAngle)/2,X=Math.cos(H),q=Math.sin(H),J,Q,St,Ht;n=C.cx,a=C.cy;var gt=I==="inside"||I==="inner";if(I==="center")J=C.cx,Q=C.cy,Ht="center";else{var ft=(gt?(C.r+C.r0)/2*X:C.r*X)+n,Tt=(gt?(C.r+C.r0)/2*q:C.r*q)+a;if(J=ft+X*3,Q=Tt+q*3,!gt){var ct=ft+X*(G+l-C.r),wt=Tt+q*(G+l-C.r),k=ct+(X<0?-1:1)*$,B=wt;R==="edge"?J=X<0?f+E:f+u-E:J=k+(X<0?-P:P),Q=B,St=[[ft,Tt],[ct,wt],[k,B]]}Ht=gt?"center":R==="edge"?X>0?"right":"left":X>0?"left":"right"}var U=Math.PI,Z=0,j=L.get("rotate");if(Wt(j))Z=j*(U/180);else if(I==="center")Z=0;else if(j==="radial"||j===!0){var tt=X<0?-H+U:-H;Z=tt}else if(j==="tangential"||j==="tangential-noflip"&&I!=="outside"&&I!=="outer"){var lt=Math.atan2(X,q);lt<0&&(lt=U*2+lt);var at=q>0;at&&j!=="tangential-noflip"&&(lt=U+lt),Z=lt-U}if(i=!!Z,T.x=J,T.y=Q,T.rotation=Z,T.setStyle({verticalAlign:"middle"}),gt){T.setStyle({align:Ht});var rt=T.states.select;rt&&(rt.x+=T.x,rt.y+=T.y)}else{var ht=new Mt(0,0,0,0);Wk(ht,T),e.push({label:T,labelLine:D,position:I,len:G,len2:$,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new bt(X,q),linePoints:St,textAlign:Ht,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:N,rect:ht,unconstrainedWidth:ht.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:gt})}}),!i&&r.get("avoidLabelOverlap")&&Hq(e,n,a,l,u,v,f,c);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(M(m.states,h),m.ignore=!0):(qE(x,g.minTurnAngle),cZ(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new bt(x[0][0],x[0][1])})}}}var Xk=Math.PI*2,_g=Math.PI/180,Wq=Ge(So,Yq);function Yq(r,t){r.eachSeriesByType(So,function(e){var n=e.getData(),a=n.mapDimension("value"),i=TL(e,t),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,c=-e.get("startAngle")*_g,v=e.get("endAngle"),h=e.get("padAngle")*_g;v=v==="auto"?c-Xk:-v*_g;var d=e.get("minAngle")*_g,p=d+h,g=0;n.each(a,function(E){!isNaN(E)&&g++});var y=n.getSum(a),m=Math.PI/(y||g)*2,_=e.get("clockwise"),S=e.get("roseType"),x=e.get("stillShowZeroSum"),b=n.getDataExtent(a);b[0]=0;var w=_?1:-1,C=[c,v],T=w*h/2;Cd(C,!_),c=C[0],v=C[1];var D=Zk(e);D.startAngle=c,D.endAngle=v,D.clockwise=_,D.cx=o,D.cy=s,D.r=l,D.r0=u;var A=Math.abs(v-c),L=A,I=0,P=c;if(n.setLayout({viewRect:f,r:l}),n.each(a,function(E,N){var O;if(isNaN(E)){n.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});return}S!=="area"?O=y===0&&x?m:E*m:O=A/g,O<p?(O=p,L-=p):I+=E;var G=P+w*O,$=0,H=0;h>O?($=P+w*O/2,H=$):($=P+T,H=G-T),n.setItemLayout(N,{angle:O,startAngle:$,endAngle:H,clockwise:_,cx:o,cy:s,r0:u,r:S?Jt(E,b,[u,l]):l}),P=G}),L<Xk&&g)if(L<=.001){var R=A/g;n.each(a,function(E,N){if(!isNaN(E)){var O=n.getItemLayout(N);O.angle=R;var G=0,$=0;R<h?(G=c+w*(N+1/2)*R,$=G):(G=c+w*N*R+T,$=c+w*(N+1)*R-T),O.startAngle=G,O.endAngle=$}})}else m=L/I,P=c,n.each(a,function(E,N){if(!isNaN(E)){var O=n.getItemLayout(N),G=O.angle===p?p:E*m,$=0,H=0;G<h?($=P+w*G/2,H=$):($=P+T,H=P+w*G-T),O.startAngle=$,O.endAngle=H,P+=w*G}})})}var Zk=Et(),Xq=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.z2=2;var o=new Xt;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),c=W(Oa(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var v=s.getShallow("animationType");s.ecModel.ssr?(pe(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):v==="scale"?(o.shape.r=f.r0,pe(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),pe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Kt(o,{shape:{endAngle:f.endAngle}},s,n))}else wn(o),Kt(o,{shape:c},s,n);o.useStyle(e.getItemVisual(n,"style")),He(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=W({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Oa(u.getModel("itemStyle"),f)),W(o.ensureState("select"),{x:p,y:g,shape:Oa(l.getModel(["select","itemStyle"]),f)}),W(o.ensureState("blur"),{shape:Oa(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&W(m.ensureState("select"),{x:p,y:g}),W(_.ensureState("select"),{x:p,y:g}),ge(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;qe(i,Ue(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new xr,this.setTextGuideLine(h)),CS(this,AS(o),{stroke:u,opacity:nn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Nr),Zq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=So,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var v=Zk(e),h=new Nr({shape:dt(v)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new Xq(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);fi(p,e,d)}).execute(),Uq(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=So,t}(ve);const Kq=Zq;function qq(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(Wt(o)&&!isNaN(o)&&o<0)})}}}function jq(r){r.registerChartView(Kq),r.registerSeriesModel(Fq),QP(So,r.registerAction),r.registerLayout(Wq),r.registerProcessor(hv(So)),r.registerProcessor(qq(So))}var Jq=function(r){V(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 pi(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,n,a){return a.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","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:F.color.primary}},universalTransition:{divideShape:"clone"}},t}(me);const Qq=Jq;var Kk=4,tj=function(){function r(){}return r}(),ej=function(r){V(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 tj},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.buildPath=function(e,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<Kk,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var v=a[c++],h=a[c++];isNaN(v)||isNaN(h)||f&&!f.contain(v,h)||(s.x=v-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,n=e.points,a=e.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,n){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,c=i[f]-s/2,v=i[f+1]-l/2;if(e>=c&&n>=v&&e<=c+s&&n<=v+l)return u}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.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,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,v=0;v<a.length;){var h=a[v++],d=a[v++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),c=Math.max(d,c)}e=this._rect=new Mt(l-o/2,u-s/2,f-l+o,c-u+s)}return e},t}(Gt),rj=function(){function r(){this.group=new mt}return r.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},r.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}a.setShape("points",n),a.reset(),a.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,n,a){var i=this._newAdded[0],o=e.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=t.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=t.start,f.endIndex=t.end,f.incremental=n,f.setShape({points:o}),this._setCommon(f,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new ej({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=Oe(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<Kk;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Ct(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var c=t.hoverDataIdx;c>=0&&(u.dataIndex=c+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const nj=rj;var aj=function(r){V(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,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,lx(e)),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._symbolDraw.incrementalUpdate(e,n.getData(),ya(n),lx(n)),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,a){var i=e.getData();if(this.group.dirty(),this._finished){var o=uv("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(lx(e))}else return{update:!0}},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._updateSymbolDraw=function(e,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new nj:new iv,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(ve);function lx(r){return{clipShape:KR(r)}}const ij=aj;var ux=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Me).models[0]},t.type="cartesian2dAxis",t}(Yt);ze(ux,Kc);var qk={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:F.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:F.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:F.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[F.color.backgroundTint,F.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:F.color.neutral00,borderColor:F.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},oj=Rt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},qk),fx=Rt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:F.color.axisMinorSplitLine,width:1}}},qk),sj=Rt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fx),lj=_t({logBase:10},fx);const jk={category:oj,value:fx,time:sj,log:lj};function Ku(r,t,e,n){M(yE,function(a,i){var o=Rt(Rt({},jk[i],!0),n,!0),s=function(l){V(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var v=bc(this),h=v?Is(f):{},d=c.getTheme();Rt(f,d.get(i+"Axis")),Rt(f,this.getDefaultOption()),f.type=Jk(f),v&&Aa(f,h,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Fc.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var c=fv();return c?c.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Jk)}function Jk(r){return r.type||(r.data?"category":"value")}var uj=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 K(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ne(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 fj=uj;var Sg=["x","y"];function Qk(r){return(r.type==="interval"||r.type==="time")&&!ep(r)}var cj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Qn,e.dimensions=Sg,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Qk(e)||!Qk(n))){var a=$c(e,null),i=$c(n,null),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,v=o[0]-a[0]*f,h=o[1]-i[0]*c,d=this._transform=[f,0,0,c,v,h];this._invTransform=yn([],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"),a=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&a.contain(a.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 a=this.dataToPoint(e),i=this.dataToPoint(n),o=this.getArea(),s=new Mt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,a){a=a||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Ce(a,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(e,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(e[0]),u=i.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n,a){if(a=a||[],this._invTransform)return Ce(a,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(e[0]),n),a[1]=o.coordToData(o.toLocalCoord(e[1]),n),a},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-e,o=Math.min(a[0],a[1])-e,s=Math.max(n[0],n[1])-i+e,l=Math.max(a[0],a[1])-o+e;return new Mt(i,o,s,l)},t}(fj);function tO(r,t){var e=r.scale,n=r.model,a=PE(e,n,n.ecModel,r,null),i=Bu(e),o=Bu(t)?t.intervalStub:t,s=i?e.intervalStub:e,l=e.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),c=u.length-1,v,h,d;if(c===1)v=h=0,d=1;else if(c===2){var p=Ae(u[0].value-u[1].value),g=Ae(u[1].value-u[2].value);v=h=0,p===g?d=2:(d=1,p<g?v=p/g:h=g/p)}else{var y=o.getConfig().interval;v=(1-(u[0].value-f[0].value)/y)%1,h=(1-(f[c].value-u[c].value)/y)%1,d=c-(v?1:0)-(h?1:0)}var m=a.zoomFixMM,_=m[0]||m[1],S=[a.fixMM[0]||_,a.fixMM[1]||_],x=e.getExtent(),b=s.getExtent(),w=oE(b,S),C,T,D,A,L,I;function P(X){for(var q=50,J=0;J<q&&!X();J++)D=i?D*Vt(l,2):X9(D),A=$s(D)}function R(){C=Zt(I-D*v,A)}function E(){T=Zt(L+D*h,A)}function N(){I=v?Zt(C+D*v,A):C}function O(){L=h?Zt(T-D*h,A):T}if(S[0]&&S[1]){C=w[0],T=w[1],D=(T-C)/(d+v+h);var G=r.getExtent(),$=Ae(G[1]-G[0]);A=G0([T,C],$,.5/d),N(),O(),Sn(A)&&(D=Zt(D,A))}else{var H=w[1]-w[0];D=i?Vt(BM(H),1):$0(H/d,VM),A=$s(D),S[0]?(C=w[0],P(function(){if(N(),L=Zt(I+D*d,A),E(),T>=w[1])return!0})):S[1]?(T=w[1],P(function(){if(O(),I=Zt(L-D*d,A),R(),C<=w[0])return!0})):P(function(){I=Zt(jo(w[0]/D)*D,A),L=Zt(Hn(w[1]/D)*D,A);var X=ei((L-I)/D);if(X<=d){var q=d-X,J=void 0,Q=a.incl0||i;if(Q&&w[0]===0)J=[0,q];else if(Q&&w[1]===0)J=[q,0];else{var St=Hn(q/2);J=q%2===0?[St,St]:C+T<w[0]+w[1]?[St,St+1]:[St+1,St]}if(I=Zt(I-D*J[0],A),L=Zt(L+D*J[1],A),R(),E(),C<=w[0]&&T>=w[1])return!0}})}SE(e,S,b,[C,T],x,{interval:D,intervalCount:d,intervalPrecision:A,niceExtent:[I,L]})}var eO=[[3,1],[0,2]],vj=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Sg,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;M(this._axesList,function(o){Xs(o,Gu);var s=o.scale;wr(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=Ut(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):Hu(f)}M(l,function(c){dj(c,c.__alignTo)?Hu(c):tO(c,c.__alignTo.scale)})}a(n.x),a(n.y);var i={};M(n.x,function(o){rO(n,"y",o,i)}),M(n.y,function(o){rO(n,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var a=We(t,e),i=this._rect=ye(t.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(cx(o,i),!n){var u=yj(i,s,o,l,e),f=void 0;if(l)vx?(vx(this._axesList,i),cx(o,i)):f=oO(i.clone(),"axisLabel",null,i,o,u,a);else{var c=mj(t,i,a),v=c.outerBoundsRect,h=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;v&&(f=oO(v,h,d,i,o,u,a))}sO(i,o,Kn.determine,null,f,a),M(this._coordsList,function(p){p.calcAffineTransform()})}},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]}xt(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===e)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var a=this._findConvertTarget(e);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Me).models[0],a=t.yAxisModel||e&&e.getReferringComponents("yAxis",Me).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,Lt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,c){M(s.y,function(v,h){var d="x"+c+"y"+h,p=new cj(d);p.master=a,p.model=t,a._coordsMap[d]=p,a._coordsList.push(p),p.addAxis(f),p.addAxis(v)})}),aO(s.x),aO(s.y);function u(f){return function(c,v){if(hj(c,t)){var h=c.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=Up(c),p=new uk(f,Wc(c,d,!0),[0,0],d,h);p.onBand=Zc(p.scale,c),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=i,p.index=v,i._axesList.push(p),s[f][v]=p,l[f]++}}}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return M(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);Lt(e,i)<0&&e.push(i),Lt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(a,i){var o=new r(a,t,e);o.name="grid_"+i,o.resize(a,e,!0),a.coordinateSystem=o,n.push(o),M(o._axesList,function(s){DX(s,r.dimIdxMap)})}),t.eachSeries(function(a){var i,o;_c({targetModel:a,coordSysType:Qn,coordSysProvider:s});function s(){var l=sq(a),u=l.xAxisModel,f=l.yAxisModel;i=u.axis,o=f.axis;var c=u.getCoordSysModel(),v=c.coordinateSystem;return v.getCartesian(u.componentIndex,f.componentIndex)}i&&o&&(Ys(i,a,Qn),Ys(o,a,Qn))},this),n},r.dimensions=Sg,r.dimIdxMap=aS(Sg),r}();function hj(r,t){return r.getCoordSysModel()===t}function rO(r,t,e,n){e.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)nO(s,a[l])&&(i=a[l]);else for(var u in a)if(st(a,u)&&nO(s,a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function nO(r,t){if(!t)return!1;var e=t.scale,n=sX(e,0,!1),a=t&&t.type!=="category"&&t.type!=="time"&&n!==hS;return a&&r==="auto"&&cX(t)&&(a=!1),a}function aO(r){for(var t=Ut(r),e,n=[],a=t.length-1;a>=0;a--){var i=r[+t[a]];iE(i.scale)&&_E(i.model,i.type,!0)==null&&(i.model.get("alignTicks")&&i.model.get("interval")==null?n.push(i):e=i)}e||(e=n.pop()),e&&M(n,function(o){o.__alignTo=e})}function dj(r,t){return ep(r.scale)||ep(t.scale)||t.scale.getTicks().length<2}function pj(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+t}:function(a){return n-a+t},r.toLocalCoord=r.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}function cx(r,t){M(r.x,function(e){return iO(e,t.x,t.width)}),M(r.y,function(e){return iO(e,t.y,t.height)})}function iO(r,t,e){var n=[0,e],a=r.inverse?1:0;r.setExtent(n[a],n[1-a]),pj(r,t)}var vx;function gj(r){vx=r}function oO(r,t,e,n,a,i,o){sO(n,a,Kn.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=zi(s,function(v){return v>0})==null;return xs(n,s,!0,!0,e),cx(a,n),l;function u(v){M(a[Dt[v]],function(h){if(Xc(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(zu(h.scale,rl(y.label).labelInfo.tick));m=v===1?1-m:m,f(y.rect,v,m),f(y.rect,1-v,NaN)}var _=d.nameLayout;if(_){var m=Vu(d.nameLocation)?.5:NaN;f(_.rect,v,m),f(_.rect,1-v,NaN)}}})}function f(v,h,d){var p=r[Dt[h]]-v[Dt[h]],g=v[Ie[h]]+v[Dt[h]]-(r[Ie[h]]+r[Dt[h]]);p=c(p,1-d),g=c(g,d);var y=eO[h][0],m=eO[h][1];s[y]=Vt(s[y],p),s[m]=Vt(s[m],g)}function c(v,h){return v>0&&!gr(h)&&h>1e-4&&(v/=h),v}}function yj(r,t,e,n,a){var i=new hk(_j);return M(e,function(o){return M(o,function(s){if(Xc(s.model)){var l=!n;s.axisBuilder=lq(r,t,s.model,a,i,l)}})}),i}function sO(r,t,e,n,a,i){var o=e===Kn.determine;M(t,function(u){return M(u,function(f){Xc(f.model)&&(uq(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Dt[1-u]]=r[Ie[u]]<=i.refContainer[Ie[u]]*.5?0:1-u===1?2:1}M(t,function(u,f){return M(u,function(c){Xc(c.model)&&((n==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function mj(r,t,e){var n,a=r.get("outerBoundsMode",!0);a==="same"?n=t.clone():(a==null||a==="auto")&&(n=ye(r.get("outerBounds",!0)||wk,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||Lt(["all","axisLabel"],i)<0?o="all":o=i;var s=[dd(ut(r.get("outerBoundsClampWidth",!0),hg[0]),t.width),dd(ut(r.get("outerBoundsClampHeight",!0),hg[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var _j=function(r,t,e,n,a,i){var o=e.axis.dim==="x"?"y":"x";dk(r,t,e,n,a,i),Vu(r.nameLocation)||M(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&gk(s.labelInfoList,s.dirVec,n,a)})};const Sj=vj;function xj(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return bj(e,r,t),e.seriesInvolved&&Tj(e,r),e}function bj(r,t,e){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=dv(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(M(s.getAxes(),Bt(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var v=c.get("trigger")==="axis",h=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(v||h)&&M(d.baseAxes,Bt(p,h?"cross":!0,v)),h&&M(d.otherAxes,Bt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!px(_))){y==null&&(y=_.get("triggerTooltip")),_=g?wj(m,c,a,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=dv(m.model),C=y||x||m.type==="category",T=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:C,snap:x,useHandle:px(_),seriesModels:[],linkGroup:null};u[w]=T,r.seriesInvolved=r.seriesInvolved||C;var D=Cj(i,m);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[w]=T,A.mapper=i[D].mapper,T.linkGroup=A}}}})}function wj(r,t,e,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(v){l[v]=dt(o.get(v))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&_t(u,c.textStyle)}}return r.model.getModel("axisPointer",new qt(l,e,n))}function Tj(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,a=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!n||!n.model||a==="none"||a===!1||a==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[dv(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function Cj(r,t){for(var e=t.model,n=t.dim,a=0;a<r.length;a++){var i=r[a]||{};if(hx(i[n+"AxisId"],e.id)||hx(i[n+"AxisIndex"],e.componentIndex)||hx(i[n+"AxisName"],e.name))return a}}function hx(r,t){return r==="all"||Y(r)&&Lt(r,t)>=0||r===t}function Aj(r){var t=dx(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,a=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=px(e);i==null&&(a.status=s?"show":"hide");var l=n.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function dx(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[dv(r)]}function Mj(r){var t=dx(r);return t&&t.axisPointerModel}function px(r){return!!r.get(["handle","show"])}function dv(r){return r.type+"||"+r.id}var lO={},Dj=function(r){V(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,a,i){this.axisPointerClass&&Aj(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,a,!0)},t.prototype.updateAxisPointer=function(e,n,a,i){this._doUpdateAxisPointerClass(e,a,!1)},t.prototype.remove=function(e,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=Mj(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){lO[e]=n},t.getAxisPointerClass=function(e){return e&&lO[e]},t.type="axis",t}(be);const sl=Dj;var gx=Et();function uO(r,t,e,n){var a=e.axis;if(!a.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=gx(r).splitAreaColors,v=ot(),h=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=Y(s)?s:[s];for(var d=1;d<u.length;d++){var m=a.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;a.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[d-1].tickValue;w!=null&&v.set(w,h),t.add(new Ft({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:_t({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}gx(r).splitAreaColors=v}}}function fO(r){gx(r).splitAreaColors=null}var Ij=["splitArea","splitLine","minorSplitLine","breakArea"],cO=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new mt,this.group.add(this._axisGroup),!!Xc(e)){this._axisGroup.add(e.axis.axisBuilder.group),M(Ij,function(l){e.get([l,"show"])&&Lj[l](this,this._axisGroup,e,e.getCoordSysModel(),a)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||cc(o,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)}},t.prototype.remove=function(){fO(this)},t.type="cartesianAxis",t}(sl),Lj={splitLine:function(r,t,e,n,a){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=Y(l)?l:[l];for(var c=n.coordinateSystem.getRect(),v=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;v?(p[0]=_,p[1]=c.y,g[0]=_,g[1]=c.y+c.height):(p[0]=c.x,p[1]=_,g[0]=c.x+c.width,g[1]=_);var x=h++%l.length,b=new $e({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:_t({stroke:l[x]},y),silent:!0});pu(b.shape,y.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,n,a){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],v=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(c[0]=g,c[1]=l.y,v[0]=g,v[1]=l.y+l.height):(c[0]=l.x,c[1]=g,v[0]=l.x+l.width,v[1]=g);var y=new $e({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:v[0],y2:v[1]},style:h,silent:!0});pu(y.shape,h.lineWidth),t.add(y)}},splitArea:function(r,t,e,n,a){uO(r,t,e,n)},breakArea:function(r,t,e,n,a){var i=fv(),o=e.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,e,n.coordinateSystem.getRect(),a)}},vO=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(cO),Pj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=vO.type,e}return t.type="yAxis",t}(cO),Ej=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new Ft({shape:e.coordinateSystem.getRect(),style:_t({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(be),hO={offset:0};function dO(r){r.registerComponentView(Ej),r.registerComponentModel(hq),r.registerCoordinateSystem("cartesian2d",Sj),Ku(r,"x",ux,hO),Ku(r,"y",ux,hO),r.registerComponentView(vO),r.registerComponentView(Pj),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var xg="single",Rj="singleAxis",yx="singleAxis",pO=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type=yx,t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},t}(Yt);ze(pO,Kc.prototype);const mx=pO;function kj(r,t){var e=r.coordinateSystem,n=e&&e.type,a=e&&e.getBaseAxis&&e.getBaseAxis(),i=a&&a.scale&&a.scale.type,o=n===Qn&&i==="ordinal"||n===xg,s=t.model.get("jitter")>0;return o&&s}var Oj=Et();function gO(r,t,e,n){if(r instanceof uk){var a=r.scale.type;if(a!=="ordinal")return e}var i=r.model,o=i.get("jitter");if(!(o>0))return e;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=wr(r.scale)?sr(r).w:null;return s?yO(e,o,u,n):Nj(r,t,e,n,o,l)}function yO(r,t,e,n){if(e===null)return r+(Math.random()-.5)*t;var a=e-n*2,i=Math.min(Math.max(0,t),a);return r+(Math.random()-.5)*i}function Nj(r,t,e,n,a,i){var o=Oj(r);o.items||(o.items=[]);var s=o.items,l=mO(s,t,e,n,a,i,1),u=mO(s,t,e,n,a,i,-1),f=Math.abs(l-e)<Math.abs(u-e)?l:u,c=wr(r.scale)?sr(r).w:null,v=Math.abs(f-e);return v>a/2||c&&v>c/2-n?yO(e,a,c,n):(s.push({fixedCoord:t,floatCoord:f,r:n}),f)}function mO(r,t,e,n,a,i,o){for(var s=e,l=0;l<r.length;l++){var u=r[l],f=t-u.fixedCoord,c=s-u.floatCoord,v=f*f+c*c,h=n+u.r+i;if(v<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-e)>a/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function Bj(){return{seriesType:"scatter",plan:Ns(),reset:function(r){var t=r.coordinateSystem;if(!(!t||t.type!==Qn&&t.type!==xg)){var e=t.getBaseAxis&&t.getBaseAxis(),n=e&&kj(r,e);if(n){var a=e.dim,i=e.orient,o=i==="horizontal"&&e.type!=="category"||i==="vertical"&&e.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var c=f.getLayout("points"),v=!!c,h=u.start;h<u.end;h++){var d=v?(h-u.start)*2:-1,p=v?[c[d],c[d+1]]:f.getItemLayout(h);if(p){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=gO(e,p[0],p[1],y/2);v?c[d+1]=m:p[1]=m}else if(l){var m=gO(e,p[1],p[0],y/2);v?c[d]=m:p[0]=m}}}}}}}}}}function Vj(r){Nt(dO),r.registerSeriesModel(Qq),r.registerChartView(ij),r.registerLayout(uv("scatter"))}function zj(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Bj())}function Fj(r){var t=r.polar;if(t){Y(t)||(t=[t]);var e=[];M(t,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],Y(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):e.push(n)}),r.polar=e}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var pv="radar",Gj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zu(it(this.getData,this),it(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return Xu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=LP(this,e);return ke("section",{header:u,sortBlocks:!0,blocks:K(s,function(c){var v=i.get(i.mapDimension(c.dim),e);return ke("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(K(a.dimensions,function(u){return n.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series."+pv,t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(me);const Hj=Gj;var $j=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=pv,e}return t.prototype.render=function(e,n,a){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=Iu(v.getItemVisual(h,"symbolSize")),g=Oe(d,-1,-1,2,2),y=v.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),ws[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},e,g)):_.setPosition(h[m]),d.add(_))}}function c(v){return K(v,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Br,p=new xr,g={shape:{points:h}};d.shape.points=c(h),p.shape.points=c(h),pe(d,g,e,v),pe(p,g,e,v);var y=new mt,m=new mt;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(v)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,v,!1),wn(g),wn(p),Kt(p,m,e),Kt(g,m,e),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(v),p.useStyle(_t(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),He(p,d,"lineStyle"),He(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,M(["emphasis","select","blur"],function(w){var C=d.getModel([w,"areaStyle"]),T=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(w).ignore=T&&x;var D=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=D;var A=C.getAreaStyle();g.ensureState(w).style=A;var L=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(I){I.ensureState(w).style=dt(L)})}),g.useStyle(_t(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof ir){var C=w.style;w.useStyle(W({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(T==null||isNaN(T))&&(T=""),qe(w,Ue(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:m.opacity})}),ge(v,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=pv,t}(ve);const Uj=$j;var gv=jk.value,yv="radar",_O=yv,Wj=yv,SO=5;function bg(r,t){return _t({show:t},r)}var Yj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),a=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=K(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=u;p.color!=null&&(g=_t({color:p.color},u));var y=Rt(dt(p),{boundaryGap:e,splitNumber:n,clockwise:a,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:p.text,showName:f,nameLocation:"end",nameGap:v,nameTextStyle:g,triggerEvent:h},!1);if(et(c)){var m=y.name;y.name=c.replace("{value}",m??"")}else yt(c)&&(y.name=c(y.name,y));var _=new qt(y,null,this.ecModel);return ze(_,Kc.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Cs("ec_radar"),_},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=_O,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:F.color.axisLabel},boundaryGap:[0,0],splitNumber:SO,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Rt({lineStyle:{color:F.color.neutral20}},gv.axisLine),axisLabel:bg(gv.axisLabel,!1),axisTick:bg(gv.axisTick,!1),splitLine:bg(gv.splitLine,!0),splitArea:bg(gv.splitArea,!0),indicator:[]},t}(Yt);const Xj=Yj;var Zj=function(r){V(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,a){var i=this.group;i.removeAll(),this._buildAxes(e,a),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,n){var a=e.coordinateSystem,i=a.getIndicatorAxes(),o=K(i,function(s){var l=s.model.get("showName")?s.name:"",u=new mi(s.model,n,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});M(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),v=l.get("color"),h=u.get("color"),d=Y(v)?v:[v],p=Y(h)?h:[h],g=[],y=[];function m(R,E,N){var O=N%E.length;return R[O]=R[O]||[],O}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,x=n.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new oo({shape:{cx:S,cy:x,r:_[b].coord}}))}if(c&&b<_.length-1){var w=m(y,p,b);y[w].push(new Bd({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var C,T=K(a,function(R,E){var N=R.getTicksCoords();return C=C==null?N.length-1:Math.min(N.length-1,C),K(N,function(O){return n.coordToPoint(O.coord,E)})}),D=[],b=0;b<=C;b++){for(var A=[],L=0;L<a.length;L++)A.push(T[L][b]);if(A[0]&&A.push(A[0].slice()),f){var w=m(g,d,b);g[w].push(new xr({shape:{points:A}}))}if(c&&D){var w=m(y,p,b-1);y[w].push(new Br({shape:{points:A.concat(D)}}))}D=A.slice().reverse()}var I=l.getLineStyle(),P=u.getAreaStyle();M(y,function(R,E){this.group.add(Tn(R,{style:_t({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),M(g,function(R,E){this.group.add(Tn(R,{style:_t({fill:"none",stroke:d[E%d.length]},I),silent:!0}))},this)},t.type="radar",t}(be);const Kj=Zj;var qj=function(r){V(t,r);function t(e,n,a){var i=r.call(this,e,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(qn);const jj=qj;var Jj=function(){function r(t,e,n){this.type=yv,this.dimensions=[],this._model=t,this._indicatorAxes=K(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new jj(o,new Us);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],a=n.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=Math.sqrt(e*e+n*n);e/=a,n/=a;for(var i=Math.atan2(-n,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(t,e){var n=We(t,e).refContainer,a=t.get("center"),i=t.get("clockwise")||!1,o=Math.min(n.width,n.height)/2;this.cx=nt(a[0],n.width)+n.x,this.cy=nt(a[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(et(s)||Wt(s))&&(s=[0,s]),this.r0=nt(s[0],o),this.r=nt(s[1],o);var l=i?-1:1;M(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var c=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),u.angle=c},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,a=this._model,i=zp(a.get("splitNumber"),SO),o=new Us;o.setExtent(0,i),o.setConfig({interval:1}),M(n,function(s){Xs(s,Gu),tO(s,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent(_O,function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachSeriesByType(Wj,function(a){if(a.get("coordinateSystem")===yv){var i=a.coordinateSystem=n[a.get("radarIndex")||0];i&&M(i.getIndicatorAxes(),function(o){Ys(o,a,yv)})}}),n},r.dimensions=[],r}();const Qj=Jj;function tJ(r){r.registerCoordinateSystem("radar",Qj),r.registerComponentModel(Xj),r.registerComponentView(Kj),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var eJ=Ge(pv,rJ);function rJ(r){r.eachSeriesByType(pv,function(t){var e=t.getData(),n=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();M(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=xO(f)?f:bO(a)})}),e.each(function(o){var s=zi(n[o],function(l){return xO(l)})||bO(a);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function xO(r){return!isNaN(r[0])&&!isNaN(r[1])}function bO(r){return[r.cx,r.cy]}function nJ(r){Nt(tJ),r.registerChartView(Uj),r.registerSeriesModel(Hj),r.registerLayout(eJ),r.registerProcessor(hv("radar")),r.registerPreprocessor(Fj)}var _x=Et();function aJ(r,t,e){_x(r)[t]=e}function iJ(r,t,e){var n=_x(r),a=n[t];a===e&&(n[t]=null)}function wO(r,t){return!!_x(r)[t]}Ma({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Te);var oJ={axisPointer:1,tooltip:1,brush:1};function TO(r,t,e){var n=t.getComponentByElement(r.topTarget);if(!n||n===e||oJ.hasOwnProperty(n.mainType))return!1;var a=n.coordinateSystem;if(!a||a.model===e)return!1;var i=bs(n),o=bs(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var sJ=function(r){V(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var a=it(n._mousedownHandler,n),i=it(n._mousemoveHandler,n),o=it(n._mouseupHandler,n),s=it(n._mousewheelHandler,n),l=it(n._pinchHandler,n);return n.enable=function(u,f){var c=f.zInfo,v=bs(c.component),h=v.z,d=v.zlevel,p={component:c.component,z:h,zlevel:d,z2:ut(c.z2,-1/0)},g=W({},f.triggerInfo);this._opt=_t(W({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(_v(e,"mousedown",a,p),_v(e,"mousemove",i,p),_v(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(_v(e,"mousewheel",s,p),_v(e,"pinch",l,p)))},n.disable=function(){this._enabled&&(this._enabled=!1,Sv(e,"mousedown",a),Sv(e,"mousemove",i),Sv(e,"mouseup",o),Sv(e,"mousewheel",s),Sv(e,"pinch",l))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,n,a){var i=this._opt,o=i.zInfoParsed;if(TO(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,n,a)),u&&s.isInClip&&!s.isInClip(e,n,a)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,n,a,i){var o=e.target;if(!o&&this._checkPointer(e,n,a))return this._opt.cursorGrab;if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(IA(e)||mv(e))){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=e.offsetX,i=e.offsetY;this._checkPointer(e,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var n=this._zr;if(!(e.gestureEvent==="pinch"||wO(n,"globalPan")||mv(e))){var a=e.offsetX,i=e.offsetY;if(!this._dragging||!Tg("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,a,i,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=i-l;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&ja(e.event),e.__ecRoamConsumed=!0,CO(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!mv(e)){var n=this._zr;if(!IA(e)){this._dragging=!1;var a=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);a&&n.setCursorStyle(a)}}},t.prototype._mousewheelHandler=function(e){if(!mv(e)){var n=Tg("zoomOnMouseWheel",e,this._opt),a=Tg("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),v=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(wO(this._zr,"globalPan")||mv(e))){var n=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,n,a,i,o){e._checkPointer(i,o.originX,o.originY)&&(ja(i.event),i.__ecRoamConsumed=!0,CO(e,n,a,i,o))},t}(dn);function mv(r){return r.__ecRoamConsumed}var lJ=Et();function wg(r){var t=lJ(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function _v(r,t,e,n){for(var a=wg(r),i=a.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:n}),uJ(r,t)}function Sv(r,t,e){for(var n=wg(r),a=n.roam[t]||[],i=0;i<a.length;i++)if(a[i].listener===e){a.splice(i,1),a.length||fJ(r,t);return}}function uJ(r,t){var e=wg(r);e.uniform[t]||r.on(t,e.uniform[t]=function(n){var a=e.roam[t];if(a)for(var i=0;i<a.length;i++)a[i].listener(n)})}function fJ(r,t){var e=wg(r),n=e.uniform;n[t]&&(r.off(t,n[t]),n[t]=null)}function CO(r,t,e,n,a){a.isAvailableBehavior=it(Tg,null,e,n),r.trigger(t,a)}function Tg(r,t,e){var n=e[r];return!r||n&&(!et(n)||t.event[n+"Key"])}const ll=sJ;function AO(r){if(et(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Sx,Cg={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},MO=Ut(Cg),Ag={"alignment-baseline":"textBaseline","stop-color":"stopColor"},DO=Ut(Ag),cJ=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var n=AO(t);this._defsUsePending=[];var a=new mt;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||e.width),l=parseFloat(n.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),cn(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;dJ(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var v=Mg(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(c=NO(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=a;a=new mt,a.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return!e.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Ft({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(t,e,n,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=Sx[s];if(f&&st(Sx,s)){l=f.call(this,t,e);var c=t.getAttribute("name");if(c){var v={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});e.add(l)}}var h=IO[s];if(h&&st(IO,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var n=new nc({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),vJ(n,e);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,e.add(n),n},r.internalField=function(){Sx={g:function(t,e){var n=new mt;return Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Ft;return Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new oo;return Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new $e;return Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new R_;return Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n=t.getAttribute("points"),a;n&&(a=EO(n));var i=new Br({shape:{points:a||[]},silent:!0});return Ln(e,i),cn(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n=t.getAttribute("points"),a;n&&(a=EO(n));var i=new xr({shape:{points:a||[]},silent:!0});return Ln(e,i),cn(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new ir;return Ln(e,n),cn(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new mt;return Ln(e,s),cn(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),a=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new mt;return Ln(e,s),cn(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var n=t.getAttribute("d")||"",a=hI(n);return Ln(e,a),cn(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),IO={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new cu(t,e,n,a);return LO(r,i),PO(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new DI(t,e,n);return LO(r,a),PO(r,a),a}};function LO(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function PO(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var n=e.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};OO(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=Kr(o),u=l&&l[3];u&&(l[3]*=Zi(s),o=va(l,"rgba"))}t.colorStops.push({offset:a,color:o})}e=e.nextSibling}}function Ln(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),_t(t.__inheritedStyle,r.__inheritedStyle))}function EO(r){for(var t=Mg(r),e=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),i=parseFloat(t[n+1]);e.push([a,i])}return e}function cn(r,t,e,n,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(yJ(r,t),OO(r,o,s),n||mJ(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=RO(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=RO(i,"stroke",o.stroke,e)),M(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),M(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=K(Mg(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function vJ(r,t){var e=t.__selfStyle;if(e){var n=e.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var hJ=/^url\(\s*#(.*?)\)/;function RO(r,t,e,n){var a=e&&e.match(hJ);if(a){var i=hn(a[1]);n.push([r,t,i]);return}return e==="none"&&(e=null),e}function dJ(r,t){for(var e=0;e<t.length;e++){var n=t[e];n[0].style[n[1]]=r[n[2]]}}var pJ=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Mg(r){return r.match(pJ)||[]}var gJ=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,xx=Math.PI/180;function yJ(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var n=[],a=null;e.replace(gJ,function(c,v,h){return n.push(v,h),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=Mg(o);switch(a=a||Se(),s){case"translate":fa(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":qm(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ui(a,a,-parseFloat(l[0])*xx,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*xx);gn(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*xx);gn(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var kO=/([^\s:;]+)\s*:\s*([^:;]+)/g;function OO(r,t,e){var n=r.getAttribute("style");if(n){kO.lastIndex=0;for(var a;(a=kO.exec(n))!=null;){var i=a[1],o=st(Cg,i)?Cg[i]:null;o&&(t[o]=a[2]);var s=st(Ag,i)?Ag[i]:null;s&&(e[s]=a[2])}}}function mJ(r,t,e){for(var n=0;n<MO.length;n++){var a=MO[n],i=r.getAttribute(a);i!=null&&(t[Cg[a]]=i)}for(var n=0;n<DO.length;n++){var a=DO[n],i=r.getAttribute(a);i!=null&&(e[Ag[a]]=i)}}function NO(r,t){var e=t.width/r.width,n=t.height/r.height,a=Math.min(e,n);return{scale:a,x:-(r.x+r.width/2)*a+(t.x+t.width/2),y:-(r.y+r.height/2)*a+(t.y+t.height/2)}}function _J(r,t){var e=new cJ;return e.parse(r,t)}var SJ=ot(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),xJ=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=ot(),this._freedGraphics=[],this._mapName=t,this._parsedXML=AO(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=wJ(t.named),n=e.regions,a=e.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,n;try{e=t&&_J(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,yr(n!=null)}catch(g){throw new Error(`Invalid svg format
58
+ `+g.message)}var a=new mt;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,v=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var h=n.getBoundingRect();u==null&&(u=h.x,c=h.width),f==null&&(f=h.y,v=h.height)}l=this._boundingRect=new Mt(u,f,c,v)}if(s){var d=NO(s,l);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}a.setClipPath(new Ft({shape:l.plain()}));var p=[];return M(e.named,function(g){SJ.get(g.svgNodeTagLower)!=null&&(p.push(g),bJ(g.el))}),{root:a,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},r}();function bJ(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function wJ(r){var t=[],e=ot();return M(r,function(n){if(n.namedFrom==null){var a=new FX(n.name,n.el);t.push(a),e.set(n.name,a)}}),{regions:t,regionsMap:e}}for(var bx=[126,25],BO="南海诸岛",ul=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],fl=0;fl<ul.length;fl++)for(var qu=0;qu<ul[fl].length;qu++)ul[fl][qu][0]/=10.5,ul[fl][qu][1]/=-10.5/.75,ul[fl][qu][0]+=bx[0],ul[fl][qu][1]+=bx[1];function TJ(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===BO)return;t.push(new zE(BO,K(ul,function(n){return{type:"polygon",exterior:n}}),bx))}}var CJ={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function AJ(r,t){if(r==="china"){var e=CJ[t.name];if(e){var n=t.getCenter();n[0]+=e[0]/10.5,n[1]+=-e[1]/(10.5/.75),t.setCenter(n)}}}var MJ=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function DJ(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:MJ[0]})}var IJ="name",LJ=function(){function r(t,e,n){this.type="geoJSON",this._parsedMap=ot(),this._mapName=t,this._specialAreas=n,this._geoJSON=EJ(e)}return r.prototype.load=function(t,e){e=e||IJ;var n=this._parsedMap.get(e);if(!n){var a=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:a,boundingRect:PJ(a)})}var i=ot(),o=[];return M(n.regions,function(s){var l=s.name;t&&st(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new Mt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,n=this._geoJSON,a;try{a=n?HX(n,t):[]}catch(i){throw new Error(`Invalid geoJson format
59
+ `+i.message)}return TJ(e,a),M(a,function(i){var o=i.name;AJ(e,i),DJ(e,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function PJ(r){for(var t,e=0;e<r.length;e++){var n=r[e].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function EJ(r){return et(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var xv=ot();const _i={registerMap:function(r,t,e){if(t.svg){var n=new xJ(r,t.svg);xv.set(r,n)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?e=t.specialAreas:a=t;var n=new LJ(r,a,e);xv.set(r,n)}},getGeoResource:function(r){return xv.get(r)},getMapForUser:function(r){var t=xv.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var n=xv.get(r);if(n)return n.load(t,e)}};var cl=0,vl=1,Na=2;function pdt(r){return r}var RJ="view",kJ=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.type=RJ,i.dimensions=["x","y"];var o=i;o.invertY=e,o.lgCt=n,o.lgGeo=a;var s=o.trans=[];return s[cl]=jl(),s[vl]=jl(),s[Na]=jl(),o.mtRaw=Se(),o.mtRawInv=Se(),o.mtOverall=Se(),o.mtOverallInv=Se(),o.zoom=1,i}return t.prototype.getBoundingRect=function(){return VO(null,this)},t.prototype.getViewRect=function(){return Tx(null,this)},t.prototype.getRoamTransform=function(){return Ji(this.trans[vl])},t.prototype.dataToPoint=function(e,n,a){var i=n?this.mtRaw:this.mtOverall;return a=a||[],i?Ce(a,e,i):mr(a,e)},t.prototype.pointToData=function(e,n,a){a=a||[];var i=this.mtOverallInv;return i?Ce(a,e,i):mr(a,e)},t.prototype.convertToPixel=function(e,n,a){var i=UO(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=UO(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){var n=this;return Ul(Dg,n.dataRect),RA(Dg,Dg,n.mtOverall),i4(Dg,e[0],e[1])},t.dimensions=["x","y"],t}(Qi),Dg=zh();function Ig(r,t){return Ho(r||[],t.mtOverall)}function OJ(r){return r.zoom}function VO(r,t){return Ul(r||zh(),t.dataRect)}function Tx(r,t){return Ul(r||zh(),t.viewRect)}function bv(r,t,e){return ha(r||jl(),t.trans[e])}function Cx(r){return!!(r.dataRect&&r.viewRect)}function NJ(r,t,e,n){n===vl?HO(r,t.trans[cl],e):ha(r,e)}function zO(r,t,e){Ji(e,Lg),gn(Lg,Lg,t.mtRawInv),Kd(r,Lg)}var Lg=Se();function Ax(r,t){var e=r;e.centerOption=t.getShallow("center");var n=e.zoomLimit=t.getShallow("scaleLimit"),a=t.getShallow("zoom");e.zoom=Px(a||1,n)||1,Cx(e)&&Mx(e)}function Pg(r,t,e,n,a){var i=r;i.dataRect=new Mt(t,e,n,a),Cx(i)&&Mx(i)}function Eg(r,t,e,n,a){var i=r;i.viewRect=new Mt(t,e,n,a),Cx(i)&&Mx(i)}function Mx(r){BJ(r),zJ(r),FJ(r)}function BJ(r){var t=r.dataRect,e=r.viewRect,n=r.trans[cl],a=r.invertY;a&&(t=Ul(VJ,t),t.y=-t.y-t.height),EA(FO,t,e),Kd(n,FO),a&&(n.scaleY=-n.scaleY);var i=Ji(n,r.mtRaw);yn(r.mtRawInv,i)}var FO=Se(),VJ=zh();function zJ(r){var t=WO(r),e=$J(Dx,r,r.centerOption)?Ce(Dx,Dx,r.mtRaw):t,n=r.zoom,a=r.trans[vl];a.x=t[0]-n*e[0],a.y=t[1]-n*e[1],a.scaleX=a.scaleY=n}var Dx=[];function FJ(r){var t=r.trans,e=t[vl],n=t[cl],a=t[Na];HO(a,n,e);var i=Ji(a,r.mtOverall),o=yn(r.mtOverallInv,i);GO(r,a,i,o),GO(r.lgGeo,a,i,o)}function GO(r,t,e,n){r&&(ha(r,t),Ho(r.transform||(r.transform=[]),e),Ho(r.invTransform||(r.invTransform=[]),n))}function HO(r,t,e){Ji(t,$O),Ji(e,Rg),gn(Rg,Rg,$O),Kd(r,Rg)}var $O=Se(),Rg=Se();function UO(r){var t=r.seriesModel;return t?t.coordinateSystem:null}function WO(r){var t=r.viewRect;return Ix[0]=t.x+t.width/2,Ix[1]=t.y+t.height/2,Ix}var Ix=[];function YO(r){return r&&r.type==="view"}function xo(r,t,e,n){var a=e;a.syncBackEl=r,a.syncBackType=t,n?Kt(r,bv(null,e,t),n):(bv(r,e,t),r.dirty())}function GJ(r,t,e,n){var a=r,i=a.syncBackEl;i?(i.stopAnimation(),NJ(bo,a,i,a.syncBackType)):ha(bo,a.trans[Na]),zO(Lx,a,bo),n?HJ(bo,Lx,a,n):ha(bo,Lx),zO(bo,a,bo),WJ(a,t,e,bo)}var bo=jl(),Lx=jl();function XO(r,t,e){var n=kg(t);n&&(GJ(n,t,e,r),Ax(n,t))}function kg(r){return r.__ownRoamView?r.__ownRoamView():null}function ZO(r,t,e,n){e.setUpdatePayload($_(r));var a=FD(n,t);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,t,n)}function HJ(r,t,e,n){n.dx!=null&&n.dy!=null&&(r.x+=n.dx,r.y+=n.dy);var a=n.zoom;if(a!=null){var i=KO(t),o=Px(i*a,e.zoomLimit),s=o/i;r.x-=(n.originX-r.x)*(s-1),r.y-=(n.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function KO(r){return r.scaleX}function $J(r,t,e){var n=t.dataRect;if(!e)return!1;var a=t.lgCt;return a?Fi(r,nt(e[0],a.w),nt(e[1],a.h)):n&&Fi(r,nt(e[0],n.width,n.x),nt(e[1],n.height,n.y)),!0}function UJ(r,t){var e=r.centerOption,n=r.dataRect;return!e||r.lgCt?t.slice():[qO(0,t,e,n),qO(1,t,e,n)]}function qO(r,t,e,n){return e&&n&&n[Ie[r]]&&gU(e[r])?(t[r]-n[Dt[r]])/n[Ie[r]]*100+"%":t[r]}function jO(r,t){return t&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:t.getWidth(),h:t.getHeight()}:null}function WJ(r,t,e,n){var a=WO(r),i=KO(n),o=Ae(i)>1e-6;wv[0]=o?(a[0]-n.x)/i:a[0],wv[1]=o?(a[1]-n.y)/i:a[1],Ce(wv,wv,r.mtRawInv);var s=UJ(r,wv);JO(t,s,i),M(e,function(l){l!==t&&JO(l,s.slice(),i)})}var wv=[];function JO(r,t,e){var n=r.option;n.center=t,n.zoom=e}function Px(r,t){if(t){var e=t.min||0,n=t.max||1/0;r=Math.max(Math.min(n,r),e)}return r}function QO(r,t){var e=t.getShallow("nodeScaleRatio",!0)||1,n=r;return((n.zoom-1)*e+1)/(n.trans[Na].scaleX||1)}const Og=kJ;function Ng(r,t,e,n,a,i,o,s){var l=kg(r);if(!l){e.disable();return}e.enable(ut(r.get("roam"),o),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:n,isInClip:function(f,c,v){return!a||a.contain(c,v)}}});function u(f){var c=r.mainType,v=$_(_t({type:eN(c,r.subType,zD)},f));s&&(v.componentType=c),v[c+"Id"]=r.id,t.dispatchAction(v)}e.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function tN(r){return function(t,e,n){return Ex.copy(r.getBoundingRect()),Ex.applyTransform(r.getComputedTransform()),Ex.contain(e,n)}}var Ex=new Mt(0,0,0,0);function Rx(r,t,e){var n=eN(t,e,zD);r.registerAction({type:n,event:n,update:"none"},function(a,i,o){i.eachComponent(Z0(a,t,e),function(s){XO(a,s),ZO(a,s,i,o)})})}function eN(r,t,e){return(r!==Ta?r:t==="map"?"geo":t)+e}function rN(r){return r.zoom!=null}function kx(r,t,e,n,a,i,o){var s=new Og(null,jO(r.ecModel,t));return Pg(s,e,n,a,i),o?Eg(s,o.x,o.y,o.width,o.height):Eg(s,e,n,a,i),Ax(s,r),s}var Ox=["rect","circle","line","ellipse","polygon","polyline","path"],YJ=ot(Ox),XJ=ot(Ox.concat(["g"])),ZJ=ot(Ox.concat(["g"])),nN=Et();function Bg(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function aN(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var KJ=function(){function r(t){var e=this.group=new mt,n=this._transformGroup=new mt;e.add(n),this.uid=Cs("ec_map_draw"),this._controller=new ll(t.getZr()),n.add(this._regionsGroup=new mt),n.add(this._svgGroup=new mt)}return r.prototype.draw=function(t,e,n,a,i){var o=this,s=t.getData&&t.getData();ju(t)&&e.eachComponent({mainType:"series",subType:"map"},function(p){!s&&p.getHostGeoModel()===t&&(s=p.getData())});var l=t.coordinateSystem,u=l.view,f=this._regionsGroup,c=this._transformGroup,v=!f.childAt(0)||i,h;l.shouldClip()?(h=Tx(null,u),this.group.setClipPath(new Ft({shape:h.clone()}))):this.group.removeClipPath(),xo(c,vl,u,v?null:t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,n,l,t,s,d):l.resourceType==="geoSVG"&&this._buildSVG(u,n,l,t,s,d),Ng(t,n,this._controller,function(p,g,y){return t.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(t,f,n,a)},r.prototype.__updateOnOwnRoam=function(t){xo(this._transformGroup,vl,t.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(t,e,n,a,i,o){var s=this._regionsGroupByName=ot(),l=ot(),u=this._regionsGroup,f=n.projection,c=f&&f.stream,v=Ji(bv(null,t,cl));function h(g,y){return y&&(g=y(g)),g&&Ce([],g,v)}function d(g){for(var y=[],m=!c&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function p(g){return{shape:{points:d(g)}}}u.removeAll(),M(n.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,x=_.regionModel;if(!m){m=s.set(y,new mt),u.add(m),S=i?i.indexOfName(y):null,x=ju(a)?a.getRegionModel(y):i?i.getItemModel(S):null;var b=x.get("silent",!0);b!=null&&(m.silent=b),l.set(y,{dataIdx:S,regionModel:x})}var w=[],C=[];M(g.geometries,function(A){if(A.type==="polygon"){var L=[A.exterior].concat(A.interiors||[]);c&&(L=fN(L,c)),M(L,function(P){w.push(new Br(p(P)))})}else{var I=A.points;c&&(I=fN(I,c,!0)),M(I,function(P){C.push(new xr(p(P)))})}});var T=h(g.getCenter(),f&&f.project);function D(A,L){if(A.length){var I=new zd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});m.add(I),iN(e,i,o,I,S,x),oN(a,i,I,y,x,S,T),L&&(aN(I),M(I.states,aN))}}D(w),D(C,!0)}),s.each(function(g,y){var m=l.get(y),_=m.dataIdx,S=m.regionModel;sN(a,i,g,y,S,_),lN(a,i,g,y,S),uN(a,g,y,S)},this)},r.prototype._buildSVG=function(t,e,n,a,i,o){var s=n.map;bv(this._svgGroup,t,cl),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=ot(),u=!1;M(this._svgGraphicRecord.named,function(f){var c=f.name,v=f.svgNodeTagLower,h=f.el,d=i?i.indexOfName(c):null,p=a.getRegionModel(c);YJ.get(v)!=null&&h instanceof xn&&iN(e,i,o,h,d,p),h instanceof xn&&(h.culling=!0);var g=p.get("silent",!0);if(g!=null&&(h.silent=g),h.z2EmphasisLift=0,!f.namedFrom&&(ZJ.get(v)!=null&&oN(a,i,h,c,p,d,null),sN(a,i,h,c,p,d),lN(a,i,h,c,p),XJ.get(v)!=null)){var y=uN(a,h,c,p);y==="self"&&(u=!0);var m=l.get(c)||l.set(c,[]);m.push(h)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&ju(e)){var n=e.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ps(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var n=e.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=_i.getGeoResource(t);if(e&&e.type==="geoSVG"){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=_i.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=nN(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,n,a){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function iN(r,t,e,n,a,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=Bg(o),c=Bg(s),v=Bg(u),h=Bg(l);if(t){var d=t.getItemVisual(a,"style"),p=t.getItemVisual(a,"decal");e&&d.fill&&(f.fill=d.fill),p&&(f.decal=Eu(p,r))}n.setStyle(f),n.style.strokeNoScale=!0,n.ensureState("emphasis").style=c,n.ensureState("select").style=v,n.ensureState("blur").style=h,ps(n)}function oN(r,t,e,n,a,i,o){var s=t&&isNaN(t.get(t.mapDimension("value"),i)),l=t&&t.getItemLayout(i);if(ju(r)||s||l&&l.showLabel){var u=ju(r)?n:i,f=void 0;(!t||i>=0)&&(f=r);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;qe(e,Ue(a),{labelFetcher:f,labelDataIndex:u,defaultText:n},c);var v=e.getTextContent();if(v&&(nN(v).ignore=v.ignore,e.textConfig&&o)){var h=e.getBoundingRect().clone();e.textConfig.layoutRect=h,e.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function sN(r,t,e,n,a,i){t?t.setItemGraphicEl(i,e):Ct(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:a&&a.option||{}}}function lN(r,t,e,n,a){t||ci({el:e,componentModel:r,itemName:n,itemTooltipOption:a.get("tooltip")})}function uN(r,t,e,n){t.highDownSilentOnTouch=!!r.get("selectedMode");var a=n.getModel("emphasis"),i=a.get("focus");return ge(t,i,a.get("blurScope"),a.get("disabled")),ju(r)&&r8(t,r,e),i}function fN(r,t,e){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),M(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),n}function ju(r){return r.mainType==="geo"}const cN=KJ;var hl="map",qJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var n=Xu(this,{coordDimensions:["value"],encodeDefaulter:Bt(v1,this)}),a=ot(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,o)}var u=_i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return M(u.regions,function(f){var c=f.name,v=a.get(c),h=f.properties&&f.properties.echartsStyle,d;v==null?(d={name:c},i.push(d)):d=n.getRawDataItem(v),h&&Rt(d,h)}),n.appendData(i),n},t.prototype.getHostGeoModel=function(){if(SL(this).kind!==_L)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var n=this.getData();return n.get(n.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var n=this.getData();return n.getItemModel(n.indexOfName(e))},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=[];return M(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),c=i.mapDimension("value");isNaN(u.originalData.get(c,f))||l.push(u.name)}),ke("section",{header:l.join(", "),noHeader:!l.length,blocks:[ke("nameValue",{name:s,value:o})]})},t.prototype.getLegendIcon=function(e){var n=e.icon||"roundRect",a=Oe(n,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return a.setStyle(e.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=F.color.neutral00,a.style.lineWidth=2),a},t.prototype.__ownRoamView=function(){return Vg(this)?this.coordinateSystem.view:null},t.type="series."+hl,t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:F.color.tertiary},itemStyle:{borderWidth:.5,borderColor:F.color.border,areaColor:F.color.background},emphasis:{label:{show:!0,color:F.color.primary},itemStyle:{areaColor:F.color.highlight}},select:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},nameProperty:"name"},t}(me);function vN(r){return r.indexOf("i")===0}function Vg(r){return Tv(r.seriesGroup)===r&&!r.getHostGeoModel()}function Tv(r){return r.f[0]}function Nx(r,t){var e={};return r.eachRawSeriesByType(hl,function(n){var a=n.getHostGeoModel(),i=a?"o"+a.id:"i"+n.getMapType(),o=e[i]=e[i]||{f:[],r:[]};!r.isSeriesFiltered(n)&&!t&&o.f.push(n),o.r.push(n)}),e}const jJ=qJ;var JJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=hl,e}return t.prototype.render=function(e,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){var s=this._mapDraw;s&&i&&i.type==="geoRoam"&&s.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id?s&&o.add(s.group):Vg(e)?(s=s||(this._mapDraw=new cN(a)),o.add(s.group),s.draw(e,n,a,this,i)):this._clearMapDraw(),e.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,n,a){var i=this._mapDraw;Vg(n)&&i&&i.__updateOnOwnRoam(n)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var n=e.originalData,a=this.group;n.each(n.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=n.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new oo({style:{fill:e.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:su+1)});if(!u){var c=Tv(e.seriesGroup).getData(),v=n.getName(o),h=c.indexOfName(v),d=n.getItemModel(o),p=d.getModel("label"),g=c.getItemGraphicEl(h);qe(f,Ue(d),{labelFetcher:{getFormattedLabel:function(y,m){return e.getFormattedLabel(h,m)}},defaultText:v}),f.disableLabelAnimation=!0,p.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){Rd(f,y)}}a.add(f)}}})},t.type=hl,t}(ve);const QJ=JJ;var tQ={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},hN=["lng","lat"],eQ=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;i.dimensions=hN,i.type="geo",i._nameCoordMap=ot(),i.name=e;var o=a.projection,s=_i.load(n,a.nameMap,a.nameProperty),l=_i.getGeoResource(n);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=tQ[l.type];i._clip=a.clip;var c=o?!1:f.invertLongitute;i.view=new Og(c,jO(a.ecModel,a.api),i),i.map=n,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var h=0;h<u.length;h++){var d=u[h].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return Pg(i.view,v.x,v.y,v.width,v.height),i.aspectScale=o?1:ut(a.aspectScale,f.aspectScale),i}return t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(e))return n[a]}},t.prototype.addGeoCoord=function(e,n){this._nameCoordMap.set(e,n)},t.prototype.getGeoCoord=function(e){var n=this._regionsMap.get(e);return this._nameCoordMap.get(e)||n&&n.getCenter()},t.prototype.dataToPoint=function(e,n,a){if(et(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.view.dataToPoint(e,n,a)}},t.prototype.pointToData=function(e,n,a){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.view.pointToData(e,a)},t.prototype.convertToPixel=function(e,n,a){var i=dN(n);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(e,n,a){var i=dN(n);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e=e||0;var n=Tx(null,this.view);return n.x-=e,n.y-=e,n.width+=2*e,n.height+=2*e,n},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(Qi);function dN(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Me).models[0]||{}).coordinateSystem:null}const pN=eQ;function gN(r,t){var e=this.view,n=r.get("boundingCoords");if(n!=null){var a=n[0],i=n[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=i[0],f=i[1];a=[1/0,1/0],i=[-1/0,-1/0];var c=function(b,w,C,T){for(var D=C-b,A=T-w,L=0;L<=100;L++){var I=L/100,P=o.project([b+D*I,w+A*I]);Hi(a,a,P),$i(i,i,P)}};c(s,l,u,l),c(u,l,u,f),c(u,f,s,f),c(s,f,u,l)}Pg(e,a[0],a[1],i[0]-a[0],i[1]-a[1])}}var v=e.getBoundingRect(),h=r.get("layoutCenter"),d=r.get("layoutSize"),p=We(r,t).refContainer,g=v.width/v.height*this.aspectScale,y=!1,m,_;h&&d&&(m=[nt(h[0],p.width)+p.x,nt(h[1],p.height)+p.y],_=nt(d,Math.min(p.width,p.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=ye(x,p),S=CL(r,S,g)}Eg(e,S.x,S.y,S.width,S.height),Ax(e,r)}function rQ(r,t){M(t.get("geoCoord"),function(e,n){r.addGeoCoord(n,e)})}var nQ=function(){function r(){this.dimensions=hN}return r.prototype.create=function(t,e){var n=[];function a(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return t.eachComponent("geo",function(i,o){var s=i.get("map"),l=new pN(s+o,s,W({nameMap:i.get("nameMap"),api:e,ecModel:t},a(i)));n.push(l),i.coordinateSystem=l,l.model=i,l.resize=gN,l.resize(i,e)}),t.eachSeries(function(i){_c({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===hl?i.getHostGeoModel():i.getReferringComponents("geo",Me).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),M(Nx(t,!0),function(i,o){if(vN(o)){var s=i.r[0],l=[];M(i.r,function(v){l.push(v.get("nameMap")),v.seriesGroup=null});var u=o.slice(1),f=new pN(u,u,W({nameMap:Nm(l),api:e,ecModel:t},a(s))),c;M(i.r,function(v){c=ut(c,v.get("scaleLimit"))}),n.push(f),f.resize=gN,f.resize(s,e),M(i.r,function(v){v.coordinateSystem=f,rQ(f,v)})}}),n},r.prototype.getFilledRegions=function(t,e,n,a){for(var i=(t||[]).slice(),o=ot(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=_i.load(e,n,a);return M(l.regions,function(u){var f=u.name,c=o.get(f),v=u.properties&&u.properties.echartsStyle;c||(c={name:f},i.push(c)),v&&Rt(c,v)}),i},r}(),aQ=new nQ;const yN=aQ;var iQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a);var i=_i.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color=e.defaultItemStyleColor||F.color.backgroundTint)}es(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,n=this.option;n.regions=yN.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=ua(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new qt(o,e,e.ecModel)),o.selected&&(a[s]=!0)),i},ot()),n.selectedMap||(n.selectedMap=a)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new qt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,n){var a=this.getRegionModel(e),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:e};if(yt(i))return o.status=n,i(o);if(et(i))return i.replace("{a}",e??"")},t.prototype.select=function(e){var n=this.option,a=n.selectedMode;if(a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var n=this.option.selectedMap;n&&(n[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var n=this.option.selectedMap;return!!(n&&n[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:F.color.tertiary},itemStyle:{borderWidth:.5,borderColor:F.color.border},emphasis:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},select:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},regions:[]},t}(Yt);const oQ=iQ;var sQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,n){this._api=n},t.prototype.render=function(e,n,a,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new cN(a));var o=this._mapDraw;o.draw(e,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,n,a)},t.prototype.__updateOnOwnRoam=function(e,n,a){var i=this._mapDraw;i&&i.__updateOnOwnRoam(n)},t.prototype._handleRegionClick=function(e){var n;Bs(e.target,function(a){return(n=Ct(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(e,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Ct(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(be);const lQ=sQ;function uQ(r,t,e){_i.registerMap(r,t,e)}function mN(r){r.registerCoordinateSystem("geo",yN),r.registerComponentModel(oQ),r.registerComponentView(lQ),r.registerImpl("registerMap",uQ),r.registerImpl("getMap",function(e){return _i.getMapForUser(e)});function t(e,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[e](a.name);var u=l.coordinateSystem;M(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];M(o,function(c,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,n,a){var i=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?"geo":Ta),o=i===Ta;if(!(i!=="geo"&&!o)){var s=o?"map":null;n.eachComponent(Z0(e,i,s),function(l){o&&!Vg(l)||(XO(e,l,o?l.seriesGroup.r:null),ZO(e,l,n,a))})}})}var fQ=Ge(hl,cQ);function cQ(r){M(Nx(r),function(t,e){if(!(!Tv(t)||!vN(e))){var n={};M(t.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),c=o.getRegion(f);if(!(!c||isNaN(l))){var v=n[f]||0,h=o.dataToPoint(c.getCenter());n[f]=v+1,s.setItemLayout(u,{point:h,offset:v})}})});var a=Tv(t).getData();a.each(function(i){var o=a.getName(i),s=a.getItemLayout(i)||{};s.showLabel=!n[o],a.setItemLayout(i,s)})}})}function vQ(r,t){var e={};return M(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);e[o]=e[o]||[],isNaN(a)||e[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=e[i].length,f=0;f<u;f++)s=Math.min(s,e[i][f]),l=Math.max(l,e[i][f]),o+=e[i][f];var c;return t==="min"?c=s:t==="max"?c=l:t==="average"?c=o/u:c=o,u===0?NaN:c})}var hQ=Ge(hl,dQ);function dQ(r){M(Nx(r),function(t){var e=Tv(t);if(e){var n=vQ(K(t.f,function(a){return a.getData()}),e.get("mapValueCalculation"));M(t.f,function(a){a.seriesGroup=t,a.originalData=a.getData(),a.setData(n.cloneShallow())})}})}function pQ(r){Nt(mN),r.registerChartView(QJ),r.registerSeriesModel(jJ),r.registerLayout(fQ),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,hQ),QP("map",r.registerAction)}function gQ(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],n,a;n=e.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},e.push(s)}}function yQ(r,t){var e=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(e.length){_Q(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+t(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+t(r,a));r.parentNode.hierNode.defaultAncestor=SQ(r,a,r.parentNode.hierNode.defaultAncestor||n[0],t)}function mQ(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function _N(r){return arguments.length?r:wQ}function Cv(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function _Q(r){for(var t=r.children,e=t.length,n=0,a=0;--e>=0;){var i=t[e];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function SQ(r,t,e,n){if(t){for(var a=r,i=r,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=Bx(s),i=Vx(i),s&&i;){a=Bx(a),o=Vx(o),a.hierNode.ancestor=r;var v=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);v>0&&(bQ(xQ(s,r,e),r,v),u+=v,l+=v),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!Bx(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!Vx(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function Bx(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Vx(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function xQ(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function bQ(r,t,e){var n=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=n}function wQ(r,t){return r.parentNode===t.parentNode?1:2}var Pn=Et();function SN(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,xN(t,e,r),M(e,function(n){M(t.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,Bt(TQ,r))})}),t.wrapMethod("cloneShallow",Bt(AQ,r)),M(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Bt(CQ,r))}),yr(e[t.dataType]===t)}function TQ(r,t){if(IQ(this)){var e=W({},Pn(this).datas);e[this.dataType]=t,xN(t,e,r)}else zx(t,this.dataType,Pn(this).mainData,r);return t}function CQ(r,t){return r.struct&&r.struct.update(),t}function AQ(r,t){return M(Pn(t).datas,function(e,n){e!==t&&zx(e.cloneShallow(),n,t,r)}),t}function MQ(r){var t=Pn(this).mainData;return r==null||t==null?t:Pn(t).datas[r]}function DQ(){var r=Pn(this).mainData;return r==null?[{data:r}]:K(Ut(Pn(r).datas),function(t){return{type:t,data:Pn(r).datas[t]}})}function IQ(r){return Pn(r).mainData===r}function xN(r,t,e){Pn(r).datas={},M(t,function(n,a){zx(n,a,r,e)})}function zx(r,t,e,n){Pn(e).datas[t]=r,Pn(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=MQ,r.getLinkedDataAll=DQ}var LQ=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,n){yt(t)&&(n=e,e=t,t=null),t=t||{},et(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,n);a==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(t+1),a.height>e&&(e=a.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,a=n.length;e<a;e++){var i=n[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),PQ=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,a=e.length;n<a;n++)e[n].dataIndex=-1;for(var n=0,a=t.count();n<a;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var a=new r(e),i=[],o=1;s(t);function s(f,c){var v=f.value;o=Math.max(o,Y(v)?v.length:1),i.push(f);var h=new LQ(Fe(f.name,""),a);c?EQ(h,c):a.root=h,a._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}a.root.updateDepthAndHeight(0);var l=zc(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new zr(l,e);return u.initData(i),n&&n(u),SN({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function EQ(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const Fx=PQ;function Av(r,t,e){if(r&&Lt(t,r.type)>=0){var n=e.getData().tree.root,a=r.targetNode;if(et(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function bN(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function Gx(r,t){var e=bN(r);return Lt(e,t)>=0}function zg(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var dl="tree",RQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var n={name:e.name,children:e.data},a=e.leaves||{},i=new qt(a,this,this.ecModel),o=Fx.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(v,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(v.parentModel=i),v})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var v=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=v&&v.collapsed!=null?!v.collapsed:c.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.formatTooltip=function(e,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ke("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=zg(a,this),n.collapsed=!a.isExpand,n},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+dl,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:F.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(me);const kQ=RQ;var OQ=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),NQ=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new OQ},t.prototype.buildPath=function(e,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,v=nt(n.forkPosition,1),h=[];h[f]=o[f],h[c]=o[c]+(l[c]-o[c])*v,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=a[d];e.moveTo(p[0],p[1]),h[f]=p[f],e.lineTo(h[0],h[1])}},t}(Gt),BQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=dl,e._mainGroup=new mt,e}return t.prototype.init=function(e,n){this._controller=new ll(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,n,a){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,a),Ng(e,a,this._controller,tN(this.group),null);var u=this._data;i.diff(u).add(function(f){wN(i,f)&&TN(i,f,null,s,e)}).update(function(f,c){var v=u.getItemGraphicEl(c);if(!wN(i,f)){v&&MN(u,c,v,s,e);return}TN(i,f,v,s,e)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&MN(u,f,c,s,e)}).execute(),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:c})})}),this._data=i,this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,n,a){xo(this.group,Na,n.coordinateSystem,null),rN(e)&&this._updateNodeAndLinkScale(n)},t.prototype._updateViewCoordSys=function(e,n){var a=e.getData(),i=[];a.each(function(c){var v=a.getItemLayout(c);v&&!isNaN(v.x)&&!isNaN(v.y)&&i.push([+v.x,+v.y])});var o=[],s=[];Td(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=e.coordinateSystem=kx(e,n,o[0],o[1],s[0]-o[0],s[1]-o[1]);xo(this.group,Na,f,this._firstRender?null:e),this._min=o,this._max=s},t.prototype._updateNodeAndLinkScale=function(e){var n=e.getData(),a=QO(e.coordinateSystem,e);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type=dl,t}(ve);function wN(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function TN(r,t,e,n,a){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:F.color.neutral00,f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,v=r.getItemGraphicEl(c.dataIndex),h=c.getLayout(),d=v?{x:v.__oldX,y:v.__oldY,rawX:v.__radialOldRawX,rawY:v.__radialOldRawY}:h,p=o.getLayout();i?(e=new av(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,n.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,Kt(e,{x:p.x,y:p.y},a);var g=e.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(b.y-m.y,b.x-m.x),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",C=s.getModel("label"),T=C.get("rotate"),D=T*(Math.PI/180),A=g.getTextContent();A&&(g.setTextConfig({position:C.get("position")||w,rotation:T==null?-S:D,origin:"center"}),A.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?Vf(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(Ct(e).focus=I),VQ(a,o,f,e,d,h,p,n),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===ac||Rd(e.__edge,P)}})}function VQ(r,t,e,n,a,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),v=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=n.__edge=new Vd({shape:Hx(f,c,v,a,a)})),Kt(p,{shape:Hx(f,c,v,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=n.__edge=new NQ({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:h}})),Kt(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(_t({strokeNoScale:!0,fill:null},d)),He(p,l,"lineStyle"),ps(p),s.add(p))}function CN(r,t,e,n,a){var i=t.tree.root,o=AN(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),c=f.__edge,v=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),h=n.get("edgeShape"),d=n.get("layout"),p=n.get("orient"),g=n.get(["lineStyle","curveness"]);v&&(h==="curve"?so(v,{shape:Hx(d,p,g,l,l),style:{opacity:0}},n,{cb:function(){e.remove(v)},removeOpt:a}):h==="polyline"&&n.get("layout")==="orthogonal"&&so(v,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){e.remove(v)},removeOpt:a}))}}function AN(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,n;n=e.getLayout(),n==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:n}}function MN(r,t,e,n,a){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=AN(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};so(e,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),M(i.children,function(u){CN(u,r,n,a,l)}),CN(i,r,n,a,l)}function Hx(r,t,e,n,a){var i,o,s,l,u,f,c,v;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,v=a.rawY;var h=Cv(u,c),d=Cv(u,c+(v-c)*e),p=Cv(f,v+(c-v)*e),g=Cv(f,v);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=n.x,c=n.y,f=a.x,v=a.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*e,o=c,s=f+(u-f)*e,l=v),(t==="TB"||t==="BT")&&(i=u,o=c+(v-c)*e,s=f,l=v+(c-v)*e);return{x1:u,y1:c,x2:f,y2:v,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const zQ=BQ;function FQ(r,t,e){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)t(i,e)}function Mv(r,t){for(var e=[r],n;n=e.pop();)if(t(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)e.push(a[i])}}function GQ(r,t){r.eachSeriesByType("tree",function(e){HQ(e,t)})}function HQ(r,t){var e=We(r,t).refContainer,n=ye(r.getBoxLayoutParams(),e);r.layoutInfo=n;var a=r.get("layout"),i=0,o=0,s=null;a==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,s=_N(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=n.width,o=n.height,s=_N());var l=r.getData().tree.root,u=l.children[0];if(u){gQ(l),FQ(u,yQ,s),l.hierNode.modifier=-u.hierNode.prelim,Mv(u,mQ);var f=u,c=u,v=u;Mv(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>c.getLayout().x&&(c=S),S.depth>v.depth&&(v=S)});var h=f===c?1:s(f,c)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(a==="radial")p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),Mv(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=Cv(y,m);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(c.getLayout().x+h+d),p=i/(v.depth-1||1),Mv(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(c.getLayout().x+h+d),g=o/(v.depth-1||1),Mv(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function $Q(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:Ta,subType:dl,query:t},function(n){var a=t.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),Rx(r,Ta,dl)}var UQ=Ge(dl,WQ);function WQ(r){r.eachSeriesByType(dl,function(t){var e=t.getData(),n=e.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(a.dataIndex,"style");W(s,o)})})}function YQ(r){r.registerChartView(zQ),r.registerSeriesModel(kQ),r.registerLayout(GQ),r.registerVisual(UQ),$Q(r)}var DN=["treemapZoomToNode","treemapRender","treemapMove"];function XQ(r){for(var t=0;t<DN.length;t++)r.registerAction({type:DN[t],update:"updateView"},Te);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Av(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=Gx(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function IN(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=g1(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var ZQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};LN(a);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new qt({itemStyle:o},this,n);i=e.levels=KQ(i,n);var l=K(i||[],function(c){return new qt(c,s,n)},this),u=Fx.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(v,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return v.parentModel=p||s,v})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ke("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=zg(a,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=ot(),this._idIndexMapCount=0);var a=n.get(e);return a==null&&n.set(e,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){IN(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:F.size.l,top:F.size.xxxl,right:F.size.l,bottom:F.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:F.size.m,emptyItemWidth:25,itemStyle:{color:F.color.backgroundShade,textStyle:{color:F.color.secondary}},emphasis:{itemStyle:{color:F.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:F.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:F.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(me);function LN(r){var t=0;M(r.children,function(n){LN(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}function KQ(r,t){var e=ue(t.get("color")),n=ue(t.get(["aria","decal","decals"]));if(e){r=r||[];var a,i;M(r,function(s){var l=new qt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=e.slice()),!i&&n&&(o.decal=n.slice()),r}}const qQ=ZQ;var jQ=8,PN=8,$x=5,JQ=function(){function r(t){this.group=new mt,t.add(this.group)}return r.prototype.render=function(t,e,n,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c=We(t,e).refContainer,v={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=ye(v,c);this._prepare(n,h,u),this._renderContent(t,h,d,s,l,u,f,a),up(o,v,c)}},r.prototype._prepare=function(t,e,n){for(var a=t;a;a=a.parentNode){var i=Fe(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+jQ*2,e.emptyItemWidth);e.totalWidth+=s+PN,e.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(t,e,n,a,i,o,s,l){for(var u=0,f=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),v=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;v>n.width&&(v-=m-f,m=f,_=null);var S=new Br({shape:{points:QQ(u,0,m,c,p===h.length-1,p===0)},style:_t(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new Xt({style:ce(o,{text:_})}),textConfig:{position:"inside"},z2:su*1e4,onclick:Bt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=ce(s,{text:_}),S.ensureState("emphasis").style=d,ge(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),ttt(S,t,y),u+=m+PN}},r.prototype.remove=function(){this.group.removeAll()},r}();function QQ(r,t,e,n,a,i){var o=[[a?r:r-$x,t],[r+e,t],[r+e,t+n],[a?r:r-$x,t+n]];return!i&&o.splice(2,0,[r+e+$x,t+n/2]),!a&&o.push([r,t+n/2]),o}function ttt(r,t,e){Ct(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&zg(e,t)}}const ett=JQ;var rtt=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function ntt(){return new rtt}var Dv=Math.max,Fg=Math.min,Ux=M,EN=["itemStyle","borderWidth"],att=["itemStyle","gapWidth"],itt=["upperLabel","show"],ott=["upperLabel","height"];const stt={seriesType:"treemap",reset:function(r,t,e,n){var a=r.option,i=We(r,e).refContainer,o=ye(r.getBoxLayoutParams(),i),s=n&&n.type,l=["treemapZoomToNode","treemapRootToNode"],u=Av(n,l,r),f=s==="treemapRender"||s==="treemapMove"?n.rootRect:null,c=r.getViewRoot(),v=bN(c);if(s!=="treemapMove"){var h=!1,d=s==="treemapZoomToNode"?(h=!0,htt(r,u,c,o)):f?(h=!0,W({},f)):W({},o);if(h){var p=BN(o,d);p=VN(p,r),d.width=o.width*p,d.height=o.height*p}var g=a.sort;g&&g!=="asc"&&g!=="desc"&&(g="desc");var y={squareRatio:a.squareRatio,sort:g,leafDepth:a.leafDepth};c.hostTree.clearLayouts();var m={x:0,y:0,width:d.width,height:d.height,area:d.width*d.height};c.setLayout(m),RN(c,y,!1,0),m=c.getLayout(),Ux(v,function(S,x){var b=(v[x+1]||c).getValue();S.setLayout(W({dataExtent:[b,b],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(dtt(o,f,u),!0),r.setLayoutInfo(o),ON(_,new Mt(-o.x,-o.y,e.getWidth(),e.getHeight()),v,c,0)}};function RN(r,t,e,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(EN),u=s.get(att)/2,f=NN(s),c=Math.max(l,f),v=l-u,h=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=Dv(a-2*v,0),i=Dv(i-v-h,0);var d=a*i,p=ltt(r,s,d,t,e,n);if(p.length){var g={x:v,y:h,width:a,height:i},y=Fg(a,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var b=p[S];_.push(b),_.area+=b.getLayout().area;var w=vtt(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,kN(_,y,g,u,!1),y=Fg(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&kN(_,y,g,u,!0),!e){var C=s.get("childrenVisibleMin");C!=null&&d<C&&(e=!0)}for(var S=0,x=p.length;S<x;S++)RN(p[S],t,e,n+1)}}}function ltt(r,t,e,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=ne(o,function(h){return!h.isRemoved()}),ftt(o,s);var u=ctt(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=utt(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var v=o[f].getValue()/u.sum*e;o[f].setLayout({area:v})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function utt(r,t,e,n,a){if(!n)return e;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),e}function ftt(r,t){return t&&r.sort(function(e,n){var a=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return a===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:a}),r}function ctt(r,t,e){for(var n=0,a=0,i=t.length;a<i;a++)n+=t[a].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=ar(),Ux(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function vtt(r,t,e){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?Dv(u*n/l,l/(u*a)):1/0}function kN(r,t,e,n,a){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(a||f>e[l[o]])&&(f=e[l[o]]);for(var c=0,v=r.length;c<v;c++){var h=r[c],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=Dv(f-2*n,0),y=e[s[i]]+e[l[i]]-u,m=c===v-1||y<p?y:p,_=d[l[i]]=Dv(m-2*n,0);d[s[o]]=e[s[o]]+Fg(n,g/2),d[s[i]]=u+Fg(n,_/2),u+=m,h.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function htt(r,t,e,n){var a=(t||{}).node,i=n.width,o=n.height,s=W({},n);if(!a||a===e)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var c=0,v=l.children,h=0,d=v.length;h<d;h++)c+=v[h].getValue();var p=a.getValue();if(p===0)return s;f*=c/p;var g=l.getModel(),y=g.get(EN),m=Math.max(y,NN(g));f+=4*y*y+(3*y+m)*Math.pow(f,.5),f>pd&&(f=pd),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}function dtt(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var a=e.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function ON(r,t,e,n,a){var i=r.getLayout(),o=e[a],s=o&&o===r;if(!(o&&!s||a===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Mt(t.x-i.x,t.y-i.y,t.width,t.height);Ux(r.viewChildren||[],function(u){ON(u,l,e,n,a+1)})}}function NN(r){return r.get(itt)?r.get(ott):0}function BN(r,t){return t.width/r.width||t.height/r.height||1}function VN(r,t){return Px(r,t.get("scaleLimit",!0))}var Wx=mt,zN=Ft,FN=3,GN="label",HN="upperLabel",ptt=su*10,gtt=su*2,ytt=su*3,pl=is([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),$N=function(r){var t=pl(r);return t.stroke=t.fill=t.lineWidth=null,t},Gg=Et(),mtt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=Iv(),e}return t.prototype.render=function(e,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Lt(o,e)<0)){this.seriesModel=e,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Av(i,s,e),u=i&&i.type,f=e.layoutInfo,c=!this._oldTree,v=this._storage,h=u==="treemapRootToNode"&&l&&v?{rootNodeGroup:v.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,h);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(e,a,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new Wx,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,a){var i=n.getData().tree,o=this._oldTree,s=Iv(),l=Iv(),u=this._storage,f=[];function c(g,y,m,_){return _tt(n,l,u,a,s,f,g,y,m,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var v=d(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:v,renderFinally:p};function h(g,y,m,_,S){_?(y=g,M(g,function(w,C){!w.isRemoved()&&b(C,C)})):new di(y,g,x,x).add(b).update(b).remove(Bt(b,null)).execute();function x(w){return w.getId()}function b(w,C){var T=w!=null?g[w]:null,D=C!=null?y[C]:null,A=c(T,D,m,S);A&&h(T&&T.viewChildren||[],D&&D.viewChildren||[],A,_,S+1)}}function d(g){var y=Iv();return g&&M(g,function(m,_){var S=y[_];M(m,function(x){x&&(S.push(x),Gg(x).willDelete=!0)})}),y}function p(){M(v,function(g){M(g,function(y){y.parent&&y.parent.remove(y)})}),M(f,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(e,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(yt(o)?0:o)||0,u=(yt(s)?null:s)||"cubicOut",f=ntt();M(n.willDeleteEls,function(c,v){M(c,function(h,d){if(!h.invisible){var p=h.parent,g,y=Gg(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=v==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),M(this._storage,function(c,v){M(c,function(h,d){var p=n.lastsForAnimation[v][d],g={};p&&(h instanceof mt?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=W({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(it(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this,a=this.seriesModel,i=this._controller;i||(i=this._controller=new ll(e.getZr()),i.on("pan",it(this._onPan,this)),i.on("zoom",it(this._onZoom,this))),i.enable(a.get("roam"),{api:e,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=n._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>FN||Math.abs(e.dy)>FN)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+e.dx,y:a.y+e.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(e){var n=e.originX,a=e.originY,i=e.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new Mt(l.x,l.y,l.width,l.height),f=o.layoutInfo,c=BN(f,l),v=c*i;v=VN(v,o);var h=v/c;n-=f.x,a-=f.y;var d=Se();fa(d,d,[-n,-a]),qm(d,d,[h,h]),fa(d,d,[n,a]),u.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(i){var o=n.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&ip(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,a){var i=this;a||(a=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ett(this.group))).render(e,n,a.node,function(o){i._state!=="animating"&&(Gx(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Iv(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(ve);function Iv(){return{nodeGroup:[],background:[],content:[]}}function _tt(r,t,e,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),v=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),C=v.getModel(["blur","itemStyle"]),T=v.getModel(["select","itemStyle"]),D=b.get("borderRadius")||0,A=Q("nodeGroup",Wx);if(!A)return;if(l.add(A),A.x=f.x||0,A.y=f.y||0,A.markRedraw(),Gg(A).nodeWidth=h,Gg(A).nodeHeight=d,f.isAboveViewRoot)return A;var L=Q("background",zN,u,gtt);L&&$(A,L,x&&f.upperLabelHeight);var I=v.getModel("emphasis"),P=I.get("focus"),R=I.get("blurScope"),E=I.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)oc(A)&&ys(A,!1),L&&(ys(L,!E),c.setItemGraphicEl(o.dataIndex,L),D_(L,N,R));else{var O=Q("content",zN,u,ytt);O&&H(A,O),L.disableMorphing=!0,L&&oc(L)&&ys(L,!1),ys(A,!E),c.setItemGraphicEl(o.dataIndex,A);var G=v.getShallow("cursor");G&&O.attr("cursor",G),D_(A,N,R)}return A;function $(gt,ft,Tt){var ct=Ct(ft);if(ct.dataIndex=o.dataIndex,ct.seriesIndex=r.seriesIndex,ft.setShape({x:0,y:0,width:h,height:d,r:D}),g)X(ft);else{ft.invisible=!1;var wt=o.getVisual("style"),k=wt.stroke,B=$N(b);B.fill=k;var U=pl(w);U.fill=w.get("borderColor");var Z=pl(C);Z.fill=C.get("borderColor");var j=pl(T);if(j.fill=T.get("borderColor"),Tt){var tt=h-2*p;q(ft,k,wt.opacity,{x:p,y:0,width:tt,height:S})}else ft.removeTextContent();ft.setStyle(B),ft.ensureState("emphasis").style=U,ft.ensureState("blur").style=Z,ft.ensureState("select").style=j,ps(ft)}gt.add(ft)}function H(gt,ft){var Tt=Ct(ft);Tt.dataIndex=o.dataIndex,Tt.seriesIndex=r.seriesIndex;var ct=Math.max(h-2*p,0),wt=Math.max(d-2*p,0);if(ft.culling=!0,ft.setShape({x:p,y:p,width:ct,height:wt,r:D}),g)X(ft);else{ft.invisible=!1;var k=o.getVisual("style"),B=k.fill,U=$N(b);U.fill=B,U.decal=k.decal;var Z=pl(w),j=pl(C),tt=pl(T);q(ft,B,k.opacity,null),ft.setStyle(U),ft.ensureState("emphasis").style=Z,ft.ensureState("blur").style=j,ft.ensureState("select").style=tt,ps(ft)}gt.add(ft)}function X(gt){!gt.invisible&&i.push(gt)}function q(gt,ft,Tt,ct){var wt=v.getModel(ct?HN:GN),k=Fe(v.get("name"),null),B=wt.getShallow("show");qe(gt,Ue(v,ct?HN:GN),{defaultText:B?k:null,inheritColor:ft,defaultOpacity:Tt,labelFetcher:r,labelDataIndex:o.dataIndex});var U=gt.getTextContent();if(U){var Z=U.style,j=Eh(Z.padding||0);ct&&(gt.setTextConfig({layoutRect:ct}),U.disableLabelLayout=!0),U.beforeUpdate=function(){var lt=Math.max((ct?ct.width:gt.shape.width)-j[1]-j[3],0),at=Math.max((ct?ct.height:gt.shape.height)-j[0]-j[2],0);(Z.width!==lt||Z.height!==at)&&U.setStyle({width:lt,height:at})},Z.truncateMinChar=2,Z.lineOverflow="truncate",J(Z,ct,f);var tt=U.getState("emphasis");J(tt?tt.style:null,ct,f)}}function J(gt,ft,Tt){var ct=gt?gt.text:null;if(!ft&&Tt.isLeafRoot&&ct!=null){var wt=r.get("drillDownIcon",!0);gt.text=wt?wt+" "+ct:ct}}function Q(gt,ft,Tt,ct){var wt=m!=null&&e[gt][m],k=a[gt];return wt?(e[gt][m]=null,St(k,wt)):g||(wt=new ft,wt instanceof xn&&(wt.z2=Stt(Tt,ct)),Ht(k,wt)),t[gt][y]=wt}function St(gt,ft){var Tt=gt[y]={};ft instanceof Wx?(Tt.oldX=ft.x,Tt.oldY=ft.y):Tt.oldShape=W({},ft.shape)}function Ht(gt,ft){var Tt=gt[y]={},ct=o.parentNode,wt=ft instanceof mt;if(ct&&(!n||n.direction==="drillDown")){var k=0,B=0,U=a.background[ct.getRawIndex()];!n&&U&&U.oldShape&&(k=U.oldShape.width,B=U.oldShape.height),wt?(Tt.oldX=0,Tt.oldY=B):Tt.oldShape={x:k,y:B,width:0,height:0}}Tt.fadein=!wt}}function Stt(r,t){return r*ptt+t}const xtt=mtt;var Lv=M,btt=xt,Hg=-1,Yx=function(){function r(t){var e=t.mappingMethod,n=t.type,a=this.option=dt(t);this.type=n,this.mappingMethod=e,this._normalizeData=Ctt[e];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(Xx(a),wtt(a)):e==="category"?a.categories?Ttt(a):Xx(a,!0):(yr(e!=="linear"||a.dataExtent),Xx(a))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return it(this._normalizeData,this)},r.listVisualTypes=function(){return Ut(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){xt(t)?M(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var a,i=Y(t)?[]:xt(t)?{}:(a=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},n;return t&&Lv(r.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(e[i]=t[i],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else if(btt(t)){var e=[];Lv(t,function(n,a){e.push(a)}),t=e}else return[];return t.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var a,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||et(l)&&l===t+"")return o;n&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Ug(c[1],t,f[1]))return o}else if(f[1]===1/0){if(Ug(c[0],f[0],t))return o}else if(Ug(c[0],f[0],t)&&Ug(c[1],t,f[1]))return o;n&&v(f[0],o),n&&v(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:a;function v(h,d){var p=Math.abs(h-t);p<i&&(i=p,a=d)}},r.visualHandlers={color:{applyVisual:Pv("color"),getColorMapper:function(){var t=this.option;return it(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),Ev.call(this,e)}:function(e,n,a){var i=!!a;return!n&&(e=this._normalizeData(e)),a=h0(e,t.parsedVisual,a),i?a:va(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return va(h0(t,this.option.parsedVisual),"rgba")},category:Ev,piecewise:function(t,e){var n=Kx.call(this,e);return n==null&&(n=va(h0(t,this.option.parsedVisual),"rgba")),n},fixed:gl}},colorHue:$g(function(t,e){return qi(t,e)}),colorSaturation:$g(function(t,e){return qi(t,null,e)}),colorLightness:$g(function(t,e){return qi(t,null,null,e)}),colorAlpha:$g(function(t,e){return Xh(t,e)}),decal:{applyVisual:Pv("decal"),_normalizedToVisual:{linear:null,category:Ev,piecewise:null,fixed:null}},opacity:{applyVisual:Pv("opacity"),_normalizedToVisual:Zx([0,1])},liftZ:{applyVisual:Pv("liftZ"),_normalizedToVisual:{linear:gl,category:gl,piecewise:gl,fixed:gl}},symbol:{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("symbol",a)},_normalizedToVisual:{linear:UN,category:Ev,piecewise:function(t,e){var n=Kx.call(this,e);return n==null&&(n=UN.call(this,t)),n},fixed:gl}},symbolSize:{applyVisual:Pv("symbolSize"),_normalizedToVisual:Zx([0,1])}},r}();function wtt(r){var t=r.pieceList;r.hasSpecialVisual=!1,M(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function Ttt(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(Lv(t,function(o,s){e[o]=s}),!Y(n)){var a=[];xt(n)?Lv(n,function(o,s){var l=e[s];a[l??Hg]=o}):a[Hg]=n,n=WN(r,a)}for(var i=t.length-1;i>=0;i--)n[i]==null&&(delete e[t[i]],t.pop())}function Xx(r,t){var e=r.visual,n=[];xt(e)?Lv(e,function(i){n.push(i)}):e!=null&&n.push(e);var a={color:1,symbol:1};!t&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),WN(r,n)}function $g(r){return{applyVisual:function(t,e,n){var a=this.mapValueToVisual(t);n("color",r(e("color"),a))},_normalizedToVisual:Zx([0,1])}}function UN(r){var t=this.option.visual;return t[Math.round(Jt(r,[0,1],[0,t.length-1],!0))]||{}}function Pv(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function Ev(r){var t=this.option.visual;return t[this.option.loop&&r!==Hg?r%t.length:r]}function gl(){return this.option.visual[0]}function Zx(r){return{linear:function(t){return Jt(t,r,this.option.visual,!0)},category:Ev,piecewise:function(t,e){var n=Kx.call(this,e);return n==null&&(n=Jt(t,r,this.option.visual,!0)),n},fixed:gl}}function Kx(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Yx.findPieceIndex(r,e),a=e[n];if(a&&a.visual)return a.visual[this.type]}}function WN(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=K(t,function(e){var n=Kr(e);return n||[0,0,0,1]})),t}var Ctt={linear:function(r){return Jt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Yx.findPieceIndex(r,t,!0);if(e!=null)return Jt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Hg},fixed:Te};function Ug(r,t,e){return r?t<=e:t<e}const lr=Yx;var Att="itemStyle",YN=Et();const Mtt={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||XN(e,{},r.getViewRoot().getAncestors(),r)}};function XN(r,t,e,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(Att),l=Dtt(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),v;c!=null&&(v=ZN(l),f=Itt(c,v)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)v=ZN(l),u.fill=v;else{var d=Ltt(r,a,i,s,l,h);M(h,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=Ptt(a,l,p,g,d,n);XN(p,y,e,n)}})}}}function Dtt(r,t,e){var n=W({},t),a=e.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function ZN(r){var t=qx(r,"color");if(t){var e=qx(r,"colorAlpha"),n=qx(r,"colorSaturation");return n&&(t=qi(t,null,null,n)),e&&(t=Xh(t,e)),t}}function Itt(r,t){return t!=null?qi(t,null,null,r):null}function qx(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function Ltt(r,t,e,n,a,i){if(!(!i||!i.length)){var o=jx(t,"color")||a.color!=null&&a.color!=="none"&&(jx(t,"colorAlpha")||jx(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var v=new lr(c);return YN(v).drColorMappingBy=f,v}}}function jx(r,t){var e=r.get(t);return Y(e)&&e.length?{name:t,range:e}:null}function Ptt(r,t,e,n,a,i){var o=W({},t);if(a){var s=a.type,l=s==="color"&&YN(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function Ett(r){r.registerSeriesModel(qQ),r.registerChartView(xtt),r.registerVisual(Mtt),r.registerLayout(stt),XQ(r)}function Ju(r){return"_EC_"+r}var Rtt=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var n=this._nodesMap;if(!n[Ju(t)]){var a=new yl(t,e);return a.hostGraph=this,this.nodes.push(a),n[Ju(t)]=a,a}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Ju(t)]},r.prototype.addEdge=function(t,e,n){var a=this._nodesMap,i=this._edgesMap;if(Wt(t)&&(t=this.nodes[t]),Wt(e)&&(e=this.nodes[e]),t instanceof yl||(t=a[Ju(t)]),e instanceof yl||(e=a[Ju(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new KN(t,e,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof yl&&(t=t.id),e instanceof yl&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},r.prototype.eachEdge=function(t,e){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},r.prototype.breadthFirstTraverse=function(t,e,n,a){if(e instanceof yl||(e=this._nodesMap[Ju(e)]),!!e){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(t.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,a=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=a[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,n=this.edges,a=0;a<e.length;a++)t.addNode(e[a].id,e[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),yl=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=ot(),e=ot(),n=0,a=this.edges.length;n<a;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var f=u.inEdges,c=0,v=f.length,h=void 0,d=void 0;c<v;c++)h=f[c],d=h.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,e.set(p.dataIndex,!0);for(var g=p.outEdges,c=0,y=g.length,m=void 0,_=void 0;c<y;c++)m=g[c],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),KN=function(){function r(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=n??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=ot(),e=ot();t.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,c=void 0;l<u;l++)f=o.inEdges[l],c=f.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(f.node1))}for(i=0;i<a.length;){var v=a[i];i++,e.set(v.dataIndex,!0);for(var h=v.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=v.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r}();function qN(r,t){return{getValue:function(e){var n=this[r][t];return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,n){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,n)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,n){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,n)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}ze(yl,qN("hostGraph","data")),ze(KN,qN("hostGraph","edgeData"));const ktt=Rtt;function Jx(r,t,e,n,a){for(var i=new ktt(n),o=0;o<r.length;o++)i.addNode(Rr(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],c=f.source,v=f.target;i.addEdge(c,v,u)&&(l.push(f),s.push(Rr(Fe(f.id,null),c+" > "+v)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=pi(r,e);else{var p=Sc.get(h),g=p?p.dimensions||[]:[];Lt(g,"value")<0&&g.concat(["value"]);var y=zc(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new zr(y,e),d.initData(r)}var m=new zr(["value"],e);return m.initData(l,s),a&&a(d,m),SN({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Qx="-->",Wg=function(r){return r.get("autoCurveness")||null},jN=function(r,t){var e=Wg(r),n=20,a=[];if(Wt(e))n=e;else if(Y(e)){r.__curvenessList=e;return}t>n&&(n=t);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},Rv=function(r,t,e){var n=[r.id,r.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[e.uid,n,a].join(Qx)},JN=function(r){var t=r.split(Qx);return[t[0],t[2],t[1]].join(Qx)},Ott=function(r,t){var e=Rv(r.node1,r.node2,t);return t.__edgeMap[e]},Ntt=function(r,t){var e=tb(Rv(r.node1,r.node2,t),t),n=tb(Rv(r.node2,r.node1,t),t);return e+n},tb=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function Btt(r){Wg(r)&&(r.__curvenessList=[],r.__edgeMap={},jN(r))}function Vtt(r,t,e,n){if(Wg(e)){var a=Rv(r,t,e),i=e.__edgeMap,o=i[JN(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function eb(r,t,e,n){var a=Wg(t),i=Y(a);if(!a)return null;var o=Ott(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=Ntt(r,t);jN(t,u),r.lineStyle=r.lineStyle||{};var f=Rv(r.node1,r.node2,t),c=t.__curvenessList,v=i||u%2?0:1;if(o.isForward)return c[v+s];var h=JN(f),d=tb(h,t),p=c[s+d+v];return n?i?a&&a[0]===0?(d+v)%2?p:-p:((d%2?0:1)+v)%2?p:-p:(d+v)%2?p:-p:c[s+d+v]}var Hr="graph",ztt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Zu(a,a),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),es(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&a){Btt(this);var s=Jx(i,a,this,!0,l);return M(s.edges,function(u){Vtt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var c=qt.prototype.getModel;function v(d,p){var g=c.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=v,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(e,a),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ke("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=EP({series:this,dataIndex:e,multipleSeries:n});return c},t.prototype._updateCategoriesData=function(){var e=K(this.option.categories||[],function(a){return a.value!=null?a:W({value:0},a)}),n=new zr(["value"],this);n.initData(e),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return YO(e)&&e},t.type="series."+Hr,t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:F.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},t}(me);const Ftt=ztt;function Yg(r){return r instanceof Array||(r=[r,r]),r}var Gtt=Ge(Hr,Htt);function Htt(r){r.eachSeriesByType(Hr,function(t){var e=t.getGraph(),n=t.getEdgeData(),a=Yg(t.get("edgeSymbol")),i=Yg(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=e.getEdgeByIndex(o),u=Yg(s.getShallow("symbol",!0)),f=Yg(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),v=n.ensureUniqueItemVisual(o,"style");switch(W(v,c),v.stroke){case"source":{var h=l.node1.getVisual("style");v.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");v.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function QN(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),rb(e,r)}}function rb(r,t){r.eachEdge(function(e,n){var a=nn(e.getModel().get(["lineStyle","curveness"]),-eb(e,t,n,!0),0),i=qa(e.node1.getLayout()),o=qa(e.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),e.setLayout(s)})}var $tt=Ge(Hr,Utt);function Utt(r,t){r.eachSeriesByType(Hr,function(e){var n=e.get("layout"),a=e.coordinateSystem;if(a&&a.type!=="view"){var i=e.getData(),o=[];M(a.dimensions,function(v){o=o.concat(i.mapDimensionsAll(v))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}rb(i.graph,e)}else(!n||n==="none")&&QN(e)})}function kv(r){var t=r.coordinateSystem;return YO(t)?QO(t,r):1}function Ov(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var tB=Math.PI,nb=[];function ab(r,t,e,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(e){var v=a.pointToData(n),h=v[0],d=v[1],p=[h-l,d-u];Fl(p,p),Nh(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);eB(e,g,l,u)}Wtt[t](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=nn(y.getModel().get(["lineStyle","curveness"]),eb(y,r,m),0),S=qa(y.node1.getLayout()),x=qa(y.node2.getLayout()),b,w=(S[0]+x[0])/2,C=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+C*(1-_)]),y.setLayout([S,x,b])})}}}var Wtt={value:function(r,t,e,n,a,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(f){var c=f.getValue("value"),v=u*(l?c:1)/2;s+=v,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=v})},symbolSize:function(r,t,e,n,a,i,o){var s=0;nb.length=o;var l=kv(r);t.eachNode(function(c){var v=Ov(c);isNaN(v)&&(v=2),v<0&&(v=0),v*=l;var h=Math.asin(v/2/n);isNaN(h)&&(h=tB/2),nb[c.dataIndex]=h,s+=h*2});var u=(2*tB-s)/o/2,f=0;t.eachNode(function(c){var v=u+nb[c.dataIndex];f+=v,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=v})}};function eB(r,t,e,n){var a=r.getGraphicEl();if(a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var v=s.ensureState("emphasis");W(v.textConfig||(v.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var Ytt=Ge(Hr,Xtt);function Xtt(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&ab(t,"symbolSize")})}var Qu=zm;function Ztt(r,t,e){for(var n=r,a=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=zo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=qa(c.p),c.edges=null}var v=e.friction==null?.6:e.friction,h=v,d,p;return{warmUp:function(){h=v*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;Fo(y,b.p,x.p);var w=Fm(y)-S.d,C=b.w/(x.w+b.w);isNaN(C)&&(C=0),Fl(y,y),!x.fixed&&Qu(x.p,x.p,y,C*w*h),!b.fixed&&Qu(b.p,b.p,y,-(1-C)*w*h)}}for(var _=0;_<m;_++){var T=n[_];T.fixed||(Fo(y,l,T.p),Qu(T.p,T.p,y,u*h))}for(var _=0;_<m;_++)for(var x=n[_],D=_+1;D<m;D++){var b=n[D];Fo(y,b.p,x.p);var w=Fm(y);w===0&&(Fi(y,Math.random()-.5,Math.random()-.5),w=1);var A=(x.rep+b.rep)/w/w;!x.fixed&&Qu(x.pp,x.pp,y,A),!b.fixed&&Qu(b.pp,b.pp,y,-A)}for(var L=[],_=0;_<m;_++){var T=n[_];T.fixed||(Fo(L,T.p,T.pp),Qu(T.p,T.p,L,h),mr(T.pp,T.p))}h=h*.992;var I=h<.01;p&&p(n,a,I),g&&g(I)}}}var Ktt=Ge(Hr,qtt);function qtt(r){r.eachSeriesByType(Hr,function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?QN(t):l==="circular"&&ab(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),v=s.get("edgeLength"),h=Y(c)?c:[c,c],d=Y(v)?v:[v,v];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),b=Jt(_,u,h);return isNaN(b)&&(b=(h[0]+h[1])/2),{w:b,rep:b,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=a.getEdgeByIndex(S),b=Jt(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=x.getModel(),C=nn(x.getModel().get(["lineStyle","curveness"]),-eb(x,t,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:b,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=Ztt(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&mr(_[x].p,a.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||a.getNodeByIndex(b).setLayout(_[b].p),n[i.getId(b)]=_[b].p;for(var b=0,w=S.length;b<w;b++){var C=S[b],T=a.getEdgeByIndex(b),D=C.n1.p,A=C.n2.p,L=T.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],mr(L[0],D),mr(L[1],A),+C.curveness&&(L[2]=[(D[0]+A[0])/2-(D[1]-A[1])*C.curveness,(D[1]+A[1])/2-(A[0]-D[0])*C.curveness]),T.setLayout(L)}}),t.forceLayout=m,t.preservedPoints=n,m.step()}else t.forceLayout=null})}function jtt(r,t,e){var n=We(r,t),a=W(r.getBoxLayoutParams(),{aspect:e}),i=ye(a,n.refContainer);return CL(r,i,e)}function Jtt(r,t){var e=[];return r.eachSeriesByType("graph",function(n){_c({targetModel:n,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var i=n.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];Td(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=jtt(n,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],v=l[1]-s[1],h=kx(n,t,s[0],s[1],c,v,f);return e.push(h),h}}),e}var rB=$e.prototype,ib=Vd.prototype,nB=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(nB);function ob(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var Qtt=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new nB},t.prototype.buildPath=function(e,n){ob(n)?rB.buildPath.call(this,e,n):ib.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return ob(this.shape)?rB.pointAt.call(this,e):ib.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,a=ob(n)?[n.x2-n.x1,n.y2-n.y1]:ib.tangentAt.call(this,e);return Fl(a,a)},t}(Gt);const aB=Qtt;var sb=["fromSymbol","toSymbol"];function iB(r){return"_"+r+"Type"}function oB(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Iu(a),u=Vs(o||0,l);return n+l+u+(i||"")+(s||"")}function sB(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var a=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Iu(a),u=Vs(o||0,l),f=Oe(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function tet(r){var t=new aB({name:"line",subPixelOptimize:!0});return lb(t.shape,r),t}function lb(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var eet=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createLine(e,n,a),i}return t.prototype._createLine=function(e,n,a){var i=e.hostModel,o=e.getItemLayout(n),s=e.getItemVisual(n,"z2"),l=tet(o);l.shape.percent=0,pe(l,{z2:ut(s,0),shape:{percent:1}},i,n),this.add(l),M(sb,function(u){var f=sB(u,e,n);this.add(f),this[iB(u)]=oB(u,e,n)},this),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};lb(l.shape,s),Kt(o,l,i,n),M(sb,function(u){var f=oB(u,e,n),c=iB(u);if(this[c]!==f){this.remove(this.childOfName(u));var v=sB(u,e,n);this.add(v)}this[c]=f},this),this._updateCommonStl(e,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,a){var i=e.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,v=a&&a.focus,h=a&&a.blurScope;if(!a||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),v=p.get("focus"),h=p.get("blurScope"),f=Ue(d)}var g=e.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(sb,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var C=0;C<Or.length;C++){var T=Or[C],D=o.getState(T);if(D){var A=D.style||{},L=w.ensureState(T),I=L.style||(L.style={});A.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(I.opacity=A.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);qe(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,e.dataType)}},inheritColor:y||F.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?Zt(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");Y(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),ge(this,v,h,c)},t.prototype.highlight=function(){li(this)},t.prototype.downplay=function(){ui(this)},t.prototype.updateLayout=function(e,n){this.childOfName("line").stopAnimation(),this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");lb(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),a=e.childOfName("toSymbol"),i=e.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),v=Fo([],c,f);Fl(v,v);function h(D,A){var L=D.__specifiedRotation;if(L==null){var I=l.tangentAt(A);D.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else D.attr("rotation",L)}if(n&&(n.setPosition(f),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var C=-Math.atan2(S[1],S[0]);c[0]<f[0]&&(C=Math.PI+C),i.rotation=C}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,p="top";break;default:T=0,p="middle"}switch(i.__position){case"end":i.x=v[0]*y+c[0],i.y=v[1]*m+c[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":i.x=-v[0]*y+f[0],i.y=-v[1]*m+f[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+T,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+T,d="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+T,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-T;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(mt);const ub=eet;var ret=function(){function r(t){this.group=new mt,this._LineCtor=t||ub}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=lB(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=lB(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[];function a(l){!l.isGroup&&!net(l)&&(l.incremental=n,l.ensureState("emphasis").hoverLayer=du)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(fb(o)){var s=new this._LineCtor(e,i,this._seriesScope);s.traverse(a),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){lo(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var a=t.getItemLayout(e);if(fb(a)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,n,a,i){var o=t.getItemGraphicEl(n);if(!fb(e.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(e,a,i):o=new this._LineCtor(e,a,i),e.setItemGraphicEl(a,o),this.group.add(o)},r}();function net(r){return r.animators&&r.animators.length>0}function lB(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Ue(t)}}function uB(r){return isNaN(r[0])||isNaN(r[1])}function fb(r){return r&&!uB(r[0])&&!uB(r[1])}const cb=ret;var vb=[],hb=[],db=[],tf=Qe,pb=Go,fB=Math.abs;function cB(r,t,e){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){vb[0]=tf(n[0],a[0],i[0],f),vb[1]=tf(n[1],a[1],i[1],f);var c=fB(pb(vb,t)-l);c<o&&(o=c,s=f)}for(var v=0;v<32;v++){var h=s+u;hb[0]=tf(n[0],a[0],i[0],s),hb[1]=tf(n[1],a[1],i[1],s),db[0]=tf(n[0],a[0],i[0],h),db[1]=tf(n[1],a[1],i[1],h);var c=pb(hb,t)-l;if(fB(c)<.01)break;var d=pb(db,t)-l;u/=2,c<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function gb(r,t){var e=[],n=Uf,a=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[qa(u[0]),qa(u[1])],u[2]&&u.__original.push(qa(u[2])));var v=u.__original;if(u[2]!=null){if(mr(a[0],v[0]),mr(a[1],v[2]),mr(a[2],v[1]),f&&f!=="none"){var h=Ov(s.node1),d=cB(a,v[0],h*t);n(a[0][0],a[1][0],a[2][0],d,e),a[0][0]=e[3],a[1][0]=e[4],n(a[0][1],a[1][1],a[2][1],d,e),a[0][1]=e[3],a[1][1]=e[4]}if(c&&c!=="none"){var h=Ov(s.node2),d=cB(a,v[1],h*t);n(a[0][0],a[1][0],a[2][0],d,e),a[1][0]=e[1],a[2][0]=e[2],n(a[0][1],a[1][1],a[2][1],d,e),a[1][1]=e[1],a[2][1]=e[2]}mr(u[0],a[0]),mr(u[1],a[2]),mr(u[2],a[1])}else{if(mr(i[0],v[0]),mr(i[1],v[1]),Fo(o,i[1],i[0]),Fl(o,o),f&&f!=="none"){var h=Ov(s.node1);zm(i[0],i[0],o,h*t)}if(c&&c!=="none"){var h=Ov(s.node2);zm(i[1],i[1],o,-h*t)}mr(u[0],i[0]),mr(u[1],i[1])}})}var vB=Et();function aet(r){if(r)return vB(r).bridge}function hB(r,t){r&&(vB(r).bridge=t)}var iet=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Hr,e}return t.prototype.init=function(e,n){var a=new iv,i=new cb,o=this.group,s=new mt;this._controller=new ll(n.getZr()),s.add(a.group),s.add(i.group),o.add(s),this._symbolDraw=a,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,n,a){var i=this,o=kg(e),s=!1;this._model=e,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,c=this._lineDraw;o&&xo(l,Na,o,this._firstRender?null:e),gb(e.getGraph(),kv(e));var v=e.getData();f.updateData(v);var h=e.getEdgeData();c.updateData(h),this._updateNodeAndLinkScale(),o&&Ng(e,a,this._controller,function(S,x,b){return e.coordinateSystem.containPoint([x,b])},null),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,a,p));var g=e.get("layout");v.graph.eachNode(function(S){var x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var C=w.get("draggable");C&&b.on("drag",function(D){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,a,p),d.setFixed(x),v.setItemLayout(x,[b.x,b.y]);break;case"circular":v.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),ab(e,"symbolSize",S,[D.offsetX,D.offsetY]),i.updateLayout(e);break;case"none":default:v.setItemLayout(x,[b.x,b.y]),rb(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),b.setDraggable(C,!!w.get("cursor"));var T=w.get(["emphasis","focus"]);T==="adjacency"&&(Ct(b).focus=S.getAdjacentDataIndices())}}),v.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(Ct(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=v.getLayout("cx"),_=v.getLayout("cy");v.graph.eachNode(function(S){eB(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,a,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,n,a){var i=this,o=!1;(function s(){e.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,n,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(a?i._layoutTimeout=setTimeout(s,16):s())})})()},t.prototype.__updateOnOwnRoam=function(e,n,a){var i=kg(n);!this._active||!i||(xo(this._mainGroup,Na,i,null),rN(e)&&(this._updateNodeAndLinkScale(),gb(n.getGraph(),kv(n)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,n=e.getData(),a=kv(e);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(e){this._active&&(gb(e.getGraph(),kv(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,n=e.coordinateSystem;if(n.type==="view"){var a=aet(e);if(a)return{bridge:a,coordSys:n}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(Ig(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,n,a,i){var o=this._getThumbnailInfo();if(o){var s=new mt,l=a.group.children(),u=i.group.children(),f=new mt,c=new mt;s.add(c),s.add(f);for(var v=0;v<l.length;v++){var h=l[v],d=h.children()[0],p=h.x,g=h.y,y=dt(d.shape),m=W(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=dt(d.style),S=new d.constructor({shape:m,style:_,z2:151});c.add(S)}for(var v=0;v<u.length;v++){var h=u[v],x=h.children()[0],_=dt(x.style),m=dt(x.shape),b=new aB({style:_,shape:m,z2:151});f.add(b)}o.bridge.renderContent({api:n,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:Ig(null,o.coordSys)})}},t.type=Hr,t}(ve);const oet=iet;var set=Ge(Hr,uet);function uet(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType(Hr,function(e){var n=e.getCategoriesData(),a=e.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Wt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}var fet=Ge(Hr,cet);function cet(r){var t={};r.eachSeriesByType(Hr,function(e){var n=e.getCategoriesData(),a=e.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=e.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var v=l.getShallow(f[c],!0);v!=null&&n.setItemVisual(o,f[c],v)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){et(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");W(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],v=0;v<c.length;v++)a.setItemVisual(o,c[v],n.getItemVisual(l,c[v]))}})})}function vet(r){r.registerChartView(oet),r.registerSeriesModel(Ftt),r.registerProcessor(set),r.registerVisual(fet),r.registerVisual(Gtt),r.registerLayout($tt),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Ytt),r.registerLayout(Ktt),r.registerCoordinateSystem("graphView",{dimensions:Og.dimensions,create:Jtt}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Te),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Te),Rx(r,Ta,Hr)}var Nv="chord",het=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Zu(it(this.getData,this),it(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,n){var a=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&a){var o=Jx(i,a,this,!0,s);return o.data}function s(l,u){var f=qt.prototype.getModel;function c(h,d){var p=f.call(this,h,d);return p.resolveParentPath=v,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){var i=this.getDataParams(e,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ke("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return ke("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(n==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(a.name==null&&(a.name=i.getName(e)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},t.type="series."+Nv,t.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},t}(me);const det=het;var pet=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;Ct(i).dataType="node",i.z2=2;var o=new Xt;return i.setTextContent(o),i.updateData(e,n,a,!0),i}return t.prototype.updateData=function(e,n,a,i){var o=this,s=e.graph.getNodeByIndex(n),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),c=e.getItemLayout(n),v=W(Oa(u.getModel("itemStyle"),c,!0),c),h=this;if(isNaN(v.startAngle)){h.setShape(v);return}i?h.setShape(v):Kt(h,{shape:v},l,n);var d=W(Oa(u.getModel("itemStyle"),c,!0),c);o.setShape(d),o.useStyle(e.getItemVisual(n,"style")),He(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(n,h),He(h,u,"itemStyle");var p=f.get("focus");ge(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,n,a){var i=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=n.getModel("label");i.ignore=!f.get("show");var c=Ue(n),v=a.getVisual("style");qe(i,c,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return e.getFormattedLabel(m,_,"node",x,nn(b,c.normal&&c.normal.get("formatter"),n.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Nr);const dB=pet;var get=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;return Ct(o).dataType="edge",o.updateData(e,n,a,i,!0),o}return t.prototype.buildPath=function(e,n){e.moveTo(n.s1[0],n.s1[1]);var a=.7,i=n.clockwise;e.arc(n.cx,n.cy,n.r,n.sStartAngle,n.sEndAngle,!i),e.bezierCurveTo((n.cx-n.s2[0])*a+n.s2[0],(n.cy-n.s2[1])*a+n.s2[1],(n.cx-n.t1[0])*a+n.t1[0],(n.cy-n.t1[1])*a+n.t1[1],n.t1[0],n.t1[1]),e.arc(n.cx,n.cy,n.r,n.tStartAngle,n.tEndAngle,!i),e.bezierCurveTo((n.cx-n.t2[0])*a+n.t2[0],(n.cy-n.t2[1])*a+n.t2[1],(n.cx-n.s1[0])*a+n.s1[0],(n.cy-n.s1[1])*a+n.s1[1],n.s1[0],n.s1[1]),e.closePath()},t.prototype.updateData=function(e,n,a,i,o){var s=e.hostModel,l=n.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),c=n.getItemModel(l.dataIndex),v=c.getModel("lineStyle"),h=c.getModel("emphasis"),d=h.get("focus"),p=W(Oa(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),pB(g,l,e,v)):(wn(g),pB(g,l,e,v),Kt(g,{shape:p},s,a)),ge(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),He(g,c,"lineStyle"),n.setItemGraphicEl(l.dataIndex,g)},t}(Gt);function pB(r,t,e,n){var a=t.node1,i=t.node2,o=r.style;r.setStyle(n.getLineStyle());var s=n.get("color");switch(s){case"source":o.fill=e.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(a.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(et(l)&&et(u)){var f=r.shape,c=(f.s1[0]+f.s2[0])/2,v=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new cu(c,v,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var yet=Math.PI/180,met=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Nv,e}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,a){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*yet;if(i.diff(o).add(function(f){var c=i.getItemLayout(f);if(c){var v=new dB(i,f,l);Ct(v).dataIndex=f,s.add(v)}}).update(function(f,c){var v=o.getItemGraphicEl(c),h=i.getItemLayout(f);if(!h){v&&fi(v,e,c);return}v?v.updateData(i,f,l):v=new dB(i,f,l),s.add(v)}).remove(function(f){var c=o.getItemGraphicEl(f);c&&fi(c,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=nt(u[0],a.getWidth()),this.group.originY=nt(u[1],a.getHeight()),pe(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,n){var a=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new get(a,i,l,n);Ct(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,i,l,n),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&fi(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type=Nv,t}(ve);const _et=met;var yb=Math.PI/180,xet=Ge(Nv,bet);function bet(r,t){r.eachSeriesByType(Nv,function(e){wet(e,t)})}function wet(r,t){var e=r.getData(),n=e.graph,a=r.getEdgeData(),i=a.count();if(i){var o=TL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=Math.max((r.get("padAngle")||0)*yb,0),v=Math.max((r.get("minAngle")||0)*yb,0),h=-r.get("startAngle")*yb,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Cd(y,!p);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&a.getSum("value")===0,b=[],w=0;n.eachEdge(function(O){var G=x?1:O.getValue("value");x&&(G>0||v)&&(w+=2);var $=O.node1.dataIndex,H=O.node2.dataIndex;b[$]=(b[$]||0)+G,b[H]=(b[H]||0)+G});var C=0;if(n.eachNode(function(O){var G=O.getValue("value");isNaN(G)||(b[O.dataIndex]=Math.max(G,b[O.dataIndex]||0)),!x&&(b[O.dataIndex]>0||v)&&w++,C+=b[O.dataIndex]||0}),!(w===0||C===0)){c*w>=Math.abs(S)&&(c=Math.max(0,(Math.abs(S)-v*w)/w)),(c+v)*w>=Math.abs(S)&&(v=(Math.abs(S)-c*w)/w);var T=(S-c*w*g)/C,D=0,A=0,L=0;n.eachNode(function(O){var G=b[O.dataIndex]||0,$=T*(C?G:1)*g;Math.abs($)<v?D+=v-Math.abs($):(A+=Math.abs($)-v,L+=Math.abs($)),O.setLayout({angle:$,value:G})});var I=!1;if(D>A){var P=D/A;n.eachNode(function(O){var G=O.getLayout().angle;Math.abs(G)>=v?O.setLayout({angle:G*P,ratio:P},!0):O.setLayout({angle:v,ratio:v===0?1:G/v},!0)})}else n.eachNode(function(O){if(!I){var G=O.getLayout().angle,$=Math.min(G/L,1),H=$*D;G-H<v&&(I=!0)}});var R=D;n.eachNode(function(O){if(!(R<=0)){var G=O.getLayout().angle;if(G>v&&v>0){var $=I?1:Math.min(G/L,1),H=G-v,X=Math.min(H,Math.min(R,D*$));R-=X,O.setLayout({angle:G-X,ratio:(G-X)/G},!0)}else v>0&&O.setLayout({angle:v,ratio:G===0?1:v/G},!0)}});var E=m,N=[];n.eachNode(function(O){var G=Math.max(O.getLayout().angle,v);O.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:E,endAngle:E+G*g,clockwise:p},!0),N[O.dataIndex]=E,E+=(G+c)*g}),n.eachEdge(function(O){var G=x?1:O.getValue("value"),$=T*(C?G:1)*g,H=O.node1.dataIndex,X=N[H]||0,q=Math.abs((O.node1.getLayout().ratio||1)*$),J=X+q*g,Q=[s+f*Math.cos(X),l+f*Math.sin(X)],St=[s+f*Math.cos(J),l+f*Math.sin(J)],Ht=O.node2.dataIndex,gt=N[Ht]||0,ft=Math.abs((O.node2.getLayout().ratio||1)*$),Tt=gt+ft*g,ct=[s+f*Math.cos(gt),l+f*Math.sin(gt)],wt=[s+f*Math.cos(Tt),l+f*Math.sin(Tt)];O.setLayout({s1:Q,s2:St,sStartAngle:X,sEndAngle:J,t1:ct,t2:wt,tStartAngle:gt,tEndAngle:Tt,cx:s,cy:l,r:f,value:G,clockwise:p}),N[H]=J,N[Ht]=Tt})}}}function Tet(r){r.registerChartView(_et),r.registerSeriesModel(det),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,xet),r.registerProcessor(hv("chord"))}var Cet=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),Aet=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new Cet},t.prototype.buildPath=function(e,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,e.moveTo(u,f),e.lineTo(n.x+a(l)*s,n.y+i(l)*s),e.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),e.lineTo(n.x-a(l)*s,n.y-i(l)*s),e.lineTo(u,f)},t}(Gt);const Met=Aet;function Det(r,t){var e=r.get("center"),n=t.getWidth(),a=t.getHeight(),i=Math.min(n,a),o=nt(e[0],t.getWidth()),s=nt(e[1],t.getHeight()),l=nt(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Xg(r,t){var e=r==null?"":r+"";return t&&(et(t)?e=t.replace("{value}",e):yt(t)&&(e=t(r))),e}var Iet=function(r){V(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,a){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=Det(e,a);this._renderMain(e,n,a,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,n,a,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),v=c.get("roundCap"),h=v?pg:Nr,d=c.get("show"),p=c.getModel("lineStyle"),g=p.get("width"),y=[u,f];Cd(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<i.length;x++){var b=Math.min(Math.max(i[x][0],0),1);f=u+m*b;var w=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[x][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),M(S,function(T){return s.add(T)});var C=function(T){if(T<=0)return i[0][1];var D;for(D=0;D<i.length;D++)if(i[D][0]>=T&&(D===0?0:i[D-1][0])<T)return i[D][1];return i[D-1][1]};this._renderTicks(e,n,a,C,o,u,f,l,g),this._renderTitleAndDetail(e,n,a,C,o),this._renderAnchor(e,o),this._renderPointer(e,n,a,C,o,u,f,l,g)},t.prototype._renderTicks=function(e,n,a,i,o,s,l,u,f){for(var c=this.group,v=o.cx,h=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),x=m.get("splitNumber"),b=nt(y.get("length"),d),w=nt(m.get("length"),d),C=s,T=(l-s)/S,D=T/x,A=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),P,R,E=0;E<=S;E++){if(P=Math.cos(C),R=Math.sin(C),y.get("show")){var N=I?I+f:f,O=new $e({shape:{x1:P*(d-N)+v,y1:R*(d-N)+h,x2:P*(d-b-N)+v,y2:R*(d-b-N)+h},style:A,silent:!0});A.stroke==="auto"&&O.setStyle({stroke:i(E/S)}),c.add(O)}if(_.get("show")){var N=_.get("distance")+I,G=Xg(Zt(E*(g-p)/S+p,vU),_.get("formatter")),$=i(E/S),H=P*(d-b-N)+v,X=R*(d-b-N)+h,q=_.get("rotate"),J=0;q==="radial"?(J=-C+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):q==="tangential"?J=-C-Math.PI/2:Wt(q)&&(J=q*Math.PI/180),J===0?c.add(new Xt({style:ce(_,{text:G,x:H,y:X,verticalAlign:R<-.8?"top":R>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:$}),silent:!0})):c.add(new Xt({style:ce(_,{text:G,x:H,y:X,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:H,originY:X,rotation:J}))}if(m.get("show")&&E!==S){var N=m.get("distance");N=N?N+f:f;for(var Q=0;Q<=x;Q++){P=Math.cos(C),R=Math.sin(C);var St=new $e({shape:{x1:P*(d-N)+v,y1:R*(d-N)+h,x2:P*(d-w-N)+v,y2:R*(d-w-N)+h},silent:!0,style:L});L.stroke==="auto"&&St.setStyle({stroke:i((E+Q/x)/S)}),c.add(St),C+=D}C-=D}else C+=T}},t.prototype._renderPointer=function(e,n,a,i,o,s,l,u,f){var c=this.group,v=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),b=[S,x],w=[s,l];function C(D,A){var L=m.getItemModel(D),I=L.getModel("pointer"),P=nt(I.get("width"),o.r),R=nt(I.get("length"),o.r),E=e.get(["pointer","icon"]),N=I.get("offsetCenter"),O=nt(N[0],o.r),G=nt(N[1],o.r),$=I.get("keepAspect"),H;return E?H=Oe(E,O-P/2,G-R,P,R,null,$):H=new Met({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:G}}),H.rotation=-(A+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function T(D,A){var L=g.get("roundCap"),I=L?pg:Nr,P=g.get("overlap"),R=P?g.get("width"):f/m.count(),E=P?o.r-R:o.r-(D+1)*R,N=P?o.r:o.r-D*R,O=new I({shape:{startAngle:s,endAngle:A,cx:o.cx,cy:o.cy,clockwise:u,r0:E,r:N}});return P&&(O.z2=Jt(m.get(_,D),[S,x],[100,0],!0)),O}(y||p)&&(m.diff(v).add(function(D){var A=m.get(_,D);if(p){var L=C(D,s);pe(L,{rotation:-((isNaN(+A)?w[0]:Jt(A,b,w,!0))+Math.PI/2)},e),c.add(L),m.setItemGraphicEl(D,L)}if(y){var I=T(D,s),P=g.get("clip");pe(I,{shape:{endAngle:Jt(A,b,w,P)}},e),c.add(I),y_(e.seriesIndex,m.dataType,D,I),d[D]=I}}).update(function(D,A){var L=m.get(_,D);if(p){var I=v.getItemGraphicEl(A),P=I?I.rotation:s,R=C(D,P);R.rotation=P,Kt(R,{rotation:-((isNaN(+L)?w[0]:Jt(L,b,w,!0))+Math.PI/2)},e),c.add(R),m.setItemGraphicEl(D,R)}if(y){var E=h[A],N=E?E.shape.endAngle:s,O=T(D,N),G=g.get("clip");Kt(O,{shape:{endAngle:Jt(L,b,w,G)}},e),c.add(O),y_(e.seriesIndex,m.dataType,D,O),d[D]=O}}).execute(),m.each(function(D){var A=m.getItemModel(D),L=A.getModel("emphasis"),I=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled"),E=i(Jt(m.get(_,D),b,[0,1],!0));if(p){var N=m.getItemGraphicEl(D),O=m.getItemVisual(D,"style"),G=O.fill;if(N instanceof ir){var $=N.style;N.useStyle(W({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},O))}else N.useStyle(O),N.type!=="pointer"&&N.setColor(G);N.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",E),N.z2EmphasisLift=0,He(N,A),ge(N,I,P,R)}if(y){var H=d[D];H.useStyle(m.getItemVisual(D,"style")),H.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",E),H.z2EmphasisLift=0,He(H,A),ge(H,I,P,R)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,n){var a=e.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Oe(s,n.cx-o/2+nt(l[0],n.r),n.cy-o/2+nt(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},t.prototype._renderTitleAndDetail=function(e,n,a,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),c=+e.get("max"),v=new mt,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Xt({silent:!0}),d[y]=new Xt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new mt,x=i(Jt(_,[f,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+nt(w[0],o.r),T=o.cy+nt(w[1],o.r),D=h[y];D.attr({z2:g?0:2,style:ce(b,{x:C,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(D)}var A=m.getModel("detail");if(A.get("show")){var L=A.get("offsetCenter"),I=o.cx+nt(L[0],o.r),P=o.cy+nt(L[1],o.r),R=nt(A.get("width"),o.r),E=nt(A.get("height"),o.r),N=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,D=d[y],O=A.get("formatter");D.attr({z2:g?0:2,style:ce(A,{x:I,y:P,text:Xg(_,O),width:isNaN(R)?null:R,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:N})}),KI(D,{normal:A},_,function($){return Xg($,O)}),p&&qI(D,y,l,e,{getFormattedLabel:function($,H,X,q,J,Q){return Xg(Q?Q.interpolatedValue:_,O)}}),S.add(D)}v.add(S)}),this.group.add(v),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(ve);const Let=Iet;var Pet=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,n){return Xu(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,F.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:F.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:F.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:F.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:F.color.neutral00,borderWidth:0,borderColor:F.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:F.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:F.color.transparent,borderWidth:0,borderColor:F.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:F.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(me);const Eet=Pet;function Ret(r){r.registerChartView(Let),r.registerSeriesModel(Eet)}var ef="funnel",ket=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zu(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,n){return Xu(this,{coordDimensions:["value"],encodeDefaulter:Bt(v1,this)})},t.prototype._defaultLabelLine=function(e){es(e,"labelLine",["show"]);var n=e.labelLine,a=e.emphasis.labelLine;n.show=n.show&&e.label.show,a.show=a.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var n=this.getData(),a=r.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series."+ef,t.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:F.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},t}(me);const Oet=ket;var Net=["itemStyle","opacity"],Bet=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=a,o=new xr,s=new Xt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(e,n,!0),a}return t.prototype.updateData=function(e,n,a){var i=this,o=e.hostModel,s=e.getItemModel(n),l=e.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(Net);f=f??1,a||wn(i),i.useStyle(e.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,pe(i,{style:{opacity:f}},o,n)):Kt(i,{style:{opacity:f},shape:{points:l.points}},o,n),He(i,s),this._updateLabel(e,n),ge(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=e.hostModel,l=e.getItemModel(n),u=e.getItemLayout(n),f=u.label,c=e.getItemVisual(n,"style"),v=c.fill;qe(o,Ue(l),{labelFetcher:e.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:e.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?v:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),a.textGuideLineConfig={anchor:g?new bt(g[0][0],g[0][1]):null},Kt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),CS(a,AS(l),{stroke:v})},t}(Br),Vet=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=ef,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Bet(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);fi(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type=ef,t}(ve);const zet=Vet;function Fet(r,t){for(var e=r.mapDimension("value"),n=r.mapArray(e,function(l){return l}),a=[],i=t==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return yt(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function Get(r){var t=r.hostModel,e=gB(t);r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,v,h,d;if(f)o==="insideLeft"?(v=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(v=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,c="right"):(v=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),d=[[v,h],[v,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");et(o)&&(!e&&Lt(["top","bottom"],o)>-1&&(o="left"),e&&Lt(["left","right"],o)>-1&&(o="bottom")),o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,v=y-5,c="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,v=y+5,c="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,c="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,c="center"):o==="rightTop"?(p=e?u[3][0]:u[1][0],g=e?u[3][1]:u[1][1],e?(m=g-_,h=m-5,c="center"):(y=p+_,v=y+5,c="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="bottom")):o==="leftTop"?(p=u[0][0],g=e?u[0][1]:u[1][1],e?(m=g-_,h=m-5,c="center"):(y=p-_,v=y-5,c="right")):o==="leftBottom"?(p=e?u[1][0]:u[3][0],g=e?u[1][1]:u[2][1],e?(m=g+_,h=m+5,c="center"):(y=p-_,v=y-5,c="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e?(m=g+_,h=m+5,c="center"):(y=p+_,v=y+5,c="left")),e?(y=p,v=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:v,y:h,verticalAlign:"middle",textAlign:c,inside:f}})}var Het=Ge(ef,$et);function $et(r,t){r.eachSeriesByType(ef,function(e){var n=e.getData(),a=n.mapDimension("value"),i=e.get("sort"),o=We(e,t),s=ye(e.getBoxLayoutParams(),o.refContainer),l=gB(e),u=s.width,f=s.height,c=Fet(n,i),v=s.x,h=s.y,d=l?[nt(e.get("minSize"),f),nt(e.get("maxSize"),f)]:[nt(e.get("minSize"),u),nt(e.get("maxSize"),u)],p=n.getDataExtent(a),g=e.get("min"),y=e.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=e.get("funnelAlign"),_=e.get("gap"),S=l?u:f,x=(S-_*(n.count()-1))/n.count(),b=function(R,E){if(l){var N=n.get(a,R)||0,O=Jt(N,[g,y],d,!0),G=void 0;switch(m){case"top":G=h;break;case"center":G=h+(f-O)/2;break;case"bottom":G=h+(f-O);break}return[[E,G],[E,G+O]]}var $=n.get(a,R)||0,H=Jt($,[g,y],d,!0),X;switch(m){case"left":X=v;break;case"center":X=v+(u-H)/2;break;case"right":X=v+u-H;break}return[[X,E],[X+H,E]]};i==="ascending"&&(x=-x,_=-_,l?v+=u:h+=f,c=c.reverse());for(var w=0;w<c.length;w++){var C=c[w],T=c[w+1],D=n.getItemModel(C);if(l){var A=D.get(["itemStyle","width"]);A==null?A=x:(A=nt(A,u),i==="ascending"&&(A=-A));var L=b(C,v),I=b(T,v+A);v+=A+_,n.setItemLayout(C,{points:L.concat(I.slice().reverse())})}else{var P=D.get(["itemStyle","height"]);P==null?P=x:(P=nt(P,f),i==="ascending"&&(P=-P));var L=b(C,h),I=b(T,h+P);h+=P+_,n.setItemLayout(C,{points:L.concat(I.slice().reverse())})}}Get(n)})}function gB(r){return r.get("orient")==="horizontal"}function Uet(r){r.registerChartView(zet),r.registerSeriesModel(Oet),r.registerLayout(Het),r.registerProcessor(hv(ef))}var Wet=.3,Yet=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new mt,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,n,a,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,c=_B(e);s.diff(l).add(v).update(h).remove(d).execute();function v(g){var y=mB(s,o,g,f,u);mb(y,s,g,c)}function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=yB(s,g,f,u);s.setItemGraphicEl(g,m),Kt(m,{shape:{points:_}},e,g),wn(m),mb(m,s,g,c)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=Xet(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=this._progressiveEls=[],l=e.start;l<e.end;l++){var u=mB(i,this._dataGroup,l,o.dimensions,o);u.incremental=ya(n),mb(u,i,l,_B(n)),s.push(u)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(ve);function Xet(r,t,e){var n=r.model,a=r.getRect(),i=new Ft({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),pe(i,{shape:{width:a.width,height:a.height}},t,e),i}function yB(r,t,e,n){for(var a=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);Zet(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function mB(r,t,e,n,a){var i=yB(r,e,n,a),o=new xr({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function _B(r){var t=r.get("smooth",!0);return t===!0&&(t=Wet),t=ni(t),gr(t)&&(t=0),{smooth:t}}function mb(r,t,e,n){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=t.getItemModel(e),i=a.getModel("emphasis");He(r,a,"lineStyle"),ge(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Zet(r,t){return t==="category"?r==null:r==null||isNaN(r)}const Ket=Yet;var qet=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,n){return pi(null,this,{useEncodeDefaulter:it(jet,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){e===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},t}(me);function jet(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return M(t.dimensions,function(n){var a=Jet(n);e[n]=a}),e}}function Jet(r){return+r.replace("dim","")}const Qet=qet;var trt=["lineStyle","opacity"],ert={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){e.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(trt,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};const rrt=ert;function nrt(r){art(r),irt(r)}function art(r){if(!r.parallel){var t=!1;M(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function irt(r){var t=ue(r.parallelAxis);M(t,function(e){if(xt(e)){var n=e.parallelIndex||0,a=ue(r.parallel)[n];a&&a.parallelAxisDefault&&Rt(e,a.parallelAxisDefault,!1)}})}var ort=5,srt=function(r){V(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,a){this._model=e,this._api=a,this._handlers||(this._handlers={},M(lrt,function(i,o){a.getZr().on(o,this._handlers[o]=it(i,this))},this)),Au(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,n){Dc(this,"_throttledDispatchExpand"),M(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(W({type:"parallelAxisExpand"},e))},t.type="parallel",t}(be),lrt={mousedown:function(r){_b(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(_b(this,"click")&&t){var e=[r.offsetX,r.offsetY],n=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(n>ort)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!_b(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=e.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function _b(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const urt=srt;var Zg="parallel",Sb=Zg,frt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var n=this.option;e&&Rt(n,e,!0),this._initDimensions()},t.prototype.contains=function(e,n){var a=e.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(e){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){e.hasOwnProperty(n)&&(this.option[n]=e[n])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[],a=ne(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){e.push("dim"+i.get("dim")),n.push(i.componentIndex)})},t.type=Sb,t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Yt);const crt=frt;var vrt=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(qn);const hrt=vrt;function wo(r,t,e,n,a,i){r=r||0;var o=Qo(e[1],-e[0]);if(a!=null&&(a=rf(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(Qo(t[1],-t[0]));s=rf(s,[0,o]),a=i=rf(s,[a,i]),n=0}t[0]=rf(t[0],e),t[1]=rf(t[1],e);var l=xb(t,n);t[n]+=r;var u=a||0,f=e.slice();l.sign<0?f[0]=Qo(f[0],u):f[1]=Qo(f[1],-u),t[n]=rf(t[n],f);var c;return c=xb(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=Qo(t[n],l.sign*a)),c=xb(t,n),i!=null&&c.span>i&&(t[1-n]=Qo(t[n],c.sign*i)),t}function xb(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 rf(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var drt=function(){function r(t,e,n){this.type=Zg,this._axesMap=ot(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=t.dimensions,i=t.parallelAxisIndex;M(a,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=Up(u),c=this._axesMap.set(o,new hrt(o,Wc(u,f,!1),[0,0],f,l));c.onBand=Zc(c.scale,u),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){M(this.dimensions,function(n){var a=this._axesMap.get(n);Xs(a,Gu),Hu(a)},this)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,a=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=n&&o<=n+e.axisLength&&s>=a&&s<=a+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(t,e){var n=We(t,e).refContainer;this._rect=ye(t.getBoxLayoutParams(),n),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[a[o]],l=[0,s],u=this.dimensions.length,f=Kg(t.get("axisExpandWidth"),l),c=Kg(t.get("axisExpandCount")||0,[0,u]),v=t.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=Kg(h[1]-h[0],l),h[1]=h[0]+d;else{d=Kg(f*(c-1),l);var p=t.get("axisExpandCenter")||Hn(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-c);g<3&&(g=0);var y=[Hn(Zt(h[0]/f,1))+1,jo(Zt(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[n[o]],layoutLength:s,axisBase:e[n[1-o]],axisLength:e[a[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;e.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),M(n,function(o,s){var l=(a.axisExpandable?grt:prt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:hd/2,vertical:0},c=[u[i].x+t.x,u[i].y+t.y],v=f[i],h=Se();Ui(h,h,v),fa(h,h,c),this._axesLayout[o]={position:c,rotation:v,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,n,a){n==null&&(n=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var v=t.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(v[h]);if(p==="inactive"){c="inactive";break}}}e(c,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,a=0,i=t.length;a<i;a++)e.get(t[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Xn([t,0],n.transform)},r.prototype.getAxisLayout=function(t){return dt(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,a=e.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),v=c[0]!=null;if(f)v&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):v&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?wo(l,a,o,"all"):u="none";else{var h=a[1]-a[0],d=o[1]*s/h;a=[Vt(0,d-h/2)],a[1]=ae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},r}();function Kg(r,t){return ae(Vt(r,t[0]),t[1])}function prt(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function grt(r,t){var e=t.layoutLength,n=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*n-t.axisExpandWindow[0],l=n,u=!0):(s=e-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const yrt=drt;function mrt(r,t){var e=[];return r.eachComponent(Sb,function(n,a){var i=new yrt(n,r,t);i.name="parallel_"+a,i.resize(n,t),n.coordinateSystem=i,i.model=n,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Zg){var a=n.getReferringComponents(Sb,Me).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&M(i.dimensions,function(o){Ys(i.getAxis(o),n,Zg)})}}),e}var _rt={create:mrt};const Srt=_rt;var SB=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return is([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var n=this.activeIntervals=dt(e);if(n)for(var a=n.length-1;a>=0;a--)nr(n[a])},t.prototype.getActiveState=function(e){var n=this.activeIntervals;if(!n.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=e&&e<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=e&&e<=n[i][1])return"active";return"inactive"},t}(Yt);ze(SB,Kc);const xB=SB;var ml=!0,Bv=Math.min,nf=Math.max,xrt=Math.pow,brt=1e4,wrt=6,Trt=6,bB="globalPan",Crt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Art={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wB={brushStyle:{lineWidth:2,stroke:F.color.backgroundTint,fill:F.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Mrt=0,Drt=function(r){V(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new mt,n._uid="brushController_"+Mrt++,M(Ort,function(a,i){this._handlers[i]=it(a,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||aJ(n,bB,this._uid),M(this._handlers,function(a,i){n.on(i,a)}),this._brushType=e.brushType,this._brushOption=Rt(dt(wB),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;iJ(e,bB,this._uid),M(this._handlers,function(n,a){e.off(a,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(a){n[a.panelId]=dt(a)})}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=K(e,function(v){return Rt(dt(wB),v,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new di(a,e,u,l).add(f).update(f).remove(c).execute(),this;function l(v,h){return(v.id!=null?v.id:n+h)+"-"+v.brushType}function u(v,h){return l(v.__brushOption,h)}function f(v,h){var d=e[v];if(h!=null&&a[h]===s)i[v]=a[h];else{var p=i[v]=h!=null?(a[h].__brushOption=d,a[h]):CB(o,TB(o,d));bb(o,p)}}function c(v){a[v]!==s&&o.group.remove(a[v])}},t.prototype.unmount=function(){return this.enableBrush(!1),Cb(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(dn);function TB(r,t){var e=qg[t.brushType].createCover(r,t);return e.__brushOption=t,MB(e,t),r.group.add(e),e}function CB(r,t){var e=wb(t);return e.endCreating&&(e.endCreating(r,t),MB(t,t.__brushOption)),t}function AB(r,t){var e=t.__brushOption;wb(t).updateCoverShape(r,t,e.range,e)}function MB(r,t){var e=t.z;e==null&&(e=brt),r.traverse(function(n){n.z=e,n.z2=e})}function bb(r,t){wb(t).updateCommon(r,t),AB(r,t)}function wb(r){return qg[r.__brushOption.brushType]}function Tb(r,t,e){var n=r._panels;if(!n)return ml;var a,i=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,i)&&(a=o)}),a}function DB(r,t){var e=r._panels;if(!e)return ml;var n=t.__brushOption.panelId;return n!=null?e[n]:ml}function Cb(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function _l(r,t){var e=K(r._covers,function(n){var a=n.__brushOption,i=dt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Irt(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],a=e[0]-n[0],i=e[1]-n[1],o=xrt(a*a+i*i,.5);return o>wrt}function IB(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function LB(r,t,e,n){var a=new mt;return a.add(new Ft({name:"main",style:Mb(e),silent:!0,draggable:!0,cursor:"move",drift:Bt(RB,r,t,a,["n","s","w","e"]),ondragend:Bt(_l,t,{isEnd:!0})})),M(n,function(i){a.add(new Ft({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Bt(RB,r,t,a,i),ondragend:Bt(_l,t,{isEnd:!0})}))}),a}function PB(r,t,e,n){var a=n.brushStyle.lineWidth||0,i=nf(a,Trt),o=e[0][0],s=e[1][0],l=o-a/2,u=s-a/2,f=e[0][1],c=e[1][1],v=f-i+a/2,h=c-i+a/2,d=f-o,p=c-s,g=d+a,y=p+a;Si(r,t,"main",o,s,d,p),n.transformable&&(Si(r,t,"w",l,u,i,y),Si(r,t,"e",v,u,i,y),Si(r,t,"n",l,u,g,i),Si(r,t,"s",l,h,g,i),Si(r,t,"nw",l,u,i,i),Si(r,t,"ne",v,u,i,i),Si(r,t,"sw",l,h,i,i),Si(r,t,"se",v,h,i,i))}function Ab(r,t){var e=t.__brushOption,n=e.transformable,a=t.childAt(0);a.useStyle(Mb(e)),a.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Db(r,i[0]):Prt(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?Art[s]+"-resize":null})})}function Si(r,t,e,n,a,i,o){var s=t.childOfName(e);s&&s.setShape(Rrt(Ib(r,t,[[n,a],[n+i,a+o]])))}function Mb(r){return _t({strokeNoScale:!0},r.brushStyle)}function EB(r,t,e,n){var a=[Bv(r,e),Bv(t,n)],i=[nf(r,e),nf(t,n)];return[[a[0],i[0]],[a[1],i[1]]]}function Lrt(r){return gu(r.group)}function Db(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Yd(e[t],Lrt(r));return n[a]}function Prt(r,t){var e=[Db(r,t[0]),Db(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function RB(r,t,e,n,a,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=kB(t,a,i);M(n,function(u){var f=Crt[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(EB(s[0][0],s[1][0],s[0][1],s[1][1])),bb(t,e),_l(t,{isEnd:!1})}function Ert(r,t,e,n){var a=t.__brushOption.range,i=kB(r,e,n);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),bb(r,t),_l(r,{isEnd:!1})}function kB(r,t,e){var n=r.group,a=n.transformCoordToLocal(t,e),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function Ib(r,t,e){var n=DB(r,t);return n&&n!==ml?n.clipPath(e,r._transform):dt(e)}function Rrt(r){var t=Bv(r[0][0],r[1][0]),e=Bv(r[0][1],r[1][1]),n=nf(r[0][0],r[1][0]),a=nf(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:a-e}}function krt(r,t,e){if(!(!r._brushType||Nrt(r,t.offsetX,t.offsetY))){var n=r._zr,a=r._covers,i=Tb(r,t,e);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===ml||s.panelId===i.panelId)&&qg[s.brushType].contain(a[o],e[0],e[1]))return}i&&n.setCursorStyle("crosshair")}}function Lb(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Pb(r,t,e){return r.childOfName("main").contain(t,e)}function OB(r,t,e,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),Irt(r)||a){if(i&&!a){o.brushMode==="single"&&Cb(r);var l=dt(o);l.brushType=NB(l.brushType,i),l.panelId=i===ml?null:i.panelId,a=r._creatingCover=TB(r,l),r._covers.push(a)}if(a){var u=qg[NB(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(Ib(r,a,r._track)),n&&(CB(r,a),u.updateCommon(r,a)),AB(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Tb(r,t,e)&&Cb(r)&&(s={isEnd:n,removeOnClick:!0});return s}function NB(r,t){return r==="auto"?t.defaultBrushType:r}var Ort={mousedown:function(r){if(this._dragging)BB(this,r);else if(!r.target||!r.target.draggable){Lb(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Tb(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(krt(this,r,n),this._dragging){Lb(r);var a=OB(this,r,n,!1);a&&_l(this,a)}},mouseup:function(r){BB(this,r)}};function BB(r,t){if(r._dragging){Lb(t);var e=t.offsetX,n=t.offsetY,a=r.group.transformCoordToLocal(e,n),i=OB(r,t,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&_l(r,i)}}function Nrt(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var qg={lineX:VB(0),lineY:VB(1),rect:{createCover:function(r,t){function e(n){return n}return LB({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=IB(r);return EB(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){PB(r,t,e,n)},updateCommon:Ab,contain:Pb},polygon:{createCover:function(r,t){var e=new mt;return e.add(new xr({name:"main",style:Mb(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Br({name:"main",draggable:!0,drift:Bt(Ert,r,t),ondragend:Bt(_l,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Ib(r,t,e)})},updateCommon:Ab,contain:Pb}};function VB(r){return{createCover:function(t,e){return LB({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=IB(t),n=Bv(e[0][r],e[1][r]),a=nf(e[0][r],e[1][r]);return[n,a]},updateCoverShape:function(t,e,n,a){var i,o=DB(t,e);if(o!==ml&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),PB(t,e,l,a)},updateCommon:Ab,contain:Pb}}const Eb=Drt;function zB(r){return r=Rb(r),function(t){return zI(t,r)}}function FB(r,t){return r=Rb(r),function(e){var n=t??e,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function GB(r,t,e){var n=Rb(r);return function(a,i){return n.contain(i[0],i[1])&&!TO(a,t,e)}}function Rb(r){return Mt.create(r)}var Brt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){r.prototype.init.apply(this,arguments),(this._brushController=new Eb(n.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(e,n,a,i){if(!Vrt(e,n,i)){this.axisModel=e,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new mt,this.group.add(this._axisGroup),!!e.get("show")){var s=Frt(e,n),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,c=e.axis.dim,v=l.getAxisLayout(c),h=W({strokeContainThreshold:f},v),d=new mi(e,a,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,a),cc(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=Mt.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:zB(c),isTargetByCursor:GB(c,s,i),getLinearBrushOtherExtent:FB(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(zrt(a))},t.prototype._onBrush=function(e){var n=e.areas,a=this.axisModel,i=a.axis,o=K(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(be);function Vrt(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function zrt(r){var t=r.axis;return K(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function Frt(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const Grt=Brt;var Hrt={type:"axisAreaSelect",event:"axisAreaSelected"};function $rt(r){r.registerAction(Hrt,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var Urt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function HB(r){r.registerComponentView(urt),r.registerComponentModel(crt),r.registerCoordinateSystem("parallel",Srt),r.registerPreprocessor(nrt),r.registerComponentModel(xB),r.registerComponentView(Grt),Ku(r,"parallel",xB,Urt),$rt(r)}function Wrt(r){Nt(HB),r.registerChartView(Ket),r.registerSeriesModel(Qet),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,rrt)}var xi="sankey",Yrt=function(r){V(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){var a=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new qt(o[l],this,n));var u=Jx(i,a,this,!0,f);return u.data;function f(c,v){c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,n){var a=this.option.data||this.option.nodes,i=a[e];i.localX=n[0],i.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,n,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(e,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ke("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),c=f.getLayout().value,v=this.getDataParams(e,a).data.name;return ke("nameValue",{name:v!=null?v+"":null,value:c,noValue:i(c)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,n){var a=r.prototype.getDataParams.call(this,e,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;a.value=o}return a},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type="series."+xi,t.layoutMode="box",t.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:F.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:F.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(me);const Xrt=Yrt;var Zrt=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),Krt=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Zrt},t.prototype.buildPath=function(e,n){var a=n.extent;e.moveTo(n.x1,n.y1),e.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(e.lineTo(n.x2+a,n.y2),e.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(e.lineTo(n.x2,n.y2+a),e.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),e.closePath()},t.prototype.highlight=function(){li(this)},t.prototype.downplay=function(){ui(this)},t}(Gt),qrt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=xi,e._mainGroup=new mt,e}return t.prototype.init=function(e,n){this._controller=new ll(n.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,n,a){var i=e.getGraph(),o=this._mainGroup,s=e.layoutInfo,l=s.width,u=s.height,f=e.getData(),c=e.getData("edge"),v=e.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(e,a),Ng(e,a,this._controller,tN(o),null),i.eachEdge(function(h){var d=new Krt,p=Ct(d);p.dataIndex=h.dataIndex,p.seriesIndex=e.seriesIndex,p.dataType="edge";var g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),x=S.get("localX"),b=S.get("localY"),w=h.node2.getLayout(),C=h.node2.getModel(),T=C.get("localX"),D=C.get("localY"),A=h.getLayout(),L,I,P,R,E,N,O,G;d.shape.extent=Math.max(1,A.dy),d.shape.orient=v,v==="vertical"?(L=(x!=null?x*l:_.x)+A.sy,I=(b!=null?b*u:_.y)+_.dy,P=(T!=null?T*l:w.x)+A.ty,R=D!=null?D*u:w.y,E=L,N=I*(1-m)+R*m,O=P,G=I*m+R*(1-m)):(L=(x!=null?x*l:_.x)+_.dx,I=(b!=null?b*u:_.y)+A.sy,P=T!=null?T*l:w.x,R=(D!=null?D*u:w.y)+A.ty,E=L*(1-m)+P*m,N=I,O=L*m+P*(1-m),G=R),d.setShape({x1:L,y1:I,x2:P,y2:R,cpx1:E,cpy1:N,cpx2:O,cpy2:G}),d.useStyle(y.getItemStyle()),$B(d.style,v,h);var $=""+g.get("value"),H=Ue(g,"edgeLabel");qe(d,H,{labelFetcher:{getFormattedLabel:function(J,Q,St,Ht,gt,ft){return e.getFormattedLabel(J,Q,"edge",Ht,nn(gt,H.normal&&H.normal.get("formatter"),$),ft)}},labelDataIndex:h.dataIndex,defaultText:$}),d.setTextConfig({position:"inside"});var X=g.getModel("emphasis");He(d,g,"lineStyle",function(J){var Q=J.getItemStyle();return $B(Q,v,h),Q}),o.add(d),c.setItemGraphicEl(h.dataIndex,d);var q=X.get("focus");ge(d,q==="adjacency"?h.getAdjacentDataIndices():q==="trajectory"?h.getTrajectoryDataIndices():q,X.get("blurScope"),X.get("disabled"))}),i.eachNode(function(h){var d=h.getLayout(),p=h.getModel(),g=p.get("localX"),y=p.get("localY"),m=p.getModel("emphasis"),_=p.get(["itemStyle","borderRadius"])||0,S=new Ft({shape:{x:g!=null?g*l:d.x,y:y!=null?y*u:d.y,width:d.dx,height:d.dy,r:_},style:p.getModel("itemStyle").getItemStyle(),z2:10});qe(S,Ue(p),{labelFetcher:{getFormattedLabel:function(b,w){return e.getFormattedLabel(b,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),He(S,p),o.add(S),f.setItemGraphicEl(h.dataIndex,S),Ct(S).dataType="node";var x=m.get("focus");ge(S,x==="adjacency"?h.getAdjacentDataIndices():x==="trajectory"?h.getTrajectoryDataIndices():x,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,d){var p=f.getItemModel(d);p.get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&e.isAnimationEnabled()&&o.setClipPath(jrt(o.getBoundingRect(),e,function(){o.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,n,a){xo(this.group,Na,n.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,n){var a=e.layoutInfo,i=e.coordinateSystem=kx(e,n,a.x,a.y,a.width,a.height);xo(this.group,Na,i,this._firstRender?null:e)},t.type=xi,t}(ve);function $B(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var n=e.node1.getVisual("color"),a=e.node2.getVisual("color");et(n)&&et(a)&&(r.fill=new cu(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function jrt(r,t,e){var n=new Ft({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return pe(n,{shape:{width:r.width+20}},t,e),n}const Jrt=qrt;var Qrt=Ge(xi,tnt);function tnt(r,t){r.eachSeriesByType(xi,function(e){var n=e.get("nodeWidth"),a=e.get("nodeGap"),i=We(e,t).refContainer,o=ye(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,c=u.edges;rnt(f);var v=ne(f,function(g){return g.getLayout().value===0}),h=v.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");ent(f,c,n,a,s,l,h,d,p)})}function ent(r,t,e,n,a,i,o,s,l){nnt(r,t,e,a,i,s,l),snt(r,t,i,a,n,o,s),gnt(r,s)}function rnt(r){M(r,function(t){var e=Co(t.outEdges,jg),n=Co(t.inEdges,jg),a=t.getValue()||0,i=Math.max(e,n,a);t.setLayout({value:i},!0)})}function nnt(r,t,e,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,v=0;v<t.length;v++)s[v]=1;for(var v=0;v<r.length;v++)l[v]=r[v].inEdges.length,l[v]===0&&u.push(r[v]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:c},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=Lt(t,_);s[S]=0;var x=_.node2,b=Lt(r,x);--l[b]===0&&Lt(f,x)<0&&f.push(x)}}++c,u=f,f=[]}for(var v=0;v<s.length;v++)if(s[v]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>c-1?h:c-1;o&&o!=="left"&&ant(r,o,i,w);var C=i==="vertical"?(a-e)/w:(n-e)/w;ont(r,C,i)}function UB(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function ant(r,t,e,n){if(t==="right"){for(var a=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];Lt(a,f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}M(r,function(c){UB(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else t==="justify"&&int(r,n)}function int(r,t){M(r,function(e){!UB(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function ont(r,t,e){M(r,function(n){var a=n.getLayout().depth*t;e==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function snt(r,t,e,n,a,i,o){var s=lnt(r,o);unt(s,t,e,n,a,o),kb(s,a,e,n,o);for(var l=1;i>0;i--)l*=.99,fnt(s,l,o),kb(s,a,e,n,o),pnt(s,l,o),kb(s,a,e,n,o)}function lnt(r,t){var e=[],n=t==="vertical"?"y":"x",a=K0(r,function(i){return i.getLayout()[n]});return nr(a.keys),M(a.keys,function(i){e.push(a.buckets.get(i))}),e}function unt(r,t,e,n,a,i){var o=1/0;M(r,function(s){var l=s.length,u=0;M(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(e-(l-1)*a)/u;f<o&&(o=f)}),M(r,function(s){M(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),M(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function kb(r,t,e,n,a){var i=a==="vertical"?"x":"y";M(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,v=a==="vertical"?"dx":"dy",h=0;h<c;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[v]+t;var d=a==="vertical"?n:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=c-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[v]+t-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function fnt(r,t,e){M(r.slice().reverse(),function(n){M(n,function(a){if(a.outEdges.length){var i=Co(a.outEdges,cnt,e)/Co(a.outEdges,jg);if(isNaN(i)){var o=a.outEdges.length;i=o?Co(a.outEdges,vnt,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-To(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-To(a,e))*t;a.setLayout({y:l},!0)}}})})}function cnt(r,t){return To(r.node2,t)*r.getValue()}function vnt(r,t){return To(r.node2,t)}function hnt(r,t){return To(r.node1,t)*r.getValue()}function dnt(r,t){return To(r.node1,t)}function To(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function jg(r){return r.getValue()}function Co(r,t,e){for(var n=0,a=r.length,i=-1;++i<a;){var o=+t(r[i],e);isNaN(o)||(n+=o)}return n}function pnt(r,t,e){M(r,function(n){M(n,function(a){if(a.inEdges.length){var i=Co(a.inEdges,hnt,e)/Co(a.inEdges,jg);if(isNaN(i)){var o=a.inEdges.length;i=o?Co(a.inEdges,dnt,e)/o:0}if(e==="vertical"){var s=a.getLayout().x+(i-To(a,e))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-To(a,e))*t;a.setLayout({y:l},!0)}}})})}function gnt(r,t){var e=t==="vertical"?"x":"y";M(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[e]-i.node2.getLayout()[e]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[e]-i.node1.getLayout()[e]})}),M(r,function(n){var a=0,i=0;M(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),M(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}var ynt=Ge(xi,mnt);function mnt(r){r.eachSeriesByType(xi,function(t){var e=t.getGraph(),n=e.nodes,a=e.edges;if(n.length){var i=1/0,o=-1/0;M(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),M(n,function(s){var l=new lr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function _nt(r){r.registerChartView(Jrt),r.registerSeriesModel(Xrt),r.registerLayout(Qrt),r.registerVisual(ynt),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:Ta,subType:xi,query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),Rx(r,Ta,xi)}var WB=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var n,a=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l,u=t.layout;o==="category"?(u="horizontal",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],c=u==="horizontal"?0:1,v=this._baseAxisDim=f[c],h=f[1-c],d=[a,i],p=d[c].get("type"),g=d[1-c].get("type"),y=t.data;if(y&&l){var m=[];M(y,function(x,b){var w;Y(x)?(w=x.slice(),x.unshift(b)):Y(x.value)?(w=W({},x),w.value=w.value.slice(),x.value.unshift(b)):w=x,m.push(w)}),t.data=m}var _=this.defaultValueDimensions,S=[{name:v,type:Rp(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Rp(g),dimsDef:_.slice()}];return Xu(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:Bt(EL,S,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r}();function Jg(r,t){for(var e=t.ends.length,n=0,a=0;a<e;a++)r.contain(t.ends[a][0],t.ends[a][1])&&n++;return n?n<e?sv:ov:lv}var Ba="boxplot",YB=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series."+Ba,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:F.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:F.color.shadow}},animationDuration:800},t}(me);ze(YB,WB,!0);const Snt=YB;var xnt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Ba,e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.getWhiskerBoxesLayout()==="horizontal"?1:0,u=e.get("clip",!0),f=e.coordinateSystem,c=f.getArea&&f.getArea(),v=u&&tl(f,!1,e);i.diff(s).add(function(h){if(i.hasValue(h)){var d=i.getItemLayout(h),p=u?Jg(c,d):ov;if(p===lv)return;var g=XB(d,i,h,l,!0);Wu(p===sv,g,v),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,d){var p=s.getItemGraphicEl(d);if(!i.hasValue(h)){o.remove(p);return}var g=i.getItemLayout(h),y=u?Jg(c,g):ov;if(y===lv){o.remove(p);return}p?(wn(p),ZB(g,p,i,h)):p=XB(g,i,h,l),Wu(y===sv,p,v),o.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&o.remove(d)}).execute(),this._data=i},t.prototype.remove=function(e){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},t.type=Ba,t}(ve),bnt=function(){function r(){}return r}(),wnt=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new bnt},t.prototype.buildPath=function(e,n){var a=n.points,i=0;for(e.moveTo(a[i][0],a[i][1]),i++;i<4;i++)e.lineTo(a[i][0],a[i][1]);for(e.closePath();i<a.length;i++)e.moveTo(a[i][0],a[i][1]),i++,e.lineTo(a[i][0],a[i][1])},t}(Gt);function XB(r,t,e,n,a){var i=r.ends,o=new wnt({shape:{points:a?Tnt(i,n,r):i}});return ZB(r,o,t,e,a),o}function ZB(r,t,e,n,a){var i=e.hostModel,o=ws[a?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,n),t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(n),l=s.getModel("emphasis");He(t,s),ge(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Tnt(r,t,e){return K(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}const Cnt=xnt;var Ant=au(),Mnt=Ge(Ba,Dnt);function Dnt(r){var t=il(Ba);gS(r,t,function(e){var n=xX(e,t);if(n){var a=Int(e,n);Ws(e,t,function(i){var o=i.seriesIndex;Lnt(i,a.boxOffsetList[o],a.boxWidthList[o])})}})}function Int(r,t){var e=[],n=[],a=[],i=sr(r,{fromStat:{key:il(Ba)},min:1}).w;Ws(r,il(Ba),function(f){var c=f.get("boxWidth");Y(c)||(c=[c,c]),a[f.seriesIndex]=[nt(c[0],i)||0,nt(c[1],i)||0]});var o=i*.8-2,s=o/t*.3,l=(o-s*(t-1))/t,u=l/2-o/2;return Ws(r,il(Ba),function(f){var c=f.seriesIndex;n[c]=u,u+=s+l,e[c]=ae(Vt(l,a[c][0]),a[c][1])}),{boxOffsetList:n,boxWidthList:e}}function Lnt(r,t,e){var n=r.coordinateSystem,a=r.getData(),i=e/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var v=a.get(u,c),h=_(v,f[2],c),d=_(v,f[0],c),p=_(v,f[1],c),g=_(v,f[3],c),y=_(v,f[4],c),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,h),a.setItemLayout(c,{initBaseline:h[s],ends:m})}function _(b,w,C){var T=a.get(w,C),D=[];D[o]=b,D[s]=T;var A;return isNaN(b)||isNaN(T)?A=[NaN,NaN]:(A=n.dataToPoint(D),A[o]+=t),A}function S(b,w,C){var T=w.slice(),D=w.slice();T[o]+=i,D[o]-=i,C?b.push(T,D):b.push(D,T)}function x(b,w){var C=w.slice(),T=w.slice();C[o]-=i,T[o]+=i,b.push(C,T)}}function Pnt(r){Ant(r,function(){var t=il(Ba);mS(r,{key:t,seriesType:Ba,getMetrics:nx}),Zp(t,vg(t))})}function Ent(r,t){t=t||{};for(var e=[],n=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=nr(r[o].slice()),l=U0(s,.25),u=U0(s,.5),f=U0(s,.75),c=s[0],v=s[s.length-1],h=(a??1.5)*(f-l),d=i?c:Math.max(c,l-h),p=i?v:Math.min(v,f+h),g=t.itemNameFormatter,y=yt(g)?g({value:o}):et(g)?g.replace("{value}",o+""):o+"";e.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];n.push(S)}}}return{boxData:e,outliers:n}}var Rnt={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==tr){var n="";ee(n)}var a=Ent(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function knt(r){r.registerSeriesModel(Snt),r.registerChartView(Cnt),r.registerLayout(Mnt),r.registerTransform(Rnt),Pnt(r)}var Ao="candlestick",KB=function(r){V(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,a){var i=n.getItemLayout(e);return i&&a.rect(i.brushRect)},t.type="series."+Ao,t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(me);ze(KB,WB,!0);const Ont=KB;var Nnt=["itemStyle","borderColor"],Bnt=["itemStyle","borderColor0"],Vnt=["itemStyle","borderColorDoji"],znt=["itemStyle","color"],Fnt=["itemStyle","color0"];function Ob(r,t){return t.get(r>0?znt:Fnt)}function Nb(r,t){return t.get(r===0?Vnt:r>0?Nnt:Bnt)}var Gnt={seriesType:Ao,plan:Ns(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(n,a){for(var i;(i=n.next())!=null;){var o=a.getItemModel(i),s=a.getItemLayout(i).sign,l=o.getItemStyle();l.fill=Ob(s,o),l.stroke=Nb(s,o)||l.fill;var u=a.ensureUniqueItemVisual(i,"style");W(u,l)}}}}}};const Hnt=Gnt;var $nt=["color","borderColor"],Unt=function(r){V(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,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,a){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){lo(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(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&tl(l,!1,e);this._data||i.removeAll();var c=qB(e);n.diff(a).add(function(v){if(n.hasValue(v)){var h=n.getItemLayout(v),d=s?Jg(u,h):ov;if(d===lv)return;var p=Bb(h,v,c,!0);pe(p,{shape:{points:h.ends}},e,v),Wu(d===sv,p,f),Vb(p,n,v,o),i.add(p),n.setItemGraphicEl(v,p)}}).update(function(v,h){var d=a.getItemGraphicEl(h);if(!n.hasValue(v)){i.remove(d);return}var p=n.getItemLayout(v),g=s?Jg(u,p):ov;if(g===lv){i.remove(d);return}d?(Kt(d,{shape:{points:p.ends}},e,v),wn(d)):d=Bb(p,v,c),Vb(d,n,v,o),Wu(g===sv,d,f),i.add(d),n.setItemGraphicEl(v,d)}).remove(function(v){var h=a.getItemGraphicEl(v);h&&i.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),jB(e,this.group);var n=e.get("clip",!0)?tl(e.coordinateSystem,!1,e):null;Wu(!!n,this.group,n)},t.prototype._incrementalRenderNormal=function(e,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o=qB(n),s;(s=e.next())!=null;){var l=a.getItemLayout(s),u=Bb(l,s,o);Vb(u,a,s,i),u.incremental=ya(n),this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,n){jB(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),Wu(!1,this.group,null),this._data=null},t.type=Ao,t}(ve),Wnt=function(){function r(){}return r}(),Ynt=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Wnt},t.prototype.buildPath=function(e,n){var a=n.points;this.__simpleBox?(e.moveTo(a[4][0],a[4][1]),e.lineTo(a[6][0],a[6][1])):(e.moveTo(a[0][0],a[0][1]),e.lineTo(a[1][0],a[1][1]),e.lineTo(a[2][0],a[2][1]),e.lineTo(a[3][0],a[3][1]),e.closePath(),e.moveTo(a[4][0],a[4][1]),e.lineTo(a[5][0],a[5][1]),e.moveTo(a[6][0],a[6][1]),e.lineTo(a[7][0],a[7][1]))},t}(Gt);function Bb(r,t,e,n){var a=r.ends;return new Ynt({shape:{points:n?Xnt(a,e,r):a},z2:100})}function Vb(r,t,e,n){var a=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0;var i=a.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=n,He(r,a);var o=t.getItemLayout(e).sign;M(r.states,function(l,u){var f=a.getModel(u),c=Ob(o,f),v=Nb(o,f)||c,h=l.style||(l.style={});c&&(h.fill=c),v&&(h.stroke=v)});var s=a.getModel("emphasis");ge(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Xnt(r,t,e){return K(r,function(n){return n=n.slice(),n[t]=e.initBaseline,n})}function qB(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var Znt=function(){function r(){}return r}(),zb=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Znt},t.prototype.buildPath=function(e,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];e.moveTo(o,a[i++]),e.lineTo(o,a[i++])}else i+=3},t}(Gt);function jB(r,t,e,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new zb({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new zb({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new zb({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Fb(1,o,r),Fb(-1,s,r),Fb(0,l,r),n&&(o.incremental=ya(r),s.incremental=ya(r),l.incremental=ya(r)),e&&e.push(o,s,l)}function Fb(r,t,e,n){var a=Nb(r,e)||Ob(r,e),i=e.getModel("itemStyle").getItemStyle($nt);t.useStyle(i),t.style.fill=null,t.style.stroke=a;var o=e.get("cursor");o&&t.attr("cursor",o)}const Knt=Unt;function qnt(r){!r||!Y(r.series)||M(r.series,function(t){xt(t)&&t.type==="k"&&(t.type=Ao)})}var jnt=au(),Jnt={seriesType:Ao,plan:Ns(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=Qnt(r),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,i=1-a,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[a])),l=K(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],c=l[2],v=l[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(c,y),w=m.get(v,y),C=ae(S,x),T=Vt(S,x),D=N(C,_),A=N(T,_),L=N(b,_),I=N(w,_),P=[];O(P,A,0),O(P,D,1),P.push($(I),$(A),$(L),$(D));var R=g.getItemModel(y),E=!!R.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:JB(m,y,S,x,f,E),initBaseline:S>x?A[i]:D[i],ends:P,brushRect:G(b,w,_)})}function N(H,X){var q=[];return q[a]=X,q[i]=H,isNaN(X)||isNaN(H)?[NaN,NaN]:t.dataToPoint(q)}function O(H,X,q){var J=X.slice(),Q=X.slice();J[a]=Wd(J[a]+n/2,1,!1),Q[a]=Wd(Q[a]-n/2,1,!0),q?H.push(J,Q):H.push(Q,J)}function G(H,X,q){var J=N(H,q),Q=N(X,q);return J[a]-=n/2,Q[a]-=n/2,{x:J[0],y:J[1],width:i?n:Q[0]-J[0],height:i?Q[1]-J[1]:n}}function $(H){return H[a]=Wd(H[a],1),H}}function d(p,g){for(var y=Ra(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var T=w.get(s,b),D=w.get(u,b),A=w.get(f,b),L=w.get(c,b),I=w.get(v,b);if(isNaN(T)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=JB(w,b,D,A,f,C),S[a]=T,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function JB(r,t,e,n,a,i){var o;return e>n?o=-1:e<n?o=1:o=i?0:t>0?r.get(a,t-1)<=n?1:-1:1,o}function Qnt(r,t){var e=r.getBaseAxis(),n=sr(e,{fromStat:{key:il(Ao)},min:1}).w,a=nt(ut(r.get("barMaxWidth"),n),n),i=nt(ut(r.get("barMinWidth"),1),n),o=r.get("barWidth");return o!=null?nt(o,n):Vt(ae(n/2,a),i)}function tat(r){jnt(r,function(){var t=il(Ao);mS(r,{key:t,seriesType:Ao,getMetrics:nx}),Zp(t,vg(t))})}function eat(r){r.registerChartView(Knt),r.registerSeriesModel(Ont),r.registerPreprocessor(qnt),r.registerVisual(Hnt),r.registerLayout(Jnt),tat(r)}function QB(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var rat=function(r){V(t,r);function t(e,n){var a=r.call(this)||this,i=new av(e,n),o=new mt;return a.add(i),a.add(o),a.updateData(e,n),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var n=e.symbolType,a=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Oe(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}QB(o,e)},t.prototype.updateEffectAnimation=function(e){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}QB(a,e)},t.prototype.highlight=function(){li(this)},t.prototype.downplay=function(){ui(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,n){var a=this,i=e.hostModel;this.childAt(0).updateData(e,n);var o=this.childAt(1),s=e.getItemModel(n),l=e.getItemVisual(n,"symbol"),u=Iu(e.getItemVisual(n,"symbolSize")),f=e.getItemVisual(n,"style"),c=f&&f.fill,v=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var h=Vs(e.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=e.getItemVisual(n,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=n/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=c,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,ge(this,v.get("focus"),v.get("blurScope"),v.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(mt);const nat=rat;var aat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new iv(nat)},t.prototype.render=function(e,n,a){var i=e.getData(),o=this._symbolDraw;o.updateData(i,tV(e)),this.group.add(o.group)},t.prototype.updateTransform=function(e,n,a){var i=e.getData();this.group.dirty();var o=uv("").reset(e,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(tV(e))},t.prototype._updateGroupTransform=function(e){var n=e.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=r4(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(ve);function tV(r){return{clipShape:KR(r)}}const iat=aat;var oat=function(r){V(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 pi(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,n,a){return a.point(n.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(me);const sat=oat;function lat(r){r.registerChartView(iat),r.registerSeriesModel(sat),r.registerLayout(uv("effectScatter"))}var uat=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i.add(i.createLine(e,n,a)),i._updateEffectSymbol(e,n),i}return t.prototype.createLine=function(e,n,a){return new ub(e,n,a)},t.prototype._updateEffectSymbol=function(e,n){var a=e.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Y(o)||(o=[o,o]);var l=e.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Oe(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(e,i,n))},t.prototype._updateEffectAnimation=function(e,n,a){var i=this.childAt(1);if(i){var o=e.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Rr(n.get("delay"),function(h){return h/e.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var v=void 0;yt(c)?v=c(a):v=c,i.__t>0&&(v=-s*i.__t),this._animateSymbol(i,s,v,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,n,a,i,o){if(n>0){e.__t=0;var s=this,l=e.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Gi(e.__p1,e.__cp1)+Gi(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,n){e.__p1=n[0],e.__p2=n[1],e.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(e,n,a){this.childAt(0).updateData(e,n,a),this._updateEffectSymbol(e,n)},t.prototype._updateSymbolPosition=function(e){var n=e.__p1,a=e.__p2,i=e.__cp1,o=e.__t<=1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Qe,f=o0;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=e.__t<=1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),v=e.__t<=1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);e.rotation=-Math.atan2(v,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Gi(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*Gi(n,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,n){this.childAt(0).updateLayout(e,n);var a=e.getItemModel(n).getModel("effect");this._updateEffectAnimation(e,a,n)},t}(mt);const eV=uat;var fat=function(r){V(t,r);function t(e,n,a){var i=r.call(this)||this;return i._createPolyline(e,n,a),i}return t.prototype._createPolyline=function(e,n,a){var i=e.getItemLayout(n),o=new xr({shape:{points:i}});this.add(o),this._updateCommonStl(e,n,a)},t.prototype.updateData=function(e,n,a){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(n)}};Kt(o,s,i,n),this._updateCommonStl(e,n,a)},t.prototype._updateCommonStl=function(e,n,a){var i=this.childAt(0),o=e.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||e.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(e.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var v=i.ensureState("emphasis");v.style=s,ge(this,l,u,f)},t.prototype.updateLayout=function(e,n){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",e.getItemLayout(n))},t}(mt);const rV=fat;var cat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,n,a){return new rV(e,n,a)},t.prototype._updateAnimationPoints=function(e,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Gi(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var n=e.__t<=1?e.__t:2-e.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],v=a[l+1];e.x=c[0]*(1-f)+f*v[0],e.y=c[1]*(1-f)+f*v[1];var h=e.__t<=1?v[0]-c[0]:c[0]-v[0],d=e.__t<=1?v[1]-c[1]:c[1]-v[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,e.ignore=!1}},t}(eV);const vat=cat;var hat=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),dat=function(r){V(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.beforeBrush=function(e){e&&!e.contentRetained&&this.reset()},t.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new hat},t.prototype.buildPath=function(e,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){e.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)e.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],v=a[o++];if(e.moveTo(u,f),i>0){var h=(u+c)/2-(f-v)*i,d=(f+v)/2-(c-u)*i;e.quadraticCurveTo(h,d,c,v)}else e.lineTo(c,v)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],v=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(no(c,v,d,p,s,e,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],v=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(c+d)/2-(v-p)*o,y=(v+p)/2-(d-c)*o;if(mD(c,v,g,y,d,p,s,e,n))return l}else if(no(c,v,d,p,s,e,n))return l;l++}return-1},t.prototype.contain=function(e,n){var a=this.transformCoordToLocal(e,n),i=this.getBoundingRect();if(e=a[0],n=a[1],i.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,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}e=this._rect=new Mt(i,o,s,l)}return e},t}(Gt),pat=function(){function r(){this.group=new mt}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e,n){var a=this._newAdded[0],i=e.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=n,u.setShape({segs:i}),this._setCommon(u,e),u.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new dat({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,n){var a=e.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Ct(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const gat=pat;var yat={seriesType:"lines",plan:Ns(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(e){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,v=[],f=a.start;f<a.end;f++){var h=r.getLineCoords(f,o);e&&(s[c++]=h);for(var d=0;d<h;d++)v=t.dataToPoint(o[d],!1,v),s[c++]=v[0],s[c++]=v[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var p=i.getItemModel(f),h=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<h;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}};const nV=yat;var mat=function(r){V(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,a){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=a.getZr(),f=!!U_(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var c=e.get("clip",!0)&&tl(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,a){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,a){this._lineDraw.incrementalUpdate(e,n.getData(),ya(n)),this._finished=e.end===n.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,n,a){var i=e.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=nV.reset(e,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(e,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new gat:new cb(o?i?vat:rV:i?eV:ub),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var n=U_(e);n&&this._lastZlevel!=null&&n.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.type="lines",t}(ve);const _at=mat;var Sat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function aV(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=K(t,function(e){var n=[e[0].coord,e[1].coord],a={coords:n};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),Nm([a,e[0],e[1]])}))}var bat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],aV(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(aV(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var n=this._processFlatCoordsArray(e.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=Vf(this._flatCoords,n.flatCoords),this._flatCoordsOffset=Vf(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),e.data=new Float32Array(n.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var n=this.getData().getItemModel(e),a=n.option instanceof Array?n.option:n.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(e){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Wt(e[0])){for(var a=e.length,i=new Sat(a),o=new xat(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=e[f++];i[l++]=s+n,i[l++]=c;for(var v=0;v<c;v++){var h=e[f++],d=e[f++];o[s++]=h,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,n){var a=new zr(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getItemModel(e),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),c=[];u!=null&&c.push(u),f!=null&&c.push(f),l=c.join(" > ")}return ke("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),n=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(me);const wat=bat;function Qg(r){return r instanceof Array||(r=[r,r]),r}var Tat={seriesType:"lines",reset:function(r){var t=Qg(r.get("symbol")),e=Qg(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",e&&e[0]),n.setVisual("toSymbolSize",e&&e[1]);function a(i,o){var s=i.getItemModel(o),l=Qg(s.getShallow("symbol",!0)),u=Qg(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?a:null}}};const Cat=Tat;function Aat(r){r.registerChartView(_at),r.registerSeriesModel(wat),r.registerLayout(nV),r.registerVisual(Cat)}var Mat=256,Dat=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Er.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,v=c.getContext("2d"),h=t.length;c.width=e,c.height=n;for(var d=0;d<h;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=a(m);v.globalAlpha=_,v.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=v.getImageData(0,0,c.width,c.height),x=S.data,b=0,w=x.length,C=this.minOpacity,T=this.maxOpacity,D=T-C;b<w;){var _=x[b+3]/256,A=Math.floor(_*(Mat-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*D+C),x[b++]=L[A],x[b++]=L[A+1],x[b++]=L[A+2],x[b++]=L[A+3]*_*256}else b+=4}return v.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Er.createCanvas()),e=this.pointSize+this.blurSize,n=e*2;t.width=n,t.height=n;var a=t.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor=F.color.neutral99,a.beginPath(),a.arc(-e,e,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},r.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,a=n[e]||(n[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const Iat=Dat;function Lat(r,t,e){var n=r[1]-r[0];t=K(t,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&e[s]}}function Pat(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(n){return n>=t[0]&&n<=t[1]}}var Eat=function(r){V(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,a){var i;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,a,0,e.getData().count()):qR(o)&&this._renderOnGeo(o,e,i,a)},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll()},t.prototype.incrementalRender=function(e,n,a,i){var o=n.coordinateSystem;o&&(qR(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnGridLike(n,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){lo(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,n,a,i,o){var s=e.coordinateSystem,l=el(s,"cartesian2d"),u=el(s,"matrix"),f,c,v,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=sr(d).w+.5,c=sr(p).w+.5,v=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),b=Ue(e),w=e.getModel("emphasis"),C=w.get("focus"),T=w.get("blurScope"),D=w.get("disabled"),A=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],L=a;L<i;L++){var I=void 0,P=y.getItemVisual(L,"style");if(l){var R=y.get(A[0],L),E=y.get(A[1],L);if(isNaN(y.get(A[2],L))||isNaN(R)||isNaN(E)||R<v[0]||R>v[1]||E<h[0]||E>h[1])continue;var N=s.dataToPoint([R,E]);I=new Ft({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:P})}else if(u){var O=s.dataToLayout([y.get(A[0],L),y.get(A[1],L)]).rect;if(gr(O.x))continue;I=new Ft({z2:1,shape:O,style:P})}else{if(isNaN(y.get(A[1],L)))continue;var G=s.dataToLayout([y.get(A[0],L)]),O=G.contentRect||G.rect;if(gr(O.x)||gr(O.y))continue;I=new Ft({z2:1,shape:O,style:P})}if(y.hasItemOption){var $=y.getItemModel(L),H=$.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=$.getModel(["blur","itemStyle"]).getItemStyle(),S=$.getModel(["select","itemStyle"]).getItemStyle(),x=$.get(["itemStyle","borderRadius"]),C=H.get("focus"),T=H.get("blurScope"),D=H.get("disabled"),b=Ue($)}I.shape.r=x;var X=e.getRawValue(L),q="-";X&&X[2]!=null&&(q=X[2]+""),qe(I,b,{labelFetcher:e,labelDataIndex:L,defaultOpacity:P.opacity,defaultText:q}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=_,I.ensureState("select").style=S,ge(I,C,T,D),I.incremental=ya(e,o),o&&(I.states.emphasis.hoverLayer=du),g.add(I),y.setItemGraphicEl(L,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(e,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new Iat;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var v=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-v,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,C,T){var D=e.dataToPoint([w,C]);return D[0]-=v,D[1]-=h,D.push(T),D}),S=a.getExtent(),x=a.type==="visualMap.continuous"?Pat(S,a.option.range):Lat(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new ir({style:{width:g,height:y,x:v,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(ve);const Rat=Eat;var kat=function(r){V(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 pi(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Sc.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:F.color.primary}}},t}(me);const Oat=kat;function Nat(r){r.registerChartView(Rat),r.registerSeriesModel(Oat)}var Bat=["itemStyle","borderWidth"],iV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Gb=new oo,Vat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=vv,e}return t.prototype.render=function(e,n,a){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),v={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:iV[+f],categoryDim:iV[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=vV(o,d),g=oV(o,d,p,v),y=hV(o,v,g);o.setItemGraphicEl(d,y),i.add(y),gV(y,v,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=vV(o,d),m=oV(o,d,y,v),_=pV(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?Wat(g,v,m):g=hV(o,v,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),gV(g,v,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&dV(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?tl(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,n){var a=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){dV(i,Ct(o).dataIndex,e,o)}):a.removeAll()},t.type=vv,t}(ve);function oV(r,t,e,n){var a=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,c=e.isAnimationEnabled(),v={dataIndex:t,layout:a,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?e:null,hoverScale:c&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};zat(e,i,a,n,v),Fat(r,t,a,i,o,v.boundingLength,v.pxSign,f,n,v),Gat(e,v.symbolScale,u,n,v);var h=v.symbolSize,d=Vs(e.get("symbolOffset"),h);return Hat(e,h,a,i,o,d,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function zat(r,t,e,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(Y(o)){var c=[Hb(s,o[0])-l,Hb(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=Hb(s,o)-l:t?f=n.coordSysExtent[i.index][u]-l:f=e[i.wh];a.boundingLength=f,t&&(a.repeatCutLength=e[i.wh]);var v=i.xy==="x",h=s.inverse;a.pxSign=v&&!h||!v&&h?f>=0?1:-1:f>0?1:-1}function Hb(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Fat(r,t,e,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,v=Math.abs(e[c.wh]),h=r.getItemVisual(t,"symbolSize"),d;Y(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[c.index]=nt(d[c.index],v),d[f.index]=nt(d[f.index],n?v:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function Gat(r,t,e,n,a){var i=r.get(Bat)||0;i&&(Gb.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Gb.updateTransform(),i/=Gb.getLineScale(),i*=t[n.valueDim.index]),a.valueLineWidth=i||0}function Hat(r,t,e,n,a,i,o,s,l,u,f,c){var v=f.categoryDim,h=f.valueDim,d=c.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(n){var y=Math.abs(l),m=Rr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=nt(m,t[h.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=FM(n),C=w?n:yV((y+b)/x),T=y-C*p;S=T/2/(_?C:Math.max(C-1,1)),x=p+S*2,b=_?0:S*2,!w&&n!=="fixed"&&(C=u?yV((Math.abs(u)+b)/x):0),g=C*x-b,c.repeatTimes=C,c.symbolMargin=S}var D=d*(g/2),A=c.pathPosition=[];A[v.index]=e[v.wh]/2,A[h.index]=o==="start"?D:o==="end"?l-D:l/2,i&&(A[0]+=i[0],A[1]+=i[1]);var L=c.bundlePosition=[];L[v.index]=e[v.xy],L[h.index]=e[h.xy];var I=c.barRectShape=W({},e);I[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(A[h.index]+D)),I[v.wh]=e[v.wh];var P=c.clipShape={};P[v.xy]=-e[v.xy],P[v.wh]=f.ecSize[v.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function sV(r){var t=r.symbolPatternSize,e=Oe(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function lV(r,t,e,n){var a=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,c=i[t.valueDim.index]+o+e.symbolMargin*2;for($b(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?af(p,null,d(f),e,n):af(p,null,{scaleX:0,scaleY:0},e,n,function(){a.remove(p)}),f++});f<u;f++){var v=sV(e);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,a.add(v);var h=d(f);af(v,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},e,n)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function uV(r,t,e,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?af(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,n):(i=r.__pictorialMainPath=sV(e),a.add(i),af(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,n))}function fV(r,t,e){var n=W({},t.barRectShape),a=r.__pictorialBarRect;a?af(a,null,{shape:n},t,e):(a=r.__pictorialBarRect=new Ft({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function cV(r,t,e,n){if(e.symbolClip){var a=r.__pictorialClipPath,i=W({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(a)Kt(a,{shape:i},s,l);else{i[o.wh]=0,a=new Ft({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=e.clipShape[o.wh],ws[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function vV(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=$at,e.isAnimationEnabled=Uat,e}function $at(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function Uat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hV(r,t,e,n){var a=new mt,i=new mt;return a.add(i),a.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?lV(a,t,e):uV(a,t,e),fV(a,e,n),cV(a,t,e,n),a.__pictorialShapeStr=pV(r,e),a.__pictorialSymbolMeta=e,a}function Wat(r,t,e){var n=e.animationModel,a=e.dataIndex,i=r.__pictorialBundle;Kt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},n,a),e.symbolRepeat?lV(r,t,e,!0):uV(r,t,e,!0),fV(r,e,!0),cV(r,t,e,!0)}function dV(r,t,e,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];$b(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(e=null),M(i,function(o){so(o,{scaleX:0,scaleY:0},e,t,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(t,null)}function pV(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function $b(r,t,e){M(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&t.call(e,n)})}function af(r,t,e,n,a,i){t&&r.attr(t),n.symbolClip&&!a?e&&r.attr(e):e&&ws[a?"updateProps":"initProps"](r,e,n.animationModel,n.dataIndex,i)}function gV(r,t,e){var n=e.dataIndex,a=e.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),v=i.get("scale");$b(r,function(p){if(p instanceof ir){var g=p.style;p.useStyle(W({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,v&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,qe(d,Ue(a),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Uu(t.seriesModel.getData(),n),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),ge(r,f,c,i.get("disabled"))}function yV(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const Yat=Vat;var Xat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series."+vv,t.dependencies=["grid"],t.defaultOption=uo(dg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:F.color.primary}}}),t}(dg);const Zat=Xat;function Kat(r){r.registerChartView(Yat),r.registerSeriesModel(Zat),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ak(vv)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Mk(vv)),Ik(r)}var Ub=2,of="themeRiver",qat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Zu(it(this.getData,this),it(this.getRawData,this))},t.prototype.fixData=function(e){var n=e.length,a={},i=K0(e,function(v){return a.hasOwnProperty(v[0]+"")||(a[v[0]+""]=-1),v[2]}),o=[];i.buckets.each(function(v,h){o.push({name:h,dataList:v})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,e[n]=[c,0,u],n++)}return e},t.prototype.getInitialData=function(e,n){for(var a=this.getReferringComponents("singleAxis",Me).models[0],i=a.get("type"),o=ne(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ot(),f=0,c=0;c<s.length;++c)l.push(s[c][Ub]),u.get(s[c][Ub])||(u.set(s[c][Ub],f),f++);var v=zc(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Rp(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new zr(v,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),n=e.count(),a=[],i=0;i<n;++i)a[i]=i;var o=e.mapDimension("single"),s=K0(a,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,v){return e.get(o,c)-e.get(o,v)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,n,a){Y(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,v=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(e[0],o[f].indices[d]),g=Math.abs(p-n);g<=c&&(u=p,c=g,v=o[f].indices[d])}s.push(v)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return ke("nameValue",{name:o,value:s})},t.type="series."+of,t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(me);const jat=qat;var Jat=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=of,e._layers=[],e}return t.prototype.render=function(e,n,a){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function v(g){return g.name}var h=new di(this._layersSeries||[],l,v,v),d=[];h.add(it(p,this,"add")).update(it(p,this,"update")).remove(it(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,C=0;C<w.length;C++){var T=i.getItemLayout(w[C]),D=T.x,A=T.y0,L=T.y;S.push(D,A),x.push(D,A+L),b=i.getItemVisual(w[C],"style")}var I,P=i.getItemLayout(w[0]),R=e.getModel("label"),E=R.get("margin"),N=e.getModel("emphasis");if(g==="add"){var O=d[y]=new mt;I=new YR({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),e.isAnimationEnabled()&&I.setClipPath(Qat(I.getBoundingRect(),e,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),d[y]=O,Kt(I,{shape:{points:S,stackedOnPoints:x}},e),wn(I)}qe(I,Ue(e),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var G=I.getTextContent();G&&(G.x=P.x-E,G.y=P.y0+P.y/2),I.useStyle(b),i.setItemGraphicEl(y,I),He(I,e),ge(I,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},t.type=of,t}(ve);function Qat(r,t,e){var n=new Ft({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return pe(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),n}const tit=Jat;var eit=Ge(of,rit);function rit(r,t){r.eachSeriesByType(of,function(e){var n=e.getData(),a=e.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=e.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=nt(s[0],o.height),s[1]=nt(s[1],o.height);var u=o.height-s[0]-s[1];mV(n,e,u)}else{s[0]=nt(s[0],o.width),s[1]=nt(s[1],o.width);var f=o.width-s[0]-s[1];mV(n,e,f)}n.setLayout("layoutInfo",i)})}function mV(r,t,e){if(r.count())for(var n=t.coordinateSystem,a=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=K(a,function(g){return K(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=nit(s),u=l.y0,f=e/l.max,c=a.length,v=a[0].indices.length,h,d=0;d<v;++d){h=u[d]*f,r.setItemLayout(a[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<c;++p)h+=s[p-1][d][1]*f,r.setItemLayout(a[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function nit(r){for(var t=r.length,e=r[0].length,n=[],a=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<e;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<e;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function ait(r){r.registerChartView(tit),r.registerSeriesModel(jat),r.registerLayout(eit),r.registerProcessor(hv(of))}var iit=2,oit=4,sit=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this)||this;o.z2=iit,o.textConfig={inside:!0},Ct(o).seriesIndex=n.seriesIndex;var s=new Xt({z2:oit,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,n,a,i),o}return t.prototype.updateData=function(e,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Ct(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=W({},f);c.label=null;var v=n.getVisual("style");v.lineJoin="bevel";var h=n.getVisual("decal");h&&(v.decal=Eu(h,o));var d=Oa(l.getModel("itemStyle"),c,!0);W(c,d),M(Or,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Oa(S,c);x&&(_.shape=x)}),e?(s.setShape(c),s.shape.r=f.r0,pe(s,{shape:{r:f.r}},a,n.dataIndex)):(Kt(s,{shape:c},a),wn(s)),s.useStyle(v),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Vf(n.getAncestorsIndices(),n.getDescendantIndices()):g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;ge(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){var n=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),c=this,v=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);v.ignore=!p,M(ic,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?v:v.ensureState(y),x=e.getFormattedLabel(h,y);_&&(x=x||n.node.name),S.style=ce(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),C=_?c:c.states[y],T=C.style.fill;C.textConfig={outsideFill:m.get("color")==="inherit"?T:null,inside:w!=="outside"};var D,A=g(m,"distance")||0,L=g(m,"align"),I=g(m,"rotate"),P=Math.PI*.5,R=Math.PI*1.5,E=on(I==="tangential"?Math.PI/2-l:l),N=E>P&&!tu(E-P)&&E<R;w==="outside"?(D=o.r+A,L=N?"right":"left"):!L||L==="center"?(o.r0===0&&tu(s-2*Math.PI)?D=0:D=(o.r+o.r0)/2,L="center"):L==="left"?(D=o.r0+A,L=N?"right":"left"):L==="right"&&(D=o.r-A,L=N?"left":"right"),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=D*u+o.cx,S.y=D*f+o.cy;var O=0;I==="radial"?O=on(-l)+(N?Math.PI:0):I==="tangential"?O=on(Math.PI/2-l)+(N?Math.PI:0):Wt(I)&&(O=I*Math.PI/180),S.rotation=on(O)});function g(y,m){var _=y.get(m);return _??i.get(m)}v.dirtyStyle()},t}(Nr);const _V=sit;var Sl="sunburst",lit=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,n){var a={name:e.name,children:e.data};SV(a);var i=this._levelModels=K(e.levels||[],function(l){return new qt(l,this,n)},this),o=Fx.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),v=i[c.depth];return v&&(u.parentModel=v),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=zg(a,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){IN(this)},t.type="series."+Sl,t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(me);function SV(r){var t=0;M(r.children,function(n){SV(n);var a=n.value;Y(a)&&(a=a[0]),t+=a});var e=r.value;Y(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),Y(r.value)?r.value[0]=e:r.value=e}const uit=lit;var Wb="sunburstRootToNode",xV="sunburstHighlight",fit="sunburstUnhighlight";function cit(r){r.registerAction({type:Wb,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(a,i){var o=Av(t,[Wb],a);if(o){var s=a.getViewRoot();s&&(t.direction=Gx(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:xV,update:"none"},function(t,e,n){t=W({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Av(t,[xV],i);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(W(t,{type:"highlight"}))}),r.registerAction({type:fit,update:"updateView"},function(t,e,n){t=W({},t),n.dispatchAction(W(t,{type:"downplay"}))})}var vit=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Sl,e}return t.prototype.render=function(e,n,a,i){var o=this;this.seriesModel=e,this.api=a,this.ecModel=n;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,c=e.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var h=this._oldChildren||[];d(v,h),y(l,u),this._initEvents(),this._oldChildren=v;function d(m,_){if(m.length===0&&_.length===0)return;new di(_,m,S,S).add(x).update(x).remove(Bt(x,null)).execute();function S(b){return b.getId()}function x(b,w){var C=b==null?null:m[b],T=w==null?null:_[w];p(C,T)}}function p(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new _V(m,e,n,a);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,n,a):(o.virtualPiece=new _V(m,e,n,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";ip(u,f)}}a=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Wb,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type=Sl,t}(ve);const hit=vit;var dit=Ge(Sl,pit);function pit(r){var t={};function e(n,a,i){if(n.depth===0)return F.color.neutral50;for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&et(s)&&(s=v0(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType(Sl,function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");W(u,l)})})}var bV=Math.PI/180,git=Ge(Sl,yit);function yit(r,t){r.eachSeriesByType(Sl,function(e){var n=e.get("center"),a=e.get("radius");Y(a)||(a=[0,a]),Y(n)||(n=[n,n]);var i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o),l=nt(n[0],i),u=nt(n[1],o),f=nt(a[0],s/2),c=nt(a[1],s/2),v=-e.get("startAngle")*bV,h=e.get("minAngle")*bV,d=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,y=e.get("sort");y!=null&&wV(p,y);var m=0;M(p.children,function(R){!isNaN(R.getValue())&&m++});var _=p.getValue(),S=Math.PI/(_||m)*2,x=p.depth>0,b=p.height-(x?-1:1),w=(c-f)/(b||1),C=e.get("clockwise"),T=e.get("stillShowZeroSum"),D=C?1:-1,A=function(R,E){if(R){var N=E;if(R!==d){var O=R.getValue(),G=_===0&&T?S:O*S;G<h&&(G=h),N=E+D*G;var $=R.depth-g-(x?-1:1),H=f+w*$,X=f+w*($+1),q=e.getLevelModel(R);if(q){var J=q.get("r0",!0),Q=q.get("r",!0),St=q.get("radius",!0);St!=null&&(J=St[0],Q=St[1]),J!=null&&(H=nt(J,s/2)),Q!=null&&(X=nt(Q,s/2))}R.setLayout({angle:G,startAngle:E,endAngle:N,clockwise:C,cx:l,cy:u,r0:H,r:X})}if(R.children&&R.children.length){var Ht=0;M(R.children,function(gt){Ht+=A(gt,E+Ht)})}return N-E}};if(x){var L=f,I=f+w,P=Math.PI*2;d.setLayout({angle:P,startAngle:v,endAngle:v+P,clockwise:C,cx:l,cy:u,r0:L,r:I})}A(p,v)})}function wV(r,t){var e=r.children||[];r.children=mit(e,t),e.length&&M(r.children,function(n){wV(n,t)})}function mit(r,t){if(yt(t)){var e=K(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return e.sort(function(a,i){return t(a.params,i.params)}),K(e,function(a){return r[a.index]})}else{var n=t==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function _it(r){r.registerChartView(hit),r.registerSeriesModel(uit),r.registerLayout(git),r.registerVisual(dit),cit(r)}var TV={color:"fill",borderColor:"stroke"},Sit={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},bi=Et(),xit=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return pi(null,this)},t.prototype.getDataParams=function(e,n,a){var i=r.prototype.getDataParams.call(this,e,n);return a&&(i.info=bi(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(me);const bit=xit;function wit(r,t){return t=t||[0,0],K(["x","y"],function(e,n){var a=this.getAxis(e),i=t[n],o=r[n]/2;return a.type==="category"?sr(a).w:Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Tit(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(wit,r)}}}function Cit(r,t){return t=t||[0,0],K([0,1],function(e){var n=t[e],a=r[e]/2,i=[],o=[];return i[e]=n-a,o[e]=n+a,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function Ait(r){var t=r.view,e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:OJ(t)},api:{coord:function(n){return r.dataToPoint(n)},size:it(Cit,r)}}}function Mit(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,a=(r instanceof Array?r[0]:r)/2;return e.type==="category"?sr(e).w:Math.abs(e.dataToCoord(n-a)-e.dataToCoord(n+a))}function Dit(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:it(Mit,r)}}}function Iit(r,t){return t=t||[0,0],K(["Radius","Angle"],function(e,n){var a="get"+e+"Axis",i=this[a](),o=t[n],s=r[n]/2,l=i.type==="category"?sr(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function Lit(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=e.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:it(Iit,r)}}}function Pit(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)},layout:function(n,a){return r.dataToLayout(n,a)}}}}function Eit(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,n){return r.dataToPoint(e,n)},layout:function(e,n){return r.dataToLayout(e,n)}}}}var CV={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},AV=Ut(CV);ua(ti,function(r,t){return r[t]=1,r},{}),ti.join(", ");var ty=["","style","shape","extra"],sf=Et();function Yb(r,t,e,n,a){var i=r+"Animation",o=vu(r,n,a)||{},s=sf(t).userDuring;return o.duration>0&&(o.during=s?it(Bit,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),W(o,e[i]),o}function ey(r,t,e,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=sf(r),u=t.style;l.userDuring=t.during;var f={},c={};if(zit(r,t,c),r.type==="compound")for(var v=r.shape.paths,h=t.shape.paths,d=0;d<h.length;d++){var p=h[d];Xb("shape",p,v[d])}else Xb("shape",t,c),Xb("extra",t,c);if(!i&&s&&(Vit(r,t,f),DV("shape",r,t,f),DV("extra",r,t,f),Fit(r,t,u,f)),c.style=u,Rit(r,c,o),Oit(r,t),s)if(i){var g={};M(ty,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),W(m?g[m]:g,_.enterFrom))});var y=Yb("enter",r,t,e,a);y.duration>0&&r.animateFrom(g,y)}else kit(r,t,a||0,e,f);MV(r,t),u?r.dirty():r.markRedraw()}function MV(r,t){for(var e=sf(r).leaveToProps,n=0;n<ty.length;n++){var a=ty[n],i=a?t[a]:t;i&&i.leaveTo&&(e||(e=sf(r).leaveToProps={}),a&&(e[a]=e[a]||{}),W(a?e[a]:e,i.leaveTo))}}function ry(r,t,e,n){if(r){var a=r.parent,i=sf(r).leaveToProps;if(i){var o=Yb("update",r,t,e,0);o.done=function(){a&&a.remove(r),n&&n()},r.animateTo(i,o)}else a&&a.remove(r),n&&n()}}function xl(r){return r==="all"}function Rit(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function kit(r,t,e,n,a){if(a){var i=Yb("update",r,t,n,e);i.duration>0&&r.animateFrom(a,i)}}function Oit(r,t){st(t,"silent")&&(r.silent=t.silent),st(t,"ignore")&&(r.ignore=t.ignore),r instanceof xn&&st(t,"invisible")&&(r.invisible=t.invisible),r instanceof Gt&&st(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Va={},Nit={setTransform:function(r,t){return Va.el[r]=t,this},getTransform:function(r){return Va.el[r]},setShape:function(r,t){var e=Va.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Va.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Va.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Va.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Va.el.extra||(Va.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Va.el.extra;if(t)return t[r]}};function Bit(){var r=this,t=r.el;if(t){var e=sf(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Va.el=t,n(Nit)}}function DV(r,t,e,n){var a=e[r];if(a){var i=t[r],o;if(i){var s=e.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),xl(l))W(o,i);else for(var u=ue(l),f=0;f<u.length;f++){var c=u[f],v=i[c];o[c]=v}else if(xl(s)||Lt(s,r)>=0){!o&&(o=n[r]={});for(var h=Ut(i),f=0;f<h.length;f++){var c=h[f],v=i[c];Git(a[c],v)&&(o[c]=v)}}}}}function Xb(r,t,e){var n=t[r];if(n)for(var a=e[r]={},i=Ut(n),o=0;o<i.length;o++){var s=i[o];a[s]=Xf(n[s])}}function Vit(r,t,e){for(var n=t.transition,a=xl(n)?ti:ue(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function zit(r,t,e){for(var n=0;n<AV.length;n++){var a=AV[n],i=CV[a],o=t[a];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var n=0;n<ti.length;n++){var s=ti[n];t[s]!=null&&(e[s]=t[s])}}function Fit(r,t,e,n){if(e){var a=r.style,i;if(a){var o=e.transition,s=t.transition;if(o&&!xl(o)){var l=ue(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(xl(s)||xl(o)||Lt(s,"style")>=0)){var v=r.getAnimationStyleProps(),h=v?v.style:null;if(h){!i&&(i=n.style={});for(var d=Ut(e),u=0;u<d.length;u++){var f=d[u];if(h[f]){var c=a[f];i[f]=c}}}}}}}function Git(r,t){return pr(r)?r!==t:r!=null&&isFinite(r)}var IV=Et(),Hit=["percent","easing","shape","style","extra"];function LV(r){r.stopAnimation("keyframe"),r.attr(IV(r))}function ny(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(Y(t)){M(t,function(s){ny(r,s,e)});return}var n=t.keyframes,a=t.duration;if(e&&a==null){var i=vu("enter",e,0);a=i&&i.duration}if(!(!n||!a)){var o=IV(r);M(ty,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),M(n,function(u){var f=r.animators,c=s?u[s]:u;if(c){var v=Ut(c);if(s||(v=ne(v,function(p){return Lt(Hit,p)<0})),!!v.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;M(v,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(a*u.percent,c,v,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var wi="emphasis",Mo="normal",Zb="blur",Kb="select",Do=[Mo,wi,Zb,Kb],qb={normal:["itemStyle"],emphasis:[wi,"itemStyle"],blur:[Zb,"itemStyle"],select:[Kb,"itemStyle"]},jb={normal:["label"],emphasis:[wi,"label"],blur:[Zb,"label"],select:[Kb,"label"]},$it=["x","y"],Uit="e\0\0",En={normal:{},emphasis:{},blur:{},select:{}},Wit={cartesian2d:Tit,geo:Ait,single:Dit,polar:Lit,calendar:Pit,matrix:Eit};function Jb(r){return r instanceof Gt}function Qb(r){return r instanceof xn}function Yit(r,t){t.copyTransform(r),Qb(t)&&Qb(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,Jb(t)&&Jb(r)&&t.setShape(r.shape))}var Xit=function(r){V(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,a,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=EV(e,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){rw(a,null,c,u(c,i),e,l,s)}).remove(function(c){var v=o.getItemGraphicEl(c);v&&ry(v,bi(v).option,e)}).update(function(c,v){var h=o.getItemGraphicEl(v);rw(a,h,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?tl(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,a,i,o){var s=n.getData(),l=EV(n,s,a,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=ya(n),h.ensureState("emphasis").hoverLayer=du)}for(var c=e.start;c<e.end;c++){var v=rw(null,null,c,l(c,o),n,this.group,s);v&&(v.traverse(f),u.push(v))}},t.prototype.eachRendered=function(e){lo(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(ve);const Zit=Xit;function tw(r){var t=r.type,e;if(t==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=BV(n);e=fc(i,null,a,n.layout||"center"),bi(e).customPathData=i}else if(t==="image")e=new ir({}),bi(e).customImagePath=r.style.image;else if(t==="text")e=new Xt({});else if(t==="group")e=new mt;else if(t==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";ee(o)}var s=K(n.paths,function(f){if(f.type==="path")return fc(f.shape.pathData,f,null);var c=Ud(f.type);if(!c){var v="";ee(v)}return new c});e=new zd({shape:{paths:s}})}else{var l=Ud(t);if(!l){var o="";ee(o)}e=new l}return bi(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function ew(r,t,e,n,a,i,o){LV(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=$it);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;st(u,"textFill")&&(u.fill=u.textFill),st(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=Jb(t)?l.decal:null;r&&c&&(c.dirty=!0,f=Eu(c,r)),l.__decalPattern=f}if(Qb(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}ey(t,n,i,{dataIndex:e,isInit:o,clearStyle:!0}),ny(t,n.keyframeAnimation,i)}function PV(r,t,e,n,a){var i=t.isGroup?null:t,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),ps(i)}}function Kit(r,t,e){if(!r.isGroup){var n=r,a=e.currentZ,i=e.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Do.length;s++)qit(n,t,Do[s])}}function qit(r,t,e){var n=e===Mo,a=n?t:ay(t,e),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(e),o.z2=i||0)}function EV(r,t,e,n){var a=r.get("renderItem");if(typeof a=="string"){var i=p7(a);i&&(a=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):Wit[o.type](o));for(var l=_t({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:x,style:w,ordinalRawValue:b,styleEmphasis:C,visual:A,barLayout:L,currentSeriesIndices:I,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:jit(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,v={},h={},d={},p={},g=0;g<Do.length;g++){var y=Do[g];d[y]=r.getModel(qb[y]),p[y]=r.getModel(jb[y])}function m(R){return R===f?c||(c=t.getItemModel(R)):t.getItemModel(R)}function _(R,E){return t.hasItemOption?R===f?v[E]||(v[E]=m(R).getModel(qb[E])):m(R).getModel(qb[E]):d[E]}function S(R,E){return t.hasItemOption?R===f?h[E]||(h[E]=m(R).getModel(jb[E])):m(R).getModel(jb[E]):p[E]}return function(R,E){return f=R,c=null,v={},h={},a&&a(_t({dataIndexInside:R,dataIndex:t.getRawIndex(R),actionType:E?E.type:null},u),l)};function x(R,E){return E==null&&(E=f),t.getStore().get(t.getDimensionIndex(R||0),E)}function b(R,E){E==null&&(E=f),R=R||0;var N=t.getDimensionInfo(R);if(!N){var O=t.getDimensionIndex(R);return O>=0?t.getStore().get(O,E):void 0}var G=t.get(N.name,E),$=N&&N.ordinalMeta;return $?$.categories[G]:G}function w(R,E){E==null&&(E=f);var N=t.getItemVisual(E,"style"),O=N&&N.fill,G=N&&N.opacity,$=_(E,Mo).getItemStyle();O!=null&&($.fill=O),G!=null&&($.opacity=G);var H={inheritColor:et(O)?O:F.color.neutral99},X=S(E,Mo),q=ce(X,null,H,!1,!0);q.text=X.getShallow("show")?ut(r.getFormattedLabel(E,Mo),Uu(t,E)):null;var J=jd(X,H,!1);return D(R,$),$=tk($,q,J),R&&T($,R),$.legacy=!0,$}function C(R,E){E==null&&(E=f);var N=_(E,wi).getItemStyle(),O=S(E,wi),G=ce(O,null,null,!0,!0);G.text=O.getShallow("show")?nn(r.getFormattedLabel(E,wi),r.getFormattedLabel(E,Mo),Uu(t,E)):null;var $=jd(O,null,!0);return D(R,N),N=tk(N,G,$),R&&T(N,R),N.legacy=!0,N}function T(R,E){for(var N in E)st(E,N)&&(R[N]=E[N])}function D(R,E){R&&(R.textFill&&(E.textFill=R.textFill),R.textPosition&&(E.textPosition=R.textPosition))}function A(R,E){if(E==null&&(E=f),st(TV,R)){var N=t.getItemVisual(E,"style");return N?N[TV[R]]:null}if(st(Sit,R))return t.getItemVisual(E,R)}function L(R){if(o.type==="cartesian2d"){var E=o.getBaseAxis();return pq(_t({axis:E},R))}}function I(){return e.getCurrentSeriesIndices()}function P(R){return Y_(R,e)}}function jit(r){var t={};return M(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function rw(r,t,e,n,a,i,o){if(!n){i.remove(t);return}var s=nw(r,t,e,n,a,i);return s&&o.setItemGraphicEl(e,s),s&&ge(s,n.focus,n.blurScope,n.emphasisDisabled),s}function nw(r,t,e,n,a,i){var o=-1,s=t;t&&RV(t,n,a)&&(o=Lt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=tw(n),s&&Yit(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),En.normal.cfg=En.normal.conOpt=En.emphasis.cfg=En.emphasis.conOpt=En.blur.cfg=En.blur.conOpt=En.select.cfg=En.select.conOpt=null,En.isLegacy=!1,Qit(u,e,n,a,l,En),Jit(u,e,n,a,l),ew(r,u,e,n,En,a,l),st(n,"info")&&(bi(u).info=n.info);for(var f=0;f<Do.length;f++){var c=Do[f];if(c!==Mo){var v=ay(n,c),h=aw(n,v,c);PV(c,u,v,h,En)}}return Kit(u,n,a),n.type==="group"&&tot(r,u,e,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function RV(r,t,e){var n=bi(r),a=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&aot(i)&&BV(i)!==n.customPathData||a==="image"&&st(o,"image")&&o.image!==n.customImagePath}function Jit(r,t,e,n,a){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&RV(o,i,n)&&(o=null),o||(o=tw(i),r.setClipPath(o)),ew(null,o,t,i,null,n,a)}}function Qit(r,t,e,n,a,i){if(!(r.isGroup||r.type==="compoundPath")){kV(e,null,i),kV(e,wi,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=tw(o),r.setTextContent(f)),ew(null,f,t,o,null,n,a);for(var c=o&&o.style,v=0;v<Do.length;v++){var h=Do[v];if(h!==Mo){var d=i[h].conOpt;PV(h,f,d,aw(o,d,h),null)}}c?f.dirty():f.markRedraw()}}}}function kV(r,t,e){var n=t?ay(r,t):r,a=t?aw(r,n,wi):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?ay(s,t):s:null;if(a&&(e.isLegacy||jR(a,i,!!o,!!l))){e.isLegacy=!0;var u=JR(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function ay(r,t){return t?r?r[t]:null:r}function aw(r,t,e){var n=t&&t.style;return n==null&&e===wi&&r&&(n=r.styleEmphasis),n}function tot(r,t,e,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){rot({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:a,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],v=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),nw(r,v,e,c,a,t)):v.ignore=!0}for(var h=t.childCount()-1;h>=f;h--){var d=t.childAt(h);eot(t,d,a)}}}function eot(r,t,e){t&&ry(t,bi(r).option,e)}function rot(r){new di(r.oldChildren,r.newChildren,OV,OV,r).add(NV).update(NV).remove(not).execute()}function OV(r,t){var e=r&&r.name;return e??Uit+t}function NV(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,a=t!=null?e.oldChildren[t]:null;nw(e.api,a,e.dataIndex,n,e.seriesModel,e.group)}function not(r){var t=this.context,e=t.oldChildren[r];e&&ry(e,bi(e).option,t.seriesModel)}function BV(r){return r&&(r.pathData||r.d)}function aot(r){return r&&(st(r,"pathData")||st(r,"d"))}function iot(r){r.registerChartView(Zit),r.registerSeriesModel(bit)}var bl=Et(),VV=dt,iw=it,oot=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,a){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new mt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var v=Bt(zV,e,c);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}HV(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),a=t.axis,i=a.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&sr(a).w>s)return!0;if(o){var l=dx(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,a,i){},r.prototype.createPointerEl=function(t,e,n,a){var i=e.pointer;if(i){var o=bl(t).pointerEl=new ws[i.type](VV(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,a){if(e.label){var i=bl(t).labelEl=new Xt(VV(e.label));t.add(i),GV(i,a)}},r.prototype.updatePointerEl=function(t,e,n){var a=bl(t).pointerEl;a&&e.pointer&&(a.setStyle(e.pointer.style),n(a,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,a){var i=bl(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),GV(i,a))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=vc(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ja(u.event)},onmousedown:iw(this._onHandleDragMove,this,0,0),drift:iw(this._onHandleDragMove,this),ondragend:iw(this._onHandleDragEnd,this)}),n.add(a)),HV(a,e,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Y(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Au(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){zV(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ow(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(ow(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ow(a)),bl(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,a=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),a&&e.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Dc(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 zV(r,t,e,n){FV(bl(e).lastProp,n)||(bl(e).lastProp=n,t?Kt(e,n,r):(e.stopAnimation(),e.attr(n)))}function FV(r,t){if(xt(r)&&xt(t)){var e=!0;return M(t,function(n,a){e=e&&FV(r[a],n)}),!!e}else return r===t}function GV(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ow(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function HV(r,t,e){var n=t.get("z"),a=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=e)})}const sw=oot;function lw(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 $V(r,t,e,n,a){var i=e.get("value"),o=UV(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=mc(s.get("padding")||0),u=s.getFont(),f=od(o,u),c=a.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=a.align;d==="right"&&(c[0]-=v),d==="center"&&(c[0]-=v/2);var p=a.verticalAlign;p==="bottom"&&(c[1]-=h),p==="middle"&&(c[1]-=h/2),sot(c,v,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:ce(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function sot(r,t,e,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+t,a)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function UV(r,t,e,n,a){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:Wp(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),et(o)?i=o.replace("{value}",i):yt(o)&&(i=o(s))}return i}function uw(r,t,e){var n=Se();return Ui(n,n,e.rotation),fa(n,n,e.position),Xn([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function WV(r,t,e,n,a,i){var o=mi.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=a.get(["label","margin"]),$V(t,n,a,i,{position:uw(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fw(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function YV(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function XV(r,t,e,n,a,i){return{cx:r,cy:t,r0:e,r:n,startAngle:a,endAngle:i,clockwise:!0}}function cw(r,t,e){return sr(r,{fromStat:{sers:K(t,function(n){return e.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function vw(r,t,e){return[Vt(ae(t[0],t[1]),r-e/2),ae(r+e/2,Vt(t[0],t[1]))]}var lot=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),c=ZV(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=lw(i),d=uot[u](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=cg(l.getRect(),a);WV(n,e,p,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=cg(n.axis.grid.getRect(),n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=uw(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ZV(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=n[f],c[f]=ae(l[1],c[f]),c[f]=Vt(l[0],c[f]);var v=(u[1]+u[0])/2,h=[v,v];h[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(sw);function ZV(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var uot={line:function(r,t,e,n){var a=fw([t,n[0]],[t,n[1]],KV(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e,n,a,i){var o=cw(r,a,i),s=n[1]-n[0],l=vw(t,e,o),u=l[0],f=l[1];return{type:"Rect",shape:YV([u,n[0]],[f-u,s],KV(r))}}};function KV(r){return r.dim==="x"?0:1}const fot=lot;var cot=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:F.color.border,width:1,type:"dashed"},shadowStyle:{color:F.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:F.color.neutral00,padding:[5,7,5,7],backgroundColor:F.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:F.color.accent40,throttle:40}},t}(Yt);const vot=cot;var Ti=Et(),hot=M;function qV(r,t,e){if(!te.node){var n=t.getZr();Ti(n).records||(Ti(n).records={}),dot(n,t);var a=Ti(n).records[r]||(Ti(n).records[r]={});a.handler=e}}function dot(r,t){if(Ti(r).initialized)return;Ti(r).initialized=!0,e("click",Bt(hw,"click")),e("mousemove",Bt(hw,"mousemove")),e("mousewheel",Bt(hw,"mousewheel")),e("globalout",got);function e(n,a){r.on(n,function(i){var o=yot(t);hot(Ti(r).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,t)})}}function pot(r,t){var e=r.showTip.length,n=r.hideTip.length,a;e?a=r.showTip[e-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function got(r,t,e){r.handler("leave",null,e)}function hw(r,t,e,n){t.handler(r,e,n)}function yot(r){var t={showTip:[],hideTip:[]},e=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function dw(r,t){if(!te.node){var e=t.getZr(),n=(Ti(e).records||{})[r];n&&(Ti(e).records[r]=null)}}var mot=function(r){V(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,a){var i=n.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";qV("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){dw("axisPointer",n)},t.prototype.dispose=function(e,n){dw("axisPointer",n)},t.type="axisPointer",t}(be);const _ot=mot;function jV(r,t){var e=[],n=r.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=rs(i,r);if(o==null||o<0||Y(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)e=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,v=u.dim,h=c==="x"||c==="radius"?1:0,d=i.mapDimension(v),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(K(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var JV=Et();function Sot(r,t,e){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||it(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){iy(a)&&(a=jV({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=iy(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||iy(a),v={},h={},d={list:[],map:{}},p={showPointer:Bt(bot,h),showTooltip:Bt(wot,d)};M(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=Mot(u,S);if(!c&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=b.pointToData(a)),C!=null&&QV(S,C,p,!1,v)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&M(_.axesInfo,function(S,x){var b=h[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,tz(S),tz(y)))),g[y.key]=w}})}),M(g,function(y,m){QV(f[m],y,p,!0,v)}),Tot(h,f,v),Cot(d,a,r,o),Aot(f,o,e),v}}function QV(r,t,e,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=xot(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&W(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function xot(r,t){var e=t.axis,n=e.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);v=h.dataIndices,c=h.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],r,e.type==="category"?.5:null),!v.length)return;c=l.getData().get(f[0],v[0])}if(Sn(c)){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,a=c,i.length=0),M(v,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function bot(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function wot(r,t,e,n){var a=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=dv(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Tot(r,t,e){var n=e.axesInfo=[];M(t,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Cot(r,t,e,n){if(iy(t)||!r.list.length){n({type:"hideTip"});return}var a=((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:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Aot(r,t,e){var n=e.getZr(),a="axisPointerLastHighlights",i=JV(n)[a]||{},o=JV(n)[a]={};M(r,function(f,c){var v=f.axisPointerModel.option;v.status==="show"&&f.triggerEmphasis&&M(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}M(i,function(f,c){!o[c]&&l.push(u(f))}),M(o,function(f,c){!i[c]&&s.push(u(f))}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Mot(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 tz(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 iy(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Vv(r){sl.registerAxisPointerClass("CartesianAxisPointer",fot),r.registerComponentModel(vot),r.registerComponentView(_ot),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=xj(t,e)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Sot)}function Dot(r){Nt(dO),Nt(Vv)}var Iot=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),c=s.dataToCoord(n),v=i.get("type");if(v&&v!=="none"){var h=lw(i),d=Pot[v](s,l,c,u,f,i.get("seriesDataIndices"),i.ecModel);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=Lot(n,a,i,l,p);$V(e,a,i,o,g)},t}(sw);function Lot(r,t,e,n,a){var i=t.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var v=Se();Ui(v,v,s),fa(v,v,[n.cx,n.cy]),u=Xn([o,-a],v);var h=t.getModel("axisLabel").get("rotate")||0,d=mi.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,c=d.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var Pot={line:function(r,t,e,n,a){return r.dim==="angle"?{type:"Line",shape:fw(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,n,a,i,o){var s=Math.PI/180,l=cw(r,i,o),u;if(r.dim==="angle")u=XV(t.cx,t.cy,a[0],a[1],(-e-l/2)*s,(-e+l/2)*s);else{var f=vw(e,n,l),c=f[0],v=f[1];u=XV(t.cx,t.cy,c,v,0,Math.PI*2)}return{type:"Sector",shape:u}}};const Eot=Iot;var za="polar",ez=za,Rot=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var n,a=this.ecModel;return a.eachComponent(e,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},t.type=za,t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Yt);const kot=Rot;var pw=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Me).models[0]},t.type="polarAxis",t}(Yt);ze(pw,Kc);var Oot=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(pw),Not=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(pw),gw=function(r){V(t,r);function t(e,n){return r.call(this,"radius",e,n)||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t}(qn);gw.prototype.dataToRadius=qn.prototype.dataToCoord,gw.prototype.radiusToData=qn.prototype.coordToData;const Bot=gw;var Vot=Et(),yw=function(r){V(t,r);function t(e,n){return r.call(this,"angle",e,n||[0,360])||this}return t.prototype.pointToData=function(e,n){return this.polar.pointToData(e,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,n=e.getLabelModel(),a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=od(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),v=c/u;isNaN(v)&&(v=1/0);var h=Math.max(0,Math.floor(v)),d=Vot(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(qn);yw.prototype.dataToAngle=qn.prototype.dataToCoord,yw.prototype.angleToData=qn.prototype.coordToData;const zot=yw;var rz=["radius","angle"],Fot=function(){function r(t){this.dimensions=rz,this.type=za,this.cx=0,this.cy=0,this._radiusAxis=new Bot,this._angleAxis=new zot,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===t&&e.push(n),a.scale.type===t&&e.push(a),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],n)},r.prototype.pointToData=function(t,e,n){n=n||[];var a=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(a[0],e),n[1]=this._angleAxis.angleToData(a[1],e),n},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+n*n);e/=l,n/=l;for(var u=Math.atan2(-n,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var n=t[0],a=t[1]/180*Math.PI;return e[0]=Math.cos(a)*n+this.cx,e[1]=-Math.sin(a)*n+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var a=t.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,c=u*u+f*f,v=this.r,h=this.r0;return v!==h&&c-o<=v*v&&c+o>=h*h},x:this.cx-n[1],y:this.cy-n[1],width:n[1]*2,height:n[1]*2}},r.prototype.convertToPixel=function(t,e,n){var a=nz(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=nz(e);return a===this?this.pointToData(n):null},r}();function nz(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const Got=Fot;function Hot(r,t,e){var n=t.get("center"),a=We(t,e).refContainer;r.cx=nt(n[0],a.width)+a.x,r.cy=nt(n[1],a.height)+a.y;var i=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:Y(s)||(s=[0,s]);var l=[nt(s[0],o),nt(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function $ot(r,t){var e=this,n=e.getAngleAxis(),a=e.getRadiusAxis();if(Xs(n,Gu),Xs(a,Gu),Hu(n),Hu(a),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function Uot(r){return r.mainType==="angleAxis"}function az(r,t){var e;if(r.type=Up(t),r.scale=Wc(t,r.type,!1),r.onBand=Zc(r.scale,t),r.inverse=t.get("inverse"),Uot(t)){r.inverse=r.inverse!==t.get("clockwise");var n=t.get("startAngle"),a=(e=t.get("endAngle"))!==null&&e!==void 0?e:n+(r.inverse?-360:360);r.setExtent(n,a)}t.axis=r,r.model=t}var Wot={dimensions:rz,create:function(r,t){var e=[];return r.eachComponent(ez,function(n,a){var i=new Got(a+"");i.update=$ot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");az(o,l),az(s,u),Hot(i,n,t),e.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")===za){var a=n.getReferringComponents(ez,Me).models[0],i=n.coordinateSystem=a.coordinateSystem;i&&(Ys(i.getRadiusAxis(),n,za),Ys(i.getAngleAxis(),n,za))}}),e}};const Yot=Wot;var Xot=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function oy(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var n=r.coordToPoint([t[0],e]),a=r.coordToPoint([t[1],e]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function sy(r){var t=r.getRadiusAxis();return t.inverse?0:1}function iz(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var Zot=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n){if(this.group.removeAll(),!!e.get("show")){var a=e.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];M(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=dt(f);var c=a.scale;f.coord=a.dataToCoord(zu(c,f.tick)),u.push(f)}}),iz(u),iz(s),M(Xot,function(f){e.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Kot[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(sl),Kot={axisLine:function(r,t,e,n,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=sy(e),c=f?0:1,v,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[c]===0?v=new ws[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Bd({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[c]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,t,e,n,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[sy(e)],u=K(n,function(f){return new $e({shape:oy(e,[l,l+s],f.coord)})});r.add(Tn(u,{style:_t(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[sy(e)],f=[],c=0;c<a.length;c++)for(var v=0;v<a[c].length;v++)f.push(new $e({shape:oy(e,[u,u+l],a[c][v].coord)}));r.add(Tn(f,{style:_t(s.getModel("lineStyle").getLineStyle(),_t(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,n,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");M(o,function(c,v){var h=l,d=c.tick.value,p=i[sy(e)],g=e.coordToPoint([p+u,c.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];xt(x)&&x.textStyle&&(h=new qt(x.textStyle,l,l.ecModel))}var b=new Xt({silent:mi.isLabelSilent(t),style:ce(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),ci({el:b,componentModel:t,itemName:c.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:c.rawLabel,tickIndex:v}}),f){var w=mi.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=c.rawLabel,Ct(b).eventData=w}},this)},splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new $e({shape:oy(e,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(Tn(f[c],{style:_t({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,n,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new $e({shape:oy(e,i,a[u][f].coord)}));r.add(Tn(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,n,a,i){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,v=-n[0].coord*c,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Nr({shape:{cx:e.cx,cy:e.cy,r0:h,r:d,startAngle:v,endAngle:-m*c,clockwise:p},silent:!0})),v=-m*c}for(var g=0;g<f.length;g++)r.add(Tn(f[g],{style:_t({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const qot=Zot;var jot=["splitLine","splitArea","minorSplitLine"],Jot=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,n,a){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,o=this._axisGroup=new mt;this.group.add(o);var s=e.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),c=s.getMinorTicksCoords(),v=u.getExtent()[0],h=s.getExtent(),d=tst(l,e,v),p=new mi(e,a,d);p.build(),o.add(p.group),cc(i,o,e),M(jot,function(g){e.get([g,"show"])&&!s.scale.isBlank()&&Qot[g](this.group,e,l,v,h,f,c)},this)}},t.type="radiusAxis",t}(sl),Qot={splitLine:function(r,t,e,n,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),c=Math.PI/180,v=f.getExtent(),h=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new ws[h]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[p].coord,0),startAngle:-v[0]*c,endAngle:-v[1]*c,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Tn(d[p],{style:_t({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,n,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new oo({shape:{cx:e.cx,cy:e.cy,r:o[f][c].coord}}));r.add(Tn(u,{style:_t({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,n,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,v=1;v<i.length;v++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Nr({shape:{cx:e.cx,cy:e.cy,r0:c,r:i[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[v].coord}for(var v=0;v<f.length;v++)r.add(Tn(f[v],{style:_t({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function tst(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const est=Jot;var rst=au();function oz(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var nst=Ge(ka,ast);function ast(r){var t=ol(ka,za);gS(r,t,function(e){var n=ost(e,ka),a={};Ws(e,t,function(i){ist(e,i,n,a)})})}function ist(r,t,e,n){var a=t.getData(),i=oz(t),o=e[i],s=o.offset,l=o.width,u=t.coordinateSystem,f=u.getOtherAxis(r),c=u.cx,v=u.cy,h=t.get("barMinHeight")||0,d=t.get("barMinAngle")||0;n[i]=n[i]||[];for(var p=a.mapDimension(f.dim),g=a.mapDimension(r.dim),y=po(a,p),m=r.dim!=="radius"||!t.get("roundCap",!0),_=f.dataToCoord(bk(f)),S=0,x=a.count();S<x;S++){var b=a.get(p,S),w=a.get(g,S),C=b>=0?"p":"n",T=_;y&&(n[i][w]||(n[i][w]={p:_,n:_}),T=n[i][w][C]);var D=void 0,A=void 0,L=void 0,I=void 0;if(f.dim==="radius"){var P=f.dataToCoord(b)-_,R=r.dataToCoord(w);Ae(P)<h&&(P=(P<0?-1:1)*h),D=T,A=T+P,L=R-s,I=L-l,y&&(n[i][w][C]=A)}else{var E=f.dataToCoord(b,m)-_,N=r.dataToCoord(w);Ae(E)<d&&(E=(E<0?-1:1)*d),D=N+s,A=D+l,L=T,I=T+E,y&&(n[i][w][C]=I)}a.setItemLayout(S,{cx:c,cy:v,r0:D,r:A,startAngle:-L*hd/180,endAngle:-I*hd/180,clockwise:L>=I})}}function ost(r,t){var e=ol(t,za),n=sr(r,{fromStat:{key:e},min:1}).w,a=n,i=0,o="20%",s="30%",l={};Ws(r,e,function(g){var y=oz(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=nt(g.get("barWidth"),n),_=nt(g.get("barMaxWidth"),n),S=g.get("barGap"),x=g.get("barCategoryGap");m&&!l[y].width&&(m=ae(a,m),l[y].width=m,a-=m),_&&(l[y].maxWidth=_),S!=null&&(s=S),x!=null&&(o=x)});var u={},f=nt(o,n),c=nt(s,1),v=(a-f)/(i+(i-1)*c);v=Vt(v,0),M(l,function(g,y){var m=g.maxWidth;m&&m<v&&(m=ae(m,a),g.width&&(m=ae(m,g.width)),a-=m,g.width=m,i--)}),v=(a-f)/(i+(i-1)*c),v=Vt(v,0);var h=0,d;M(l,function(g,y){g.width||(g.width=v),d=g,h+=g.width*(1+c)}),d&&(h-=d.width*c);var p=-h/2;return M(l,function(g,y){u[y]=u[y]||{offset:p,width:g.width},p+=g.width*(1+c)}),u}function sst(r,t){rst(r,function(){var e=ol(t,za);xk(r,e,t,za),Zp(e,vg(e))})}var lst={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},ust={splitNumber:5},fst=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(be);function cst(r){Nt(Vv),sl.registerAxisPointerClass("PolarAxisPointer",Eot),r.registerCoordinateSystem("polar",Yot),r.registerComponentModel(kot),r.registerComponentView(fst),Ku(r,"angle",Oot,lst),Ku(r,"radius",Not,ust),r.registerComponentView(qot),r.registerComponentView(est),r.registerLayout(nst),sst(r,ka)}function mw(r,t){t=t||{};var e=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=e.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Rr(t.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var v=r.get(["axisLabel","rotate"]);return a.labelRotate=i==="top"?-v:v,a.z2=1,a}var vst=["splitArea","splitLine","breakArea"],hst=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new mt;var l=mw(e),u=new mi(e,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),M(vst,function(f){e.get([f,"show"])&&dst[f](this,this.group,this._axisGroup,e,a)},this),cc(s,this._axisGroup,e),r.prototype.render.call(this,e,n,a,i)},t.prototype.remove=function(){fO(this)},t.type="singleAxis",t}(sl),dst={splitLine:function(r,t,e,n,a){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=n.coordinateSystem.getRect(),c=i.isHorizontal(),v=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new $e({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});pu(_.shape,u);var S=h++%l.length;v[S]=v[S]||[],v[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<v.length;++y)t.add(Tn(v[y],{style:_t({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,t,e,n,a){uO(r,e,n,n)},breakArea:function(r,t,e,n,a){var i=fv(),o=n.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,n,n.coordinateSystem.getRect(),a)}};const pst=hst;var gst=function(r){V(t,r);function t(e,n,a,i,o){var s=r.call(this,e,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,n){return this.coordinateSystem.pointToData(e)[0]},t}(qn);const yst=gst;var sz=["single"],mst=function(){function r(t,e,n){this.type=xg,this.dimension="single",this.dimensions=sz,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return r.prototype._init=function(t,e,n){var a=this.dimension,i=Up(t),o=new yst(a,Wc(t,i,!0),[0,0],i,t.get("position"));o.onBand=Zc(o.scale,t),o.inverse=t.get("inverse"),o.orient=t.get("orient"),t.axis=o,o.model=t,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(t,e){var n=this._axis;Xs(n,Gu),Hu(n)},r.prototype.resize=function(t,e){var n=We(t,e).refContainer;this._rect=ye(t.getBoxLayoutParams(),n),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),a=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(a[i],a[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),a=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return a-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return a-o+e}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,n){n=n||[];var a=this.getAxis();return n[0]=a.coordToData(a.toLocalCoord(t[a.orient==="horizontal"?0:1])),n},r.prototype.dataToPoint=function(t,e,n){var a=this.getAxis(),i=this.getRect();n=n||[];var o=a.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),n[o]=a.toGlobalCoord(a.dataToCoord(+t)),n[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,n},r.prototype.convertToPixel=function(t,e,n){var a=lz(e);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=lz(e);return a===this?this.pointToData(n):null},r}();function lz(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function _st(r,t){var e=[];return r.eachComponent(yx,function(n,a){var i=new mst(n,r,t);i.name="single_"+a,i.resize(n,t),n.coordinateSystem=i,e.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")===Rj){var a=n.getReferringComponents(yx,Me).models[0],i=n.coordinateSystem=a&&a.coordinateSystem;i&&Ys(i.getAxis(),n,xg)}}),e}var Sst={create:_st,dimensions:sz};const xst=Sst;var uz=["x","y"],bst=["width","height"],wst=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=ly(s),f=uy(l,u),c=uy(l,1-u),v=l.dataToPoint(n)[0],h=i.get("type");if(h&&h!=="none"){var d=lw(i),p=Tst[h](s,v,f,c,i.get("seriesDataIndices"),i.ecModel);p.style=d,e.graphicKey=p.type,e.pointer=p}var g=mw(a);WV(n,e,g,a,i,o)},t.prototype.getHandleTransform=function(e,n,a){var i=mw(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=uw(n.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,a,i){var o=a.axis,s=o.coordinateSystem,l=ly(o),u=uy(s,l),f=[e.x,e.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=uy(s,1-l),v=(c[1]+c[0])/2,h=[v,v];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(sw),Tst={line:function(r,t,e,n){var a=fw([t,n[0]],[t,n[1]],ly(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e,n,a,i){var o=cw(r,a,i),s=n[1]-n[0],l=vw(t,e,o),u=l[0],f=l[1];return{type:"Rect",shape:YV([u,n[0]],[f-u,s],ly(r))}}};function ly(r){return r.isHorizontal()?0:1}function uy(r,t){var e=r.getRect();return[e[uz[t]],e[uz[t]]+e[bst[t]]]}const Cst=wst;var Ast=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(be);function Mst(r){Nt(Vv),sl.registerAxisPointerClass("SingleAxisPointer",Cst),r.registerComponentView(Ast),r.registerComponentView(pst),r.registerComponentModel(mx),Ku(r,"single",mx,mx.defaultOption),r.registerCoordinateSystem("single",xst)}var Dst=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=Is(e);r.prototype.init.apply(this,arguments),fz(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),fz(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:F.color.axisLine,width:1,type:"solid"}},itemStyle:{color:F.color.neutral00,borderWidth:1,borderColor:F.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:F.size.s,color:F.color.secondary},monthLabel:{show:!0,position:"start",margin:F.size.s,align:"center",formatter:null,color:F.color.secondary},yearLabel:{show:!0,position:null,margin:F.size.xl,formatter:null,color:F.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Yt);function fz(r,t){var e=r.cellSize,n;Y(e)?n=e:n=r.cellSize=[e,e],n.length===1&&(n[1]=n[0]);var a=K([0,1],function(i){return CY(t,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});Aa(r,t,{type:"box",ignoreSize:a})}const Ist=Dst;var Lst=function(r){V(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,a){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,n,a){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new Ft({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},t.prototype._renderLines=function(e,n,a,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,v=0;c.time<=n.end.time;v++){d(c.formatedDate),v===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=s.getDateInfo(h)}d(s.getNextNDay(n.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},t.prototype._getEdgesPoints=function(e,n,a){var i=[e[0].slice(),e[e.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},t.prototype._drawSplitline=function(e,n,a){var i=new xr({z2:20,shape:{points:e},style:n});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,n,a){for(var i=e.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,n){return et(e)&&e?pL(e,n):yt(e)?e(n):n.nameMap},t.prototype._yearTextPositionControl=function(e,n,a,i,o){var s=n[0],l=n[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,n,a,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,v=a==="horizontal"?0:1,h={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],c],right:[u[v][0],c]},d=n.start.y;+n.end.y>+n.start.y&&(d=d+"-"+n.end.y);var p=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Xt({z2:30,style:ce(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,n,a,i,o){var s="left",l="top",u=e[0],f=e[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,n,a,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||et(s))&&(s&&(n=j_(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<c[v].length-1;g++){var y=c[v][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+c[0][g+1][h])/2}var S=o.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(S,b),C=new Xt({z2:30,style:W(ce(o,{text:w}),this._monthTextPositionControl(y,d,a,u,l)),silent:p});i.add(C)}}},t.prototype._weekTextPositionControl=function(e,n,a,i,o){var s="center",l="middle",u=e[0],f=e[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,n,a,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),v=l.getFirstDayOfWeek();if(!f||et(f)){f&&(n=j_(f)||n);var h=n.get(["time","dayOfWeekShort"]);f=h||K(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=nt(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+v)%7);var x=new Xt({z2:30,style:W(ce(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:g});o.add(x)}}},t.type="calendar",t}(be);const Pst=Lst;var _w=864e5,Est=function(){function r(t,e,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,n)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=ts(t);var e=t.getFullYear(),n=t.getMonth()+1,a=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+a+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];M([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ye(o,l);M([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,v){return c[v]!=null&&c[v]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,n){n=n||[],Y(t)&&(t=t[0]),e==null&&(e=!0);var a=this.getDateInfo(t),i=this._rangeInfo,o=a.formatedDate;if(e&&!(a.time>=i.start.time&&a.time<i.end.time+_w))return n[0]=n[1]=NaN,n;var s=a.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+l*this._sh+this._sh/2):(n[0]=this._rect.x+l*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2),n},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,n){n=n||{};var a=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},o=this.dataToPoint(t,e);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,Mt.copy(i,a),xs(i,this._lineWidth/2,!0,!0),n},r.prototype.dataToCalendarLayout=function(t,e){var n=this.dataToPoint(t,e);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,e-1,a):this._getDateByWeeksAndDay(e,n-1,a)},r.prototype.convertToPixel=function(t,e,n){var a=Sw(e);return a===this?a.dataToPoint(n):null},r.prototype.convertToLayout=function(t,e,n){var a=Sw(e);return a===this?a.dataToLayout(n):null},r.prototype.convertFromPixel=function(t,e,n){var a=Sw(e);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(Y(t)&&t.length===1&&(t=t[0]),Y(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;e[0].time>e[1].time&&(n=!0,e.reverse());var a=Math.floor(e[1].time/_w)-Math.floor(e[0].time/_w)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+e[0].day+6)/7),c=n?-f+1:f-1;return n&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:a,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,n){var a=this._getRangeInfo(n);if(t>a.weeks||t===0&&e<a.fweek||t===a.weeks&&e>a.lweek)return null;var i=(t-1)*7-a.fweek+e,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var n=[];return t.eachComponent("calendar",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){_c({targetModel:i,coordSysType:"calendar",coordSysProvider:xL})}),n},r.dimensions=["time","value"],r}();function Sw(r){var t=r.calendarModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}const Rst=Est;function kst(r){r.registerComponentModel(Ist),r.registerComponentView(Pst),r.registerCoordinateSystem("calendar",Rst)}var Ci={level:1,leaf:2,nonLeaf:3},Ai={none:0,all:1,body:2,corner:3};function xw(r,t,e){var n=t[Dt[e]].getCell(r);return!n&&Wt(r)&&r<0&&(n=t[Dt[1-e]].getUnitLayoutInfo(e,Math.round(r))),n}function cz(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function vz(r,t,e,n,a){hz(r[0],t,a,e,n,0),hz(r[1],t,a,e,n,1)}function hz(r,t,e,n,a,i){r[0]=1/0,r[1]=-1/0;var o=n[i],s=Y(o)?o:[o],l=s.length,u=!!e;if(l>=1?(dz(r,t,s,u,a,i,0),l>1&&dz(r,t,s,u,a,i,l-1)):r[0]=r[1]=NaN,u){var f=-a[Dt[1-i]].getLocatorCount(i),c=a[Dt[i]].getLocatorCount(i)-1;e===Ai.body?f=Vt(0,f):e===Ai.corner&&(c=ae(-1,c)),c<f&&(f=c=NaN),gr(r[0])&&(r[0]=f),gr(r[1])&&(r[1]=c),r[0]=Vt(ae(r[0],c),f),r[1]=Vt(ae(r[1],c),f)}}function dz(r,t,e,n,a,i,o){var s=xw(e[o],a,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[Dt[i]],u=l,f=Vst(s);f&&(u+=f.span[Dt[i]]-1),r[0]=ae(r[0],l,u),r[1]=Vt(r[1],l,u)}function fy(r,t){return gr(r[t][0])||gr(r[t][1])}function pz(r,t,e,n){t=t||Ost;for(var a=0;a<n;a++)t[a]=!1;for(;;){for(var i=!1,a=0;a<n;a++){var o=e[a];!t[a]&&o.cellMergeOwner&&Nst(r,o.locatorRange)&&(t[a]=!0,i=!0)}if(!i)break}}var Ost=[];function Nst(r,t){return!gz(r[0],t[0])||!gz(r[1],t[1])?!1:(r[0][0]=ae(r[0][0],t[0][0]),r[0][1]=Vt(r[0][1],t[0][1]),r[1][0]=ae(r[1][0],t[1][0]),r[1][1]=Vt(r[1][1],t[1][1]),!0)}function gz(r,t){return r[1]>=t[0]&&r[0]<=t[1]}function yz(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function Bst(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function mz(r,t,e,n){var a=xw(t[n][0],e,n),i=xw(t[n][1],e,n);r[Dt[n]]=r[Ie[n]]=NaN,a&&i&&(r[Dt[n]]=a.xy,r[Ie[n]]=i.xy+i.wh-a.xy)}function zv(r,t,e,n){return r[Dt[t]]=e,r[Dt[1-t]]=n,r}function Vst(r){return r&&(r.type===Ci.leaf||r.type===Ci.nonLeaf)?r:null}function cy(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var _z=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=zst(t);var n=e.get("data",!0),a=e.get("length",!0);if(n!=null&&!Y(n)&&(n=[]),n)this._initByDimModelData(n);else if(a!=null){n=Array(a);for(var i=0;i<a;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,n=e._cells,a=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,c){var v=0;return u&&M(u,function(h,d){var p;et(h)?p={value:h}:xt(h)?(p=h,h.value!=null&&!et(h.value)&&(p={value:null})):p={value:null};var g={type:Ci.nonLeaf,ordinal:NaN,level:c,firstLeafLocator:f,id:new bt,span:zv(new bt,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:cy()};o++,(i[f]||(i[f]=[])).push(g),a[c]||(a[c]={type:Ci.level,xy:NaN,wh:NaN,option:null,id:new bt,dim:e});var y=s(p.children,f,c+1),m=Math.max(1,y);g.span[Dt[e.dimIdx]]=m,v+=m,f+=m}),v}function l(){for(var u=[];n.length<o;)for(var f=0;f<i.length;f++){var c=i[f].pop();if(c){c.ordinal=u.length;var v=c.option.value;u.push(v),n.push(c),e._uniqueValueGen.calcDupBase(v)}}e._uniqueValueGen.ensureValueUnique(u,n);var h=e._ordinalMeta=new Fc({categories:u,needCollect:!1,deduplication:!1});e._scale=new Fp({ordinalMeta:h});for(var d=0;d<e._leavesCount;d++){var p=e._cells[d];p.type=Ci.leaf,p.span[Dt[1-e.dimIdx]]=e._levels.length-p.level}e._initCellsId(),e._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:Ci.level,xy:NaN,wh:NaN,option:null,id:new bt,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new Fc({needCollect:!0,deduplication:!0,onCollect:function(n,a){var i=t._cells[a]={type:Ci.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new bt,span:zv(new bt,t.dimIdx,1,1),option:{value:n+""},xy:NaN,wh:NaN,dim:t,rect:cy()};t._leavesCount++,t._setCellId(i)}});t._scale=new Fp({ordinalMeta:e})},r.prototype._setCellId=function(t){var e=this._levels.length,n=this.dimIdx;zv(t.id,n,t.firstLeafLocator,t.level-e)},r.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;M(this._cells,function(n){zv(n.id,e,n.firstLeafLocator,n.level-t)})},r.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,n=this._model.get("levels",!0);n=Y(n)?n:[],M(this._levels,function(a,i){zv(a.id,e,0,i-t),a.option=n[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(t,e,n,a){if(t=t||new to,e===this.dimIdx){var i=this._leavesCount,o=n!=null?Math.max(0,n):0;a=a!=null?Math.min(a,i):i,t.reset(this._cells,o,o+a)}else{var i=this._levels.length,o=n!=null?Math.max(0,n+i):0;a=a!=null?Math.min(a,i):i,t.reset(this._levels,o,o+a)}return t},r.prototype.resetCellIterator=function(t){return(t||new to).reset(this._cells,0)},r.prototype.resetLevelIterator=function(t){return(t||new to).reset(this._levels,0)},r.prototype.getLayout=function(t,e,n){var a=this.getUnitLayoutInfo(e,n);t[Dt[e]]=a?a.xy:NaN,t[Ie[e]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},r.prototype.getCell=function(t){var e=this._scale.parse(t);return gr(e)?void 0:this._cells[e]},r.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}();function zst(r){var t=r.toUpperCase(),e=new RegExp("^"+t+"([0-9]+)$"),n=0;function a(s){var l;s!=null&&(l=s.match(e))&&(n=Vt(n,+l[1]+1))}function i(){return""+t+n++}function o(s,l){for(var u=ot(),f=0;f<s.length;f++){var c=s[f];(c==null||u.get(c)!=null)&&(s[f]=c=i(),l[f].option=_t({value:c},l[f].option)),u.set(c,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var Sz=function(){function r(t,e,n){this._model=e,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=ot(),n()),e;function n(){var i=[],o=t._model.getShallow("data");o&&!Y(o)&&(o=null),M(o,function(d,p){if(!(!xt(d)||!Y(d.coord))){var g=cz([]),y=null;if(vz(g,y,d.coord,t._dims,d.coordClamp?Ai[t._kind]:Ai.none),!(fy(g,0)||fy(g,1))){var m=d&&d.mergeCells,_={id:new bt,span:new bt,locatorRange:g,option:d,cellMergeOwner:m};yz(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;pz(f,s,i,l);for(var c=0;c<l;c++)s[c]&&(i[c].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var v=W({},u.option);v.coord=null;var h={id:new bt,span:new bt,locatorRange:f,option:v,cellMergeOwner:!0};yz(h,f),i.push(h)}}}M(i,function(d){var p=a(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=cy(),t._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=a(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function a(i,o){var s=xz(i,o),l=e.get(s);return l||(l=e.set(s,{id:new bt(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(t){return this._ensureCellMap().get(xz(t[0],t[1]))},r.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},r.prototype.expandRangeByCellMerge=function(t){if(!fy(t,0)&&!fy(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){bw[0]=t[0][0],bw[1]=t[1][0];var e=this.getCell(bw),n=e&&e.inSpanOf;if(n){Bst(t,n.locatorRange);return}}var a=this._cellMergeOwnerList;pz(t,null,a,a.length)},r}(),bw=[];function xz(r,t){return r+"|"+t}var ww={show:!0,color:F.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function Tw(r){return{color:"none",borderWidth:1,borderColor:r?"none":F.color.borderTint}}var bz={show:!0,label:ww,itemStyle:Tw(!1),silent:void 0,dividerLineStyle:{width:1,color:F.color.border}},Fst={label:ww,itemStyle:Tw(!1),silent:void 0},Gst={label:ww,itemStyle:Tw(!0),silent:void 0},Hst={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:bz,y:bz,body:Fst,corner:Gst,backgroundStyle:{color:"none",borderColor:F.color.axisLine,borderWidth:1},triggerEvent:!1},$st=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new wz(this.get("x",!0)||{}),y:new wz(this.get("y",!0)||{})};e.x.option.type=e.y.option.type="category";var n=e.x.dim=new _z("x",e.x),a=e.y.dim=new _z("y",e.y),i={x:n,y:a};this._body=new Sz("body",new qt(this.getShallow("body")),i),this._corner=new Sz("corner",new qt(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=Hst,t}(Yt),wz=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(qt);const Ust=$st;var vy=Math.round,Wst=0,Yst=99,Xst={normal:25,special:100},Zst={normal:50,special:125},Kst=function(r){V(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){this.group.removeAll();var a=this.group,i=e.coordinateSystem,o=i.getRect(),s=e.getDimensionModel("x"),l=e.getDimensionModel("y"),u=s.dim,f=l.dim;qst(a,e,n),jst(a,e,u,f,n);var c=e.getShallow("borderZ2",!0),v=ut(c,Yst),h=v-1,d=e.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=e.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=Cw(o.clone(),d,Wst),y=Cw(o.clone(),p,v);g.silent=!0,y.silent=!0,a.add(g),a.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&a.add(Cz({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&a.add(Cz({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t}(be);function qst(r,t,e){n(0),n(1);function n(a){var i=t.getDimensionModel(Dt[a]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],c=o.resetCellIterator();c.next();){var v=c.item,h={};Mt.copy(h,v.rect),Fi(f,v.id.x,v.id.y),Tz(f,t,r,e,v.option,s,l,i,h,v.option.value,Zst,u,a===0?"x":"y")}}}function jst(r,t,e,n,a){i("body",t.getBody(),e,n),e.shouldShow()&&n.shouldShow()&&i("corner",t.getCorner(),n,e);function i(o,s,l,u){var f=new qt(t.getShallow(o,!0)),c=f.getModel("itemStyle"),v=f.getModel("label"),h=new to,d=new to,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;Fi(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?Mt.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var x=_?_.option:null;Tz(p,t,r,a,x,c,v,f,S,x?x.value:null,Xst,g,o)}}}}function Tz(r,t,e,n,a,i,o,s,l,u,f,c,v){var h;hy.option=a?a.itemStyle:null,hy.parentModel=i,lf.option=a,lf.parentModel=s;var d=ut(lf.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),p=c&&c.show,g=Cw(l,hy.getItemStyle(),d);e.add(g);var y=lf.get("cursor");y!=null&&g.attr("cursor",y);var m;if(u!=null){var _=u+"";wl.option=a?a.label:null,wl.parentModel=o,wl.ecModel=n;var S=wl.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:t.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(et(S))_=pL(S,x);else if(yt(S)){var b=S(x);b!=null&&(_=b+"")}}if(qe(g,{normal:wl},{defaultText:_,autoOverflowArea:!0,layoutRect:dt(g.shape)}),m=g.getTextContent(),m){m.z2=d+1;var w=m.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var C={};Mt.copy(C,l),xs(C,(((h=g.style)===null||h===void 0?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(dy),yn(dy,dy),Mt.applyTransform(C,C,dy),m.setClipPath(new Ft({shape:C}))}}ci({el:g,componentModel:t,itemName:_,itemTooltipOption:c,formatterParamsExtra:{xyLocator:r.slice()}})}var T=t.get("triggerEvent",!0);if(m){var D=wl.get("silent");D==null&&(D=!(T||p)),m.silent=D,m.ignoreHostSilent=!0}var A=lf.get("silent");if(A==null&&(A=!g.style||g.style.fill==="none"||!g.style.fill),g.silent=A,T&&g){var L={componentType:"matrix",componentIndex:t.componentIndex,matrixIndex:t.componentIndex,targetType:v,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};Ct(g).eventData=L}q0(lf),q0(hy),q0(wl)}var lf=new qt,hy=new qt,wl=new qt,dy=[];function Cw(r,t,e){var n=t.lineWidth;if(n){var a=r.x+r.width,i=r.y+r.height;r.x=sn(r.x,n,!0),r.y=sn(r.y,n,!0),r.width=sn(a,n,!0)-r.x,r.height=sn(i,n,!0)-r.y}return new Ft({shape:r,style:t,z2:e})}function Cz(r,t,e){var n=t.lineWidth;return n&&(vy(r.x1*2)===vy(r.x2*2)&&(r.x1=r.x2=sn(r.x1,n,!0)),vy(r.y1*2)===vy(r.y2*2)&&(r.y1=r.y2=sn(r.y1,n,!0))),new $e({shape:r,style:t,silent:!0,z2:e})}const Jst=Kst;var Qst=function(){function r(t,e,n){this.dimensions=r.dimensions,this.type="matrix",this._model=t;var a=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(t,n)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(t,e){var n=[];return t.eachComponent("matrix",function(a){var i=new r(a,t,e);n.push(i),a.coordinateSystem=i}),t.eachComponent(function(a,i){_c({targetModel:i,coordSysType:"matrix",coordSysProvider:xL})}),n},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(t,e){var n=this._dims,a=this._dimModels,i=this._rect=ye(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});Az(a,n,i,0),Az(a,n,i,1),Mz(0,n),Mz(1,n),Dz(this._model.getBody(),n),Dz(this._model.getCorner(),n)},r.prototype.dataToPoint=function(t,e,n){return n=n||[],this.dataToLayout(t,e,Fv),n[0]=Fv.rect.x+Fv.rect.width/2,n[1]=Fv.rect.y+Fv.rect.height/2,n},r.prototype.dataToLayout=function(t,e,n){var a=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var o=n.matrixXYLocatorRange=cz(n.matrixXYLocatorRange);return Y(t)&&(vz(o,null,t,a,ut(e&&e.clamp,Ai.none)),(!e||!e.ignoreMergeCells)&&((!e||e.clamp!==Ai.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!e||e.clamp!==Ai.body)&&this._model.getCorner().expandRangeByCellMerge(o)),mz(i,o,a,0),mz(i,o,a,1)),n},r.prototype.pointToData=function(t,e,n){var a=this._dims;return Iz(Fa,0,a,t,e&&e.clamp),Iz(Fa,1,a,t,e&&e.clamp),n=n||[],n[0]=n[1]=NaN,Fa.y===ur.inCorner&&Fa.x===ur.inBody?Lz(Fa,n,0,a):Fa.x===ur.inCorner&&Fa.y===ur.inBody?Lz(Fa,n,1,a):(Pz(Fa,n,0,a),Pz(Fa,n,1,a)),n},r.prototype.convertToPixel=function(t,e,n,a){var i=Dw(e);return i===this?i.dataToPoint(n,a):void 0},r.prototype.convertToLayout=function(t,e,n,a){var i=Dw(e);return i===this?i.dataToLayout(n,a):void 0},r.prototype.convertFromPixel=function(t,e,n,a){var i=Dw(e);return i===this?i.pointToData(n,a):void 0},r.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},r.dimensions=["x","y","value"],r}(),Fv={rect:cy()},py=new to,Aw=new to;function Az(r,t,e,n){for(var a=1-n,i=t[Dt[n]],o=t[Dt[a]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,n);u.next();)u.item.wh=u.item.xy=NaN;for(var f=e[Ie[n]],c=i.getLocatorCount(n)+o.getLocatorCount(n),v=new qt,h=o.resetLevelIterator();h.next();)v.option=h.item.option,v.parentModel=r[Dt[a]],g(h.item,s?v.get("levelSize"):0);for(var d=new qt,p=i.resetCellIterator();p.next();)p.item.type===Ci.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,C){var T=tlt(C,n,e);gr(T)||(w.wh=Mw(T,f),f=Mw(f-w.wh),c--)}var y=c?f/c:0,m=!c&&f>=1,_=e[Dt[n]],S=i.getLocatorCount(n)-1,x=new to;for(o.resetLayoutIterator(x,n);x.next();)b(x.item);for(i.resetLayoutIterator(x,n);x.next();)b(x.item);function b(w){gr(w.wh)&&(w.wh=y),w.xy=_,w.id[Dt[n]]===S&&!m&&(w.wh=e[Dt[n]]+e[Ie[n]]-w.xy),_+=w.wh}}function Mz(r,t){for(var e=t[Dt[r]].resetCellIterator();e.next();){var n=e.item;gy(n.rect,r,n.id,n.span,t),gy(n.rect,1-r,n.id,n.span,t),n.type===Ci.nonLeaf&&(n.xy=n.rect[Dt[r]],n.wh=n.rect[Ie[r]])}}function Dz(r,t){r.travelExistingCells(function(e){var n=e.span;if(n){var a=e.spanRect,i=e.id;gy(a,0,i,n,t),gy(a,1,i,n,t)}})}function gy(r,t,e,n,a){r[Ie[t]]=0;var i=e[Dt[t]],o=i<0?a[Dt[1-t]]:a[Dt[t]],s=o.getUnitLayoutInfo(t,e[Dt[t]]);if(r[Dt[t]]=s.xy,r[Ie[t]]=s.wh,n[Dt[t]]>1){var l=o.getUnitLayoutInfo(t,e[Dt[t]]+n[Dt[t]]-1);r[Ie[t]]=l.xy+l.wh-s.xy}}function tlt(r,t,e){var n=dd(r,e[Ie[t]]);return Mw(n,e[Ie[t]])}function Mw(r,t){return Math.max(Math.min(r,ut(t,1/0)),0)}function Dw(r){var t=r.matrixModel,e=r.seriesModel,n=t?t.coordinateSystem:e?e.coordinateSystem:null;return n}var ur={inBody:1,inCorner:2,outside:3},Fa={x:null,y:null,point:[]};function Iz(r,t,e,n,a){var i=e[Dt[t]],o=e[Dt[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,c=r.point[t]=n[t];if(!l&&!f){r[Dt[t]]=ur.outside;return}if(a===Ai.body){l?(r[Dt[t]]=ur.inBody,c=ae(s.xy+s.wh,Vt(l.xy,c)),r.point[t]=c):r[Dt[t]]=ur.outside;return}else if(a===Ai.corner){f?(r[Dt[t]]=ur.inCorner,c=ae(f.xy+f.wh,Vt(u.xy,c)),r.point[t]=c):r[Dt[t]]=ur.outside;return}var v=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:v,d=s?s.xy+s.wh:v;if(c<h){if(!a){r[Dt[t]]=ur.outside;return}c=h}else if(c>d){if(!a){r[Dt[t]]=ur.outside;return}c=d}r.point[t]=c,r[Dt[t]]=v<=c&&c<=d?ur.inBody:h<=c&&c<=v?ur.inCorner:ur.outside}function Lz(r,t,e,n){var a=1-e;if(r[Dt[e]]!==ur.outside)for(n[Dt[e]].resetCellIterator(Aw);Aw.next();){var i=Aw.item;if(Ez(r.point[e],i.rect,e)&&Ez(r.point[a],i.rect,a)){t[e]=i.ordinal,t[a]=i.id[Dt[a]];return}}}function Pz(r,t,e,n){if(r[Dt[e]]!==ur.outside){var a=r[Dt[e]]===ur.inCorner?n[Dt[1-e]]:n[Dt[e]];for(a.resetLayoutIterator(py,e);py.next();)if(elt(r.point[e],py.item)){t[e]=py.item.id[Dt[e]];return}}}function elt(r,t){return t.xy<=r&&r<=t.xy+t.wh}function Ez(r,t,e){return t[Dt[e]]<=r&&r<=t[Dt[e]]+t[Ie[e]]}const rlt=Qst;function nlt(r){r.registerComponentModel(Ust),r.registerComponentView(Jst),r.registerCoordinateSystem("matrix",rlt)}function alt(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function Rz(r,t){var e;return M(t,function(n){r[n]!=null&&r[n]!=="auto"&&(e=!0)}),e}function ilt(r,t,e){var n=W({},e),a=r[t],i=e.$action||"merge";i==="merge"?a?(Rt(a,n,!0),Aa(a,n,{ignoreSize:!0}),AL(e,a),yy(e,a),yy(e,a,"shape"),yy(e,a,"style"),yy(e,a,"extra"),e.clipPath=a.clipPath):r[t]=n:i==="replace"?r[t]=n:i==="remove"&&a&&(r[t]=null)}var kz=["transition","enterFrom","leaveTo"],olt=kz.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function yy(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var n=e?kz:olt,a=0;a<n.length;a++){var i=n[a];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function slt(r,t){if(r&&(r.hv=t.hv=[Rz(t,["left","right"]),Rz(t,["top","bottom"])],r.type==="group")){var e=r,n=t;e.width==null&&(e.width=n.width=0),e.height==null&&(e.height=n.height=0)}}var llt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,n),this.option.elements=a},t.prototype.optionUpdated=function(e,n){var a=this.option,i=(n?a:e).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=qM(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];M(l,function(f,c){var v=f.newOption;v&&(u.push(v),alt(f,v),ilt(o,c,v),slt(o[c],v))},this),a.elements=ne(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,n,a){M(e,function(i){if(i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Yt),Oz={path:null,compoundPath:null,group:mt,image:ir,text:Xt},Rn=Et(),ult=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=ot()},t.prototype.render=function(e,n,a){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,a)},t.prototype._updateElements=function(e){var n=e.useElOptionsToUpdate();if(n){var a=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");M(n,function(l){var u=Fe(l.id,null),f=u!=null?a.get(u):null,c=Fe(l.parentId,null),v=c!=null?a.get(c):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&jR(d,h,!!g,!!p)){var y=JR(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=flt(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=Nz(u,v,l.type,a):(w&&(Rn(w).isNew=!1),LV(w)),w&&(ey(w,m,e,{isInit:b}),Bz(w,l,o,s))}else if(x){my(f,l,a,e);var C=Nz(u,v,l.type,a);C&&(ey(C,m,e,{isInit:!0}),Bz(C,l,o,s))}else _==="remove"&&(MV(f,l),my(f,l,a,e));var T=a.get(u);if(T&&p)if(S){var D=T.getTextContent();D?D.attr(p):T.setTextContent(new Xt(p))}else x&&T.setTextContent(new Xt(p));if(T){var A=l.clipPath;if(A){var L=A.type,I=void 0,b=!1;if(S){var P=T.getClipPath();b=!P||Rn(P).type!==L,I=b?Iw(L):P}else x&&(b=!0,I=Iw(L));T.setClipPath(I),ey(I,A,e,{isInit:b}),ny(I,A.keyframeAnimation,e)}var R=Rn(T);T.setTextConfig(g),R.option=l,clt(T,e,l),ci({el:T,componentModel:e,itemName:T.name,itemTooltipOption:l.tooltip}),ny(T,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,n){for(var a=e.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],v=Fe(c.id,null),h=v!=null?o.get(v):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Rn(h),y=Rn(d);g.width=nt(g.option.width,p?s:y.width)||0,g.height=nt(g.option.height,p?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],v=Fe(c.id,null),h=v!=null?o.get(v):null;if(h){var d=h.parent,y=Rn(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=up(h,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!Rn(h).isNew&&S){for(var x=c.transition,b={},w=0;w<u.length;w++){var C=u[w],T=_[C];x&&(xl(x)||Lt(x,C)>=0)?b[C]=T:h[C]=T}Kt(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(a){my(a,Rn(a).option,n,e._lastGraphicModel)}),this._elMap=ot()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(be);function Iw(r){var t=st(Oz,r)?Oz[r]:Ud(r),e=new t({});return Rn(e).type=r,e}function Nz(r,t,e,n){var a=Iw(e);return t.add(a),n.set(r,a),Rn(a).id=r,Rn(a).isNew=!0,a}function my(r,t,e,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){my(i,t,e,n)}),ry(r,t,n),e.removeKey(Rn(r).id))}function Bz(r,t,e,n){r.isGroup||M([["cursor",xn.prototype.cursor],["zlevel",n||0],["z",e||0],["z2",0]],function(a){var i=a[0];st(t,i)?r[i]=ut(t[i],a[1]):r[i]==null&&(r[i]=a[1])}),M(Ut(t),function(a){if(a.indexOf("on")===0){var i=t[a];r[a]=yt(i)?i:null}}),st(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function flt(r){return r=W({},r),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(bL),function(t){delete r[t]}),r}function clt(r,t,e){var n=Ct(r).eventData;!r.silent&&!r.ignore&&!n&&(n=Ct(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),n&&(n.info=e.info)}function vlt(r){r.registerComponentModel(llt),r.registerComponentView(ult),r.registerPreprocessor(function(t){var e=t.graphic;Y(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var Vz=["x","y","radius","angle","single"],hlt=Et(),dlt=["cartesian2d","polar","singleAxis"];function plt(r){var t=r.get("coordinateSystem");return Lt(dlt,t)>=0}function Io(r){return r+"Axis"}function glt(r,t){var e=ot(),n=[],a=ot();r.eachComponent({mainType:"dataZoom",query:t},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(v,h){var d=e.get(v);d&&d[h]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,v){(e.get(c)||e.set(c,[]))[v]=!0})}return n}function zz(r){var t=r.ecModel,e={infoList:[],infoMap:ot()};return r.eachTargetAxis(function(n,a){var i=t.getComponent(Io(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}function Fz(r){var t=hlt(r2(r));return t.axisProxyMap||(t.axisProxyMap=ot())}function _y(r){if(r)return Fz(r.ecModel).get(r.uid)}function ylt(r,t){Fz(r.ecModel).set(r.uid,t)}function Gz(r,t){var e=t.getAxisModel().axis.__alignTo;return e&&r.getAxisProxy(e.dim,e.model.componentIndex)?_y(e.model):null}var Lw=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}(),mlt=function(r){V(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,a){var i=Hz(e);this.settledOption=i,this.mergeDefaultAndTheme(e,a),this._doInit(i)},t.prototype.mergeOption=function(e){var n=Hz(e);Rt(this.option,e,!0),Rt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=ot(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(Vz,function(a){var i=this.getReferringComponents(Io(a),kU);if(i.specified){n=!0;var o=new Lw;M(i.models,function(s){o.add(s.componentIndex)}),e.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(c){var v=new Lw;if(v.add(c.componentIndex),e.set(f,v),i=!1,f==="x"||f==="y"){var h=c.getReferringComponents("grid",Me).models[0];h&&M(u,function(d){c.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",Me).models[0]&&v.add(d.componentIndex)})}}}i&&M(Vz,function(u){if(i){var f=a.findComponents({mainType:Io(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var c=new Lw;c.add(f[0].componentIndex),e.set(u,c),i=!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,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,a){e==null&&(e=this.ecModel.getComponent(Io(n),a))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){e.call(n,i,o)})})},t.prototype.getAxisProxy=function(e,n){return _y(this.getAxisModel(e,n))},t.prototype.getAxisModel=function(e,n){var a=this._targetAxisInfoMap.get(e);if(a&&a.indexMap[n])return this.ecModel.getComponent(Io(e),n)},t.prototype.setRawRange=function(e){var n=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(n[i[0]]=a[i[0]]=e[i[0]],n[i[1]]=a[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(a){n[a]=e[a]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(e,n).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return _y(e);for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Yt);function Hz(r){var t={};return M(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Gv=mlt;var _lt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Gv);const Slt=_lt;var xlt=function(r){V(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,a,i){this.dataZoomModel=e,this.ecModel=n,this.api=a},t.type="dataZoom",t}(be);const Pw=xlt;var blt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Pw);const wlt=blt;var Tlt=function(){function r(t,e,n,a){this._dimName=t,this._axisIndex=e,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getWindow=function(){return dt(this._window)},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(plt(e)){var n=Io(this._dimName),a=e.getReferringComponents(n,Me).models[0];a&&this._axisIndex===a.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return dt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._extent,n=this.getAxisModel().axis,a=n.scale,i=this._dataZoomModel,o=i.getRangePropMode(),s=[0,100],l=[],u=[],f,c=[!1,!1];M(["start","end"],function(_,S){var x=t[_],b=t[_+"Value"];o[S]==="percent"?(x==null&&(x=s[S]),b=Jt(x,s,e),c[S]=!0):(f=!0,b==null?b=e[S]:(b=a.parse(b),a.sanitize&&(b=a.sanitize(b,e))),x=Jt(b,e,s)),u[S]=b==null||isNaN(b)?e[S]:b,l[S]=x==null||isNaN(x)?s[S]:x}),nr(u),nr(l);var v=this._minMaxSpan;f?h(u,l,e,s,!1):h(l,u,s,e,!0);function h(_,S,x,b,w){var C=w?"Span":"ValueSpan";wo(0,_,x,"all",v["min"+C],v["max"+C]);for(var T=0;T<2;T++)S[T]=Jt(_[T],x,b,!0),w&&(S[T]=S[T],c[T]=!0);gd(S)}var d=wr(a)||Uc(a),p=n.getExtent(),g=Ae(p[1]-p[0]),y=d?0:G0(u,g,.5);M([[0,jo],[1,Hn]],function(_){var S=_[0],x=_[1];!c[S]||!isFinite(y)||(u[S]=Zt(u[S],y),u[S]=ae(e[1],Vt(e[0],u[S])),l[S]===s[S]&&(u[S]=e[S],d&&(u[S]=x(u[S]))))}),gd(u);var m=[Jt(u[0],e,s,!0),Jt(u[1],e,s,!0)];return gd(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(t,e){if(this.hostedBy(t)){var n=this.getAxisModel().axis;Xs(n,CX);var a=n.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var i=t.settledOption;e&&(i=_t({start:e[0],end:e[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},r.prototype.filterData=function(t,e){if(!this.hostedBy(t))return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._window.value;if(i==="none")return;M(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(i==="weakFilter"){var c=u.getStore(),v=K(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=c.get(v[y],h),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(d=!0),x&&(p=!0)}return g&&d&&p})}else M(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});M(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._extent;M(["min","max"],function(a){var i=e.get(a+"Span"),o=e.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Jt(n[0]+o,n,[0,100],!0):i!=null&&(o=Jt(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},r}();const Clt=Tlt;var Alt={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function t(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Io(o),s);a(o,s,l,i)})})}var e=[];t(function(a,i,o,s){if(!_y(o)){var l=new Clt(a,i,s,r);e.push(l),ylt(o,l)}});var n=ot();return M(e,function(a){M(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){var n=[];e.eachTargetAxis(function(a,i){var o=e.getAxisProxy(a,i),s=Gz(e,o);s?n.push([o,s]):o.reset(e,null)}),M(n,function(a){a[0].reset(e,a[1].getWindow().percentInverted)}),e.eachTargetAxis(function(a,i){e.getAxisProxy(a,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var a=n.getWindow(),i=a.percent,o=a.value;e.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};const Mlt=Alt;function Dlt(r){r.registerAction("dataZoom",function(t,e){var n=glt(e,t);M(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Ilt=au();function Ew(r){Ilt(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,Mlt),Dlt(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function Llt(r){r.registerComponentModel(Slt),r.registerComponentView(wlt),Ew(r)}var Ga=function(){function r(){}return r}(),$z={};function uf(r,t){$z[r]=t}function Uz(r){return $z[r]}var Plt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n,a){var i=a.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=W({},o),i.feature={}),r.prototype.init.call(this,e,n,a),o&&(i.feature=o)},t.prototype.optionUpdated=function(){M(this.option.feature,function(e,n){var a=this._themeFeatureOption,i=Uz(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),a&&a[n]&&(Rt(e,a[n]),a[n]=null),Rt(e,i.defaultOption))},this)},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:F.color.border,borderRadius:0,borderWidth:0,padding:F.size.m,itemSize:15,itemGap:F.size.s,showTitle:!0,iconStyle:{borderColor:F.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:F.color.accent70}},tooltip:{show:!1,position:"bottom"}},t}(Yt);const Elt=Plt;function Wz(r,t){var e=mc(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var a=new Ft({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});return a}var Rlt=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features=ot()),c=[];M(u,function(m,_){c.push(_)}),new di(this._featureNames||[],c).add(v).update(v).remove(Bt(v,null)).execute(),this._featureNames=ne(c,function(m){return f.hasKey(m)});function v(m,_){var S=m!=null&&_==null,x=m!=null&&_!=null,b=m==null,w=S||x?c[m]:c[_],C=u[w],T=S||x?new qt(C,e,n):null,D=T&&T.get("show"),A;if(S){if(!D)return;if(klt(w))A={onclick:T.option.onclick,featureName:w};else{var L=Uz(w);if(!L)return;A=new L}f.set(w,A)}else A=f.get(w);if(b||!D){Yz(A)&&A.dispose&&A.dispose(n,a),f.removeKey(w);return}i&&i.newTitle!=null&&i.featureName===w&&(C.title=i.newTitle),S&&(A.uid=Cs("toolbox-feature")),A.model=T,A.ecModel=n,A.api=a,h(T,A,w),T.setIconStatus=function(I,P){var R=this.option,E=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[I]=P,E[I]&&(P==="emphasis"?li:ui)(E[I])},Yz(A)&&A.render&&A.render(T,n,a,i)}function h(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Ga&&_.getIcons?_.getIcons():m.get("icon"),C=m.get("title")||{},T,D;et(w)?(T={},T[S]=w):T=w,et(C)?(D={},D[S]=C):D=C;var A=m.iconPaths={};M(T,function(L,I){var P=vc(L,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=b.getItemStyle();var E=new Xt({style:{text:D[I],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Y_({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},n)},ignore:!0});P.setTextContent(E),ci({el:P,componentModel:e,itemName:I,formatterParamsExtra:{title:D[I]}}),P.__title=D[I],P.on("mouseover",function(){var N=b.getItemStyle(),O=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:b.get("textFill")||N.fill||N.stroke||F.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||O}),E.ignore=!e.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",I])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(m.get(["iconStatus",I])==="emphasis"?li:ui)(P),o.add(P),P.on("click",it(_.onclick,_,n,a,I)),A[I]=P})}var d=We(e,a).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=ye(p,d,g);Ds(e.get("orient"),o,e.get("itemGap"),y.width,y.height),up(o,p,d,g),o.add(Wz(o.getBoundingRect(),e)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!yt(w)&&_){var C=w.style||(w.style={}),T=od(_,Xt.makeFont(C)),D=m.x+o.x,A=m.y+o.y+s,L=!1;A+T.height>a.getHeight()&&(x.position="top",L=!0);var I=L?-5-T.height:s+10;D+T.width/2>a.getWidth()?(x.position=["100%",I],C.align="right"):D-T.width/2<0&&(x.position=[0,I],C.align="left")}})},t.prototype.updateView=function(e,n,a,i){M(this._features,function(o){o&&o instanceof Ga&&o.updateView&&o.updateView(o.model,n,a,i)})},t.prototype.dispose=function(e,n){M(this._features,function(a){a&&a instanceof Ga&&a.dispose&&a.dispose(e,n)})},t.type="toolbox",t}(be);function klt(r){return r.indexOf("my")===0}function Yz(r){return r instanceof Ga}const Olt=Rlt;var Nlt=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var a=this.model,i=a.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||e.get("backgroundColor")||F.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=te.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),h=v[0].indexOf("base64")>-1,d=o?decodeURIComponent(v[1]):v[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var b=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}},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:F.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Ga);const Blt=Nlt;var Xz="__ec_magicType_stack__",Vlt=[["line","bar"],["stack"]],zlt=function(r){V(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"),a={};return M(e.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},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,a){var i=this.model,o=i.get(["seriesIndex",a]);if(Zz[a]){var s={series:[]},l=function(c){var v=c.subType,h=c.id,d=Zz[a](v,h,c,i);d&&(_t(d,c.option),s.series.push(d));var p=c.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,Me).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};M(Vlt,function(c){Lt(c,a)>=0&&M(c,function(v){i.setIconStatus(v,"normal")})}),i.setIconStatus(a,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=Rt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Ga),Zz={line:function(r,t,e,n){if(r==="bar")return Rt({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 Rt({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 a=e.get("stack")===Xz;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),Rt({id:t,stack:a?"":Xz},n.get(["option","stack"])||{},!0)}};Ma({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const Flt=zlt;var Sy=new Array(60).join("-"),ff=" ";function Glt(r){var t={},e=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=fq(o);t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else e.push(a)}else e.push(a)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function Hlt(r){var t=[];return M(r,function(e,n){var a=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(K(e.series,function(h){return h.name})),l=[a.model.getCategories()];M(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(ff)],f=0;f<l[0].length;f++){for(var c=[],v=0;v<l.length;v++)c.push(l[v][f]);u.push(c.join(ff))}t.push(u.join(`
60
+ `))}),t.join(`
61
+
62
+ `+Sy+`
63
+
64
+ `)}function $lt(r){return K(r,function(t){var e=t.getRawData(),n=[t.name],a=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+ff:"")+a.join(ff))}),n.join(`
65
+ `)}).join(`
66
+
67
+ `+Sy+`
68
+
69
+ `)}function Ult(r){var t=Glt(r);return{value:ne([Hlt(t.seriesGroupByCategoryAxis),$lt(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
70
+
71
+ `+Sy+`
72
+
73
+ `),meta:t.meta}}function xy(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Wlt(r){var t=r.slice(0,r.indexOf(`
74
+ `));if(t.indexOf(ff)>=0)return!0}var Rw=new RegExp("["+ff+"]+","g");function Ylt(r){for(var t=r.split(/\n+/g),e=xy(t.shift()).split(Rw),n=[],a=K(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=xy(t[i]).split(Rw);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function Xlt(r){for(var t=r.split(/\n+/g),e=xy(t.shift()),n=[],a=0;a<t.length;a++){var i=xy(t[a]);if(i){var o=i.split(Rw),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:e,data:n}}function Zlt(r,t){var e=r.split(new RegExp(`
75
+ *`+Sy+`
76
+ *`,"g")),n={series:[]};return M(e,function(a,i){if(Wlt(a)){var o=Ylt(a),s=t[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=Xlt(a);n.series.push(o)}}),n}var Klt=function(r){V(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 a=n.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||F.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var c=i.get("optionToContent"),v=i.get("contentToOption"),h=Ult(e);if(yt(c)){var d=c(n.getOption());et(d)?u.innerHTML=d:zl(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){a.removeChild(o),x._dom=null}Zm(_,"click",b),Zm(S,"click",function(){if(v==null&&c!=null||v!=null&&c==null){b();return}var w;try{yt(v)?w=v(u,n.getOption()):w=Zlt(f.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.dispose=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},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:F.color.background,textColor:F.color.primary,textareaColor:F.color.background,textareaBorderColor:F.color.border,buttonColor:F.color.accent50,buttonTextColor:F.color.neutral00};return n},t}(Ga);function qlt(r,t){return K(r,function(e,n){var a=t&&t[n];if(xt(a)&&!Y(a)){var i=xt(e)&&!Y(e);i||(e={value:e});var o=a.name!=null&&e.name==null;return e=_t(e,a),o&&delete e.name,e}else return e})}Ma({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var a=t.getSeriesByName(n.name)[0];if(!a)e.push(W({type:"scatter"},n));else{var i=a.get("data");e.push({name:n.name,data:qlt(n.data,i)})}}),t.mergeOption(_t({series:e},r.newOption))});const jlt=Klt;var Kz=M,qz=Et();function Jlt(r,t){var e=kw(r);Kz(t,function(n,a){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();e[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),e.push(t)}function Qlt(r){var t=kw(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return Kz(e,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){n[i]=a;break}}),n}function tut(r){qz(r).snapshots=null}function eut(r){return kw(r).length}function kw(r){var t=qz(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var rut=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){tut(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}(Ga);Ma({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const nut=rut;var aut=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],iut=function(){function r(t,e,n){var a=this;this._targetInfoList=[];var i=jz(e,t);M(out,function(o,s){(!n||!n.include||Lt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=Nw[n.brushType](0,i,a);n.__rangeOffset={offset:eF[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(a){var i=this.findTargetInfo(a,e);i&&i!==!0&&M(i.coordSyses,function(o){var s=Nw[a.brushType](1,o,a.range,!0);n(a,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var a=this.findTargetInfo(n,e);if(n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=Nw[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?eF[n.brushType](i.values,o.offset,sut(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return K(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:zB(a),isTargetByCursor:GB(a,t,n.coordSysModel),getLinearBrushOtherExtent:FB(a)}})},r.prototype.controlSeries=function(t,e,n){var a=this.findTargetInfo(t,n);return a===!0||a&&Lt(a.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,a=jz(e,t),i=0;i<n.length;i++){var o=n[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Jz.length;l++)if(Jz[l](a,o))return o}return!0},r}();function Ow(r){return r[0]>r[1]&&r.reverse(),r}function jz(r,t){return ru(r,t,{includeMainTypes:aut})}var out={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=ot(),o={},s={};!e&&!n&&!a||(M(e,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];M(u.getCartesians(),function(c,v){(Lt(e,c.getAxis("x").model)>=0||Lt(n,c.getAxis("y").model)>=0)&&f.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:Qz.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.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:Qz.geo})})}},Jz=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&e&&(a=e.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Qz={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,t=VO(null,r);return RA(t,t,Ig(null,r)),t}},Nw={lineX:Bt(tF,0),lineY:Bt(tF,1),rect:function(r,t,e,n){var a=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),i=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Ow([a[0],i[0]]),Ow([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var a=[ar(),ar()],i=K(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function tF(r,t,e,n){var a=e.getAxis(["x","y"][r]),i=Ow(K([0,1],function(s){return t?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var eF={lineX:Bt(rF,0),lineY:Bt(rF,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 K(r,function(n,a){return[n[0]-e[0]*t[a][0],n[1]-e[1]*t[a][1]]})}};function rF(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function sut(r,t){var e=nF(r),n=nF(t),a=[e[0]/n[0],e[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function nF(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Bw=iut;var Vw=M,lut=IU("toolbox-dataZoom_"),uut={x:"width",y:"height"},fut=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a,i){this._brushController||(this._brushController=new Eb(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),hut(e,n,this,i,a),vut(e,n)},t.prototype.onclick=function(e,n,a){cut[a].call(this)},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 a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Bw(zw(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var v=c.master.getRect().clone(),h=u.brushType;h==="rect"?(s("x",c,v,f[0]),s("y",c,v,f[1])):s({lineX:"x",lineY:"y"}[h],c,v,f)}}),Jlt(i,a),this._dispatchZoomAction(a);function s(u,f,c,v){var h=f.getAxis(u),d=h.model,p=l(u,d,i),g=p.findRepresentativeAxisProxy(d).getMinMaxSpan(),y=h.scale.getExtent();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(v=wo(0,v.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=G0(y,c[uut[u]],.5);p&&(a[p.id]={dataZoomId:p.id,startValue:isFinite(m)?Zt(v[0],m):v[0],endValue:isFinite(m)?Zt(v[1],m):v[1]})}function l(u,f,c){var v;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(v=h)}),v}},t.prototype._dispatchZoomAction=function(e){var n=[];Vw(e,function(a,i){n.push(dt(a))}),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:F.color.backgroundTint}};return n},t}(Ga),cut={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(Qlt(this.ecModel))}};function zw(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 vut(r,t){r.setIconStatus("back",eut(t)>1?"emphasis":"normal")}function hut(r,t,e,n,a){var i=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Bw(zw(r),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}PY("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),a=[],i=zw(n),o=ru(r,i);Vw(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Vw(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:lut+u+c};v[f]=c,a.push(v)}return a});const dut=fut;function put(r){r.registerComponentModel(Elt),r.registerComponentView(Olt),uf("saveAsImage",Blt),uf("magicType",Flt),uf("dataView",jlt),uf("dataZoom",dut),uf("restore",nut),Nt(Llt)}var gut=function(r){V(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:F.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:F.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:F.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:F.color.tertiary,fontSize:14}},t}(Yt);const yut=gut;function aF(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function iF(r){if(te.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var oF=iF(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),mut=iF(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function sF(r,t){if(!r)return t;t=vL(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function _ut(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var Sut=sF(mut,"transition"),Fw=sF(oF,"transform"),xut="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(te.transform3dSupported?"will-change:transform;":"");function but(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function wut(r,t,e){if(!et(e)||e==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");t=As(t);var i=but(e),o=Math.max(Math.round(a)*1.5,6),s="",l=Fw+":",u;Lt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+a,v=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*a)/2+Math.SQRT2*a-(v-c)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function Tut(r,t,e){var n="cubic-bezier(0.23,1,0.32,1)",a="",i="";return e&&(a=" "+r/2+"s "+n,i="opacity"+a+",visibility"+a),t||(a=" "+r+"s "+n,i+=(i.length?",":"")+(te.transformSupported?""+Fw+a:",left"+a+",top"+a)),Sut+":"+i}function lF(r,t,e){var n=r.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!te.transformSupported)return e?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=te.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return e?"top:0;left:0;"+Fw+":"+o+";":[["top",0],["left",0],[oF,o]]}function Cut(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var a=ut(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+a+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),M(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function Aut(r,t,e,n){var a=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),v=PP(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+h),t&&i>0&&a.push(Tut(i,e,n)),o&&a.push("background-color:"+o),M(["width","color","radius"],function(d){var p="border-"+d,g=vL(p),y=r.get(g);y!=null&&a.push(p+":"+y+(d==="color"?"":"px"))}),a.push(Cut(c)),v!=null&&a.push("padding:"+mc(v).join("px ")+"px"),a.join(";")+";"}function uF(r,t,e,n,a){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&U$(r,o,e,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Mut=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,te.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=e.appendTo,o=i&&(et(i)?document.querySelector(i):zl(i)?i:yt(i)&&i(t.getDom()));uF(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();pn(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=_ut(e,"position"),a=e.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=xut+Aut(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+lF(i[0],i[1],!0)+("border-color:"+As(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(et(i)&&n.get("trigger")==="item"&&!aF(n)&&(s=wut(n,a,i)),et(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)zl(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(uF(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var a=this.el.style,i=lF(n[0],n[1]);M(i,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",te.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;W$(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},r}();const Dut=Mut;var Iut=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),cF(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,a,i){var o=this;xt(t)&&ee(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Xt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:PP(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=fF(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var a=this._styleCoord;cF(a,this._zr,t,e),t=a[0],e=a[1];var i=n.style,o=Lo(i.borderWidth||0),s=fF(i);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Lo(r){return Math.max(0,r)}function fF(r){var t=Lo(r.shadowBlur||0),e=Lo(r.shadowOffsetX||0),n=Lo(r.shadowOffsetY||0);return{left:Lo(t-e),right:Lo(t+e),top:Lo(t-n),bottom:Lo(t+n)}}function cF(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const Lut=Iut;var Put=new Ft({shape:{x:-1,y:-1,width:2,height:2}}),Eut=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(te.node||!n.getDom())){var a=e.getComponent("tooltip"),i=this._renderMode=NU(a.get("renderMode"));this._tooltipContent=i==="richText"?new Lut(n):new Dut(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(e,n,a){if(!(te.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Au(this,"_updatePosition",50,"fixRate"):Dc(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");qV("itemTooltip",this._api,it(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,a=this._api,i=e.get("triggerOn");if(e.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(e,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,a,i){if(!(i.from===this.uid||te.node||!a.getDom())){var o=vF(i,a);this._ticket="";var s=i.dataByCoordSys,l=Nut(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=Put;f.x=i.x,f.y=i.y,f.update(),Ct(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,a,i))return;var c=jV(i,n),v=c.point[0],h=c.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(vF(i,a))},t.prototype._manuallyAxisShowTip=function(e,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),c=Hv([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,n){var a=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(a){var s=Ct(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Bs(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(Ct(f).dataIndex!=null?l=f:Ct(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var a=e.get("showDelay");n=it(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(e,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Hv([n.tooltipOption],i),l=this._renderMode,u=[],f=ke("section",{blocks:[],noHeader:!0}),c=[],v=new I1;M(e,function(m){M(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,b=S.axis,w=b.scale.parse(x);if(!(!S||x==null)){var C=UV(x,b,a,_.seriesDataIndices,_.valueLabelOpt),T=ke("section",{header:C,noHeader:!hn(C),sortBlocks:!0,blocks:[]});f.blocks.push(T),M(_.seriesDataIndices,function(D){var A=a.getSeriesByIndex(D.seriesIndex),L=D.dataIndexInside,I=A.getDataParams(L);if(!(I.dataIndex<0)){I.axisDim=_.axisDim,I.axisIndex=_.axisIndex,I.axisType=_.axisType,I.axisId=_.axisId,I.axisValue=Wp(S.axis,{value:w}),I.axisValueLabel=C,I.marker=v.makeTooltipMarker("item",As(I.color),l);var P=uP(A.formatTooltip(L,!0,null)),R=P.frag;if(R){var E=Hv([A],i).get("valueFormatter");T.blocks.push(E?W({valueFormatter:E},R):R)}P.text&&c.push(P.text),u.push(I)}})}})}),f.blocks.reverse(),c.reverse();var h=n.position,d=s.get("order"),p=DP(f,v,l,d,a.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
77
+
78
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(e,n,a){var i=this._ecModel,o=Ct(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=e.positionDefault,p=Hv([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new I1;y.marker=m.makeTooltipMarker("item",As(y.color),h);var _=uP(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?DP(x?W({valueFormatter:x},b):b,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,a){var i=this._renderMode==="html",o=Ct(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(et(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=dt(l),l.content=_r(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=e.positionDefault,d=Hv(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new I1;this._showOrMove(d,function(){var m=dt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,a,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=n,d=this._getNearestPoint([o,s],a,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(et(v)){var g=e.ecModel.get("useUTC"),y=Y(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=ap(y.axisValue,h,g)),h=dL(h,a,!0)}else if(yt(v)){var _=it(function(S,x){S===this._ticket&&(c.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,c,a,u))},this);this._ticket=i,h=v(a,i,_)}else h=v;c.setContent(h,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,a,u)}},t.prototype._getNearestPoint=function(e,n,a,i,o){if(a==="axis"||Y(n))return{color:i||o};if(!Y(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var c=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),yt(n)&&(n=n([a,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),Y(n))a=nt(n[0],u),i=nt(n[1],f);else if(xt(n)){var p=n;p.width=c[0],p.height=c[1];var g=ye(p,{width:u,height:f});a=g.x,i=g.y,v=null,h=null}else if(et(n)&&l){var y=Out(n,d,c,e.get("borderWidth"));a=y[0],i=y[1]}else{var y=Rut(a,i,o,u,f,v?null:20,h?null:20);a=y[0],i=y[1]}if(v&&(a-=hF(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=hF(h)?c[1]/2:h==="bottom"?c[1]:0),aF(e)){var y=kut(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===e.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&M(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){te.node||!n.getDom()||(Dc(this,"_updatePosition"),this._tooltipContent.dispose(),dw("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t}(be);function Hv(r,t,e){var n=t.ecModel,a;e?(a=new qt(e,n,n),a=new qt(t.option,a,n)):a=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof qt&&(o=o.get("tooltip",!0)),et(o)&&(o={formatter:o}),o&&(a=new qt(o,a,n)))}return a}function vF(r,t){return r.dispatchAction||it(t.dispatchAction,t)}function Rut(r,t,e,n,a,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[r,t]}function kut(r,t,e,n,a){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,a)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function Out(r,t,e,n){var a=e[0],i=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-a/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+f+o;break;case"left":s=t.x-a-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function hF(r){return r==="center"||r==="middle"}function Nut(r,t,e){var n=X0(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=nu(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Ct(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const But=Eut;function Vut(r){Nt(Vv),r.registerComponentModel(yut),r.registerComponentView(But),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Te),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Te)}var zut=["rect","polygon","keep","clear"];function Fut(r,t){var e=ue(r?r.brush:[]);if(e.length){var n=[];M(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;Y(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),yd(s,function(l){return l+""},null),t&&!s.length&&s.push.apply(s,zut)}}var dF=M;function pF(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Gw(r,t,e){var n={};return dF(t,function(i){var o=n[i]=a();dF(r[i],function(s,l){if(lr.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new lr(u),l==="opacity"&&(u=dt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new lr(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function gF(r,t,e){var n;M(e,function(a){t.hasOwnProperty(a)&&pF(t[a])&&(n=!0)}),n&&M(e,function(a){t.hasOwnProperty(a)&&pF(t[a])?r[a]=dt(t[a]):delete r[a]})}function Gut(r,t,e,n,a,i){var o={};M(r,function(c){var v=lr.prepareVisualTypes(t[c]);o[c]=v});var s;function l(c){return O1(e,s,c)}function u(c,v){JP(e,s,c,v)}i==null?e.each(f):e.each([i],f);function f(c,v){s=i==null?c:v;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=n.call(a,c),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(c,l,u)}}}function Hut(r,t,e,n){var a={};return M(r,function(i){var o=lr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(x){return O1(s,c,x)}function f(x,b){JP(s,c,x,b)}for(var c,v=s.getStore();(c=o.next())!=null;){var h=s.getRawDataItem(c);if(!(h&&h.visualMap===!1))for(var d=n!=null?v.get(l,c):c,p=e(d),g=t[p],y=a[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function $ut(r){var t=r.brushType,e={point:function(n){return yF[t].point(n,e,r)},rect:function(n){return yF[t].rect(n,e,r)}};return e}var yF={lineX:mF(0),lineY:mF(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&Zs(e.range,r[0],r[1])},rect:function(r,t,e){var n=e.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Zs(n,a,i)||Zs(n,a+o,i)||Zs(n,a,i+s)||Zs(n,a+o,i+s)||Mt.create(r).contain(l[0],l[1])||hc(a,i,a+o,i,n)||hc(a,i,a,i+s,n)||hc(a+o,i,a+o,i+s,n)||hc(a,i+s,a+o,i+s,n))return!0}}};function mF(r){var t=["x","y"],e=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return $v(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[t[r]],n[t[r]]+n[e[r]]];return s[1]<s[0]&&s.reverse(),$v(s[0],o)||$v(s[1],o)||$v(o[0],s)||$v(o[1],s)}}}}function $v(r,t){return t[0]<=r&&r<=t[1]}var _F=["inBrush","outOfBrush"],Hw="__ecBrushSelect",$w="__ecInBrushSelectEvent";function SF(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new Bw(t.option,r);e.setInputRanges(t.areas,r)})}var Uut=tc(Wut);function Wut(r,t,e){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),SF(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:dt(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],v=[],h=[],d=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=K(o.areas,function(x){var b=Kut[x.brushType],w=_t({boundingRect:b?b(x):void 0},x);return w.selectors=$ut(w),w}),g=Gw(o.option,_F,function(x){x.mappingMethod="fixed"});Y(f)&&M(f,function(x){c[x]=1});function y(x){return f==="all"||!!c[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=h[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(C,T){C==="active"&&(v[T]=1)})}function S(x,b,w){if(!(!x.brushSelector||Zut(o,b))&&(M(p,function(T){o.brushTargetManager.controlSeries(T,x,r)&&w.push(T),d=d||m(w)}),y(b)&&m(w))){var C=x.getData();C.each(function(T){xF(x,w,C,T)&&(v[T]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var C=h[b],T=x.getData(),D=y(b)?function(A){return v[A]?(w.dataIndex.push(T.getRawIndex(A)),"inBrush"):"outOfBrush"}:function(A){return xF(x,C,T,A)?(w.dataIndex.push(T.getRawIndex(A)),"inBrush"):"outOfBrush"};(y(b)?d:m(C))&&Gut(_F,g,T,D)})}),Yut(t,a,i,n,e)}function Yut(r,t,e,n,a){if(a){var i=r.getZr();if(!i[$w]){i[Hw]||(i[Hw]=Xut);var o=Au(i,Hw,e,t);o(r,n)}}}function Xut(r,t){if(!r.isDisposed()){var e=r.getZr();e[$w]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[$w]=!1}}function xF(r,t,e,n){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(r.brushSelector(n,e,o.selectors,o))return!0}}function Zut(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(Y(e)?Lt(e,t)<0:t!==e)}var Kut={rect:function(r){return bF(r.range)},polygon:function(r){for(var t,e=r.range,n=0,a=e.length;n<a;n++){t=t||[ar(),ar()];var i=e[n];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&bF(t)}};function bF(r){return new Mt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var qut=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n,this.model,(this._brushController=new Eb(n.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(e,n,a,i){this.model=e,this._updateController(e,n,a,i)},t.prototype.updateTransform=function(e,n,a,i){SF(n),this._updateController(e,n,a,i)},t.prototype.updateVisual=function(e,n,a,i){this.updateTransform(e,n,a,i)},t.prototype.updateView=function(e,n,a,i){this._updateController(e,n,a,i)},t.prototype._updateController=function(e,n,a,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(a)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:dt(a),$from:n}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:dt(a),$from:n})},t.type="brush",t}(be);const jut=qut;var Jut=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&gF(a,e,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=K(e,function(n){return wF(this.option,n)},this))},t.prototype.setBrushOption=function(e){this.brushOption=wF(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:F.color.backgroundTint,borderColor:F.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:F.color.disabled},t}(Yt);function wF(r,t){return Rt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new qt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Qut=Jut;var tft=["rect","polygon","lineX","lineY","keep","clear"],eft=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,n,a){this.render(e,n,a)},t.prototype.getIcons=function(){var e=this.model,n=e.get("icon",!0),a={};return M(e.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},t.prototype.onclick=function(e,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var n={show:!0,type:tft.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Ga);const rft=eft;function nft(r){r.registerComponentView(jut),r.registerComponentModel(Qut),r.registerPreprocessor(Fut),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Uut),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Te),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Te),uf("brush",rft)}var aft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:F.size.m,backgroundColor:F.color.transparent,borderColor:F.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:F.color.primary},subtextStyle:{fontSize:12,color:F.color.quaternary}},t}(Yt),ift=function(r){V(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,a){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=ut(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Xt({style:ce(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),v=e.get("subtext"),h=new Xt({style:ce(s,{text:v,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){ip(d,"_"+e.get("target"))}),p&&h.on("click",function(){ip(p,"_"+e.get("subtarget"))}),Ct(f).eventData=Ct(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),v&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=We(e,a),S=ye(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var C=new Ft({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(be);function oft(r){r.registerComponentModel(aft),r.registerComponentView(ift)}var sft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var n=this._data.count();this.option.loop?e=(e%n+n)%n:(e>=n&&(e=n-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,n=e.data||[],a=e.axisType,i=this._names=[],o;a==="category"?(o=[],M(n,function(u,f){var c=Fe(eu(u),""),v;xt(u)?(v=dt(u),v.value=f):v=f,o.push(v),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new zr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:F.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:F.color.secondary},data:[]},t}(Yt);const TF=sft;var CF=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=uo(TF.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:F.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:F.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:F.color.tertiary},itemStyle:{color:F.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:F.color.accent50,borderColor:F.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:F.color.accent50,borderColor:F.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:F.color.accent60},itemStyle:{color:F.color.accent60,borderColor:F.color.accent60},controlStyle:{color:F.color.accent70,borderColor:F.color.accent70}},progress:{lineStyle:{color:F.color.accent30},itemStyle:{color:F.color.accent40}},data:[]}),t}(TF);ze(CF,hp.prototype);const lft=CF;var uft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(be);const fft=uft;var cft=function(r){V(t,r);function t(e,n,a,i){var o=r.call(this,e,n,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(qn);const vft=cft;var Uw=Math.PI,AF=Et(),hft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){this.api=n},t.prototype.render=function(e,n,a){if(this.model=e,this.api=a,this.ecModel=n,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ke("nameValue",{noName:!0,value:f})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,n){var a=e.get(["label","position"]),i=e.get("orient"),o=dft(e,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":et(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Uw/2},c=i==="vertical"?o.height:o.width,v=e.getModel("controlStyle"),h=v.get("show",!0),d=h?v.get("itemSize"):0,p=h?v.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Uw/180;var m,_,S,x=v.get("position",!0),b=h&&v.get("showPlayBtn",!0),w=h&&v.get("showPrevBtn",!0),C=h&&v.get("showNextBtn",!0),T=0,D=c;x==="left"||x==="bottom"?(b&&(m=[0,0],T+=g),w&&(_=[T,0],T+=g),C&&(S=[D-d,0],D-=g)):(b&&(m=[D-d,0],D-=g),w&&(_=[0,0],T+=g),C&&(S=[D-d,0],D-=g));var A=[T,D];return e.get("inverse")&&A.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:A,controlSize:d,controlGap:p}},t.prototype._position=function(e,n){var a=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Se(),l=o.x,u=o.y+o.height;fa(s,s,[-l,-u]),Ui(s,s,-Uw/2),fa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),v=m(i.getBoundingRect()),h=[a.x,a.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||et(p)){var g=p==="+"?0:1;_(h,c,f,1,g),_(d,v,f,1,1-g)}else{var g=p>=0?0:1;_(h,c,f,1,g),d[1]=h[1]+p}a.setPosition(h),i.setPosition(d),a.rotation=i.rotation=e.rotation,y(a),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,C){S[w]+=b[w][C]-x[w][C]}},t.prototype._createAxis=function(e,n){var a=n.getData(),i=n.get("axisType")||n.get("type");i!=="category"&&i!=="time"&&(i="value");var o=Wc(n,i,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),RE(o,{fixMinMax:[!0,!0]});var l=new vft("value",o,e.axisExtent,i);return l.model=n,l},t.prototype._createGroup=function(e){var n=this[e]=new mt;return this.group.add(n),n},t.prototype._renderAxisLine=function(e,n,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new $e({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:W({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new $e({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_t({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(e,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),v=c.getModel("itemStyle"),h=c.getModel(["emphasis","itemStyle"]),d=c.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:it(o._changeTimeline,o,u.value)},g=MF(c,v,n,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),gs(g);var y=Ct(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,n,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(f){if(!f.tick.offInterval){var c=f.tick.value,v=l.getItemModel(c),h=v.getModel("label"),d=v.getModel(["emphasis","label"]),p=v.getModel(["progress","label"]),g=a.dataToCoord(c),y=new Xt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:it(o._changeTimeline,o,c),silent:!1,style:ce(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=ce(d),y.ensureState("progress").style=ce(p),n.add(y),gs(y),AF(y).dataIndex=c,o._tickLabels.push(y)}})}},t.prototype._renderControl=function(e,n,a,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);v(e.nextBtnPosition,"next",it(this._changeTimeline,this,c?"-":"+")),v(e.prevBtnPosition,"prev",it(this._changeTimeline,this,c?"+":"-")),v(e.playPosition,f?"stop":"play",it(this._handlePlayClick,this,!f),!0);function v(h,d,p,g){if(h){var y=ga(ut(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=pft(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,n.add(_),gs(_)}}},t.prototype._renderCurrentPointer=function(e,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=it(u._handlePointerDrag,u),c.ondragend=it(u._handlePointerDragend,u),DF(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){DF(c,u._progressLine,s,a,i)}};this._currentPointer=MF(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,n){var a=this._toAxisCoord(e)[0],i=this._axis,o=nr(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=e.model;e._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var n=this._mainGroup.getLocalTransform();return Xn(e,n,!0)},t.prototype._findNearestTick=function(e){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<a&&(a=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var n=this.model.getCurrentIndex();e==="+"?e=n+1:e==="-"&&(e=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<e);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",AF(a[i]).dataIndex<=e)},t.type="timeline.slider",t}(fft);function dft(r,t){return ye(r.getBoxLayoutParams(),We(r,t).refContainer,r.get("padding"))}function pft(r,t,e,n){var a=n.style,i=vc(r.get(["controlStyle",t]),n||{},new Mt(e[0],e[1],e[2],e[3]));return a&&i.setStyle(a),i}function MF(r,t,e,n,a,i){var o=t.get("color");if(a)a.setColor(o),e.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=Oe(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),e.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),n=Rt({rectHover:!0,z2:100},n,!0);var u=Iu(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Vs(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function DF(r,t,e,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const gft=hft;function yft(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var a=e.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),_t({currentIndex:a.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function mft(r){var t=r&&r.timeline;Y(t)||(t=t?[t]:[]),M(t,function(e){e&&_ft(e)})}function _ft(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),IF(r),Tl(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});Tl(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!Tl(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}M(r.data||[],function(a){xt(a)&&!Y(a)&&(!Tl(a,"value")&&Tl(a,"name")&&(a.value=a.name),IF(a))})}function IF(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};M(n,function(o,s){!i[s]&&!Tl(a,s)&&(a[s]=o)}),e.label&&!Tl(n,"emphasis")&&(n.emphasis=e.label,delete e.label)}function Tl(r,t){return r.hasOwnProperty(t)}function Sft(r){r.registerComponentModel(lft),r.registerComponentView(gft),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),yft(r),r.registerPreprocessor(mft)}function Ww(r,t){if(!r)return!1;for(var e=Y(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function by(r){es(r,"label",["show"])}var wy=Et(),LF=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),this._mergeOption(e,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(te.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=wy(s)[o];if(!l||!l.data){wy(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&by(l),M(l.data,function(f){f instanceof Array?(by(f[0]),by(f[1])):by(f)}),u=this.createMarkerModelFromSeries(l,this,n),W(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),wy(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,a){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return ke("section",{header:this.name,blocks:[ke("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,n){var a=hp.prototype.getDataParams.call(this,e,n),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(e,n){return wy(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Yt);ze(LF,hp.prototype);const Mi=LF;var xft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Mi);const bft=xft;function Yw(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function wft(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Ty(r,t,e,n,a,i,o){var s=[],l=po(t,a),u=l?t.getCalculationInfo("stackResultDimension"):a,f=Ay(t,u,r),c=t.hostModel,v=c.indicesOfNearest(e,u,f)[0];s[i]=t.get(n,v),s[o]=t.get(u,v);var h=t.get(a,v),d=ri(t.get(a,v));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var Cy={min:Bt(Ty,"min"),max:Bt(Ty,"max"),average:Bt(Ty,"average"),median:Bt(Ty,"median")};function Uv(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!wft(t)&&!Y(t.coord)&&Y(a)){var i=PF(t,e,n,r);if(t=dt(t),t.type&&Cy[t.type]&&i.baseAxis&&i.valueAxis){var o=Lt(a,i.baseAxis.dim),s=Lt(a,i.valueAxis.dim),l=Cy[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Y(a)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&Cy[t.type]){var f=n.getOtherAxis(u);f&&(t.value=Ay(e,e.mapDimension(f.dim),t.type))}}else for(var c=t.coord,v=0;v<2;v++)Cy[c[v]]&&(c[v]=Ay(e,e.mapDimension(a[v]),c[v]));return t}}function PF(r,t,e,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,a.valueAxis=e.getAxis(Tft(n,a.valueDataDim)),a.baseAxis=e.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=e.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function Tft(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Wv(r,t){return r&&r.containData&&t.coord&&!Yw(t)?r.containData(t.coord):!0}function Cft(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Yw(t)&&!Yw(e)?r.containZone(t.coord,e.coord):!0}function EF(r,t){return r?function(e,n,a,i){var o=i<2?e.coord&&e.coord[i]:e.value;return co(o,t[i])}:function(e,n,a,i){return co(e.value,t[i])}}function Ay(r,t,e){if(e==="average"){var n=0,a=0;return r.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Xw=Et(),Aft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ot()},t.prototype.render=function(e,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Xw(s).keep=!1}),n.eachSeries(function(s){var l=Mi.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Xw(s).keep&&i.group.remove(s.group)}),Mft(n,o,this.type)},t.prototype.markKeep=function(e){Xw(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var a=this;M(e,function(i){var o=Mi.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?jD(l):T_(l))})}})},t.type="marker",t}(be);function Mft(r,t,e){r.eachSeries(function(n){var a=Mi.getMarkerModelFromSeries(n,e),i=t.get(n.id);if(a&&i&&i.group){var o=bs(a),s=o.z,l=o.zlevel;Zd(i.group,s,l)}})}const Zw=Aft;function RF(r,t,e){var n=t.coordinateSystem,a=e.getWidth(),i=e.getHeight(),o=n&&n.getArea&&n.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,c=u?o?o.height:0:i,v=u&&o?o.x:0,h=u&&o?o.y:0,d,p=nt(l.get("x"),f)+v,g=nt(l.get("y"),c)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(n){var y=r.get(n.dimensions[0],s),m=r.get(n.dimensions[1],s);d=n.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var Dft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=Mi.getMarkerModelFromSeries(i,"markPoint");o&&(RF(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new iv),c=Ift(o,e,n);n.setData(c),RF(n.getData(),e,i),c.each(function(v){var h=c.getItemModel(v),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(yt(d)||yt(p)||yt(g)||yt(y)){var _=n.getRawValue(v),S=n.getDataParams(v);yt(d)&&(d=d(_,S)),yt(p)&&(p=p(_,S)),yt(g)&&(g=g(_,S)),yt(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Ec(l,"color");x.fill||(x.fill=w),c.setItemVisual(v,{z2:ut(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(v){v.traverse(function(h){Ct(h).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markPoint",t}(Zw);function Ift(r,t,e){var n;r?n=K(r&&r.dimensions,function(s){var l=t.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return W(W({},u),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new zr(n,e),i=K(e.get("data"),Bt(Uv,t));r&&(i=ne(i,Bt(Wv,r)));var o=EF(!!r,n);return a.initData(i,null,o),a}const Lft=Dft;function Pft(r){r.registerComponentModel(bft),r.registerComponentView(Lft),r.registerPreprocessor(function(t){Ww(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Eft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Mi);const Rft=Eft;var My=Et(),kft=function(r,t,e,n){var a=r.getData(),i;if(Y(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Rr(n.yAxis,n.xAxis);else{var u=PF(n,a,t,r);s=u.valueAxis;var f=tE(a,u.valueDataDim);l=Ay(a,f,o)}var c=s.dim==="x"?0:1,v=1-c,h=dt(n),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&Wt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[c]=d.coord[c]=l,i=[h,d,{type:o,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[Uv(r,i[0]),Uv(r,i[1]),W({},i[2])];return g[2].type=g[2].type||null,Rt(g[2],g[0]),Rt(g[2],g[1]),g};function Dy(r){return!isNaN(r)&&!isFinite(r)}function kF(r,t,e,n){var a=1-r,i=n.dimensions[r];return Dy(t[a])&&Dy(e[a])&&t[r]===e[r]&&n.getAxis(i).containData(t[r])}function Oft(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(kF(1,e,n,r)||kF(0,e,n,r)))return!0}return Wv(r,t[0])&&Wv(r,t[1])}function Kw(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=nt(o.get("x"),a.getWidth()),u=nt(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,c=r.get(f[0],t),v=r.get(f[1],t);s=i.dataToPoint([c,v])}if(el(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Dy(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Dy(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var Nft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=Mi.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=My(o).from,u=My(o).to;l.each(function(f){Kw(l,f,!0,i,a),Kw(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new cb);this.group.add(f.group);var c=Bft(o,e,n),v=c.from,h=c.to,d=c.line;My(n).from=v,My(n).to=h,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");Y(p)||(p=[p,p]),Y(g)||(g=[g,g]),Y(y)||(y=[y,y]),Y(m)||(m=[m,m]),c.from.each(function(S){_(v,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[v.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.stroke=v.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:ut(w,0),fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:b})}),f.updateData(d),c.line.eachItemGraphicEl(function(S){Ct(S).dataModel=n,S.traverse(function(x){Ct(x).dataModel=n})});function _(S,x,b){var w=S.getItemModel(x);Kw(S,x,b,e,i);var C=w.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=Ec(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ut(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:ut(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:ut(w.get("symbolSize"),g[b?0:1]),symbol:ut(w.get("symbol",!0),p[b?0:1]),style:C})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(Zw);function Bft(r,t,e){var n;r?n=K(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return W(W({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new zr(n,e),i=new zr(n,e),o=new zr([],e),s=K(e.get("data"),Bt(kft,t,r,e));r&&(s=ne(s,Bt(Oft,r)));var l=EF(!!r,n);return a.initData(K(s,function(u){return u[0]}),null,l),i.initData(K(s,function(u){return u[1]}),null,l),o.initData(K(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const Vft=Nft;function zft(r){r.registerComponentModel(Rft),r.registerComponentView(Vft),r.registerPreprocessor(function(t){Ww(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Fft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,a){return new t(e,n,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Mi);const Gft=Fft;var Iy=Et(),Hft=function(r,t,e,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Uv(r,a),s=Uv(r,i),l=o.coord,u=s.coord;l[0]=Rr(l[0],-1/0),l[1]=Rr(l[1],-1/0),u[0]=Rr(u[0],1/0),u[1]=Rr(u[1],1/0);var f=Nm([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function Ly(r){return!isNaN(r)&&!isFinite(r)}function OF(r,t,e,n){var a=1-r;return Ly(t[a])&&Ly(e[a])}function $ft(r,t){var e=t.coord[0],n=t.coord[1],a={coord:e,x:t.x0,y:t.y0},i={coord:n,x:t.x1,y:t.y1};return el(r,"cartesian2d")?e&&n&&(OF(1,e,n)||OF(0,e,n))?!0:Cft(r,a,i):Wv(r,a)||Wv(r,i)}function NF(r,t,e,n,a){var i=n.coordinateSystem,o=r.getItemModel(t),s,l=nt(o.get(e[0]),a.getWidth()),u=nt(o.get(e[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],t),c=r.getValues(["x1","y1"],t),v=i.clampData(f),h=i.clampData(c),d=[];e[0]==="x0"?d[0]=v[0]>h[0]?c[0]:f[0]:d[0]=v[0]>h[0]?f[0]:c[0],e[1]==="y0"?d[1]=v[1]>h[1]?c[1]:f[1]:d[1]=v[1]>h[1]?f[1]:c[1],s=n.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(el(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Ly(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Ly(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var BF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Uft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,a){n.eachSeries(function(i){var o=Mi.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=K(BF,function(c){return NF(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,n,a,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new mt});this.group.add(f.group),this.markKeep(f);var c=Wft(o,e,n);n.setData(c),c.each(function(v){var h=K(BF,function(D){return NF(c,v,D,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(c.get("x0",v)),d.parse(c.get("x1",v))],_=[p.parse(c.get("y0",v)),p.parse(c.get("y1",v))];nr(m),nr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;c.setItemLayout(v,{points:h,allClipped:x});var b=c.getItemModel(v),w=b.getModel("itemStyle").getItemStyle(),C=b.get("z2"),T=Ec(l,"color");w.fill||(w.fill=T,et(w.fill)&&(w.fill=Xh(w.fill,.4))),w.stroke||(w.stroke=T),c.setItemVisual(v,"style",w),c.setItemVisual(v,"z2",ut(C,0))}),c.diff(Iy(f).data).add(function(v){var h=c.getItemLayout(v),d=c.getItemVisual(v,"z2");if(!h.allClipped){var p=new Br({z2:ut(d,0),shape:{points:h.points}});c.setItemGraphicEl(v,p),f.group.add(p)}}).update(function(v,h){var d=Iy(f).data.getItemGraphicEl(h),p=c.getItemLayout(v),g=c.getItemVisual(v,"z2");p.allClipped?d&&f.group.remove(d):(d?Kt(d,{z2:ut(g,0),shape:{points:p.points}},n,v):d=new Br({shape:{points:p.points}}),c.setItemGraphicEl(v,d),f.group.add(d))}).remove(function(v){var h=Iy(f).data.getItemGraphicEl(v);f.group.remove(h)}).execute(),c.eachItemGraphicEl(function(v,h){var d=c.getItemModel(h),p=c.getItemVisual(h,"style");v.useStyle(c.getItemVisual(h,"style")),qe(v,Ue(d),{labelFetcher:n,labelDataIndex:h,defaultText:c.getName(h)||"",inheritColor:et(p.fill)?Xh(p.fill,1):F.color.neutral99}),He(v,d),ge(v,null,null,d.get(["emphasis","disabled"])),Ct(v).dataModel=n}),Iy(f).data=c,f.group.silent=n.get("silent")||e.get("silent")},t.type="markArea",t}(Zw);function Wft(r,t,e){var n,a,i=["x0","y0","x1","y1"];if(r){var o=K(r&&r.dimensions,function(u){var f=t.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return W(W({},c),{name:u,ordinalMeta:null})});a=K(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new zr(a,e)}else a=[{name:"value",type:"float"}],n=new zr(a,e);var s=K(e.get("data"),Bt(Hft,t,r,e));r&&(s=ne(s,Bt($ft,r)));var l=r?function(u,f,c,v){var h=u.coord[Math.floor(v/2)][v%2];return co(h,a[v])}:function(u,f,c,v){return co(u.value,a[v])};return n.initData(s,null,l),n.hasItemOption=!0,n}const Yft=Uft;function Xft(r){r.registerComponentModel(Gft),r.registerComponentView(Yft),r.registerPreprocessor(function(t){Ww(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Zft=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Kft=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,a=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),Y(n)&&M(n,function(i,o){et(i)&&(i={type:i}),n[o]=Rt(i,Zft(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<e.length;a++){var i=e[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],a=[];e.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,v=c.getAllNames();e.isSeriesFiltered(l)||(a=a.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Y0(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=ot(),s=K(i,function(l){return(et(l)||Wt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new qt(l,this,this.ecModel))},this);this._data=ne(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;M(i,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;M(e,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;M(e,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&Lt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:F.size.m,align:"auto",backgroundColor:F.color.transparent,borderColor:F.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:F.color.disabled,inactiveBorderColor:F.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:F.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:F.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:F.color.tertiary,borderWidth:1,borderColor:F.color.border},emphasis:{selectorLabel:{show:!0,color:F.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Yt);const qw=Kft;var cf=Bt,jw=M,Py=mt,qft=function(r){V(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 Py),this.group.add(this._selectorGroup=new Py),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,a,l,s,u);var f=We(e,a).refContainer,c=e.getBoxLayoutParams(),v=e.get("padding"),h=ye(c,f,v),d=this.layoutInner(e,o,h,i,l,u),p=ye(_t({width:d.width,height:d.height},c),f,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Wz(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,a,i,o,s,l){var u=this.getContentGroup(),f=ot(),c=n.get("selectedMode"),v=n.get("triggerEvent"),h=[];a.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),jw(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
79
+ `)){var m=new Py;m.newline=!0,u.add(m);return}var _=a.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),C=this._createItem(_,y,p,d,n,e,x,w,b,c,i);C.on("click",cf(VF,y,null,i,h)).on("mouseover",cf(Jw,_.name,null,i,h)).on("mouseout",cf(Qw,_.name,null,i,h)),a.ssr&&C.eachChild(function(T){var D=Ct(T);D.seriesIndex=_.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),v&&C.eachChild(function(T){g.packEventData(T,n,_,p,y)}),f.set(y,!0)}else a.eachRawSeries(function(T){var D=this;if(!f.get(y)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(y))return;var L=A.indexOfName(y),I=A.getItemVisual(L,"style"),P=A.getItemVisual(L,"legendIcon"),R=Kr(I.fill);R&&R[3]===0&&(R[3]=.2,I=W(W({},I),{fill:va(R,"rgba")}));var E=this._createItem(T,y,p,d,n,e,{},I,P,c,i);E.on("click",cf(VF,null,y,i,h)).on("mouseover",cf(Jw,null,y,i,h)).on("mouseout",cf(Qw,null,y,i,h)),a.ssr&&E.eachChild(function(N){var O=Ct(N);O.seriesIndex=T.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),v&&E.eachChild(function(N){D.packEventData(N,n,T,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,i,s,l)},t.prototype.packEventData=function(e,n,a,i,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:i,value:o,seriesIndex:a.seriesIndex};Ct(e).eventData=s},t.prototype._createSelector=function(e,n,a,i,o){var s=this.getSelectorGroup();jw(e,function(u){var f=u.type,c=new Xt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);qe(c,{normal:v,emphasis:h},{defaultText:u.title}),gs(c)})},t.prototype._createItem=function(e,n,a,i,o,s,l,u,f,c,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=jft(f,i,l,u,h,g,v),x=new Py,b=i.getModel("textStyle");if(yt(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(Jft({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,T=s,D=o.get("formatter"),A=n;et(D)&&D?A=D.replace("{name}",n??""):yt(D)&&(A=D(n));var L=g?b.getTextColor():i.get("inactiveColor");x.add(new Xt({style:ce(b,{text:A,x:C,y:p/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var I=new Ft({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&ci({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(R){R.silent=!0}),I.silent=!c,this.getContentGroup().add(x),gs(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ds(e.get("orient"),l,e.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Ds("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(be);function jft(r,t,e,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),jw(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:Eu(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:e).opacity),s(u,n);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Jft(r){var t=r.icon||"roundRect",e=Oe(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=F.color.neutral00,e.style.lineWidth=2),e}function VF(r,t,e,n){Qw(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Jw(r,t,e,n)}function Jw(r,t,e,n){e.usingTHL()||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Qw(r,t,e,n){e.usingTHL()||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}const zF=qft;function Yv(r,t,e){var n=r==="allSelect"||r==="inverseSelect",a={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),FF(s,a),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(a,function(l,u){s[l?"select":"unSelect"](u)}),FF(s,o)}),n?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function FF(r,t){var e=t||{};return M(r.getData(),function(n){var a=n.get("name");if(!(a===`
80
+ `||a==="")){var i=r.isSelected(a);st(e,a)?e[a]=e[a]&&i:e[a]=i}}),e}function Qft(r){r.registerAction("legendToggleSelect","legendselectchanged",Bt(Yv,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Bt(Yv,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Bt(Yv,"inverseSelect")),r.registerAction("legendSelect","legendselected",Bt(Yv,"select")),r.registerAction("legendUnSelect","legendunselected",Bt(Yv,"unSelect"))}var tct=tc(ect);function ect(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function GF(r){r.registerComponentModel(qw),r.registerComponentView(zF),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,tct),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Qft(r)}var rct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,a){var i=Is(e);r.prototype.init.call(this,e,n,a),HF(this,e,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),HF(this,this.option,e)},t.type="legend.scroll",t.defaultOption=uo(qw.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:F.color.accent50,pageIconInactiveColor:F.color.accent10,pageIconSize:15,pageTextStyle:{color:F.color.tertiary},animationDurationUpdate:800}),t}(qw);function HF(r,t,e){var n=r.getOrient(),a=[1,1];a[n.index]=0,Aa(t,e,{type:"box",ignoreSize:!!a})}const nct=rct;var $F=mt,tT=["width","height"],eT=["x","y"],act=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new $F),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new $F)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),v=Y(c)?c:[c,c];d("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new Xt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=vc(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:it(u._pageGo,u,y,n,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,a,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=tT[u],c=eT[u],v=tT[1-u],h=eT[1-u];o&&Ds("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=dt(a);o&&(y[f]=a[f]-p[f]-d);var m=this._layoutContentAndController(e,i,y,u,f,v,h,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,v=this._controllerGroup;Ds(e.get("orient"),f,e.get("itemGap"),i?a.width:null,i?null:a.height),Ds("horizontal",v,e.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=ut(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=a[o],p){var b={x:0,y:0};b[o]=Math.max(a[o]-d[o]-_,0),b[s]=x[s],c.setClipPath(new Ft({shape:b})),c.__rectSize=b[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Kt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,n,a){var i=this._getPageInfo(n)[e];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",v=n[c]!=null,h=a.childOfName(f);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var i=a.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",et(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=tT[o],l=eT[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],v=f.length,h=v?1:0,d={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(n=s)}),n??i},t.type="legend.scroll",t}(zF);const ict=act;function oct(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function sct(r){Nt(GF),r.registerComponentModel(nct),r.registerComponentView(ict),oct(r)}function lct(r){Nt(GF),Nt(sct)}var uct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=uo(Gv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Gv);const fct=uct;var rT=Et();function cct(r,t,e){rT(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=e)})}function vct(r,t){for(var e=rT(r).coordSysRecordMap,n=e.keys(),a=0;a<n.length;a++){var i=n[a],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||UF(e,o))}}}function UF(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function hct(r,t){var e={model:t,containsPoint:Bt(pct,t),dispatchAction:Bt(dct,r),dataZoomInfoMap:null,controller:null},n=e.controller=new ll(r.getZr());return M(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function dct(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function pct(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function gct(r,t,e){var n,a="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,c=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;i[a+c]>i[a+n]&&(n=c),o=o&&f.get("preventDefaultMouseMove",!0),s=ut(f.get("cursorGrab",!0),s),l=ut(f.get("cursorGrabbing",!0),l)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function yct(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var n=rT(e),a=n.coordSysRecordMap||(n.coordSysRecordMap=ot());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=zz(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,hct(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=ot());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){UF(a,i);return}var f=gct(l,i,e);o.enable(f.controlType,f.opt),Au(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var mct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,a){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),cct(a,e,{pan:it(nT.pan,this),zoom:it(nT.zoom,this),scrollMove:it(nT.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vct(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Pw),nT={zoom:function(r,t,e,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(o){var s=aT[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(wo(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:WF(function(r,t,e,n,a,i){var o=aT[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:WF(function(r,t,e,n,a,i){var o=aT[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function WF(r){return function(t,e,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,a);if(wo(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var aT={grid:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,n,a){var i=e.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,n,a){var i=e.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const _ct=mct;function YF(r){Ew(r),r.registerComponentModel(fct),r.registerComponentView(_ct),yct(r)}var Sct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=uo(Gv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:F.color.accent10,borderRadius:0,backgroundColor:F.color.transparent,dataBackground:{lineStyle:{color:F.color.accent30,width:.5},areaStyle:{color:F.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:F.color.accent40,width:.5},areaStyle:{color:F.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:F.color.neutral00,borderColor:F.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:F.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:F.color.tertiary},brushSelect:!0,brushStyle:{color:F.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:F.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Gv);const xct=Sct;var Xv=Ft,bct=1,iT=30,wct=7,Zv="horizontal",XF="vertical",Tct=5,Cct=["line","bar","candlestick","scatter"],Act={easing:"cubicOut",duration:100,delay:0},Mct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(e,n,a,i){if(r.prototype.render.apply(this,arguments),Au(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Dc(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new mt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,a=e.get("brushSelect"),i=a?wct:0,o=We(e,n).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Zv?{right:o.width-s.x-s.width,top:o.height-iT-l-i,width:s.width,height:iT}:{right:l,top:s.y,width:iT,height:s.height},f=Is(e.option);M(["right","top","width","height"],function(v){f[v]==="ph"&&(f[v]=u[v])});var c=ye(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===XF&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Zv&&!o?{scaleY:l?1:-1,scaleX:1}:a===Zv&&o?{scaleY:l?1:-1,scaleX:-1}:a===XF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,c=isNaN(u.y)?0:u.y;e.x=n.x-f,e.y=n.y-c,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=e.get("brushSelect");a.add(new Xv({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Xv({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,a=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(e.thisDim),v=o.getDataExtent(l),h=(v[1]-v[0])*.3;v=[v[0]-h,v[1]+h];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",x=-m,b=Math.round(o.count()/n[0]),w;o.each([e.thisDim,l],function(L,I,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+L-c[0])*_:x+m;var R=I==null||isNaN(I)||I==="",E=R?0:Jt(I,v,d,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([x,0]),y.push([x,0])),R||(g.push([x,E]),y.push([x,E])),w=R}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function T(L){var I=C.getModel(L?"selectedDataBackground":"dataBackground"),P=new mt,R=new Br({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new xr({shape:{points:f},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(R),P.add(E),P}for(var D=0;D<3;D++){var A=T(D===1);this._displayables.sliderGroup.add(A),this._displayables.dataShadowSegs.push(A)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(n!==!0&&Lt(Cct,u.get("type"))<0)){var f=i.getComponent(Io(o),s).axis,c=Dct(o),v,h=u.coordinateSystem;c!=null&&h.getOtherAxis&&(v=h.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:v}}},this)},this),a}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),v=n.filler=new Xv({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Xv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:bct,fill:F.color.transparent}})),M([0,1],function(_){var S=l.get("handleIcon");!bp[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=Oe(S,-1,0,2,2,null,!0);x.attr({cursor:Ict(this._orient),draggable:!0,drift:it(this._onDragMove,this,_),ondragend:it(this._onDragEnd,this),onmouseover:it(this._onOverDataInfoTriggerArea,this,!0),onmouseout:it(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=nt(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),gs(x);var C=l.get("handleColor");C!=null&&(x.style.fill=C),o.add(a[_]=x);var T=l.getModel("textStyle"),D=l.get("handleLabel")||{},A=D.show||!1;e.add(i[_]=new Xt({silent:!0,invisible:!A,style:ce(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=v;if(c){var d=nt(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ft({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=Oe(l.get("moveHandleIcon"),-g/2,-g/2,g,g,F.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=n.moveZone=new Ft({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:it(this._onActualMoveZoneDrift,this),ondragstart:it(this._onActualMoveZoneDragStart,this),ondragend:it(this._onActualMoveZoneDragEnd,this),onmouseover:it(this._onOverDataInfoTriggerArea,this,!0),onmouseout:it(this._onOverDataInfoTriggerArea,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Jt(e[0],[0,100],n,!0),Jt(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];wo(n,i,o,a.get("zoomLock")?"all":e,s.minSpan!=null?Jt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Jt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=nr([Jt(i[0],o,l,!0),Jt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,a=this._handleEnds,i=nr(a.slice()),o=this._size;M([0,1],function(h){var d=n.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],v=c.getClipPath();v||(v=new Ft,c.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,c;if(e){var v={start:f[0],end:f[1]},h=Gz(n,l);if(h){var d=h.calculateDataWindow(v).percentInverted;v={start:d[0],end:d[1]}}c=l.calculateDataWindow(v)}else c=l.getWindow();s=[ZF(n,0,c,u),ZF(n,1,c,u)]}}var p=nr(this._handleEnds.slice());g.call(this,0),g.call(this,1);function g(y){var m=gu(a.handles[y].parent,this.group),_=Yd(y===0?"right":"left",m),S=this._handleWidth/2+Tct,x=Xn([p[y]+(y===0?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===Zv?"middle":_,align:o===Zv?_:"center",text:s[y]})}},t.prototype._onOverDataInfoTriggerArea=function(e){this._isOverDataInfoTriggerArea=e,this._showDataInfo(e)},t.prototype._showDataInfo=function(e){var n=this.dataZoomModel.get("handleLabel")||{},a=n.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onActualMoveZoneDrift=function(e,n,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",e,n,a)},t.prototype._onActualMoveZoneDragStart=function(e){e.target.attr("cursor","grabbing"),this._showDataInfo(!0)},t.prototype._onActualMoveZoneDragEnd=function(e){e.target.attr("cursor","grab"),this._onDragEnd()},t.prototype._onDragMove=function(e,n,a,i){this._dragging=!0,ja(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Xn([n,a],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,a=e.offsetY;this._brushStart=new bt(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();wo(0,l,o,0,u.minSpan!=null?Jt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Jt(u.maxSpan,s,o,!0):null),this._range=nr([Jt(l[0],o,s,!0),Jt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ja(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Xv({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Act:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=zz(this.dataZoomModel).infoList;if(!e&&n.length){var a=n[0].model.coordinateSystem;e=a.getRect&&a.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Pw);function ZF(r,t,e,n){var a=r.get("labelFormatter"),i=r.get("labelPrecision");(i==null||i==="auto")&&(i=e.valuePrecision);var o=e.value[t],s=o==null||isNaN(o)?"":wr(n)||Uc(n)?n.getLabel({value:Math.round(o)}):isFinite(i)?Zt(o,i,!0):o+"";return yt(a)?a(o,s):et(a)?a.replace("{value}",s):s}function Dct(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function Ict(r){return r==="vertical"?"ns-resize":"ew-resize"}const Lct=Mct;function KF(r){r.registerComponentModel(xct),r.registerComponentView(Lct),Ew(r)}function Pct(r){Nt(YF),Nt(KF)}var Ect={get:function(r,t,e){var n=dt((Rct[r]||{})[t]);return e&&Y(n)?n[n.length-1]:n}},Rct={color:{active:["#006edd","#e0ffff"],inactive:[F.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const qF=Ect;var jF=lr.mapVisual,kct=lr.eachVisual,Oct=Y,oT=M,Nct=nr,Bct=Jt,Vct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,n,a){this.mergeDefaultAndTheme(e,a)},t.prototype.optionUpdated=function(e,n){var a=this.option;!n&&gF(a,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var n=this.stateList;e=it(e,this),this.controllerVisuals=Gw(this.option.controller,n,e),this.targetVisuals=Gw(this.option.target,n,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,n=this.option.seriesTargets;if(n){var a=[];return oT(n,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;e.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var i=this.option.seriesId,o=this.option.seriesIndex;o==null&&i==null&&(o="all");var s=nu(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return K(s,function(l){return l.componentIndex})},t.prototype.eachTargetSeries=function(e,n){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&e.call(n,i)},this)},t.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(a){a===e&&(n=!0)}),n},t.prototype.formatValueText=function(e,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Y(e)&&(e=e.slice(),u=!0);var f=n?e:u?[c(e[0]),c(e[1])]:c(e);if(et(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(yt(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?a[0]+" "+f[1]:e[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,n=Nct([e.min,e.max]);this._dataExtent=n},t.prototype.getDimension=function(e){var n=this,a=this.option.seriesTargets;if(a){var i=zi(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===e||o.seriesId!=null&&o.seriesId===n.ecModel.getSeriesByIndex(e).id});if(i)return i.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var n=e.hostModel.seriesIndex,a=this.getDimension(n);if(a!=null)return e.getDimensionIndex(a);for(var i=e.dimensions,o=i.length-1;o>=0;o--){var s=i[o],l=e.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});Rt(i,a),Rt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){Oct(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,v,h){var d=c[v],p=c[h];d&&!p&&(p=c[h]={},oT(d,function(g,y){if(lr.isValidType(y)){var m=qF.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var v=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,h=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";oT(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&dt(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&dt(h)||(s?m[0]:[m[0],m[0]])),_.symbol=jF(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;kct(S,function(b){b>x&&(x=b)}),_.symbolSize=jF(S,function(b){return Bct(b,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:F.color.transparent,borderColor:F.color.borderTint,contentColor:F.color.theme[0],inactiveColor:F.color.disabled,borderWidth:0,padding:F.size.m,textGap:10,precision:0,textStyle:{color:F.color.secondary}},t}(Yt);const Ey=Vct;var JF=[20,140],zct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=JF[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=JF[1])},t.prototype._resetRange=function(){var e=this.getExtent(),n=this.option.range;!n||n.auto?(e.auto=1,this.option.range=e):Y(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],e[0]),n[1]=Math.min(n[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(e){var n=this.option.controller[e].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),n=nr((this.get("range")||[]).slice());return n[0]>e[1]&&(n[0]=e[1]),n[1]>e[1]&&(n[1]=e[1]),n[0]<e[0]&&(n[0]=e[0]),n[1]<e[0]&&(n[1]=e[0]),n},t.prototype.getValueState=function(e){var n=this.option.range,a=this.getExtent(),i=ut(this.option.unboundedRange,!0);return(i&&n[0]<=a[0]||n[0]<=e)&&(i&&n[1]>=a[1]||e<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},t.prototype.getVisualMeta=function(e){var n=QF(this,"outOfRange",this.getExtent()),a=QF(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var v=i.length;return{stops:i,outerColors:[v?i[0].color:"transparent",v?i[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=uo(Ey.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:F.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:F.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:F.color.shadow}}),t}(Ey);function QF(r,t,e){if(e[0]===e[1])return e.slice();for(var n=200,a=(e[1]-e[0])/n,i=e[0],o=[],s=0;s<=n&&i<e[1];s++)o.push(i),i+=a;return o.push(e[1]),o}const Fct=zct;var Gct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,n){this.ecModel=e,this.api=n},t.prototype.render=function(e,n,a,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,n,a,i)},t.prototype.renderBackground=function(e){var n=this.visualMapModel,a=mc(n.get("padding")||0),i=e.getBoundingRect();e.add(new Ft({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var c=o.controllerVisuals[i||o.getValueState(e)],v=lr.prepareVisualTypes(c);return M(v,function(h){var d=c[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=c.__alphaForOpacity),lr.dependsOn(h,n)&&d&&d.applyVisual(e,u,f)}),s[n]},t.prototype.positionGroup=function(e){var n=this.visualMapModel,a=this.api,i=We(n,a).refContainer;up(e,n.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,n,a,i){},t.type="visualMap",t}(be);const t5=Gct;var e5=[["left","right","width"],["top","bottom","height"]];function r5(r,t,e){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=e5[o],l=[0,null,10],u={},f=0;f<3;f++)u[e5[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],v=ye(u,i,n.padding);return s[(v.margin[c[2]]||0)+v[c[0]]+v[c[1]]*.5<i[c[1]]*.5?0:1]}function Ry(r,t){return M(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Ha=Jt,Hct=M,n5=Math.min,sT=Math.max,$ct=12,Uct=6,Wct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,n){r.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=it(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=it(this._hideIndicator,this)},t.prototype.doRender=function(e,n,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,n=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(n);var a=e.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(e,n,a){if(n){var i=n[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),v=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Xt({style:ce(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(v==="horizontal"?"middle":c),align:h.get("align")||(v==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(e){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=r5(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new mt;u.add(f),f.add(a.outOfRange=a5()),f.add(a.inRange=a5(null,s?o5(this._orient):null,it(this._dragHandle,this,"all",!1),it(this._dragHandle,this,"all",!0))),f.setClipPath(new Ft({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("国"),v=sT(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,v,o),this._createHandle(n,u,1,i,v,o)),this._createIndicator(n,u,i,v,o),e.add(u)},t.prototype._createHandle=function(e,n,a,i,o,s){var l=it(this._dragHandle,this,a,!1),u=it(this._dragHandle,this,a,!0),f=ga(e.get("handleSize"),i[0]),c=Oe(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=o5(this._orient);c.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ja(y.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),ys(c,!0),n.add(c);var h=this.visualMapModel.textStyleModel,d=new Xt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){ja(y.event)},ondragend:u,style:ce(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=p,g.handleLabels[a]=d},t.prototype._createIndicator=function(e,n,a,i,o){var s=ga(e.get("indicatorSize"),a[0]),l=Oe(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof ir){var f=l.style;l.useStyle(W({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,v=new Xt({silent:!0,invisible:!0,style:ce(c,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?i/2:Uct)+a[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,n,a,i){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():i5(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,n=this._dataInterval=e.getSelected(),a=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[Ha(n[0],a,i,!0),Ha(n[1],a,i,!0)]},t.prototype._updateInterval=function(e,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];wo(n,i,o,e,0);var s=a.getExtent();this._dataInterval=[Ha(i[0],o,s,!0),Ha(i[1],o,s,!0)]},t.prototype._updateView=function(e){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new cu(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,n){var a=100,i=[],o=(e[1]-e[0])/a;i.push({color:this.getControllerVisual(e[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(e[1],"color",n),offset:1}),i},t.prototype._createBarPoints=function(e,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],e[0]],[a[0],e[0]],[a[0],e[1]],[a[0]-n[1],e[1]]]},t.prototype._createBarGroup=function(e){var n=this._orient,a=this.visualMapModel.get("inverse");return new mt(n==="horizontal"&&!a?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,n){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",a.mainGroup);Hct([0,1],function(c){var v=o[c];v.setStyle("fill",n.handlesColor[c]),v.y=e[c];var h=Ha(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=Xn(a.handleLabelPoints[c],gu(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=Ha(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=p,c.x=g;var m=Xn(f.indicatorLabelPoint,gu(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,T),_.animateTo(C,T)}else c.attr(w),_.attr(C);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var A=0;A<D.length;A++)this.api.enterBlur(D[A])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(n){if(e._hovering=!0,!e._dragging){var a=e.visualMapModel.itemSize,i=e._applyTransform([n.offsetX,n.offsetY],e._shapes.mainGroup,!0,!0);i[1]=n5(sT(0,i[1]),a[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,n){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();e=n5(sT(o[0],e),o[1]);var l=Yct(a,s,o),u=[e-l,e+l],f=Ha(e,o,s,!0),c=[Ha(u[0],o,s,!0),Ha(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(n||i5(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var d=EU(v,h);this._dispatchHighDown("downplay",Ry(d[0],a)),this._dispatchHighDown("highlight",Ry(d[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var n;if(Bs(e.target,function(l){var u=Ct(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this.api.leaveBlur(n[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ry(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,n,a,i){var o=gu(n,i?null:this.group);return Y(e)?Xn(e,o,a):Yd(e,o,a)},t.prototype._dispatchHighDown=function(e,n){n&&n.length&&this.api.dispatchAction({type:e,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(t5);function a5(r,t,e,n){return new Br({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(a){ja(a.event)},ondragend:n})}function Yct(r,t,e){var n=$ct/2,a=r.get("hoverLinkDataSize");return a&&(n=Ha(a,t,e,!0)/2),n}function i5(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function o5(r){return r==="vertical"?"ns-resize":"ew-resize"}const Xct=Wct;var Zct={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Kct=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},qct=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||e.push(Hut(n.stateList,n.targetVisuals,it(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),n=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(it(jct,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(e);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function jct(r,t,e,n){for(var a=t.targetVisuals[n],i=lr.prepareVisualTypes(a),o={color:Ec(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,v)}return o.color;function c(h){return o[h]}function v(h,d){o[h]=d}}var s5=M;function Jct(r){var t=r&&r.visualMap;Y(t)||(t=t?[t]:[]),s5(t,function(e){if(e){vf(e,"splitList")&&!vf(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var n=e.pieces;n&&Y(n)&&s5(n,function(a){xt(a)&&(vf(a,"start")&&!vf(a,"min")&&(a.min=a.start),vf(a,"end")&&!vf(a,"max")&&(a.max=a.end))})}})}function vf(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var l5=!1;function u5(r){l5||(l5=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Zct,Kct),M(qct,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Jct))}function f5(r){r.registerComponentModel(Fct),r.registerComponentView(Xct),u5(r)}var Qct=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],tvt[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=dt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=K(this._pieceList,function(l){return l=dt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,n={},a=lr.listVisualTypes(),i=this.isCategory();M(e.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),M(n,function(s,l){var u=!1;M(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&M(this.stateList,function(f){(e[f]||(e[f]={}))[l]=qF.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,n){var a=this.option,i=this._pieceList,o=(n?a:e).selected||{};if(a.selected=o,M(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=dt(e)},t.prototype.getValueState=function(e){var n=lr.findPieceIndex(e,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=lr.findPieceIndex(l,a);f===e&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(e){var n;if(this.isCategory())n=e.value;else if(e.value!=null)n=e.value;else{var a=e.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var v=i.getRepresentValue({interval:f});c||(c=i.getValueState(v));var h=e(v,c);f[0]===-1/0?a[0]=h:f[1]===1/0?a[1]=h:n.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=uo(Ey.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(Ey),tvt={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),zM(r),M(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;M(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),c5(t,r)},pieces:function(r){var t=this.option;M(t.pieces,function(e,n){xt(e)||(e={value:e});var a={text:"",index:n};if(e.label!=null&&(a.text=e.label),e.hasOwnProperty("value")){var i=a.value=e.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var v=[["gte","gt","min"],["lte","lt","max"]][c],h=0;h<3&&o[c]==null;h++)o[c]=e[v[h]],s[c]=l[h],f[c]=h===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=lr.retrieveVisuals(e),r.push(a)},this),c5(t,r),zM(r),M(r,function(e){var n=e.close,a=[["<","≤"][n[1]],[">","≥"][n[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,a)},this)}};function c5(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const evt=Qct;var rvt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=this._getItemAlign(),s=n.itemSize,l=this._getViewData(),u=l.endsText,f=Rr(n.get("showLabel",!0),!u),c=!n.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),M(l.viewPieceList,function(v){var h=v.piece,d=new mt;d.onclick=it(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=n.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Xt({style:ce(i,{x:y==="right"?-a:s[0]+a,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:ut(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),Ds(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,n){var a=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:Ry(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,n=e.option;if(n.orient==="vertical")return r5(e,this.api,e.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(e,n,a,i,o){if(n){var s=new mt,l=this.visualMapModel.textStyleModel;s.add(new Xt({style:ce(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,n=K(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},t.prototype._createItemSymbol=function(e,n,a,i){var o=Oe(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(i){var o=dt(a.selected),s=n.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(t5);const nvt=rvt;function v5(r){r.registerComponentModel(evt),r.registerComponentView(nvt),u5(r)}function avt(r){Nt(f5),Nt(v5)}var ivt=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:HI(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var n=e.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),ovt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,n){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new ivt(this);if(this._target=null,this.ecModel.eachSeries(function(a){hB(a,null)}),this.shouldShow()){var n=this.getTarget();hB(n.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:F.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:F.color.neutral30,borderColor:F.color.neutral40,opacity:.3},z:10},t}(Yt),svt=function(r){V(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,a){if(this._api=a,this._model=e,this._coordSys||(this._coordSys=new Og),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=n.get("backgroundColor")||F.color.neutral00);var l=We(e,a).refContainer,u=ye(wL(e,!0),l),f=s.lineWidth||0,c=this._contentRect=xs(u.clone(),f/2,!0,!0),v=new mt;i.add(v),v.setClipPath(new Ft({shape:c.plain()}));var h=this._targetGroup=new mt;v.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Ft({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);v.add(this._windowRect=new Ft({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),d5(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),d5(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var n=this._targetGroup,a=this._coordSys,i=this._contentRect;if(n.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();n.add(o),this._bgRect.z2=e.z2Range.min-10,Pg(a,s.x,s.y,s.width,s.height);var l=ye({left:"center",top:"center",aspect:s.width/s.height},i);Eg(a,l.x,l.y,l.width,l.height),bv(o,a,cl),o.dirty(),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var n=this._bridgeRendered;n&&n.renderVersion===e.renderVersion&&(n.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var n=yn([],e.targetTrans),a=gn([],Ig(null,this._coordSys),n);this._transThisToTarget=yn([],a);var i=e.viewportRect;i?i=i.clone():i=new Mt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape(_t({r:s},i))}},t.prototype._resetRoamController=function(e){var n=this,a=this._api,i=this._roamController;if(i||(i=this._roamController=new ll(a.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return n._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",it(this._onPan,this)).on("zoom",it(this._onZoom,this))},t.prototype._onPan=function(e){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Ce([],[e.oldX,e.oldY],n),i=Ce([],[e.oldX-e.dx,e.oldY-e.dy],n);this._api.dispatchAction(h5(this._model.getTarget().baseMapProvider,{dx:i[0]-a[0],dy:i[1]-a[1]}))}},t.prototype._onZoom=function(e){var n=this._transThisToTarget;if(!(!this._isEnabled()||!n)){var a=Ce([],[e.originX,e.originY],n);this._api.dispatchAction(h5(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:a[0],originY:a[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var n=e.getTarget().baseMapProvider;return!!n},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(be);function h5(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",n={type:e};return n[r.mainType+"Id"]=r.id,W(n,t),n}function d5(r,t){var e=bs(r);Zd(t.group,e.z,e.zlevel)}function lvt(r){r.registerComponentModel(ovt),r.registerComponentView(svt)}var uvt={label:{enabled:!0},decal:{show:!1}},p5=Et(),g5=Et(),fvt=tc(cvt);function cvt(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=g5(r).scope||(g5(r).scope={}),a=dt(uvt);Rt(a.label,r.getLocaleModel().get("aria"),!1),Rt(e.option,a,!1),i(),o();function i(){var f=e.getModel("decal"),c=f.get("show");if(c){var v=ot();r.eachSeries(function(h){h.isColorBySeries()||(p5(h).scope=v.get(h.type)||v.set(h.type,{}))}),r.eachSeries(function(h){if(yt(h.enableAriaDecal)){h.enableAriaDecal();return}var d=h.getData();if(h.isColorBySeries()){var _=g1(h.ecModel,h.name,n,r.getSeriesCount()),S=d.getVisual("decal");d.setVisual("decal",x(S,_))}else{var p=h.getRawData(),g={},y=p5(h).scope;d.each(function(b){var w=d.getRawIndex(b);g[w]=b});var m=p.count();p.each(function(b){var w=g[b],C=p.getName(b)||b+"",T=g1(h.ecModel,C,y,m),D=d.getItemVisual(w,"decal");d.setItemVisual(w,"decal",x(D,T))})}function x(b,w){var C=b?W(W({},w),b):w;return C.dirty=!0,C}})}}function o(){var f=t.getZr().dom;if(f){var c=r.getLocaleModel().get("aria"),v=e.getModel("label");if(v.option=_t(v.option,c),!!v.get("enabled")){if(f.setAttribute("role","img"),v.get("description")){f.setAttribute("aria-label",v.get("description"));return}var h=r.getSeriesCount(),d=v.get(["data","maxCount"])||10,p=v.get(["series","maxCount"])||10,g=Math.min(h,p),y;if(!(h<1)){var m=l();if(m){var _=v.get(["general","withTitle"]);y=s(_,{title:m})}else y=v.get(["general","withoutTitle"]);var S=[],x=h>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);y+=s(x,{seriesCount:h}),r.eachSeries(function(T,D){if(D<g){var A=void 0,L=T.get("name"),I=L?"withName":"withoutName";A=h>1?v.get(["series","multiple",I]):v.get(["series","single",I]),A=s(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var P=T.getData();if(P.count()>d){var R=v.get(["data","partialData"]);A+=s(R,{displayCnt:d})}else A+=v.get(["data","allData"]);for(var E=v.get(["data","separator","middle"]),N=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),G=[],$=0;$<P.count();$++)if($<d){var H=P.getName($),X=O?ne(P.getValues($),function(J,Q){return Lt(O,Q)===-1}):P.getValues($),q=v.get(["data",H?"withName":"withoutName"]);G.push(s(q,{name:H,value:X.join(E)}))}A+=G.join(E)+N,S.push(A)}});var b=v.getModel(["series","multiple","separator"]),w=b.get("middle"),C=b.get("end");y+=S.join(w)+C,f.setAttribute("aria-label",y)}}}}function s(f,c){if(!et(f))return f;var v=f;return M(c,function(h,d){v=v.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),h)}),v}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=r.getLocaleModel().get(["series","typeNames"]);return c[f]||c.chart}}function vvt(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},M(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function hvt(r){r.registerPreprocessor(vvt),r.registerVisual(r.PRIORITY.VISUAL.ARIA,fvt)}var y5={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},dvt=function(){function r(t){var e=this._condVal=et(t)?new RegExp(t):k$(t)?t:null;if(e==null){var n="";ee(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return et(e)?this._condVal.test(t):Wt(e)?this._condVal.test(t+""):!1},r}(),pvt=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),gvt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),yvt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),mvt=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),_vt=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),a=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:n))return!1;return!0},r}();function lT(r,t){if(r===!0||r===!1){var e=new pvt;return e.value=r,e}var n="";return _5(r)||ee(n),r.and?m5("and",r,t):r.or?m5("or",r,t):r.not?Svt(r,t):xvt(r,t)}function m5(r,t,e){var n=t[r],a="";Y(n)||ee(a),n.length||ee(a);var i=r==="and"?new gvt:new yvt;return i.children=K(n,function(o){return lT(o,e)}),i.children.length||ee(a),i}function Svt(r,t){var e=r.not,n="";_5(e)||ee(n);var a=new mvt;return a.child=lT(e,t),a.child||ee(n),a}function xvt(r,t){for(var e="",n=t.prepareGetValue(r),a=[],i=Ut(r),o=r.parser,s=o?cP(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=st(y5,u)?y5[u]:u,c=r[u],v=s?s(c):c,h=h6(f,v)||f==="reg"&&new dvt(v);h||ee(e),a.push(h)}}a.length||ee(e);var d=new _vt;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=a,d}function _5(r){return xt(r)&&!pr(r)}var bvt=function(){function r(t,e){this._cond=lT(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function wvt(r,t){return new bvt(r,t)}var Tvt={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=wvt(r.config,{valueGetterAttrMap:ot({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;st(s,"dimension")||ee(l);var f=t.getDimensionInfo(u);return f||ee(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),n.evaluate()&&a.push(e);return{data:a}}},Cvt={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",a=ue(e);a.length||ee(n);var i=[];M(a,function(f){var c=f.dimension,v=f.order,h=f.parser,d=f.incomparable;if(c==null&&ee(n),v!=="asc"&&v!=="desc"&&ee(n),d&&d!=="min"&&d!=="max"){var p="";ee(p)}if(v!=="asc"&&v!=="desc"){var g="";ee(g)}var y=t.getDimensionInfo(c);y||ee(n);var m=h?cP(h):null;h&&!m&&ee(n),i.push({dimIdx:y.index,parser:m,comparator:new hP(v,d)})});var o=t.sourceFormat;o!==tr&&o!==un&&ee(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,c){for(var v=0;v<i.length;v++){var h=i[v],d=t.retrieveValueFromItem(f,h.dimIdx),p=t.retrieveValueFromItem(c,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function Avt(r){r.registerTransform(Tvt),r.registerTransform(Cvt)}var Mvt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,a){r.prototype.init.call(this,e,n,a),this._sourceManager=new xP(this),bP(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),bP(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Un},t}(Yt),Dvt=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(be);function Ivt(r){r.registerComponentModel(Mvt),r.registerComponentView(Dvt)}var $a=ba.CMD;function hf(r,t){return Math.abs(r-t)<1e-5}function uT(r){var t=r.data,e=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,P){a&&a.length>2&&n.push(a),a=[I,P]}function f(I,P,R,E){hf(I,R)&&hf(P,E)||a.push(I,P,R,E,R,E)}function c(I,P,R,E,N,O){var G=Math.abs(P-I),$=Math.tan(G/4)*4/3,H=P<I?-1:1,X=Math.cos(I),q=Math.sin(I),J=Math.cos(P),Q=Math.sin(P),St=X*N+R,Ht=q*O+E,gt=J*N+R,ft=Q*O+E,Tt=N*$*H,ct=O*$*H;a.push(St-Tt*q,Ht+ct*X,gt+Tt*Q,ft-ct*J,gt,ft)}for(var v,h,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===$a.L||y===$a.C||y===$a.Q)&&(a=[s,l])),y){case $a.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case $a.L:v=t[g++],h=t[g++],f(i,o,v,h),i=v,o=h;break;case $a.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case $a.Q:v=t[g++],h=t[g++],d=t[g++],p=t[g++],a.push(i+2/3*(v-i),o+2/3*(h-o),d+2/3*(v-d),p+2/3*(h-p),d,p),i=d,o=p;break;case $a.A:var _=t[g++],S=t[g++],x=t[g++],b=t[g++],w=t[g++],C=t[g++]+w;g+=1;var T=!t[g++];v=Math.cos(w)*x+_,h=Math.sin(w)*b+S,m?(s=v,l=h,u(s,l)):f(i,o,v,h),i=Math.cos(C)*x+_,o=Math.sin(C)*b+S;for(var D=(T?-1:1)*Math.PI/2,A=w;T?A>C:A<C;A+=D){var L=T?Math.max(A+D,C):Math.min(A+D,C);c(A,L,_,S,x,b)}break;case $a.R:s=i=t[g++],l=o=t[g++],v=s+t[g++],h=l+t[g++],u(v,l),f(v,l,v,h),f(v,h,s,h),f(s,h,s,l),f(s,l,v,l);break;case $a.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function fT(r,t,e,n,a,i,o,s,l,u){if(hf(r,e)&&hf(t,n)&&hf(a,o)&&hf(i,s)){l.push(o,s);return}var f=2/u,c=f*f,v=o-r,h=s-t,d=Math.sqrt(v*v+h*h);v/=d,h/=d;var p=e-r,g=n-t,y=a-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var x=v*p+h*g,b=-v*y-h*m,w=_-x*x,C=S-b*b;if(w<c&&x>=0&&C<c&&b>=0){l.push(o,s);return}var T=[],D=[];Xi(r,e,a,o,.5,T),Xi(t,n,i,s,.5,D),fT(T[0],D[0],T[1],D[1],T[2],D[2],T[3],D[3],l,u),fT(T[4],D[4],T[5],D[5],T[6],D[6],T[7],D[7],l,u)}function Lvt(r,t){var e=uT(r),n=[];t=t||1;for(var a=0;a<e.length;a++){var i=e[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],v=i[u++],h=i[u++],d=i[u++],p=i[u++];fT(s,l,f,c,v,h,d,p,o,t),s=d,l=p}n.push(o)}return n}function S5(r,t,e){var n=r[t],a=r[1-t],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=e-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function x5(r,t,e){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=S5([l,u],f?0:1,t),v=(f?s:u)/c.length,h=0;h<c.length;h++)for(var d=(f?u:s)/c[h],p=0;p<c[h];p++){var g={};f?(g.startAngle=i+v*h,g.endAngle=i+v*(h+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=n+v*h,g.r=n+v*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function Pvt(r,t,e){for(var n=r.width,a=r.height,i=n>a,o=S5([n,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,v=0;v<o.length;v++)for(var h=r[l]/o[v],d=0;d<o[v];d++){var p={};p[u]=v*c,p[f]=d*h,p[s]=c,p[l]=h,p.x+=r.x,p.y+=r.y,e.push(p)}}function b5(r,t,e,n){return r*n-e*t}function Evt(r,t,e,n,a,i,o,s){var l=e-r,u=n-t,f=o-a,c=s-i,v=b5(f,c,l,u);if(Math.abs(v)<1e-6)return null;var h=r-a,d=t-i,p=b5(h,d,f,c)/v;return p<0||p>1?null:new bt(p*l+r,p*u+t)}function Rvt(r,t,e){var n=new bt;bt.sub(n,e,t),n.normalize();var a=new bt;bt.sub(a,r,t);var i=a.dot(n);return i}function df(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function kvt(r,t,e){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=Evt(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&a.push({projPt:Rvt(l,t,e),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var v=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[v],p=[h],i=u.idx+1;i<=f.idx;i++)df(d,r[i].slice());df(d,h),df(d,v);for(var i=f.idx+1;i<=u.idx+n;i++)df(p,r[i%n].slice());return df(p,v),df(p,h),[{points:d},{points:p}]}function w5(r){var t=r.points,e=[],n=[];Td(t,e,n);var a=new Mt(e[0],e[1],n[0]-e[0],n[1]-e[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new bt,f=new bt;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),kvt(t,u,f)}function ky(r,t,e,n){if(e===1)n.push(t);else{var a=Math.floor(e/2),i=r(t);ky(r,i[0],a,n),ky(r,i[1],e-a,n)}return n}function Ovt(r,t){for(var e=[],n=0;n<t;n++)e.push(E_(r));return e}function Nvt(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function Bvt(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function Vvt(r,t){var e=[],n=r.shape,a;switch(r.type){case"rect":Pvt(n,t,e),a=Ft;break;case"sector":x5(n,t,e),a=Nr;break;case"circle":x5({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),a=Nr;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=K(Lvt(r.getUpdatedPathProxy(),o),function(y){return Bvt(y)}),l=s.length;if(l===0)ky(w5,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,c=K(s,function(y){var m=[],_=[];Td(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var v=t,u=0;u<l;u++){var h=c[u];if(v<=0)break;var d=u===l-1?v:Math.ceil(h.area/f*t);d<0||(ky(w5,{points:h.poly},d,e),v-=d)}}a=Br;break}if(!a)return Ovt(r,t);for(var p=[],u=0;u<e.length;u++){var g=new a;g.setShape(e[u]),Nvt(r,g),p.push(g)}return p}function zvt(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var a=[],i=[],o=e<n?r:t,s=Math.min(e,n),l=Math.abs(n-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],v=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(v<=0){c.push(g,y,m,_,S,x);continue}for(var b=Math.min(v,f-1)+1,w=1;w<=b;w++){var C=w/b;Xi(d,g,m,S,C,a),Xi(p,y,_,x,C,i),d=a[3],p=i[3],c.push(a[1],i[1],a[2],i[2],d,p),g=a[5],y=i[5],m=a[6],_=i[6]}v-=b-1}return o===r?[c,t]:[r,c]}function T5(r,t){for(var e=r.length,n=r[e-2],a=r[e-1],i=[],o=0;o<t.length;)i[o++]=n,i[o++]=a;return i}function Fvt(r,t){for(var e,n,a,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,c=void 0;l?u?(e=zvt(l,u),f=e[0],c=e[1],n=f,a=c):(c=T5(a||l,l),f=l):(f=T5(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function C5(r){for(var t=0,e=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],c=s*f-u*l;t+=c,e+=(s+u)*c,n+=(l+f)*c}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function Gvt(r,t,e,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,v=0;v<s;v+=2){var h=v===0?f:(f+v-2)%l+2,d=r[h]-e[0],p=r[h+1]-e[1],g=t[v]-n[0],y=t[v+1]-n[1],m=g-d,_=y-p;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function Hvt(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function $vt(r,t,e,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=C5(s),f=C5(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],v=[],h=0,d=1/0,p=[],g=s.length;i&&(s=Hvt(s));for(var y=Gvt(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],e>0)for(var x=n/e,b=-n/2;b<=n/2;b+=x){for(var w=Math.sin(b),C=Math.cos(b),T=0,_=0;_<s.length;_+=2){var D=c[_],A=c[_+1],L=l[_]-f[0],I=l[_+1]-f[1],P=L*C-I*w,R=L*w+I*C;p[_]=P,p[_+1]=R;var E=P-D,N=R-A;T+=E*E+N*N}if(T<d){d=T,h=b;for(var O=0;O<p.length;O++)v[O]=p[O]}}else for(var G=0;G<g;G+=2)v[G]=l[G]-f[0],v[G+1]=l[G+1]-f[1];a.push({from:c,to:v,fromCp:u,toCp:f,rotation:-h})}return a}function Oy(r){return r.__isCombineMorphing}var A5="__mOriginal_";function Ny(r,t,e){var n=A5+t,a=r[n]||r[t];r[n]||(r[n]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Kv(r,t){var e=A5+t;r[e]&&(r[t]=r[e],r[e]=null)}function M5(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=t[0]*i+t[2]*o+t[4],n[a++]=t[1]*i+t[3]*o+t[5]}}function D5(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),a=Fvt(uT(e),uT(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&M5(i,s),l&&M5(o,l),Ny(t,"updateTransform",{replace:u}),t.transform=null;var f=$vt(i,o,10,Math.PI),c=[];Ny(t,"buildPath",{replace:function(v){for(var h=t.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,b=y.toCp,w=Math.sin(S),C=Math.cos(S);Bh(p,x,b,h);for(var T=0;T<m.length;T+=2){var D=m[T],A=m[T+1],L=_[T],I=_[T+1],P=D*d+L*h,R=A*d+I*h;c[T]=P*C-R*w+p[0],c[T+1]=P*w+R*C+p[1]}var E=c[0],N=c[1];v.moveTo(E,N);for(var T=2;T<m.length;){var L=c[T++],I=c[T++],O=c[T++],G=c[T++],$=c[T++],H=c[T++];E===L&&N===I&&O===$&&G===H?v.lineTo($,H):v.bezierCurveTo(L,I,O,G,$,H),E=$,N=H}}}})}function cT(r,t,e){if(!r||!t)return t;var n=e.done,a=e.during;D5(r,t),t.__morphT=0;function i(){Kv(t,"buildPath"),Kv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},_t({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},e)),t}function Uvt(r,t,e,n,a,i){var o=16;r=a===e?0:Math.round(32767*(r-e)/(a-e)),t=i===n?0:Math.round(32767*(t-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(t&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function By(r){var t=1/0,e=1/0,n=-1/0,a=-1/0,i=K(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(c,e),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=K(i,function(s,l){return{cp:s,z:Uvt(s[0],s[1],t,e,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function I5(r){return Vvt(r.path,r.count)}function vT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Wvt(r,t,e){var n=[];function a(x){for(var b=0;b<x.length;b++){var w=x[b];Oy(w)?a(w.childrenRef()):w instanceof Gt&&n.push(w)}}a(r);var i=n.length;if(!i)return vT();var o=e.dividePath||I5,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),vT();n=By(n),s=By(s);for(var l=e.done,u=e.during,f=e.individualDelay,c=new Qi,v=0;v<i;v++){var h=n[v],d=s[v];d.parent=t,d.copyTransform(c),f||D5(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}Ny(t,"addSelfToZr",{after:function(x){p(x)}}),Ny(t,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Kv(t,"addSelfToZr"),Kv(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},v=0;v<y;v++){var S=f?_t({delay:(e.delay||0)+f(v,y,n[v],s[v]),done:_},e):e;cT(n[v],s[v],S)}else t.__morphT=0,t.animateTo({__morphT:1},_t({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)Kv(r[x],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function Yvt(r,t,e){var n=t.length,a=[],i=e.dividePath||I5;function o(h){for(var d=0;d<h.length;d++){var p=h[d];Oy(p)?o(p.childrenRef()):p instanceof Gt&&a.push(p)}}if(Oy(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(E_(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),vT()}a=By(a),t=By(t);for(var c=e.individualDelay,u=0;u<n;u++){var v=c?_t({delay:(e.delay||0)+c(u,n,a[u],t[u])},e):e;cT(a[u],t[u],v)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function L5(r){return Y(r[0])}function P5(r,t){for(var e=[],n=r.length,a=0;a<n;a++)e.push({one:r[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)e[o%n].many.push(t[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!e[a].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[a].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Xvt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=E_(r.path);a.setStyle("opacity",e),t.push(a)}return t},split:null};function hT(r,t,e,n,a,i){if(!r.length||!t.length)return;var o=vu("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=W({setToFinal:!0},o),u,f;L5(r)&&(u=r,f=t),L5(t)&&(u=t,f=r);function c(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var C=m?b[0]:w,T=m?w:b[0];if(Oy(C))c({many:[C],one:T},!0,_,S,!0);else{var D=s?_t({delay:s(_,S)},l):l;cT(C,T,D),i(C,T,C,T,D)}}else for(var A=_t({dividePath:Xvt[e],individualDelay:s&&function(N,O,G,$){return s(N+_,S)}},l),L=m?Wvt(b,w,A):Yvt(w,b,A),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;E<R;E++){var D=s?_t({delay:s(E,R)},l):l;i(I[E],P[E],m?b[E]:y.one,m?y.one:b[E],D)}}for(var v=u?u===r:r.length>t.length,h=u?P5(f,u):P5(v?t:r,[v?r:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)c(h[p],v,g,d),g+=h[p].many.length}function Cl(r){if(!r)return[];if(Y(r)){for(var t=[],e=0;e<r.length;e++)t.push(Cl(r[e]));return t}var n=[];return r.traverse(function(a){a instanceof Gt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var E5=1e4,Zvt=0,R5=1,k5=2,Kvt=Et();function qvt(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var a=r.getDimensionInfo(e[n]);if(a&&a.otherDims[t]===0)return e[n]}}function jvt(r,t,e){var n=r.getDimensionInfo(e),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,t);return a&&a.categories[i]||i+""}}function O5(r,t,e,n){var a=n?"itemChildGroupId":"itemGroupId",i=qvt(r,a);if(i){var o=jvt(r,t,i);return o}var s=r.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return e||r.getId(t)}function N5(r){var t=[];return M(r,function(e){var n=e.data,a=e.dataGroupId;if(!(n.count()>E5))for(var i=n.getIndices(),o=0;o<i.length;o++)t.push({data:n,groupId:O5(n,o,a,!1),childGroupId:O5(n,o,a,!0),divide:e.divide,dataIndex:o})}),t}function dT(r,t,e){r.traverse(function(n){n instanceof Gt&&pe(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function pT(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function pf(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Jvt(r,t,e){var n=vu("update",e,t);n&&r.traverse(function(a){if(a instanceof xn){var i=z8(a);i&&a.animateFrom({style:i},n)}})}function Qvt(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var a=r[n],i=t[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function B5(r,t,e){var n=N5(r),a=N5(t);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?W(W({},x.style),_.style):_.style},w)}var o=!1,s=Zvt,l=ot(),u=ot();M(n,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var c=a[f].groupId;if(u.get(c)){s=R5;break}var v=a[f].childGroupId;if(v&&l.get(v)){s=k5;break}}function h(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===R5?x.childGroupId:x.groupId:s===k5?x.childGroupId:x.groupId}}var d=Qvt(n,a),p={};if(!d)for(var f=0;f<a.length;f++){var g=a[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=n[S],b=a[_],w=b.data.hostModel,C=x.data.getItemGraphicEl(x.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);if(C===T){T&&Jvt(T,b.dataIndex,w);return}C&&p[C.id]||T&&(pf(T),C?(pf(C),pT(C),o=!0,hT(Cl(C),Cl(T),b.divide,w,_,i)):dT(T,w,_))}new di(n,a,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=a[_],b=x.data,w=b.hostModel,C=b.getItemGraphicEl(x.dataIndex),T=ne(K(S,function(D){return n[D].data.getItemGraphicEl(n[D].dataIndex)}),function(D){return D&&D!==C&&!p[D.id]});C&&(pf(C),T.length?(M(T,function(D){pf(D),pT(D)}),o=!0,hT(Cl(T),Cl(C),x.divide,w,_,i)):dT(C,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=n[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=ne(K(_,function(T){return a[T].data.getItemGraphicEl(a[T].dataIndex)}),function(T){return T&&T!==b}),C=a[_[0]].data.hostModel;w.length&&(M(w,function(T){return pf(T)}),b?(pf(b),pT(b),o=!0,hT(Cl(b),Cl(w),x.divide,C,_[0],i)):M(w,function(T){return dT(T,C,_[0])}))}}).updateManyToMany(function(_,S){new di(S,_,function(x){return n[x].data.getId(n[x].dataIndex)},function(x){return a[x].data.getId(a[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&M(t,function(_){var S=_.data,x=S.hostModel,b=x&&e.getViewOfSeriesModel(x),w=vu("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof Gt&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function V5(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function z5(r){return Y(r)?r.sort().join(","):r}function Po(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function tht(r,t){var e=ot(),n=ot(),a=ot();return M(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=V5(i),f=z5(u);n.set(f,{dataGroupId:s,data:l}),Y(u)&&M(u,function(c){a.set(c,{key:f,dataGroupId:s,data:l})})}),M(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=V5(i),u=z5(l),f=n.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Po(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Po(s),data:s}]});else if(Y(l)){var c=[];M(l,function(d){var p=n.get(d);p.data&&c.push({dataGroupId:p.dataGroupId,divide:Po(p.data),data:p.data})}),c.length&&e.set(u,{oldSeries:c,newSeries:[{dataGroupId:o,data:s,divide:Po(s)}]})}else{var v=a.get(l);if(v){var h=e.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:Po(v.data)}],newSeries:[]},e.set(v.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Po(s)})}}}}),e}function F5(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function eht(r,t,e,n){var a=[],i=[];M(ue(r.from),function(o){var s=F5(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Po(t.oldData[s]),groupIdDim:o.dimension})}),M(ue(r.to),function(o){var s=F5(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Po(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&B5(a,i,n)}function rht(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(ue(n.seriesTransition),function(a){M(ue(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][gp]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var a=Kvt(e);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)M(ue(i),function(h){eht(h,a,n,e)});else{var o=tht(a,n);M(o.keys(),function(h){var d=o.get(h);B5(d.oldSeries,d.newSeries,e)})}M(n.updatedSeries,function(h){h[gp]&&(h[gp]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var v=s[c].getData();v.count()<E5&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(v))}})}var nht=function(){function r(t,e){lS(this,r.decoratedMethods),this._outOfBrk=fS(null,e),this._linear=fS(null,e),uS(this),this.breaks=t&&t.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(t,e){for(var n=0;n<this.breaks.length;n++){var a=this.breaks[n];if(a.vmin<t&&t<a.vmax){var i=e(t,a.vmax);return i}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,e){return e==null||e===gi?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,e){this.setExtent2(Qr,t,e)},setExtent2:function(t,e,n){ns(e,n)&&(t===Qr&&iht(this,[e,n]),this._outOfBrk.setExtent2(t,e,n),this._linear.setExtent2(t,this.transformIn(e,null),this.transformIn(n,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,e){if(e&&e.depth===gi)return t;for(var n=G5,a=H5,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(t<=s.vmax){t>s.vmin?n+=s.vmin-a+(t-s.vmin)/(s.vmax-s.vmin)*s.gapReal:n+=t-a,a=s.vmax,i=!1;break}n+=s.vmin-a+s.gapReal,a=s.vmax}return i&&(n+=t-a),n},transformOut:function(t,e){if(e&&e.depth===gi)return t;for(var n=G5,a=H5,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=n+l.vmin-a,f=u+l.gapReal;if(t<=f){t>u?o=l.vmin+(t-u)/(f-u)*(l.vmax-l.vmin):o=a+t-n,a=l.vmax,i=!1;break}n=f,a=l.vmax}return i&&(o=a+t-n),o}},r}();function aht(r,t){return new nht(r,t)}var G5=0,H5=0;function iht(r,t){var e=0,n={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};M(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=gT(s,t);if(u){var f=u.vmin!==s.vmin,c=u.vmax!==s.vmax,v=u.vmax-u.vmin;if(!(f&&c))if(f||c){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=v,i[h][l.type].inExtFrac=v/(s.vmax-s.vmin),i[h][l.type].val=l.val}else n[l.type].span+=v,n[l.type].val+=l.val}});var o=e*(0+(t[1]-t[0])+(n.tpAbs.val-n.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-n.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-n.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));M(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=e!==0?Vt(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function oht(r,t,e,n,a,i){r!=="no"&&M(e,function(o){var s=gT(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=n(u),c=a*3/4;f>s.vmin-c&&f<s.vmax+c&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function sht(r,t,e,n){M(t,function(a){var i=gT(a,e);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:n?n(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:n?n(i):void 0}))}),t.length&&r.sort(function(a,i){return a.value-i.value})}function gT(r,t){var e=Vt(r.vmin,t[0]),n=ae(r.vmax,t[1]);return e<n||e===n&&e>t[0]&&e<t[1]?{vmin:e,vmax:n,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function yT(r,t,e){var n=[];if(!r)return{breaks:n};function a(o,s){return o>=0&&o<1-1e-5}M(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:dt(o),vmin:t.parse(o.start),vmax:t.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(et(o.gap)){var u=hn(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var c=t.parse(o.gap);(!isFinite(c)||c<0)&&(c=0),s.gapParsed.type="tpAbs",s.gapParsed.val=c}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),e&&e.noNegative&&M(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var v=s.vmax;s.vmax=s.vmin,s.vmin=v}n.push(s)}}),n.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return M(n,function(o,s){i>o.vmin&&(n[s]=null),i=o.vmax}),{breaks:ne(n,function(o){return!!o})}}function mT(r,t){return _T(t)===_T(r)}function _T(r){return r.start+"_\0_"+r.end}function lht(r,t,e){var n=[];M(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&n.push([o])}),M(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=zi(n,function(u){return mT(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return M(n,function(i){i.length===2&&a.push(e?i:[r[i[0]],r[i[1]]])}),a}function uht(r,t,e,n){if(t.break){var a=t.break.parsedBreak,i=zi(e,function(f){return mT(f.breakOption,t.break.parsedBreak.breakOption)}),o={lookup:n,depth:gi},s=r.transformOut(a.vmin,o),l=r.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:dt(i.gapParsed),gapReal:a.gapReal};return{tickVal:u[t.break.type],vBreak:{type:t.break.type,parsedBreak:u}}}}function fht(r,t,e,n,a){a.original=yT(r,t,e);var i=a.transformed=yT(r,t,e),o=a.lookup;i.breaks=K(i.breaks,function(s,l){var u={depth:gi},f=t.transformIn(s.vmin,u),c=t.transformIn(s.vmax,u),v={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?t.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[n+l]=f,o.to[n+l]=s.vmin,o.from[n+l+1]=c,o.to[n+l+1]=s.vmax,{vmin:f,vmax:c,gapParsed:v,gapReal:s.gapReal,breakOption:s.breakOption}})}var cht={vmin:"start",vmax:"end"};function vht(r,t){return t&&(r=r||{},r.break={type:cht[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function hht(){uY({createBreakScaleMapper:aht,pruneTicksByBreak:oht,addBreaksToTicks:sht,parseAxisBreakOption:yT,identifyAxisBreak:mT,serializeAxisBreakIdentifier:_T,retrieveAxisBreakPairs:lht,getTicksBreakOutwardTransform:uht,parseAxisBreakOptionInwardTransform:fht,makeAxisLabelFormatterParamBreak:vht})}var $5=Et();function dht(r,t){var e=zi(r,function(n){return Le().identifyAxisBreak(n.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function pht(r){M(r,function(t){return t.shouldRemove=!0})}function ght(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function yht(r,t,e,n,a){var i=e.axis;if(i.scale.isBlank()||!Le())return;var o=Le().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(T){return T.break},!1);if(!o.length)return;var s=e.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var c=s.get("expandOnClick"),v=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new mt({ignoreModelZ:!0}),S=i.isHorizontal(),x=$5(t).visualList||($5(t).visualList=[]);pht(x);for(var b=function(T){var D=o[T][0].break.parsedBreak,A=[];A[0]=i.toGlobalCoord(i.dataToCoord(D.vmin,!0)),A[1]=i.toGlobalCoord(i.dataToCoord(D.vmax,!0)),A[1]<A[0]&&A.reverse();var L=dht(x,D);L.shouldRemove=!1;var I=new mt;C(L.zigzagRandomList,I,A[0],A[1],S,D),c&&I.on("click",function(){var P={type:ug,breaks:[{start:D.breakOption.start,end:D.breakOption.end}]};P[i.dim+"AxisIndex"]=e.componentIndex,a.dispatchAction(P)}),I.silent=!c,_.add(I)},w=0;w<o.length;w++)b(w);r.add(_),ght(x);function C(T,D,A,L,I,P){var R={stroke:p,lineWidth:g,lineDash:y,fill:"none"},E=I?0:1,N=1-E,O=n[Dt[N]]+n[Ie[N]];function G(k){var B=[],U=[];B[E]=U[E]=k,B[N]=n[Dt[N]],U[N]=O;var Z={x1:B[0],y1:B[1],x2:U[0],y2:U[1]};return Md(Z,Z,{lineWidth:1}),B[0]=Z.x1,B[1]=Z.y1,B[E]}A=G(A),L=G(L);for(var $=[],H=[],X=!0,q=n[Dt[N]],J=0;;J++){var Q=q===n[Dt[N]],St=q>=O;St&&(q=O);var Ht=[],gt=[];Ht[E]=A,gt[E]=L,!Q&&!St&&(Ht[E]+=X?-l:l,gt[E]-=X?l:-l),Ht[N]=q,gt[N]=q,$.push(Ht),H.push(gt);var ft=void 0;if(J<T.length?ft=T[J]:(ft=Math.random(),T.push(ft)),q+=ft*(f-u)+u,X=!X,St)break}var Tt=Le().serializeAxisBreakIdentifier(P.breakOption);if(D.add(new xr({anid:"break_a_"+Tt,shape:{points:$},style:R,z:v})),P.gapReal!==0){D.add(new xr({anid:"break_b_"+Tt,shape:{points:H},style:R,z:v}));var ct=H.slice();ct.reverse();var wt=$.concat(ct);D.add(new Br({anid:"break_c_"+Tt,shape:{points:wt},style:{fill:m,opacity:d.opacity},z:v}))}}}function mht(r,t,e,n){var a=r.axis,i=e.transform;yr(n.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=Le().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=K(s,function(g){var y=g[0].break.parsedBreak,m=[a.dataToCoord(y.vmin,!0),a.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:Le().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,c=0;c<l.length;c++){var v=l[c],h=Math.max(v.coordPair[0],o[0]),d=Math.min(v.coordPair[1],o[1]);u<=h&&p(u,h,f,v),u=d,f=v}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(A,L){i&&(Ce(A,A,i),Ce(L,L,i))}function x(A,L){var I={x1:A[0],y1:A[1],x2:L[0],y2:L[1]};Md(I,I,n.style),A[0]=I.x1,A[1]=I.y1,L[0]=I.x2,L[1]=I.y2}var b=[g,0],w=[y,0],C=[g,5],T=[y,5];S(b,C),x(b,C),S(w,T),x(w,T),x(b,w);var D=new $e(W({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},n));t.add(D),D.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function _ht(r,t,e){if(zi(e,function(m){return!m}))return;var n=new bt;if(!eg(e[0],e[1],n,{direction:-(r?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var a=Se();Ui(a,a,-t);var i=K(e,function(m){return m.transform?gn(Se(),a,m.transform):a});function o(m){var _=e[0].localRect,S=new bt(_[Ie[m]]*i[0][0],_[Ie[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=K(e,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new bt;u.copy(e[0].label).add(e[1].label).scale(.5),u.transform(a);var f=n.clone().transform(a),c=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),v=(c+f.x)/2-u.x,h=Math.min(v,v-f.x),d=Math.max(v,v-f.x),p=d<0?d:h>0?h:0;s=(v-p)/f.x}var g=new bt,y=new bt;bt.scale(g,n,-s),bt.scale(y,n,1-s),DS(e[0],g),DS(e[1],y)}function Sht(r,t){var e={breaks:[]};return M(t.breaks,function(n){if(n){var a=zi(r.get("breaks",!0),function(s){return Le().identifyAxisBreak(s,n)});if(a){var i=t.type,o={isExpanded:!!a.isExpanded};a.isExpanded=i===ug?!0:i===fk?!1:i===ck?!a.isExpanded:a.isExpanded,e.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),e}function xht(){FK({adjustBreakLabelPair:_ht,buildAxisBreakLine:mht,rectCoordBuildBreakAxis:yht,updateModelAxisBreak:Sht})}function bht(r){UK(r),hht(),xht()}function wht(){gj(Tht)}function Tht(r,t){M(r,function(e){if(!e.model.get(["axisLabel","inside"])){var n=Cht(e);if(n){var a=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[a]-=n[a]+i,e.position==="top"?t.y+=n.height+i:e.position==="left"&&(t.x+=n.width+i)}}})}function Cht(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var n,a,i=e.getExtent();e instanceof Fp?a=e.count():(n=e.getTicks(),a=n.length);var o=r.getLabelModel(),s=Yc(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var c=n?n[f]:{value:i[0]+f},v=s(c,f),h=o.getTextRect(v),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new Mt(g.x,g.y,x,b);return w}}Nt([hK]),Nt([aK]),Nt([VK,Bq,jq,Vj,nJ,pQ,YQ,Ett,vet,Tet,Ret,Uet,Wrt,_nt,knt,eat,lat,Aat,Nat,Kat,ait,_it,iot]),Nt(Dot),Nt(cst),Nt(mN),Nt(Mst),Nt(HB),Nt(kst),Nt(nlt),Nt(vlt),Nt(put),Nt(Vut),Nt(Vv),Nt(nft),Nt(oft),Nt(Sft),Nt(Pft),Nt(zft),Nt(Xft),Nt(lct),Nt(Pct),Nt(YF),Nt(KF),Nt(avt),Nt(f5),Nt(v5),Nt(lvt),Nt(hvt),Nt(Avt),Nt(Ivt),Nt(rht),Nt(xZ),Nt(bht),Nt(wht),Nt(zj);const U5=Symbol("ppt-render-tasks"),Aht=Nn({__name:"ChartElement",props:{element:{}},setup(r){const t=r,e=FG(),n=bC(U5,void 0);let a,i,o=!1,s=!1;n&&n.push(new Promise(c=>{i=c}));const l=rn(()=>{var c;return{background:t.element.fill||"transparent",border:(c=t.element.outline)!=null&&c.width?`${t.element.outline.width}px ${t.element.outline.style||"solid"} ${t.element.outline.color||"#d9dce6"}`:"none",boxSizing:"border-box"}}),u=()=>t.element.data.legends.map((c,v)=>{var d,p;const h=t.element.data.series[v]||[];return["pie","ring"].includes(t.element.chartType)?{data:t.element.data.labels.map((g,y)=>({name:g,value:h[y]||0})),name:c,radius:t.element.chartType==="ring"?["50%","72%"]:"66%",type:"pie"}:t.element.chartType==="radar"?{data:[{name:c,value:h}],name:c,type:"radar"}:{areaStyle:t.element.chartType==="area"?{}:void 0,data:h,name:c,smooth:(d=t.element.options)==null?void 0:d.lineSmooth,stack:(p=t.element.options)!=null&&p.stack?"total":void 0,type:t.element.chartType==="column"||t.element.chartType==="bar"?"bar":t.element.chartType==="scatter"?"scatter":"line"}}),f=()=>{if(!o||s||!e.value)return;a?a.resize():(a=u9(e.value),i&&a.on("finished",i));const c=t.element.chartType==="bar";a.setOption({animation:!1,color:t.element.themeColors,grid:{bottom:30,containLabel:!0,left:24,right:18,top:36},legend:{show:t.element.data.legends.length>1,textStyle:{color:t.element.textColor}},radar:t.element.chartType==="radar"?{indicator:t.element.data.labels.map(v=>({name:v}))}:void 0,series:u(),tooltip:{trigger:"axis"},xAxis:["pie","ring","radar"].includes(t.element.chartType)?void 0:{data:c?void 0:t.element.data.labels,splitLine:{lineStyle:{color:t.element.lineColor||"#e6e8ef"}},type:c?"value":"category"},yAxis:["pie","ring","radar"].includes(t.element.chartType)?void 0:{data:c?t.element.data.labels:void 0,splitLine:{lineStyle:{color:t.element.lineColor||"#e6e8ef"}},type:c?"category":"value"}},!0)};return d3(()=>t.element,f,{deep:!0,flush:"post"}),m3(async()=>{await document.fonts.ready,o=!0,f()}),_3(()=>{s=!0,a==null||a.dispose(),i==null||i()}),(c,v)=>(re(),se("div",{ref_key:"chartRoot",ref:e,class:"ppt-chart-content",style:cr(l.value)},null,4))}}),gdt="",Mht=zn(Aht,[["__scopeId","data-v-d0925046"]]),Dht=["colspan","rowspan"],Iht=Nn({__name:"TableElement",props:{element:{}},setup(r){const t=r,e=rn(()=>{var a,i,o,s;return{background:t.element.fill||"#fff",borderColor:((a=t.element.outline)==null?void 0:a.color)||"#d9dce6",borderStyle:((i=t.element.outline)==null?void 0:i.width)===0?"none":((o=t.element.outline)==null?void 0:o.style)||"solid",borderWidth:`${((s=t.element.outline)==null?void 0:s.width)??1}px`}}),n=(a,i)=>{var o,s,l,u,f,c,v,h,d,p;return{background:((o=a.style)==null?void 0:o.backcolor)||"transparent",color:((s=a.style)==null?void 0:s.color)||"#333",fontFamily:(l=a.style)==null?void 0:l.fontname,fontSize:((u=a.style)==null?void 0:u.fontsize)||"16px",fontStyle:(f=a.style)!=null&&f.em?"italic":"normal",fontWeight:(c=a.style)!=null&&c.bold?600:400,height:`${t.element.cellMinHeight||36}px`,textAlign:((v=a.style)==null?void 0:v.align)||"left",verticalAlign:((h=a.style)==null?void 0:h.vAlign)||"middle",width:`${(((d=t.element.colWidths)==null?void 0:d[i])||1/Math.max(1,((p=t.element.data[0])==null?void 0:p.length)||1))*100}%`}};return(a,i)=>(re(),se("table",{class:"ppt-table-content",style:cr(e.value)},[Dr("tbody",null,[(re(!0),se(dr,null,Cf(a.element.data,(o,s)=>(re(),se("tr",{key:s},[(re(!0),se(dr,null,Cf(o,(l,u)=>(re(),se("td",{key:l.id,colspan:l.colspan||1,rowspan:l.rowspan||1,class:Ya({"ppt-table-cell-editable":a.$slots["table-cell-editor"]}),style:cr(n(l,u))},[Nl(a.$slots,"table-cell-editor",{element:a.element,cell:l,rowIndex:s,colIndex:u},()=>[BC(PT(l.text),1)],!0)],14,Dht))),128))]))),128))])],4))}}),ydt="",Lht=zn(Iht,[["__scopeId","data-v-b7c947a1"]]),Pht={class:"ppt-latex-content"},Eht=["viewBox"],Rht=["d","fill","stroke","stroke-width"],kht={key:1},Oht=Nn({__name:"LatexElement",props:{element:{}},setup(r){return(t,e)=>(re(),se("div",Pht,[t.element.path&&t.element.viewBox?(re(),se("svg",{key:0,viewBox:`0 0 ${t.element.viewBox[0]} ${t.element.viewBox[1]}`},[Dr("path",{d:t.element.path,fill:t.element.color||"#333",stroke:t.element.color||"#333","stroke-width":t.element.strokeWidth||0},null,8,Rht)],8,Eht)):(re(),se("span",kht,PT(t.element.latex),1))]))}}),mdt="",Nht=zn(Oht,[["__scopeId","data-v-bc1283bd"]]),Bht={class:"ppt-video-content"},Vht=["src"],zht=Nn({__name:"VideoElement",props:{element:{}},setup(r){return(t,e)=>(re(),se("div",Bht,[t.element.poster?(re(),se("img",{key:0,src:t.element.poster,alt:""},null,8,Vht)):bh("",!0)]))}}),_dt="",Fht=zn(zht,[["__scopeId","data-v-51f57e49"]]),W5=r=>(r3("data-v-100cc51b"),r=r(),n3(),r),Ght=[W5(()=>Dr("span",{class:"ppt-audio-icon"},"♪",-1)),W5(()=>Dr("audio",{controls:"",preload:"none",tabindex:"-1","aria-disabled":"true"},null,-1))],Hht=Nn({__name:"AudioElement",props:{element:{}},setup(r){return(t,e)=>(re(),se("div",{class:"ppt-audio-content",style:cr({color:t.element.color||"#5b5ce2"})},Ght,4))}}),bdt="",$ht=zn(Hht,[["__scopeId","data-v-100cc51b"]]),Uht=["data-ppt-element-id"],Wht=Nn({__name:"ElementRenderer",props:{element:{},elementIndex:{}},setup(r){const t=r,e={text:jH,image:t$,shape:u$,line:y$,chart:Mht,table:Lht,latex:Nht,video:Fht,audio:$ht},n=rn(()=>{const a=AH(t.element);return{width:`${a.width}px`,height:`${a.height}px`,left:`${a.left}px`,top:`${a.top}px`,transform:`rotate(${a.rotate}deg)`,opacity:t.element.opacity??1,zIndex:t.elementIndex+1}});return(a,i)=>(re(),se("div",{class:Ya(["ppt-element",[`ppt-${a.element.type}`,a.element.class]]),"data-ppt-element-id":a.element.id,style:cr(n.value)},[(re(),mh(l3(e[a.element.type]),{element:a.element},S3({_:2},[a.$slots["text-editor"]?{name:"text-editor",fn:dh(o=>[Nl(a.$slots,"text-editor",Wy(xh(o)),void 0,!0)]),key:"0"}:void 0,a.$slots["shape-text-editor"]?{name:"shape-text-editor",fn:dh(o=>[Nl(a.$slots,"shape-text-editor",Wy(xh(o)),void 0,!0)]),key:"1"}:void 0,a.$slots["table-cell-editor"]?{name:"table-cell-editor",fn:dh(o=>[Nl(a.$slots,"table-cell-editor",Wy(xh(o)),void 0,!0)]),key:"2"}:void 0]),1032,["element"]))],14,Uht))}}),wdt="",Yht=zn(Wht,[["__scopeId","data-v-4031d518"]]),Xht=["data-ppt-slide-id"],Zht=Nn({__name:"SlideRenderer",props:{slide:{},width:{},height:{},scale:{default:1}},setup(r){const t=r,e=rn(()=>MH(t.slide,t.width,t.height,t.scale));return(n,a)=>(re(),se("div",{class:"ppt-slide","data-ppt-slide-id":n.slide.id,style:cr(e.value)},[(re(!0),se(dr,null,Cf(n.slide.elements,(i,o)=>(re(),mh(Yht,{key:i.id,element:i,"element-index":o},null,8,["element","element-index"]))),128))],12,Xht))}}),Tdt="",Kht=zn(Zht,[["__scopeId","data-v-a6a99631"]]);async function qht(r){if(r.complete||await new Promise((t,e)=>{const n=()=>{r.removeEventListener("load",a),r.removeEventListener("error",i)},a=()=>{n(),t()},i=()=>{n(),e(new Error(`图片加载失败:${r.currentSrc||r.src}`))};r.addEventListener("load",a),r.addEventListener("error",i)}),!r.naturalWidth)throw new Error(`图片加载失败:${r.currentSrc||r.src}`);await r.decode()}async function jht(r){const t=[...r.querySelectorAll("img")],e=new Set;for(const n of[r,...r.querySelectorAll("*")]){const a=getComputedStyle(n).backgroundImage;for(const i of a.matchAll(/url\((?:"([^"]*)"|'([^']*)'|([^)]*))\)/g))e.add(i[1]??i[2]??i[3].trim())}for(const n of e){const a=new Image;a.src=n,t.push(a)}await Promise.all(t.map(qht))}const Cdt="",Y5=r=>{window.__PPT_DSL_RENDER__.status="error",window.__PPT_DSL_RENDER__.errors.push(r instanceof Error?r.message:String(r))};async function Jht(){const r=JSON.parse(document.getElementById("ppt-dsl-data").textContent);document.title=r.title;const t=[],e=wH(Kht,{id:"ppt-slide",slide:r.slide,width:r.width,height:r.height});e.provide(U5,t),e.config.errorHandler=Y5,e.mount("#ppt-root"),await oC();const n=document.getElementById("ppt-slide");await Promise.all([document.fonts.ready,jht(n),...t]),await new Promise(a=>requestAnimationFrame(()=>requestAnimationFrame(()=>a()))),window.__PPT_DSL_RENDER__.status==="loading"&&(window.__PPT_DSL_RENDER__.status="ready")}Jht().catch(Y5)})();