vite-bundle-explorer 0.2.0 → 0.2.2

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.
@@ -2,24 +2,24 @@
2
2
  * @vue/shared v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function Sf(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Te={},Xa=[],wr=()=>{},Mx=()=>!1,rl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Pv=t=>t.startsWith("onUpdate:"),Ve=Object.assign,Rv=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Ex=Object.prototype.hasOwnProperty,Le=(t,e)=>Ex.call(t,e),Q=Array.isArray,Ka=t=>vo(t)==="[object Map]",la=t=>vo(t)==="[object Set]",Cg=t=>vo(t)==="[object Date]",Lx=t=>vo(t)==="[object RegExp]",le=t=>typeof t=="function",We=t=>typeof t=="string",kr=t=>typeof t=="symbol",Ne=t=>t!==null&&typeof t=="object",Ov=t=>(Ne(t)||le(t))&&le(t.then)&&le(t.catch),K0=Object.prototype.toString,vo=t=>K0.call(t),Px=t=>vo(t).slice(8,-1),Tf=t=>vo(t)==="[object Object]",kv=t=>We(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,qa=Sf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xf=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Rx=/-(\w)/g,dt=xf(t=>t.replace(Rx,(e,r)=>r?r.toUpperCase():"")),Ox=/\B([A-Z])/g,Zt=xf(t=>t.replace(Ox,"-$1").toLowerCase()),nl=xf(t=>t.charAt(0).toUpperCase()+t.slice(1)),ja=xf(t=>t?`on${nl(t)}`:""),kt=(t,e)=>!Object.is(t,e),Za=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},ad=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Ru=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ou=t=>{const e=We(t)?Number(t):NaN;return isNaN(e)?t:e};let Dg;const Cf=()=>Dg||(Dg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),kx="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Nx=Sf(kx);function po(t){if(Q(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=We(n)?Hx(n):po(n);if(i)for(const a in i)e[a]=i[a]}return e}else if(We(t)||Ne(t))return t}const Bx=/;(?![^(]*\))/g,Fx=/:([^]+)/,Vx=/\/\*[^]*?\*\//g;function Hx(t){const e={};return t.replace(Vx,"").split(Bx).forEach(r=>{if(r){const n=r.split(Fx);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Sn(t){let e="";if(We(t))e=t;else if(Q(t))for(let r=0;r<t.length;r++){const n=Sn(t[r]);n&&(e+=n+" ")}else if(Ne(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function q0(t){if(!t)return null;let{class:e,style:r}=t;return e&&!We(e)&&(t.class=Sn(e)),r&&(t.style=po(r)),t}const zx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$x=Sf(zx);function j0(t){return!!t||t===""}function Ux(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=ai(t[n],e[n]);return r}function ai(t,e){if(t===e)return!0;let r=Cg(t),n=Cg(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=kr(t),n=kr(e),r||n)return t===e;if(r=Q(t),n=Q(e),r||n)return r&&n?Ux(t,e):!1;if(r=Ne(t),n=Ne(e),r||n){if(!r||!n)return!1;const i=Object.keys(t).length,a=Object.keys(e).length;if(i!==a)return!1;for(const o in t){const s=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(s&&!l||!s&&l||!ai(t[o],e[o]))return!1}}return String(t)===String(e)}function Df(t,e){return t.findIndex(r=>ai(r,e))}const Z0=t=>!!(t&&t.__v_isRef===!0),Ct=t=>We(t)?t:t==null?"":Q(t)||Ne(t)&&(t.toString===K0||!le(t.toString))?Z0(t)?Ct(t.value):JSON.stringify(t,Q0,2):String(t),Q0=(t,e)=>Z0(e)?Q0(t,e.value):Ka(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],a)=>(r[pc(n,a)+" =>"]=i,r),{})}:la(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>pc(r))}:kr(e)?pc(e):Ne(e)&&!Q(e)&&!Tf(e)?String(e):e,pc=(t,e="")=>{var r;return kr(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Sf(t){const e=Object.create(null);for(const r of t.split(","))e[r]=1;return r=>r in e}const Te={},Xa=[],wr=()=>{},Mx=()=>!1,rl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Pv=t=>t.startsWith("onUpdate:"),Ve=Object.assign,Rv=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},Ex=Object.prototype.hasOwnProperty,Le=(t,e)=>Ex.call(t,e),Q=Array.isArray,Ka=t=>vo(t)==="[object Map]",la=t=>vo(t)==="[object Set]",Cg=t=>vo(t)==="[object Date]",Lx=t=>vo(t)==="[object RegExp]",le=t=>typeof t=="function",We=t=>typeof t=="string",kr=t=>typeof t=="symbol",Ne=t=>t!==null&&typeof t=="object",Ov=t=>(Ne(t)||le(t))&&le(t.then)&&le(t.catch),K0=Object.prototype.toString,vo=t=>K0.call(t),Px=t=>vo(t).slice(8,-1),Tf=t=>vo(t)==="[object Object]",kv=t=>We(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,qa=Sf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xf=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Rx=/-(\w)/g,dt=xf(t=>t.replace(Rx,(e,r)=>r?r.toUpperCase():"")),Ox=/\B([A-Z])/g,Zt=xf(t=>t.replace(Ox,"-$1").toLowerCase()),nl=xf(t=>t.charAt(0).toUpperCase()+t.slice(1)),ja=xf(t=>t?`on${nl(t)}`:""),kt=(t,e)=>!Object.is(t,e),Za=(t,...e)=>{for(let r=0;r<t.length;r++)t[r](...e)},ad=(t,e,r,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:r})},Ru=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Ou=t=>{const e=We(t)?Number(t):NaN;return isNaN(e)?t:e};let Dg;const Cf=()=>Dg||(Dg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),kx="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",Nx=Sf(kx);function po(t){if(Q(t)){const e={};for(let r=0;r<t.length;r++){const n=t[r],i=We(n)?Hx(n):po(n);if(i)for(const a in i)e[a]=i[a]}return e}else if(We(t)||Ne(t))return t}const Bx=/;(?![^(]*\))/g,Fx=/:([^]+)/,Vx=/\/\*[^]*?\*\//g;function Hx(t){const e={};return t.replace(Vx,"").split(Bx).forEach(r=>{if(r){const n=r.split(Fx);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function en(t){let e="";if(We(t))e=t;else if(Q(t))for(let r=0;r<t.length;r++){const n=en(t[r]);n&&(e+=n+" ")}else if(Ne(t))for(const r in t)t[r]&&(e+=r+" ");return e.trim()}function q0(t){if(!t)return null;let{class:e,style:r}=t;return e&&!We(e)&&(t.class=en(e)),r&&(t.style=po(r)),t}const zx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",$x=Sf(zx);function j0(t){return!!t||t===""}function Ux(t,e){if(t.length!==e.length)return!1;let r=!0;for(let n=0;r&&n<t.length;n++)r=ai(t[n],e[n]);return r}function ai(t,e){if(t===e)return!0;let r=Cg(t),n=Cg(e);if(r||n)return r&&n?t.getTime()===e.getTime():!1;if(r=kr(t),n=kr(e),r||n)return t===e;if(r=Q(t),n=Q(e),r||n)return r&&n?Ux(t,e):!1;if(r=Ne(t),n=Ne(e),r||n){if(!r||!n)return!1;const i=Object.keys(t).length,a=Object.keys(e).length;if(i!==a)return!1;for(const o in t){const s=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(s&&!l||!s&&l||!ai(t[o],e[o]))return!1}}return String(t)===String(e)}function Df(t,e){return t.findIndex(r=>ai(r,e))}const Z0=t=>!!(t&&t.__v_isRef===!0),Ct=t=>We(t)?t:t==null?"":Q(t)||Ne(t)&&(t.toString===K0||!le(t.toString))?Z0(t)?Ct(t.value):JSON.stringify(t,Q0,2):String(t),Q0=(t,e)=>Z0(e)?Q0(t,e.value):Ka(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i],a)=>(r[pc(n,a)+" =>"]=i,r),{})}:la(e)?{[`Set(${e.size})`]:[...e.values()].map(r=>pc(r))}:kr(e)?pc(e):Ne(e)&&!Q(e)&&!Tf(e)?String(e):e,pc=(t,e="")=>{var r;return kr(t)?`Symbol(${(r=t.description)!=null?r:e})`:t};/**
6
6
  * @vue/reactivity v3.5.17
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let Tt;class Nv{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Tt,!e&&Tt&&(this.index=(Tt.scopes||(Tt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){const r=Tt;try{return Tt=this,e()}finally{Tt=r}}}on(){++this._on===1&&(this.prevScope=Tt,Tt=this)}off(){this._on>0&&--this._on===0&&(Tt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Bv(t){return new Nv(t)}function If(){return Tt}function Fv(t,e=!1){Tt&&Tt.cleanups.push(t)}let $e;const gc=new WeakSet;class As{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Tt&&Tt.active&&Tt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gc.has(this)&&(gc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||eb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ig(this),tb(this);const e=$e,r=Or;$e=this,Or=!0;try{return this.fn()}finally{rb(this),$e=e,Or=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)zv(e);this.deps=this.depsTail=void 0,Ig(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){od(this)&&this.run()}get dirty(){return od(this)}}let J0=0,fs,cs;function eb(t,e=!1){if(t.flags|=8,e){t.next=cs,cs=t;return}t.next=fs,fs=t}function Vv(){J0++}function Hv(){if(--J0>0)return;if(cs){let e=cs;for(cs=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;fs;){let e=fs;for(fs=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function tb(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function rb(t){let e,r=t.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),zv(n),Gx(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=r}function od(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(nb(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function nb(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ms)||(t.globalVersion=Ms,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!od(t))))return;t.flags|=2;const e=t.dep,r=$e,n=Or;$e=t,Or=!0;try{tb(t);const i=t.fn(t._value);(e.version===0||kt(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{$e=r,Or=n,rb(t),t.flags&=-3}}function zv(t,e=!1){const{dep:r,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)zv(a,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function Gx(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function Wx(t,e){t.effect instanceof As&&(t=t.effect.fn);const r=new As(t);e&&Ve(r,e);try{r.run()}catch(i){throw r.stop(),i}const n=r.run.bind(r);return n.effect=r,n}function Yx(t){t.effect.stop()}let Or=!0;const ib=[];function Tn(){ib.push(Or),Or=!1}function xn(){const t=ib.pop();Or=t===void 0?!0:t}function Ig(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=$e;$e=void 0;try{e()}finally{$e=r}}}let Ms=0;class Xx{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Af{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!$e||!Or||$e===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==$e)r=this.activeLink=new Xx($e,this),$e.deps?(r.prevDep=$e.depsTail,$e.depsTail.nextDep=r,$e.depsTail=r):$e.deps=$e.depsTail=r,ab(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=$e.depsTail,r.nextDep=void 0,$e.depsTail.nextDep=r,$e.depsTail=r,$e.deps===r&&($e.deps=n)}return r}trigger(e){this.version++,Ms++,this.notify(e)}notify(e){Vv();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Hv()}}}function ab(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)ab(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const ku=new WeakMap,Gi=Symbol(""),sd=Symbol(""),Es=Symbol("");function Dt(t,e,r){if(Or&&$e){let n=ku.get(t);n||ku.set(t,n=new Map);let i=n.get(r);i||(n.set(r,i=new Af),i.map=n,i.key=r),i.track()}}function vn(t,e,r,n,i,a){const o=ku.get(t);if(!o){Ms++;return}const s=l=>{l&&l.trigger()};if(Vv(),e==="clear")o.forEach(s);else{const l=Q(t),u=l&&kv(r);if(l&&r==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Es||!kr(h)&&h>=f)&&s(c)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(Es)),e){case"add":l?u&&s(o.get("length")):(s(o.get(Gi)),Ka(t)&&s(o.get(sd)));break;case"delete":l||(s(o.get(Gi)),Ka(t)&&s(o.get(sd)));break;case"set":Ka(t)&&s(o.get(Gi));break}}Hv()}function Kx(t,e){const r=ku.get(t);return r&&r.get(e)}function ga(t){const e=Ce(t);return e===t?e:(Dt(e,"iterate",Es),ur(t)?e:e.map(yt))}function Mf(t){return Dt(t=Ce(t),"iterate",Es),t}const qx={__proto__:null,[Symbol.iterator](){return mc(this,Symbol.iterator,yt)},concat(...t){return ga(this).concat(...t.map(e=>Q(e)?ga(e):e))},entries(){return mc(this,"entries",t=>(t[1]=yt(t[1]),t))},every(t,e){return ln(this,"every",t,e,void 0,arguments)},filter(t,e){return ln(this,"filter",t,e,r=>r.map(yt),arguments)},find(t,e){return ln(this,"find",t,e,yt,arguments)},findIndex(t,e){return ln(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return ln(this,"findLast",t,e,yt,arguments)},findLastIndex(t,e){return ln(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return ln(this,"forEach",t,e,void 0,arguments)},includes(...t){return yc(this,"includes",t)},indexOf(...t){return yc(this,"indexOf",t)},join(t){return ga(this).join(t)},lastIndexOf(...t){return yc(this,"lastIndexOf",t)},map(t,e){return ln(this,"map",t,e,void 0,arguments)},pop(){return Ao(this,"pop")},push(...t){return Ao(this,"push",t)},reduce(t,...e){return Ag(this,"reduce",t,e)},reduceRight(t,...e){return Ag(this,"reduceRight",t,e)},shift(){return Ao(this,"shift")},some(t,e){return ln(this,"some",t,e,void 0,arguments)},splice(...t){return Ao(this,"splice",t)},toReversed(){return ga(this).toReversed()},toSorted(t){return ga(this).toSorted(t)},toSpliced(...t){return ga(this).toSpliced(...t)},unshift(...t){return Ao(this,"unshift",t)},values(){return mc(this,"values",yt)}};function mc(t,e,r){const n=Mf(t),i=n[e]();return n!==t&&!ur(t)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const jx=Array.prototype;function ln(t,e,r,n,i,a){const o=Mf(t),s=o!==t&&!ur(t),l=o[e];if(l!==jx[e]){const c=l.apply(t,a);return s?yt(c):c}let u=r;o!==t&&(s?u=function(c,h){return r.call(this,yt(c),h,t)}:r.length>2&&(u=function(c,h){return r.call(this,c,h,t)}));const f=l.call(o,u,n);return s&&i?i(f):f}function Ag(t,e,r,n){const i=Mf(t);let a=r;return i!==t&&(ur(t)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,t)}):a=function(o,s,l){return r.call(this,o,yt(s),l,t)}),i[e](a,...n)}function yc(t,e,r){const n=Ce(t);Dt(n,"iterate",Es);const i=n[e](...r);return(i===-1||i===!1)&&Pf(r[0])?(r[0]=Ce(r[0]),n[e](...r)):i}function Ao(t,e,r=[]){Tn(),Vv();const n=Ce(t)[e].apply(t,r);return Hv(),xn(),n}const Zx=Sf("__proto__,__v_isRef,__isVue"),ob=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(kr));function Qx(t){kr(t)||(t=String(t));const e=Ce(this);return Dt(e,"has",t),e.hasOwnProperty(t)}class sb{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?db:hb:a?cb:fb).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=Q(e);if(!i){let l;if(o&&(l=qx[r]))return l;if(r==="hasOwnProperty")return Qx}const s=Reflect.get(e,r,Ue(e)?e:n);return(kr(r)?ob.has(r):Zx(r))||(i||Dt(e,"get",r),a)?s:Ue(s)?o&&kv(r)?s:s.value:Ne(s)?i?$v(s):go(s):s}}class lb extends sb{constructor(e=!1){super(!1,e)}set(e,r,n,i){let a=e[r];if(!this._isShallow){const l=Cn(a);if(!ur(n)&&!Cn(n)&&(a=Ce(a),n=Ce(n)),!Q(e)&&Ue(a)&&!Ue(n))return l?!1:(a.value=n,!0)}const o=Q(e)&&kv(r)?Number(r)<e.length:Le(e,r),s=Reflect.set(e,r,n,Ue(e)?e:i);return e===Ce(i)&&(o?kt(n,a)&&vn(e,"set",r,n):vn(e,"add",r,n)),s}deleteProperty(e,r){const n=Le(e,r);e[r];const i=Reflect.deleteProperty(e,r);return i&&n&&vn(e,"delete",r,void 0),i}has(e,r){const n=Reflect.has(e,r);return(!kr(r)||!ob.has(r))&&Dt(e,"has",r),n}ownKeys(e){return Dt(e,"iterate",Q(e)?"length":Gi),Reflect.ownKeys(e)}}class ub extends sb{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const Jx=new lb,eC=new ub,tC=new lb(!0),rC=new ub(!0),ld=t=>t,_l=t=>Reflect.getPrototypeOf(t);function nC(t,e,r){return function(...n){const i=this.__v_raw,a=Ce(i),o=Ka(a),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),f=r?ld:e?Nu:yt;return!e&&Dt(a,"iterate",l?sd:Gi),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function bl(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function iC(t,e){const r={get(i){const a=this.__v_raw,o=Ce(a),s=Ce(i);t||(kt(i,s)&&Dt(o,"get",i),Dt(o,"get",s));const{has:l}=_l(o),u=e?ld:t?Nu:yt;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!t&&Dt(Ce(i),"iterate",Gi),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=Ce(a),s=Ce(i);return t||(kt(i,s)&&Dt(o,"has",i),Dt(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Ce(s),u=e?ld:t?Nu:yt;return!t&&Dt(l,"iterate",Gi),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Ve(r,t?{add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear")}:{add(i){!e&&!ur(i)&&!Cn(i)&&(i=Ce(i));const a=Ce(this);return _l(a).has.call(a,i)||(a.add(i),vn(a,"add",i,i)),this},set(i,a){!e&&!ur(a)&&!Cn(a)&&(a=Ce(a));const o=Ce(this),{has:s,get:l}=_l(o);let u=s.call(o,i);u||(i=Ce(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?kt(a,f)&&vn(o,"set",i,a):vn(o,"add",i,a),this},delete(i){const a=Ce(this),{has:o,get:s}=_l(a);let l=o.call(a,i);l||(i=Ce(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&vn(a,"delete",i,void 0),u},clear(){const i=Ce(this),a=i.size!==0,o=i.clear();return a&&vn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=nC(i,t,e)}),r}function Ef(t,e){const r=iC(t,e);return(n,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Le(r,i)&&i in n?r:n,i,a)}const aC={get:Ef(!1,!1)},oC={get:Ef(!1,!0)},sC={get:Ef(!0,!1)},lC={get:Ef(!0,!0)},fb=new WeakMap,cb=new WeakMap,hb=new WeakMap,db=new WeakMap;function uC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fC(t){return t.__v_skip||!Object.isExtensible(t)?0:uC(Px(t))}function go(t){return Cn(t)?t:Lf(t,!1,Jx,aC,fb)}function vb(t){return Lf(t,!1,tC,oC,cb)}function $v(t){return Lf(t,!0,eC,sC,hb)}function cC(t){return Lf(t,!0,rC,lC,db)}function Lf(t,e,r,n,i){if(!Ne(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=fC(t);if(a===0)return t;const o=i.get(t);if(o)return o;const s=new Proxy(t,a===2?n:r);return i.set(t,s),s}function jn(t){return Cn(t)?jn(t.__v_raw):!!(t&&t.__v_isReactive)}function Cn(t){return!!(t&&t.__v_isReadonly)}function ur(t){return!!(t&&t.__v_isShallow)}function Pf(t){return t?!!t.__v_raw:!1}function Ce(t){const e=t&&t.__v_raw;return e?Ce(e):t}function pb(t){return!Le(t,"__v_skip")&&Object.isExtensible(t)&&ad(t,"__v_skip",!0),t}const yt=t=>Ne(t)?go(t):t,Nu=t=>Ne(t)?$v(t):t;function Ue(t){return t?t.__v_isRef===!0:!1}function we(t){return gb(t,!1)}function il(t){return gb(t,!0)}function gb(t,e){return Ue(t)?t:new hC(t,e)}class hC{constructor(e,r){this.dep=new Af,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Ce(e),this._value=r?e:yt(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||ur(e)||Cn(e);e=n?e:Ce(e),kt(e,r)&&(this._rawValue=e,this._value=n?e:yt(e),this.dep.trigger())}}function dC(t){t.dep&&t.dep.trigger()}function P(t){return Ue(t)?t.value:t}function At(t){return le(t)?t():P(t)}const vC={get:(t,e,r)=>e==="__v_raw"?t:P(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Ue(i)&&!Ue(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Uv(t){return jn(t)?t:new Proxy(t,vC)}class pC{constructor(e){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Af,{get:n,set:i}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function mb(t){return new pC(t)}function mo(t){const e=Q(t)?new Array(t.length):{};for(const r in t)e[r]=yb(t,r);return e}class gC{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Kx(Ce(this._object),this._key)}}class mC{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yC(t,e,r){return Ue(t)?t:le(t)?new mC(t):Ne(t)&&arguments.length>1?yb(t,e,r):we(t)}function yb(t,e,r){const n=t[e];return Ue(n)?n:new gC(t,e,r)}class _C{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Af(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ms-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return eb(this,!0),!0}get value(){const e=this.dep.track();return nb(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function bC(t,e,r=!1){let n,i;return le(t)?n=t:(n=t.get,i=t.set),new _C(n,i,r)}const wC={GET:"get",HAS:"has",ITERATE:"iterate"},SC={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},wl={},Bu=new WeakMap;let Gn;function TC(){return Gn}function _b(t,e=!1,r=Gn){if(r){let n=Bu.get(r);n||Bu.set(r,n=[]),n.push(t)}}function xC(t,e,r=Te){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=b=>i?b:ur(b)||i===!1||i===0?pn(b,1):pn(b);let f,c,h,d,v=!1,p=!1;if(Ue(t)?(c=()=>t.value,v=ur(t)):jn(t)?(c=()=>u(t),v=!0):Q(t)?(p=!0,v=t.some(b=>jn(b)||ur(b)),c=()=>t.map(b=>{if(Ue(b))return b.value;if(jn(b))return u(b);if(le(b))return l?l(b,2):b()})):le(t)?e?c=l?()=>l(t,2):t:c=()=>{if(h){Tn();try{h()}finally{xn()}}const b=Gn;Gn=f;try{return l?l(t,3,[d]):t(d)}finally{Gn=b}}:c=wr,e&&i){const b=c,w=i===!0?1/0:i;c=()=>pn(b(),w)}const g=If(),m=()=>{f.stop(),g&&g.active&&Rv(g.effects,f)};if(a&&e){const b=e;e=(...w)=>{b(...w),m()}}let _=p?new Array(t.length).fill(wl):wl;const y=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(e){const w=f.run();if(i||v||(p?w.some((S,T)=>kt(S,_[T])):kt(w,_))){h&&h();const S=Gn;Gn=f;try{const T=[w,_===wl?void 0:p&&_[0]===wl?[]:_,d];_=w,l?l(e,3,T):e(...T)}finally{Gn=S}}}else f.run()};return s&&s(y),f=new As(c),f.scheduler=o?()=>o(y,!1):y,d=b=>_b(b,!1,f),h=f.onStop=()=>{const b=Bu.get(f);if(b){if(l)l(b,4);else for(const w of b)w();Bu.delete(f)}},e?n?y(!0):_=f.run():o?o(y.bind(null,!0),!0):f.run(),m.pause=f.pause.bind(f),m.resume=f.resume.bind(f),m.stop=m,m}function pn(t,e=1/0,r){if(e<=0||!Ne(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Ue(t))pn(t.value,e,r);else if(Q(t))for(let n=0;n<t.length;n++)pn(t[n],e,r);else if(la(t)||Ka(t))t.forEach(n=>{pn(n,e,r)});else if(Tf(t)){for(const n in t)pn(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&pn(t[n],e,r)}return t}/**
9
+ **/let Tt;class Nv{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Tt,!e&&Tt&&(this.index=(Tt.scopes||(Tt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].pause();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,r;if(this.scopes)for(e=0,r=this.scopes.length;e<r;e++)this.scopes[e].resume();for(e=0,r=this.effects.length;e<r;e++)this.effects[e].resume()}}run(e){if(this._active){const r=Tt;try{return Tt=this,e()}finally{Tt=r}}}on(){++this._on===1&&(this.prevScope=Tt,Tt=this)}off(){this._on>0&&--this._on===0&&(Tt=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Bv(t){return new Nv(t)}function If(){return Tt}function Fv(t,e=!1){Tt&&Tt.cleanups.push(t)}let $e;const gc=new WeakSet;class As{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Tt&&Tt.active&&Tt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,gc.has(this)&&(gc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||eb(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ig(this),tb(this);const e=$e,r=Or;$e=this,Or=!0;try{return this.fn()}finally{rb(this),$e=e,Or=r,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)zv(e);this.deps=this.depsTail=void 0,Ig(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?gc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){od(this)&&this.run()}get dirty(){return od(this)}}let J0=0,fs,cs;function eb(t,e=!1){if(t.flags|=8,e){t.next=cs,cs=t;return}t.next=fs,fs=t}function Vv(){J0++}function Hv(){if(--J0>0)return;if(cs){let e=cs;for(cs=void 0;e;){const r=e.next;e.next=void 0,e.flags&=-9,e=r}}let t;for(;fs;){let e=fs;for(fs=void 0;e;){const r=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=r}}if(t)throw t}function tb(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function rb(t){let e,r=t.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),zv(n),Gx(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=r}function od(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(nb(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function nb(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Ms)||(t.globalVersion=Ms,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!od(t))))return;t.flags|=2;const e=t.dep,r=$e,n=Or;$e=t,Or=!0;try{tb(t);const i=t.fn(t._value);(e.version===0||kt(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{$e=r,Or=n,rb(t),t.flags&=-3}}function zv(t,e=!1){const{dep:r,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),r.subs===t&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)zv(a,!0)}!e&&!--r.sc&&r.map&&r.map.delete(r.key)}function Gx(t){const{prevDep:e,nextDep:r}=t;e&&(e.nextDep=r,t.prevDep=void 0),r&&(r.prevDep=e,t.nextDep=void 0)}function Wx(t,e){t.effect instanceof As&&(t=t.effect.fn);const r=new As(t);e&&Ve(r,e);try{r.run()}catch(i){throw r.stop(),i}const n=r.run.bind(r);return n.effect=r,n}function Yx(t){t.effect.stop()}let Or=!0;const ib=[];function Tn(){ib.push(Or),Or=!1}function xn(){const t=ib.pop();Or=t===void 0?!0:t}function Ig(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const r=$e;$e=void 0;try{e()}finally{$e=r}}}let Ms=0;class Xx{constructor(e,r){this.sub=e,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Af{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!$e||!Or||$e===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==$e)r=this.activeLink=new Xx($e,this),$e.deps?(r.prevDep=$e.depsTail,$e.depsTail.nextDep=r,$e.depsTail=r):$e.deps=$e.depsTail=r,ab(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=$e.depsTail,r.nextDep=void 0,$e.depsTail.nextDep=r,$e.depsTail=r,$e.deps===r&&($e.deps=n)}return r}trigger(e){this.version++,Ms++,this.notify(e)}notify(e){Vv();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{Hv()}}}function ab(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)ab(n)}const r=t.dep.subs;r!==t&&(t.prevSub=r,r&&(r.nextSub=t)),t.dep.subs=t}}const ku=new WeakMap,Gi=Symbol(""),sd=Symbol(""),Es=Symbol("");function Dt(t,e,r){if(Or&&$e){let n=ku.get(t);n||ku.set(t,n=new Map);let i=n.get(r);i||(n.set(r,i=new Af),i.map=n,i.key=r),i.track()}}function pn(t,e,r,n,i,a){const o=ku.get(t);if(!o){Ms++;return}const s=l=>{l&&l.trigger()};if(Vv(),e==="clear")o.forEach(s);else{const l=Q(t),u=l&&kv(r);if(l&&r==="length"){const f=Number(n);o.forEach((c,h)=>{(h==="length"||h===Es||!kr(h)&&h>=f)&&s(c)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(Es)),e){case"add":l?u&&s(o.get("length")):(s(o.get(Gi)),Ka(t)&&s(o.get(sd)));break;case"delete":l||(s(o.get(Gi)),Ka(t)&&s(o.get(sd)));break;case"set":Ka(t)&&s(o.get(Gi));break}}Hv()}function Kx(t,e){const r=ku.get(t);return r&&r.get(e)}function ga(t){const e=Ce(t);return e===t?e:(Dt(e,"iterate",Es),ur(t)?e:e.map(yt))}function Mf(t){return Dt(t=Ce(t),"iterate",Es),t}const qx={__proto__:null,[Symbol.iterator](){return mc(this,Symbol.iterator,yt)},concat(...t){return ga(this).concat(...t.map(e=>Q(e)?ga(e):e))},entries(){return mc(this,"entries",t=>(t[1]=yt(t[1]),t))},every(t,e){return un(this,"every",t,e,void 0,arguments)},filter(t,e){return un(this,"filter",t,e,r=>r.map(yt),arguments)},find(t,e){return un(this,"find",t,e,yt,arguments)},findIndex(t,e){return un(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return un(this,"findLast",t,e,yt,arguments)},findLastIndex(t,e){return un(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return un(this,"forEach",t,e,void 0,arguments)},includes(...t){return yc(this,"includes",t)},indexOf(...t){return yc(this,"indexOf",t)},join(t){return ga(this).join(t)},lastIndexOf(...t){return yc(this,"lastIndexOf",t)},map(t,e){return un(this,"map",t,e,void 0,arguments)},pop(){return Ao(this,"pop")},push(...t){return Ao(this,"push",t)},reduce(t,...e){return Ag(this,"reduce",t,e)},reduceRight(t,...e){return Ag(this,"reduceRight",t,e)},shift(){return Ao(this,"shift")},some(t,e){return un(this,"some",t,e,void 0,arguments)},splice(...t){return Ao(this,"splice",t)},toReversed(){return ga(this).toReversed()},toSorted(t){return ga(this).toSorted(t)},toSpliced(...t){return ga(this).toSpliced(...t)},unshift(...t){return Ao(this,"unshift",t)},values(){return mc(this,"values",yt)}};function mc(t,e,r){const n=Mf(t),i=n[e]();return n!==t&&!ur(t)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const jx=Array.prototype;function un(t,e,r,n,i,a){const o=Mf(t),s=o!==t&&!ur(t),l=o[e];if(l!==jx[e]){const c=l.apply(t,a);return s?yt(c):c}let u=r;o!==t&&(s?u=function(c,h){return r.call(this,yt(c),h,t)}:r.length>2&&(u=function(c,h){return r.call(this,c,h,t)}));const f=l.call(o,u,n);return s&&i?i(f):f}function Ag(t,e,r,n){const i=Mf(t);let a=r;return i!==t&&(ur(t)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,t)}):a=function(o,s,l){return r.call(this,o,yt(s),l,t)}),i[e](a,...n)}function yc(t,e,r){const n=Ce(t);Dt(n,"iterate",Es);const i=n[e](...r);return(i===-1||i===!1)&&Pf(r[0])?(r[0]=Ce(r[0]),n[e](...r)):i}function Ao(t,e,r=[]){Tn(),Vv();const n=Ce(t)[e].apply(t,r);return Hv(),xn(),n}const Zx=Sf("__proto__,__v_isRef,__isVue"),ob=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(kr));function Qx(t){kr(t)||(t=String(t));const e=Ce(this);return Dt(e,"has",t),e.hasOwnProperty(t)}class sb{constructor(e=!1,r=!1){this._isReadonly=e,this._isShallow=r}get(e,r,n){if(r==="__v_skip")return e.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?db:hb:a?cb:fb).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=Q(e);if(!i){let l;if(o&&(l=qx[r]))return l;if(r==="hasOwnProperty")return Qx}const s=Reflect.get(e,r,Ue(e)?e:n);return(kr(r)?ob.has(r):Zx(r))||(i||Dt(e,"get",r),a)?s:Ue(s)?o&&kv(r)?s:s.value:Ne(s)?i?$v(s):go(s):s}}class lb extends sb{constructor(e=!1){super(!1,e)}set(e,r,n,i){let a=e[r];if(!this._isShallow){const l=Cn(a);if(!ur(n)&&!Cn(n)&&(a=Ce(a),n=Ce(n)),!Q(e)&&Ue(a)&&!Ue(n))return l?!1:(a.value=n,!0)}const o=Q(e)&&kv(r)?Number(r)<e.length:Le(e,r),s=Reflect.set(e,r,n,Ue(e)?e:i);return e===Ce(i)&&(o?kt(n,a)&&pn(e,"set",r,n):pn(e,"add",r,n)),s}deleteProperty(e,r){const n=Le(e,r);e[r];const i=Reflect.deleteProperty(e,r);return i&&n&&pn(e,"delete",r,void 0),i}has(e,r){const n=Reflect.has(e,r);return(!kr(r)||!ob.has(r))&&Dt(e,"has",r),n}ownKeys(e){return Dt(e,"iterate",Q(e)?"length":Gi),Reflect.ownKeys(e)}}class ub extends sb{constructor(e=!1){super(!0,e)}set(e,r){return!0}deleteProperty(e,r){return!0}}const Jx=new lb,eC=new ub,tC=new lb(!0),rC=new ub(!0),ld=t=>t,_l=t=>Reflect.getPrototypeOf(t);function nC(t,e,r){return function(...n){const i=this.__v_raw,a=Ce(i),o=Ka(a),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),f=r?ld:e?Nu:yt;return!e&&Dt(a,"iterate",l?sd:Gi),{next(){const{value:c,done:h}=u.next();return h?{value:c,done:h}:{value:s?[f(c[0]),f(c[1])]:f(c),done:h}},[Symbol.iterator](){return this}}}}function bl(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function iC(t,e){const r={get(i){const a=this.__v_raw,o=Ce(a),s=Ce(i);t||(kt(i,s)&&Dt(o,"get",i),Dt(o,"get",s));const{has:l}=_l(o),u=e?ld:t?Nu:yt;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!t&&Dt(Ce(i),"iterate",Gi),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=Ce(a),s=Ce(i);return t||(kt(i,s)&&Dt(o,"has",i),Dt(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Ce(s),u=e?ld:t?Nu:yt;return!t&&Dt(l,"iterate",Gi),s.forEach((f,c)=>i.call(a,u(f),u(c),o))}};return Ve(r,t?{add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear")}:{add(i){!e&&!ur(i)&&!Cn(i)&&(i=Ce(i));const a=Ce(this);return _l(a).has.call(a,i)||(a.add(i),pn(a,"add",i,i)),this},set(i,a){!e&&!ur(a)&&!Cn(a)&&(a=Ce(a));const o=Ce(this),{has:s,get:l}=_l(o);let u=s.call(o,i);u||(i=Ce(i),u=s.call(o,i));const f=l.call(o,i);return o.set(i,a),u?kt(a,f)&&pn(o,"set",i,a):pn(o,"add",i,a),this},delete(i){const a=Ce(this),{has:o,get:s}=_l(a);let l=o.call(a,i);l||(i=Ce(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&pn(a,"delete",i,void 0),u},clear(){const i=Ce(this),a=i.size!==0,o=i.clear();return a&&pn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=nC(i,t,e)}),r}function Ef(t,e){const r=iC(t,e);return(n,i,a)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Le(r,i)&&i in n?r:n,i,a)}const aC={get:Ef(!1,!1)},oC={get:Ef(!1,!0)},sC={get:Ef(!0,!1)},lC={get:Ef(!0,!0)},fb=new WeakMap,cb=new WeakMap,hb=new WeakMap,db=new WeakMap;function uC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fC(t){return t.__v_skip||!Object.isExtensible(t)?0:uC(Px(t))}function go(t){return Cn(t)?t:Lf(t,!1,Jx,aC,fb)}function vb(t){return Lf(t,!1,tC,oC,cb)}function $v(t){return Lf(t,!0,eC,sC,hb)}function cC(t){return Lf(t,!0,rC,lC,db)}function Lf(t,e,r,n,i){if(!Ne(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=fC(t);if(a===0)return t;const o=i.get(t);if(o)return o;const s=new Proxy(t,a===2?n:r);return i.set(t,s),s}function jn(t){return Cn(t)?jn(t.__v_raw):!!(t&&t.__v_isReactive)}function Cn(t){return!!(t&&t.__v_isReadonly)}function ur(t){return!!(t&&t.__v_isShallow)}function Pf(t){return t?!!t.__v_raw:!1}function Ce(t){const e=t&&t.__v_raw;return e?Ce(e):t}function pb(t){return!Le(t,"__v_skip")&&Object.isExtensible(t)&&ad(t,"__v_skip",!0),t}const yt=t=>Ne(t)?go(t):t,Nu=t=>Ne(t)?$v(t):t;function Ue(t){return t?t.__v_isRef===!0:!1}function we(t){return gb(t,!1)}function il(t){return gb(t,!0)}function gb(t,e){return Ue(t)?t:new hC(t,e)}class hC{constructor(e,r){this.dep=new Af,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?e:Ce(e),this._value=r?e:yt(e),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(e){const r=this._rawValue,n=this.__v_isShallow||ur(e)||Cn(e);e=n?e:Ce(e),kt(e,r)&&(this._rawValue=e,this._value=n?e:yt(e),this.dep.trigger())}}function dC(t){t.dep&&t.dep.trigger()}function P(t){return Ue(t)?t.value:t}function At(t){return le(t)?t():P(t)}const vC={get:(t,e,r)=>e==="__v_raw"?t:P(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return Ue(i)&&!Ue(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Uv(t){return jn(t)?t:new Proxy(t,vC)}class pC{constructor(e){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new Af,{get:n,set:i}=e(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function mb(t){return new pC(t)}function mo(t){const e=Q(t)?new Array(t.length):{};for(const r in t)e[r]=yb(t,r);return e}class gC{constructor(e,r,n){this._object=e,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Kx(Ce(this._object),this._key)}}class mC{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function yC(t,e,r){return Ue(t)?t:le(t)?new mC(t):Ne(t)&&arguments.length>1?yb(t,e,r):we(t)}function yb(t,e,r){const n=t[e];return Ue(n)?n:new gC(t,e,r)}class _C{constructor(e,r,n){this.fn=e,this.setter=r,this._value=void 0,this.dep=new Af(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ms-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return eb(this,!0),!0}get value(){const e=this.dep.track();return nb(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function bC(t,e,r=!1){let n,i;return le(t)?n=t:(n=t.get,i=t.set),new _C(n,i,r)}const wC={GET:"get",HAS:"has",ITERATE:"iterate"},SC={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},wl={},Bu=new WeakMap;let Gn;function TC(){return Gn}function _b(t,e=!1,r=Gn){if(r){let n=Bu.get(r);n||Bu.set(r,n=[]),n.push(t)}}function xC(t,e,r=Te){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=b=>i?b:ur(b)||i===!1||i===0?gn(b,1):gn(b);let f,c,h,d,v=!1,p=!1;if(Ue(t)?(c=()=>t.value,v=ur(t)):jn(t)?(c=()=>u(t),v=!0):Q(t)?(p=!0,v=t.some(b=>jn(b)||ur(b)),c=()=>t.map(b=>{if(Ue(b))return b.value;if(jn(b))return u(b);if(le(b))return l?l(b,2):b()})):le(t)?e?c=l?()=>l(t,2):t:c=()=>{if(h){Tn();try{h()}finally{xn()}}const b=Gn;Gn=f;try{return l?l(t,3,[d]):t(d)}finally{Gn=b}}:c=wr,e&&i){const b=c,w=i===!0?1/0:i;c=()=>gn(b(),w)}const g=If(),m=()=>{f.stop(),g&&g.active&&Rv(g.effects,f)};if(a&&e){const b=e;e=(...w)=>{b(...w),m()}}let _=p?new Array(t.length).fill(wl):wl;const y=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(e){const w=f.run();if(i||v||(p?w.some((S,T)=>kt(S,_[T])):kt(w,_))){h&&h();const S=Gn;Gn=f;try{const T=[w,_===wl?void 0:p&&_[0]===wl?[]:_,d];_=w,l?l(e,3,T):e(...T)}finally{Gn=S}}}else f.run()};return s&&s(y),f=new As(c),f.scheduler=o?()=>o(y,!1):y,d=b=>_b(b,!1,f),h=f.onStop=()=>{const b=Bu.get(f);if(b){if(l)l(b,4);else for(const w of b)w();Bu.delete(f)}},e?n?y(!0):_=f.run():o?o(y.bind(null,!0),!0):f.run(),m.pause=f.pause.bind(f),m.resume=f.resume.bind(f),m.stop=m,m}function gn(t,e=1/0,r){if(e<=0||!Ne(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),e--,Ue(t))gn(t.value,e,r);else if(Q(t))for(let n=0;n<t.length;n++)gn(t[n],e,r);else if(la(t)||Ka(t))t.forEach(n=>{gn(n,e,r)});else if(Tf(t)){for(const n in t)gn(t[n],e,r);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&gn(t[n],e,r)}return t}/**
10
10
  * @vue/runtime-core v3.5.17
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const bb=[];function CC(t){bb.push(t)}function DC(){bb.pop()}function IC(t,e){}const AC={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},MC={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function yo(t,e,r,n){try{return n?t(...n):t()}catch(i){ua(i,e,r)}}function xr(t,e,r,n){if(le(t)){const i=yo(t,e,r,n);return i&&Ov(i)&&i.catch(a=>{ua(a,e,r)}),i}if(Q(t)){const i=[];for(let a=0;a<t.length;a++)i.push(xr(t[a],e,r,n));return i}}function ua(t,e,r,n=!0){const i=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Te;if(e){let s=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const f=s.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](t,l,u)===!1)return}s=s.parent}if(a){Tn(),yo(a,null,10,[t,l,u]),xn();return}}EC(t,r,i,n,o)}function EC(t,e,r,n=!0,i=!1){if(i)throw t;console.error(t)}const Nt=[];let Xr=-1;const Qa=[];let Wn=null,Ba=0;const wb=Promise.resolve();let Fu=null;function Cr(t){const e=Fu||wb;return t?e.then(this?t.bind(this):t):e}function LC(t){let e=Xr+1,r=Nt.length;for(;e<r;){const n=e+r>>>1,i=Nt[n],a=Ps(i);a<t||a===t&&i.flags&2?e=n+1:r=n}return e}function Gv(t){if(!(t.flags&1)){const e=Ps(t),r=Nt[Nt.length-1];!r||!(t.flags&2)&&e>=Ps(r)?Nt.push(t):Nt.splice(LC(e),0,t),t.flags|=1,Sb()}}function Sb(){Fu||(Fu=wb.then(Tb))}function Ls(t){Q(t)?Qa.push(...t):Wn&&t.id===-1?Wn.splice(Ba+1,0,t):t.flags&1||(Qa.push(t),t.flags|=1),Sb()}function Mg(t,e,r=Xr+1){for(;r<Nt.length;r++){const n=Nt[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Nt.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Vu(t){if(Qa.length){const e=[...new Set(Qa)].sort((r,n)=>Ps(r)-Ps(n));if(Qa.length=0,Wn){Wn.push(...e);return}for(Wn=e,Ba=0;Ba<Wn.length;Ba++){const r=Wn[Ba];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Wn=null,Ba=0}}const Ps=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Tb(t){try{for(Xr=0;Xr<Nt.length;Xr++){const e=Nt[Xr];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),yo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Xr<Nt.length;Xr++){const e=Nt[Xr];e&&(e.flags&=-2)}Xr=-1,Nt.length=0,Vu(),Fu=null,(Nt.length||Qa.length)&&Tb()}}let Fa,Sl=[];function xb(t,e){var r,n;Fa=t,Fa?(Fa.enabled=!0,Sl.forEach(({event:i,args:a})=>Fa.emit(i,...a)),Sl=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{xb(a,e)}),setTimeout(()=>{Fa||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Sl=[])},3e3)):Sl=[]}let lt=null,Rf=null;function Rs(t){const e=lt;return lt=t,Rf=t&&t.type.__scopeId||null,e}function PC(t){Rf=t}function RC(){Rf=null}const OC=t=>ie;function ie(t,e=lt,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&gd(-1);const a=Rs(e);let o;try{o=t(...i)}finally{Rs(a),n._d&&gd(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Of(t,e){if(lt===null)return t;const r=ll(lt),n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[a,o,s,l=Te]=e[i];a&&(le(a)&&(a={mounted:a,updated:a}),a.deep&&pn(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return t}function Kr(t,e,r,n){const i=t.dirs,a=e&&e.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Tn(),xr(l,r,8,[t.el,s,t,e]),xn())}}const Cb=Symbol("_vte"),Db=t=>t.__isTeleport,hs=t=>t&&(t.disabled||t.disabled===""),Eg=t=>t&&(t.defer||t.defer===""),Lg=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Pg=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,ud=(t,e)=>{const r=t&&t.to;return We(r)?e?e(r):null:r},Ib={name:"Teleport",__isTeleport:!0,process(t,e,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:d,querySelector:v,createText:p,createComment:g}}=u,m=hs(e.props);let{shapeFlag:_,children:y,dynamicChildren:b}=e;if(t==null){const w=e.el=p(""),S=e.anchor=p("");d(w,r,n),d(S,r,n);const T=(x,D)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=x),f(y,x,D,i,a,o,s,l))},C=()=>{const x=e.target=ud(e.props,v),D=Mb(x,e,p,d);x&&(o!=="svg"&&Lg(x)?o="svg":o!=="mathml"&&Pg(x)&&(o="mathml"),m||(T(x,D),vu(e,!1)))};m&&(T(r,S),vu(e,!0)),Eg(e.props)?(e.el.__isMounted=!1,ot(()=>{C(),delete e.el.__isMounted},a)):C()}else{if(Eg(e.props)&&t.el.__isMounted===!1){ot(()=>{Ib.process(t,e,r,n,i,a,o,s,l,u)},a);return}e.el=t.el,e.targetStart=t.targetStart;const w=e.anchor=t.anchor,S=e.target=t.target,T=e.targetAnchor=t.targetAnchor,C=hs(t.props),x=C?r:S,D=C?w:T;if(o==="svg"||Lg(S)?o="svg":(o==="mathml"||Pg(S))&&(o="mathml"),b?(h(t.dynamicChildren,b,x,i,a,o,s),rp(t,e,!0)):l||c(t,e,x,D,i,a,o,s,!1),m)C?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Tl(e,r,w,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const A=e.target=ud(e.props,v);A&&Tl(e,A,null,u,0)}else C&&Tl(e,S,T,u,1);vu(e,m)}},remove(t,e,r,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=t;if(c&&(i(u),i(f)),a&&i(l),o&16){const d=a||!hs(h);for(let v=0;v<s.length;v++){const p=s[v];n(p,e,r,d,!!p.dynamicChildren)}}},move:Tl,hydrate:kC};function Tl(t,e,r,{o:{insert:n},m:i},a=2){a===0&&n(t.targetAnchor,e,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=t,c=a===2;if(c&&n(o,e,r),(!c||hs(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],e,r,2);c&&n(s,e,r)}function kC(t,e,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:f}},c){const h=e.target=ud(e.props,l);if(h){const d=hs(e.props),v=h._lpa||h.firstChild;if(e.shapeFlag&16)if(d)e.anchor=c(o(t),e,s(t),r,n,i,a),e.targetStart=v,e.targetAnchor=v&&o(v);else{e.anchor=o(t);let p=v;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")e.targetStart=p;else if(p.data==="teleport anchor"){e.targetAnchor=p,h._lpa=e.targetAnchor&&o(e.targetAnchor);break}}p=o(p)}e.targetAnchor||Mb(h,e,f,u),c(v&&o(v),e,h,r,n,i,a)}vu(e,d)}return e.anchor&&o(e.anchor)}const Ab=Ib;function vu(t,e){const r=t.ctx;if(r&&r.ut){let n,i;for(e?(n=t.el,i=t.anchor):(n=t.targetStart,i=t.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Mb(t,e,r,n){const i=e.targetStart=r(""),a=e.targetAnchor=r("");return i[Cb]=a,t&&(n(i,t),n(a,t)),a}const Yn=Symbol("_leaveCb"),xl=Symbol("_enterCb");function Wv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nn(()=>{t.isMounted=!0}),ol(()=>{t.isUnmounting=!0}),t}const hr=[Function,Array],Yv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hr,onEnter:hr,onAfterEnter:hr,onEnterCancelled:hr,onBeforeLeave:hr,onLeave:hr,onAfterLeave:hr,onLeaveCancelled:hr,onBeforeAppear:hr,onAppear:hr,onAfterAppear:hr,onAppearCancelled:hr},Eb=t=>{const e=t.subTree;return e.component?Eb(e.component):e},NC={name:"BaseTransition",props:Yv,setup(t,{slots:e}){const r=gt(),n=Wv();return()=>{const i=e.default&&kf(e.default(),!0);if(!i||!i.length)return;const a=Lb(i),o=Ce(t),{mode:s}=o;if(n.isLeaving)return _c(a);const l=Rg(a);if(!l)return _c(a);let u=ao(l,o,n,r,c=>u=c);l.type!==tt&&Dn(l,u);let f=r.subTree&&Rg(r.subTree);if(f&&f.type!==tt&&!Rr(l,f)&&Eb(r).type!==tt){let c=ao(f,o,n,r);if(Dn(f,c),s==="out-in"&&l.type!==tt)return n.isLeaving=!0,c.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete c.afterLeave,f=void 0},_c(a);s==="in-out"&&l.type!==tt?c.delayLeave=(h,d,v)=>{const p=Rb(n,f);p[String(f.key)]=f,h[Yn]=()=>{d(),h[Yn]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function Lb(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==tt){e=r;break}}return e}const Pb=NC;function Rb(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function ao(t,e,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:c,onBeforeLeave:h,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:_,onAppearCancelled:y}=e,b=String(t.key),w=Rb(r,t),S=(x,D)=>{x&&xr(x,n,9,D)},T=(x,D)=>{const A=D[1];S(x,D),Q(x)?x.every(M=>M.length<=1)&&A():x.length<=1&&A()},C={mode:o,persisted:s,beforeEnter(x){let D=l;if(!r.isMounted)if(a)D=g||l;else return;x[Yn]&&x[Yn](!0);const A=w[b];A&&Rr(t,A)&&A.el[Yn]&&A.el[Yn](),S(D,[x])},enter(x){let D=u,A=f,M=c;if(!r.isMounted)if(a)D=m||u,A=_||f,M=y||c;else return;let R=!1;const k=x[xl]=H=>{R||(R=!0,H?S(M,[x]):S(A,[x]),C.delayedLeave&&C.delayedLeave(),x[xl]=void 0)};D?T(D,[x,k]):k()},leave(x,D){const A=String(t.key);if(x[xl]&&x[xl](!0),r.isUnmounting)return D();S(h,[x]);let M=!1;const R=x[Yn]=k=>{M||(M=!0,D(),k?S(p,[x]):S(v,[x]),x[Yn]=void 0,w[A]===t&&delete w[A])};w[A]=t,d?T(d,[x,R]):R()},clone(x){const D=ao(x,e,r,n,i);return i&&i(D),D}};return C}function _c(t){if(al(t))return t=Nr(t),t.children=null,t}function Rg(t){if(!al(t))return Db(t.type)&&t.children?Lb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&le(r.default))return r.default()}}function Dn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Dn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function kf(t,e=!1,r){let n=[],i=0;for(let a=0;a<t.length;a++){let o=t[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===qe?(o.patchFlag&128&&i++,n=n.concat(kf(o.children,e,s))):(e||o.type!==tt)&&n.push(s!=null?Nr(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function fe(t,e){return le(t)?Ve({name:t.name},e,{setup:t}):t}function Ob(){const t=gt();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Xv(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Kv(t){const e=gt(),r=il(null);if(e){const i=e.refs===Te?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>r.value,set:a=>r.value=a})}return r}function Ja(t,e,r,n,i=!1){if(Q(t)){t.forEach((v,p)=>Ja(v,e&&(Q(e)?e[p]:e),r,n,i));return}if(Zn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ja(t,e,r,n.component.subTree);return}const a=n.shapeFlag&4?ll(n.component):n.el,o=i?null:a,{i:s,r:l}=t,u=e&&e.r,f=s.refs===Te?s.refs={}:s.refs,c=s.setupState,h=Ce(c),d=c===Te?()=>!1:v=>Le(h,v);if(u!=null&&u!==l&&(We(u)?(f[u]=null,d(u)&&(c[u]=null)):Ue(u)&&(u.value=null)),le(l))yo(l,s,12,[o,f]);else{const v=We(l),p=Ue(l);if(v||p){const g=()=>{if(t.f){const m=v?d(l)?c[l]:f[l]:l.value;i?Q(m)&&Rv(m,a):Q(m)?m.includes(a)||m.push(a):v?(f[l]=[a],d(l)&&(c[l]=f[l])):(l.value=[a],t.k&&(f[t.k]=l.value))}else v?(f[l]=o,d(l)&&(c[l]=o)):p&&(l.value=o,t.k&&(f[t.k]=o))};o?(g.id=-1,ot(g,r)):g()}}}let Og=!1;const ma=()=>{Og||(console.error("Hydration completed but contains mismatches."),Og=!0)},BC=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",FC=t=>t.namespaceURI.includes("MathML"),Cl=t=>{if(t.nodeType===1){if(BC(t))return"svg";if(FC(t))return"mathml"}},za=t=>t.nodeType===8;function VC(t){const{mt:e,p:r,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=t,f=(y,b)=>{if(!b.hasChildNodes()){r(null,y,b),Vu(),b._vnode=y;return}c(b.firstChild,y,null,null,null),Vu(),b._vnode=y},c=(y,b,w,S,T,C=!1)=>{C=C||!!b.dynamicChildren;const x=za(y)&&y.data==="[",D=()=>p(y,b,w,S,T,x),{type:A,ref:M,shapeFlag:R,patchFlag:k}=b;let H=y.nodeType;b.el=y,k===-2&&(C=!1,b.dynamicChildren=null);let N=null;switch(A){case Qn:H!==3?b.children===""?(l(b.el=i(""),o(y),y),N=y):N=D():(y.data!==b.children&&(ma(),y.data=b.children),N=a(y));break;case tt:_(y)?(N=a(y),m(b.el=y.content.firstChild,y,w)):H!==8||x?N=D():N=a(y);break;case Xi:if(x&&(y=a(y),H=y.nodeType),H===1||H===3){N=y;const q=!b.children.length;for(let U=0;U<b.staticCount;U++)q&&(b.children+=N.nodeType===1?N.outerHTML:N.data),U===b.staticCount-1&&(b.anchor=N),N=a(N);return x?a(N):N}else D();break;case qe:x?N=v(y,b,w,S,T,C):N=D();break;default:if(R&1)(H!==1||b.type.toLowerCase()!==y.tagName.toLowerCase())&&!_(y)?N=D():N=h(y,b,w,S,T,C);else if(R&6){b.slotScopeIds=T;const q=o(y);if(x?N=g(y):za(y)&&y.data==="teleport start"?N=g(y,y.data,"teleport end"):N=a(y),e(b,q,null,w,S,Cl(q),C),Zn(b)&&!b.type.__asyncResolved){let U;x?(U=ee(qe),U.anchor=N?N.previousSibling:q.lastChild):U=y.nodeType===3?br(""):ee("div"),U.el=y,b.component.subTree=U}}else R&64?H!==8?N=D():N=b.type.hydrate(y,b,w,S,T,C,t,d):R&128&&(N=b.type.hydrate(y,b,w,S,Cl(o(y)),T,C,t,c))}return M!=null&&Ja(M,null,S,b),N},h=(y,b,w,S,T,C)=>{C=C||!!b.dynamicChildren;const{type:x,props:D,patchFlag:A,shapeFlag:M,dirs:R,transition:k}=b,H=x==="input"||x==="option";if(H||A!==-1){R&&Kr(b,null,w,"created");let N=!1;if(_(y)){N=iw(null,k)&&w&&w.vnode.props&&w.vnode.props.appear;const U=y.content.firstChild;if(N){const ue=U.getAttribute("class");ue&&(U.$cls=ue),k.beforeEnter(U)}m(U,y,w),b.el=y=U}if(M&16&&!(D&&(D.innerHTML||D.textContent))){let U=d(y.firstChild,b,y,w,S,T,C);for(;U;){Dl(y,1)||ma();const ue=U;U=U.nextSibling,s(ue)}}else if(M&8){let U=b.children;U[0]===`
14
- `&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(U=U.slice(1)),y.textContent!==U&&(Dl(y,0)||ma(),y.textContent=b.children)}if(D){if(H||!C||A&48){const U=y.tagName.includes("-");for(const ue in D)(H&&(ue.endsWith("value")||ue==="indeterminate")||rl(ue)&&!qa(ue)||ue[0]==="."||U)&&n(y,ue,null,D[ue],void 0,w)}else if(D.onClick)n(y,"onClick",null,D.onClick,void 0,w);else if(A&4&&jn(D.style))for(const U in D.style)D.style[U]}let q;(q=D&&D.onVnodeBeforeMount)&&Yt(q,w,b),R&&Kr(b,null,w,"beforeMount"),((q=D&&D.onVnodeMounted)||R||N)&&dw(()=>{q&&Yt(q,w,b),N&&k.enter(y),R&&Kr(b,null,w,"mounted")},S)}return y.nextSibling},d=(y,b,w,S,T,C,x)=>{x=x||!!b.dynamicChildren;const D=b.children,A=D.length;for(let M=0;M<A;M++){const R=x?D[M]:D[M]=Xt(D[M]),k=R.type===Qn;y?(k&&!x&&M+1<A&&Xt(D[M+1]).type===Qn&&(l(i(y.data.slice(R.children.length)),w,a(y)),y.data=R.children),y=c(y,R,S,T,C,x)):k&&!R.children?l(R.el=i(""),w):(Dl(w,1)||ma(),r(null,R,w,null,S,T,Cl(w),C))}return y},v=(y,b,w,S,T,C)=>{const{slotScopeIds:x}=b;x&&(T=T?T.concat(x):x);const D=o(y),A=d(a(y),b,D,w,S,T,C);return A&&za(A)&&A.data==="]"?a(b.anchor=A):(ma(),l(b.anchor=u("]"),D,A),A)},p=(y,b,w,S,T,C)=>{if(Dl(y.parentElement,1)||ma(),b.el=null,C){const A=g(y);for(;;){const M=a(y);if(M&&M!==A)s(M);else break}}const x=a(y),D=o(y);return s(y),r(null,b,D,x,w,S,Cl(D),T),w&&(w.vnode.el=b.el,Hf(w,b.el)),x},g=(y,b="[",w="]")=>{let S=0;for(;y;)if(y=a(y),y&&za(y)&&(y.data===b&&S++,y.data===w)){if(S===0)return a(y);S--}return y},m=(y,b,w)=>{const S=b.parentNode;S&&S.replaceChild(y,b);let T=w;for(;T;)T.vnode.el===b&&(T.vnode.el=T.subTree.el=y),T=T.parent},_=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[f,c]}const kg="data-allow-mismatch",HC={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Dl(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(kg);)t=t.parentElement;const r=t&&t.getAttribute(kg);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return e===0&&n.includes("children")?!0:n.includes(HC[e])}}const zC=Cf().requestIdleCallback||(t=>setTimeout(t,1)),$C=Cf().cancelIdleCallback||(t=>clearTimeout(t)),UC=(t=1e4)=>e=>{const r=zC(e,{timeout:t});return()=>$C(r)};function GC(t){const{top:e,left:r,bottom:n,right:i}=t.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(e>0&&e<a||n>0&&n<a)&&(r>0&&r<o||i>0&&i<o)}const WC=t=>(e,r)=>{const n=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){n.disconnect(),e();break}},t);return r(i=>{if(i instanceof Element){if(GC(i))return e(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},YC=t=>e=>{if(t){const r=matchMedia(t);if(r.matches)e();else return r.addEventListener("change",e,{once:!0}),()=>r.removeEventListener("change",e)}},XC=(t=[])=>(e,r)=>{We(t)&&(t=[t]);let n=!1;const i=o=>{n||(n=!0,a(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{r(o=>{for(const s of t)o.removeEventListener(s,i)})};return r(o=>{for(const s of t)o.addEventListener(s,i,{once:!0})}),a};function KC(t,e){if(za(t)&&t.data==="["){let r=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(za(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else e(t)}const Zn=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function qC(t){le(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=t;let u=null,f,c=0;const h=()=>(c++,u=null,d()),d=()=>{let v;return u||(v=u=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,m)=>{l(p,()=>g(h()),()=>m(p),c+1)});throw p}).then(p=>v!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return fe({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(v,p,g){const m=a?()=>{const y=a(()=>{g()},b=>KC(v,b));y&&(p.bum||(p.bum=[])).push(y),(p.u||(p.u=[])).push(()=>!0)}:g;f?m():d().then(()=>!p.isUnmounted&&m())},get __asyncResolved(){return f},setup(){const v=st;if(Xv(v),f)return()=>bc(f,v);const p=y=>{u=null,ua(y,v,13,!n)};if(s&&v.suspense||oo)return d().then(y=>()=>bc(y,v)).catch(y=>(p(y),()=>n?ee(n,{error:y}):null));const g=we(!1),m=we(),_=we(!!i);return i&&setTimeout(()=>{_.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!m.value){const y=new Error(`Async component timed out after ${o}ms.`);p(y),m.value=y}},o),d().then(()=>{g.value=!0,v.parent&&al(v.parent.vnode)&&v.parent.update()}).catch(y=>{p(y),m.value=y}),()=>{if(g.value&&f)return bc(f,v);if(m.value&&n)return ee(n,{error:m.value});if(r&&!_.value)return ee(r)}}})}function bc(t,e){const{ref:r,props:n,children:i,ce:a}=e.vnode,o=ee(t,n,i);return o.ref=r,o.ce=a,delete e.vnode.ce,o}const al=t=>t.type.__isKeepAlive,jC={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=gt(),n=r.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=r.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:c}}}=n,h=c("div");n.activate=(_,y,b,w,S)=>{const T=_.component;u(_,y,b,0,s),l(T.vnode,_,y,b,T,s,w,_.slotScopeIds,S),ot(()=>{T.isDeactivated=!1,T.a&&Za(T.a);const C=_.props&&_.props.onVnodeMounted;C&&Yt(C,T.parent,_)},s)},n.deactivate=_=>{const y=_.component;zu(y.m),zu(y.a),u(_,h,null,1,s),ot(()=>{y.da&&Za(y.da);const b=_.props&&_.props.onVnodeUnmounted;b&&Yt(b,y.parent,_),y.isDeactivated=!0},s)};function d(_){wc(_),f(_,r,s,!0)}function v(_){i.forEach((y,b)=>{const w=wd(y.type);w&&!_(w)&&p(b)})}function p(_){const y=i.get(_);y&&(!o||!Rr(y,o))?d(y):o&&wc(o),i.delete(_),a.delete(_)}rt(()=>[t.include,t.exclude],([_,y])=>{_&&v(b=>Jo(_,b)),y&&v(b=>!Jo(y,b))},{flush:"post",deep:!0});let g=null;const m=()=>{g!=null&&($u(r.subTree.type)?ot(()=>{i.set(g,Il(r.subTree))},r.subTree.suspense):i.set(g,Il(r.subTree)))};return nn(m),Bf(m),ol(()=>{i.forEach(_=>{const{subTree:y,suspense:b}=r,w=Il(y);if(_.type===w.type&&_.key===w.key){wc(w);const S=w.component.da;S&&ot(S,b);return}d(_)})}),()=>{if(g=null,!e.default)return o=null;const _=e.default(),y=_[0];if(_.length>1)return o=null,_;if(!In(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let b=Il(y);if(b.type===tt)return o=null,b;const w=b.type,S=wd(Zn(b)?b.type.__asyncResolved||{}:w),{include:T,exclude:C,max:x}=t;if(T&&(!S||!Jo(T,S))||C&&S&&Jo(C,S))return b.shapeFlag&=-257,o=b,y;const D=b.key==null?w:b.key,A=i.get(D);return b.el&&(b=Nr(b),y.shapeFlag&128&&(y.ssContent=b)),g=D,A?(b.el=A.el,b.component=A.component,b.transition&&Dn(b,b.transition),b.shapeFlag|=512,a.delete(D),a.add(D)):(a.add(D),x&&a.size>parseInt(x,10)&&p(a.values().next().value)),b.shapeFlag|=256,o=b,$u(y.type)?y:b}}},ZC=jC;function Jo(t,e){return Q(t)?t.some(r=>Jo(r,e)):We(t)?t.split(",").includes(e):Lx(t)?(t.lastIndex=0,t.test(e)):!1}function kb(t,e){Bb(t,"a",e)}function Nb(t,e){Bb(t,"da",e)}function Bb(t,e,r=st){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Nf(e,n,r),r){let i=r.parent;for(;i&&i.parent;)al(i.parent.vnode)&&QC(n,e,r,i),i=i.parent}}function QC(t,e,r,n){const i=Nf(e,t,n,!0);fa(()=>{Rv(n[e],i)},r)}function wc(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Il(t){return t.shapeFlag&128?t.ssContent:t}function Nf(t,e,r=st,n=!1){if(r){const i=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...o)=>{Tn();const s=ra(r),l=xr(e,r,t,o);return s(),xn(),l});return n?i.unshift(a):i.push(a),a}}const Mn=t=>(e,r=st)=>{(!oo||t==="sp")&&Nf(t,(...n)=>e(...n),r)},Fb=Mn("bm"),nn=Mn("m"),qv=Mn("bu"),Bf=Mn("u"),ol=Mn("bum"),fa=Mn("um"),Vb=Mn("sp"),Hb=Mn("rtg"),zb=Mn("rtc");function $b(t,e=st){Nf("ec",t,e)}const jv="components",JC="directives";function eD(t,e){return Zv(jv,t,!0,e)||t}const Ub=Symbol.for("v-ndc");function tD(t){return We(t)?Zv(jv,t,!1)||t:t||Ub}function rD(t){return Zv(JC,t)}function Zv(t,e,r=!0,n=!1){const i=lt||st;if(i){const a=i.type;if(t===jv){const s=wd(a,!1);if(s&&(s===e||s===dt(e)||s===nl(dt(e))))return a}const o=Ng(i[t]||a[t],e)||Ng(i.appContext[t],e);return!o&&n?a:o}}function Ng(t,e){return t&&(t[e]||t[dt(e)]||t[nl(dt(e))])}function _o(t,e,r,n){let i;const a=r&&r[n],o=Q(t);if(o||We(t)){const s=o&&jn(t);let l=!1,u=!1;s&&(l=!ur(t),u=Cn(t),t=Mf(t)),i=new Array(t.length);for(let f=0,c=t.length;f<c;f++)i[f]=e(l?u?Nu(yt(t[f])):yt(t[f]):t[f],f,void 0,a&&a[f])}else if(typeof t=="number"){i=new Array(t);for(let s=0;s<t;s++)i[s]=e(s+1,s,void 0,a&&a[s])}else if(Ne(t))if(t[Symbol.iterator])i=Array.from(t,(s,l)=>e(s,l,void 0,a&&a[l]));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];i[l]=e(t[f],f,l,a&&a[l])}}else i=[];return r&&(r[n]=i),i}function nD(t,e){for(let r=0;r<e.length;r++){const n=e[r];if(Q(n))for(let i=0;i<n.length;i++)t[n[i].name]=n[i].fn;else n&&(t[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return t}function Ee(t,e,r={},n,i){if(lt.ce||lt.parent&&Zn(lt.parent)&&lt.parent.ce)return e!=="default"&&(r.name=e),j(),de(qe,null,[ee("slot",r,n&&n())],64);let a=t[e];a&&a._c&&(a._d=!1),j();const o=a&&Qv(a(r)),s=r.key||o&&o.key,l=de(qe,{key:(s&&!kr(s)?s:`_${e}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Qv(t){return t.some(e=>In(e)?!(e.type===tt||e.type===qe&&!Qv(e.children)):!0)?t:null}function iD(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:ja(n)]=t[n];return r}const fd=t=>t?_w(t)?ll(t):fd(t.parent):null,ds=Ve(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>fd(t.parent),$root:t=>fd(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Jv(t),$forceUpdate:t=>t.f||(t.f=()=>{Gv(t.update)}),$nextTick:t=>t.n||(t.n=Cr.bind(t.proxy)),$watch:t=>OD.bind(t)}),Sc=(t,e)=>t!==Te&&!t.__isScriptSetup&&Le(t,e),cd={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return a[e]}else{if(Sc(n,e))return o[e]=1,n[e];if(i!==Te&&Le(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&Le(u,e))return o[e]=3,a[e];if(r!==Te&&Le(r,e))return o[e]=4,r[e];hd&&(o[e]=0)}}const f=ds[e];let c,h;if(f)return e==="$attrs"&&Dt(t.attrs,"get",""),f(t);if((c=s.__cssModules)&&(c=c[e]))return c;if(r!==Te&&Le(r,e))return o[e]=4,r[e];if(h=l.config.globalProperties,Le(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:a}=t;return Sc(i,e)?(i[e]=r,!0):n!==Te&&Le(n,e)?(n[e]=r,!0):Le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||t!==Te&&Le(t,o)||Sc(e,o)||(s=a[0])&&Le(s,o)||Le(n,o)||Le(ds,o)||Le(i.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Le(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},aD=Ve({},cd,{get(t,e){if(e!==Symbol.unscopables)return cd.get(t,e,t)},has(t,e){return e[0]!=="_"&&!Nx(e)}});function oD(){return null}function sD(){return null}function lD(t){}function uD(t){}function fD(){return null}function cD(){}function hD(t,e){return null}function dD(){return Gb().slots}function vD(){return Gb().attrs}function Gb(){const t=gt();return t.setupContext||(t.setupContext=Sw(t))}function Os(t){return Q(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function pD(t,e){const r=Os(t);for(const n in e){if(n.startsWith("__skip"))continue;let i=r[n];i?Q(i)||le(i)?i=r[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(i=r[n]={default:e[n]}),i&&e[`__skip_${n}`]&&(i.skipFactory=!0)}return r}function an(t,e){return!t||!e?t||e:Q(t)&&Q(e)?t.concat(e):Ve({},Os(t),Os(e))}function gD(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}function mD(t){const e=gt();let r=t();return yd(),Ov(r)&&(r=r.catch(n=>{throw ra(e),n})),[r,()=>ra(e)]}let hd=!0;function yD(t){const e=Jv(t),r=t.proxy,n=t.ctx;hd=!1,e.beforeCreate&&Bg(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:_,destroyed:y,unmounted:b,render:w,renderTracked:S,renderTriggered:T,errorCaptured:C,serverPrefetch:x,expose:D,inheritAttrs:A,components:M,directives:R,filters:k}=e;if(u&&_D(u,n,null),o)for(const q in o){const U=o[q];le(U)&&(n[q]=U.bind(r))}if(i){const q=i.call(r,r);Ne(q)&&(t.data=go(q))}if(hd=!0,a)for(const q in a){const U=a[q],ue=le(U)?U.bind(r,r):le(U.get)?U.get.bind(r,r):wr,He=!le(U)&&le(U.set)?U.set.bind(r):wr,Xe=ge({get:ue,set:He});Object.defineProperty(n,q,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:_e=>Xe.value=_e})}if(s)for(const q in s)Wb(s[q],n,r,q);if(l){const q=le(l)?l.call(r):l;Reflect.ownKeys(q).forEach(U=>{Ff(U,q[U])})}f&&Bg(f,t,"c");function N(q,U){Q(U)?U.forEach(ue=>q(ue.bind(r))):U&&q(U.bind(r))}if(N(Fb,c),N(nn,h),N(qv,d),N(Bf,v),N(kb,p),N(Nb,g),N($b,C),N(zb,S),N(Hb,T),N(ol,_),N(fa,b),N(Vb,x),Q(D))if(D.length){const q=t.exposed||(t.exposed={});D.forEach(U=>{Object.defineProperty(q,U,{get:()=>r[U],set:ue=>r[U]=ue})})}else t.exposed||(t.exposed={});w&&t.render===wr&&(t.render=w),A!=null&&(t.inheritAttrs=A),M&&(t.components=M),R&&(t.directives=R),x&&Xv(t)}function _D(t,e,r=wr){Q(t)&&(t=dd(t));for(const n in t){const i=t[n];let a;Ne(i)?"default"in i?a=Yi(i.from||n,i.default,!0):a=Yi(i.from||n):a=Yi(i),Ue(a)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):e[n]=a}}function Bg(t,e,r){xr(Q(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Wb(t,e,r,n){let i=n.includes(".")?uw(r,n):()=>r[n];if(We(t)){const a=e[t];le(a)&&rt(i,a)}else if(le(t))rt(i,t.bind(r));else if(Ne(t))if(Q(t))t.forEach(a=>Wb(a,e,r,n));else{const a=le(t.handler)?t.handler.bind(r):e[t.handler];le(a)&&rt(i,a,t)}}function Jv(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=t.appContext,s=a.get(e);let l;return s?l=s:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>Hu(l,u,o,!0)),Hu(l,e,o)),Ne(e)&&a.set(e,l),l}function Hu(t,e,r,n=!1){const{mixins:i,extends:a}=e;a&&Hu(t,a,r,!0),i&&i.forEach(o=>Hu(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const s=bD[o]||r&&r[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const bD={data:Fg,props:Vg,emits:Vg,methods:es,computed:es,beforeCreate:Pt,created:Pt,beforeMount:Pt,mounted:Pt,beforeUpdate:Pt,updated:Pt,beforeDestroy:Pt,beforeUnmount:Pt,destroyed:Pt,unmounted:Pt,activated:Pt,deactivated:Pt,errorCaptured:Pt,serverPrefetch:Pt,components:es,directives:es,watch:SD,provide:Fg,inject:wD};function Fg(t,e){return e?t?function(){return Ve(le(t)?t.call(this,this):t,le(e)?e.call(this,this):e)}:e:t}function wD(t,e){return es(dd(t),dd(e))}function dd(t){if(Q(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function Pt(t,e){return t?[...new Set([].concat(t,e))]:e}function es(t,e){return t?Ve(Object.create(null),t,e):e}function Vg(t,e){return t?Q(t)&&Q(e)?[...new Set([...t,...e])]:Ve(Object.create(null),Os(t),Os(e??{})):e}function SD(t,e){if(!t)return e;if(!e)return t;const r=Ve(Object.create(null),t);for(const n in e)r[n]=Pt(t[n],e[n]);return r}function Yb(){return{app:null,config:{isNativeTag:Mx,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 TD=0;function xD(t,e){return function(n,i=null){le(n)||(n=Ve({},n)),i!=null&&!Ne(i)&&(i=null);const a=Yb(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:TD++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:xw,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&le(f.install)?(o.add(f),f.install(u,...c)):le(f)&&(o.add(f),f(u,...c))),u},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),u},component(f,c){return c?(a.components[f]=c,u):a.components[f]},directive(f,c){return c?(a.directives[f]=c,u):a.directives[f]},mount(f,c,h){if(!l){const d=u._ceVNode||ee(n,i);return d.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&e?e(d,f):t(d,f,h),l=!0,u._container=f,f.__vue_app__=u,ll(d.component)}},onUnmount(f){s.push(f)},unmount(){l&&(xr(s,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(f,c){return a.provides[f]=c,u},runWithContext(f){const c=Wi;Wi=u;try{return f()}finally{Wi=c}}};return u}}let Wi=null;function Ff(t,e){if(st){let r=st.provides;const n=st.parent&&st.parent.provides;n===r&&(r=st.provides=Object.create(n)),r[t]=e}}function Yi(t,e,r=!1){const n=st||lt;if(n||Wi){let i=Wi?Wi._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return r&&le(e)?e.call(n&&n.proxy):e}}function CD(){return!!(st||lt||Wi)}const Xb={},Kb=()=>Object.create(Xb),qb=t=>Object.getPrototypeOf(t)===Xb;function DD(t,e,r,n=!1){const i={},a=Kb();t.propsDefaults=Object.create(null),jb(t,e,i,a);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);r?t.props=n?i:vb(i):t.type.props?t.props=i:t.props=a,t.attrs=a}function ID(t,e,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=t,s=Ce(i),[l]=t.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(Vf(t.emitsOptions,h))continue;const d=e[h];if(l)if(Le(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=dt(h);i[v]=vd(l,s,v,d,t,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{jb(t,e,i,a)&&(u=!0);let f;for(const c in s)(!e||!Le(e,c)&&((f=Zt(c))===c||!Le(e,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=vd(l,s,c,void 0,t,!0)):delete i[c]);if(a!==s)for(const c in a)(!e||!Le(e,c))&&(delete a[c],u=!0)}u&&vn(t.attrs,"set","")}function jb(t,e,r,n){const[i,a]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(qa(l))continue;const u=e[l];let f;i&&Le(i,f=dt(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Vf(t.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Ce(r),u=s||Te;for(let f=0;f<a.length;f++){const c=a[f];r[c]=vd(i,l,c,u[c],t,!Le(u,c))}}return o}function vd(t,e,r,n,i,a){const o=t[r];if(o!=null){const s=Le(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&le(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=ra(i);n=u[r]=l.call(null,e),f()}}else n=l;i.ce&&i.ce._setProp(r,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Zt(r))&&(n=!0))}return n}const AD=new WeakMap;function Zb(t,e,r=!1){const n=r?AD:e.propsCache,i=n.get(t);if(i)return i;const a=t.props,o={},s=[];let l=!1;if(!le(t)){const f=c=>{l=!0;const[h,d]=Zb(c,e,!0);Ve(o,h),d&&s.push(...d)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!a&&!l)return Ne(t)&&n.set(t,Xa),Xa;if(Q(a))for(let f=0;f<a.length;f++){const c=dt(a[f]);Hg(c)&&(o[c]=Te)}else if(a)for(const f in a){const c=dt(f);if(Hg(c)){const h=a[f],d=o[c]=Q(h)||le(h)?{type:h}:Ve({},h),v=d.type;let p=!1,g=!0;if(Q(v))for(let m=0;m<v.length;++m){const _=v[m],y=le(_)&&_.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(g=!1)}else p=le(v)&&v.name==="Boolean";d[0]=p,d[1]=g,(p||Le(d,"default"))&&s.push(c)}}const u=[o,s];return Ne(t)&&n.set(t,u),u}function Hg(t){return t[0]!=="$"&&!qa(t)}const ep=t=>t[0]==="_"||t==="$stable",tp=t=>Q(t)?t.map(Xt):[Xt(t)],MD=(t,e,r)=>{if(e._n)return e;const n=ie((...i)=>tp(e(...i)),r);return n._c=!1,n},Qb=(t,e,r)=>{const n=t._ctx;for(const i in t){if(ep(i))continue;const a=t[i];if(le(a))e[i]=MD(i,a,n);else if(a!=null){const o=tp(a);e[i]=()=>o}}},Jb=(t,e)=>{const r=tp(e);t.slots.default=()=>r},ew=(t,e,r)=>{for(const n in e)(r||!ep(n))&&(t[n]=e[n])},ED=(t,e,r)=>{const n=t.slots=Kb();if(t.vnode.shapeFlag&32){const i=e.__;i&&ad(n,"__",i,!0);const a=e._;a?(ew(n,e,r),r&&ad(n,"_",a,!0)):Qb(e,n)}else e&&Jb(t,e)},LD=(t,e,r)=>{const{vnode:n,slots:i}=t;let a=!0,o=Te;if(n.shapeFlag&32){const s=e._;s?r&&s===1?a=!1:ew(i,e,r):(a=!e.$stable,Qb(e,i)),o=e}else e&&(Jb(t,e),o={default:1});if(a)for(const s in i)!ep(s)&&o[s]==null&&delete i[s]},ot=dw;function tw(t){return nw(t)}function rw(t){return nw(t,VC)}function nw(t,e){const r=Cf();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:d=wr,insertStaticContent:v}=t,p=(I,E,O,F=null,B=null,V=null,Y=void 0,G=null,W=!!E.dynamicChildren)=>{if(I===E)return;I&&!Rr(I,E)&&(F=$t(I),_e(I,B,V,!0),I=null),E.patchFlag===-2&&(W=!1,E.dynamicChildren=null);const{type:z,ref:oe,shapeFlag:X}=E;switch(z){case Qn:g(I,E,O,F);break;case tt:m(I,E,O,F);break;case Xi:I==null&&_(E,O,F,Y);break;case qe:M(I,E,O,F,B,V,Y,G,W);break;default:X&1?w(I,E,O,F,B,V,Y,G,W):X&6?R(I,E,O,F,B,V,Y,G,W):(X&64||X&128)&&z.process(I,E,O,F,B,V,Y,G,W,ve)}oe!=null&&B?Ja(oe,I&&I.ref,V,E||I,!E):oe==null&&I&&I.ref!=null&&Ja(I.ref,null,V,I,!0)},g=(I,E,O,F)=>{if(I==null)n(E.el=s(E.children),O,F);else{const B=E.el=I.el;E.children!==I.children&&u(B,E.children)}},m=(I,E,O,F)=>{I==null?n(E.el=l(E.children||""),O,F):E.el=I.el},_=(I,E,O,F)=>{[I.el,I.anchor]=v(I.children,E,O,F,I.el,I.anchor)},y=({el:I,anchor:E},O,F)=>{let B;for(;I&&I!==E;)B=h(I),n(I,O,F),I=B;n(E,O,F)},b=({el:I,anchor:E})=>{let O;for(;I&&I!==E;)O=h(I),i(I),I=O;i(E)},w=(I,E,O,F,B,V,Y,G,W)=>{E.type==="svg"?Y="svg":E.type==="math"&&(Y="mathml"),I==null?S(E,O,F,B,V,Y,G,W):x(I,E,B,V,Y,G,W)},S=(I,E,O,F,B,V,Y,G)=>{let W,z;const{props:oe,shapeFlag:X,transition:te,dirs:ce}=I;if(W=I.el=o(I.type,V,oe&&oe.is,oe),X&8?f(W,I.children):X&16&&C(I.children,W,null,F,B,Tc(I,V),Y,G),ce&&Kr(I,null,F,"created"),T(W,I,I.scopeId,Y,F),oe){for(const ze in oe)ze!=="value"&&!qa(ze)&&a(W,ze,null,oe[ze],V,F);"value"in oe&&a(W,"value",null,oe.value,V),(z=oe.onVnodeBeforeMount)&&Yt(z,F,I)}ce&&Kr(I,null,F,"beforeMount");const xe=iw(B,te);xe&&te.beforeEnter(W),n(W,E,O),((z=oe&&oe.onVnodeMounted)||xe||ce)&&ot(()=>{z&&Yt(z,F,I),xe&&te.enter(W),ce&&Kr(I,null,F,"mounted")},B)},T=(I,E,O,F,B)=>{if(O&&d(I,O),F)for(let V=0;V<F.length;V++)d(I,F[V]);if(B){let V=B.subTree;if(E===V||$u(V.type)&&(V.ssContent===E||V.ssFallback===E)){const Y=B.vnode;T(I,Y,Y.scopeId,Y.slotScopeIds,B.parent)}}},C=(I,E,O,F,B,V,Y,G,W=0)=>{for(let z=W;z<I.length;z++){const oe=I[z]=G?Xn(I[z]):Xt(I[z]);p(null,oe,E,O,F,B,V,Y,G)}},x=(I,E,O,F,B,V,Y)=>{const G=E.el=I.el;let{patchFlag:W,dynamicChildren:z,dirs:oe}=E;W|=I.patchFlag&16;const X=I.props||Te,te=E.props||Te;let ce;if(O&&fi(O,!1),(ce=te.onVnodeBeforeUpdate)&&Yt(ce,O,E,I),oe&&Kr(E,I,O,"beforeUpdate"),O&&fi(O,!0),(X.innerHTML&&te.innerHTML==null||X.textContent&&te.textContent==null)&&f(G,""),z?D(I.dynamicChildren,z,G,O,F,Tc(E,B),V):Y||U(I,E,G,null,O,F,Tc(E,B),V,!1),W>0){if(W&16)A(G,X,te,O,B);else if(W&2&&X.class!==te.class&&a(G,"class",null,te.class,B),W&4&&a(G,"style",X.style,te.style,B),W&8){const xe=E.dynamicProps;for(let ze=0;ze<xe.length;ze++){const Oe=xe[ze],Ut=X[Oe],_t=te[Oe];(_t!==Ut||Oe==="value")&&a(G,Oe,Ut,_t,B,O)}}W&1&&I.children!==E.children&&f(G,E.children)}else!Y&&z==null&&A(G,X,te,O,B);((ce=te.onVnodeUpdated)||oe)&&ot(()=>{ce&&Yt(ce,O,E,I),oe&&Kr(E,I,O,"updated")},F)},D=(I,E,O,F,B,V,Y)=>{for(let G=0;G<E.length;G++){const W=I[G],z=E[G],oe=W.el&&(W.type===qe||!Rr(W,z)||W.shapeFlag&198)?c(W.el):O;p(W,z,oe,null,F,B,V,Y,!0)}},A=(I,E,O,F,B)=>{if(E!==O){if(E!==Te)for(const V in E)!qa(V)&&!(V in O)&&a(I,V,E[V],null,B,F);for(const V in O){if(qa(V))continue;const Y=O[V],G=E[V];Y!==G&&V!=="value"&&a(I,V,G,Y,B,F)}"value"in O&&a(I,"value",E.value,O.value,B)}},M=(I,E,O,F,B,V,Y,G,W)=>{const z=E.el=I?I.el:s(""),oe=E.anchor=I?I.anchor:s("");let{patchFlag:X,dynamicChildren:te,slotScopeIds:ce}=E;ce&&(G=G?G.concat(ce):ce),I==null?(n(z,O,F),n(oe,O,F),C(E.children||[],O,oe,B,V,Y,G,W)):X>0&&X&64&&te&&I.dynamicChildren?(D(I.dynamicChildren,te,O,B,V,Y,G),(E.key!=null||B&&E===B.subTree)&&rp(I,E,!0)):U(I,E,O,oe,B,V,Y,G,W)},R=(I,E,O,F,B,V,Y,G,W)=>{E.slotScopeIds=G,I==null?E.shapeFlag&512?B.ctx.activate(E,O,F,Y,W):k(E,O,F,B,V,Y,W):H(I,E,W)},k=(I,E,O,F,B,V,Y)=>{const G=I.component=yw(I,F,B);if(al(I)&&(G.ctx.renderer=ve),bw(G,!1,Y),G.asyncDep){if(B&&B.registerDep(G,N,Y),!I.el){const W=G.subTree=ee(tt);m(null,W,E,O)}}else N(G,I,E,O,B,V,Y)},H=(I,E,O)=>{const F=E.component=I.component;if(VD(I,E,O))if(F.asyncDep&&!F.asyncResolved){q(F,E,O);return}else F.next=E,F.update();else E.el=I.el,F.vnode=E},N=(I,E,O,F,B,V,Y)=>{const G=()=>{if(I.isMounted){let{next:X,bu:te,u:ce,parent:xe,vnode:ze}=I;{const nr=aw(I);if(nr){X&&(X.el=ze.el,q(I,X,Y)),nr.asyncDep.then(()=>{I.isUnmounted||G()});return}}let Oe=X,Ut;fi(I,!1),X?(X.el=ze.el,q(I,X,Y)):X=ze,te&&Za(te),(Ut=X.props&&X.props.onVnodeBeforeUpdate)&&Yt(Ut,xe,X,ze),fi(I,!0);const _t=pu(I),Ar=I.subTree;I.subTree=_t,p(Ar,_t,c(Ar.el),$t(Ar),I,B,V),X.el=_t.el,Oe===null&&Hf(I,_t.el),ce&&ot(ce,B),(Ut=X.props&&X.props.onVnodeUpdated)&&ot(()=>Yt(Ut,xe,X,ze),B)}else{let X;const{el:te,props:ce}=E,{bm:xe,m:ze,parent:Oe,root:Ut,type:_t}=I,Ar=Zn(E);if(fi(I,!1),xe&&Za(xe),!Ar&&(X=ce&&ce.onVnodeBeforeMount)&&Yt(X,Oe,E),fi(I,!0),te&&J){const nr=()=>{I.subTree=pu(I),J(te,I.subTree,I,B,null)};Ar&&_t.__asyncHydrate?_t.__asyncHydrate(te,I,nr):nr()}else{Ut.ce&&Ut.ce._def.shadowRoot!==!1&&Ut.ce._injectChildStyle(_t);const nr=I.subTree=pu(I);p(null,nr,O,F,I,B,V),E.el=nr.el}if(ze&&ot(ze,B),!Ar&&(X=ce&&ce.onVnodeMounted)){const nr=E;ot(()=>Yt(X,Oe,nr),B)}(E.shapeFlag&256||Oe&&Zn(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&I.a&&ot(I.a,B),I.isMounted=!0,E=O=F=null}};I.scope.on();const W=I.effect=new As(G);I.scope.off();const z=I.update=W.run.bind(W),oe=I.job=W.runIfDirty.bind(W);oe.i=I,oe.id=I.uid,W.scheduler=()=>Gv(oe),fi(I,!0),z()},q=(I,E,O)=>{E.component=I;const F=I.vnode.props;I.vnode=E,I.next=null,ID(I,E.props,F,O),LD(I,E.children,O),Tn(),Mg(I),xn()},U=(I,E,O,F,B,V,Y,G,W=!1)=>{const z=I&&I.children,oe=I?I.shapeFlag:0,X=E.children,{patchFlag:te,shapeFlag:ce}=E;if(te>0){if(te&128){He(z,X,O,F,B,V,Y,G,W);return}else if(te&256){ue(z,X,O,F,B,V,Y,G,W);return}}ce&8?(oe&16&&Lt(z,B,V),X!==z&&f(O,X)):oe&16?ce&16?He(z,X,O,F,B,V,Y,G,W):Lt(z,B,V,!0):(oe&8&&f(O,""),ce&16&&C(X,O,F,B,V,Y,G,W))},ue=(I,E,O,F,B,V,Y,G,W)=>{I=I||Xa,E=E||Xa;const z=I.length,oe=E.length,X=Math.min(z,oe);let te;for(te=0;te<X;te++){const ce=E[te]=W?Xn(E[te]):Xt(E[te]);p(I[te],ce,O,null,B,V,Y,G,W)}z>oe?Lt(I,B,V,!0,!1,X):C(E,O,F,B,V,Y,G,W,X)},He=(I,E,O,F,B,V,Y,G,W)=>{let z=0;const oe=E.length;let X=I.length-1,te=oe-1;for(;z<=X&&z<=te;){const ce=I[z],xe=E[z]=W?Xn(E[z]):Xt(E[z]);if(Rr(ce,xe))p(ce,xe,O,null,B,V,Y,G,W);else break;z++}for(;z<=X&&z<=te;){const ce=I[X],xe=E[te]=W?Xn(E[te]):Xt(E[te]);if(Rr(ce,xe))p(ce,xe,O,null,B,V,Y,G,W);else break;X--,te--}if(z>X){if(z<=te){const ce=te+1,xe=ce<oe?E[ce].el:F;for(;z<=te;)p(null,E[z]=W?Xn(E[z]):Xt(E[z]),O,xe,B,V,Y,G,W),z++}}else if(z>te)for(;z<=X;)_e(I[z],B,V,!0),z++;else{const ce=z,xe=z,ze=new Map;for(z=xe;z<=te;z++){const ir=E[z]=W?Xn(E[z]):Xt(E[z]);ir.key!=null&&ze.set(ir.key,z)}let Oe,Ut=0;const _t=te-xe+1;let Ar=!1,nr=0;const Io=new Array(_t);for(z=0;z<_t;z++)Io[z]=0;for(z=ce;z<=X;z++){const ir=I[z];if(Ut>=_t){_e(ir,B,V,!0);continue}let zr;if(ir.key!=null)zr=ze.get(ir.key);else for(Oe=xe;Oe<=te;Oe++)if(Io[Oe-xe]===0&&Rr(ir,E[Oe])){zr=Oe;break}zr===void 0?_e(ir,B,V,!0):(Io[zr-xe]=z+1,zr>=nr?nr=zr:Ar=!0,p(ir,E[zr],O,null,B,V,Y,G,W),Ut++)}const Tg=Ar?PD(Io):Xa;for(Oe=Tg.length-1,z=_t-1;z>=0;z--){const ir=xe+z,zr=E[ir],xg=ir+1<oe?E[ir+1].el:F;Io[z]===0?p(null,zr,O,xg,B,V,Y,G,W):Ar&&(Oe<0||z!==Tg[Oe]?Xe(zr,O,xg,2):Oe--)}}},Xe=(I,E,O,F,B=null)=>{const{el:V,type:Y,transition:G,children:W,shapeFlag:z}=I;if(z&6){Xe(I.component.subTree,E,O,F);return}if(z&128){I.suspense.move(E,O,F);return}if(z&64){Y.move(I,E,O,ve);return}if(Y===qe){n(V,E,O);for(let X=0;X<W.length;X++)Xe(W[X],E,O,F);n(I.anchor,E,O);return}if(Y===Xi){y(I,E,O);return}if(F!==2&&z&1&&G)if(F===0)G.beforeEnter(V),n(V,E,O),ot(()=>G.enter(V),B);else{const{leave:X,delayLeave:te,afterLeave:ce}=G,xe=()=>{I.ctx.isUnmounted?i(V):n(V,E,O)},ze=()=>{X(V,()=>{xe(),ce&&ce()})};te?te(V,xe,ze):ze()}else n(V,E,O)},_e=(I,E,O,F=!1,B=!1)=>{const{type:V,props:Y,ref:G,children:W,dynamicChildren:z,shapeFlag:oe,patchFlag:X,dirs:te,cacheIndex:ce}=I;if(X===-2&&(B=!1),G!=null&&(Tn(),Ja(G,null,O,I,!0),xn()),ce!=null&&(E.renderCache[ce]=void 0),oe&256){E.ctx.deactivate(I);return}const xe=oe&1&&te,ze=!Zn(I);let Oe;if(ze&&(Oe=Y&&Y.onVnodeBeforeUnmount)&&Yt(Oe,E,I),oe&6)zt(I.component,O,F);else{if(oe&128){I.suspense.unmount(O,F);return}xe&&Kr(I,null,E,"beforeUnmount"),oe&64?I.type.remove(I,E,O,ve,F):z&&!z.hasOnce&&(V!==qe||X>0&&X&64)?Lt(z,E,O,!1,!0):(V===qe&&X&384||!B&&oe&16)&&Lt(W,E,O),F&&ct(I)}(ze&&(Oe=Y&&Y.onVnodeUnmounted)||xe)&&ot(()=>{Oe&&Yt(Oe,E,I),xe&&Kr(I,null,E,"unmounted")},O)},ct=I=>{const{type:E,el:O,anchor:F,transition:B}=I;if(E===qe){mt(O,F);return}if(E===Xi){b(I);return}const V=()=>{i(O),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(I.shapeFlag&1&&B&&!B.persisted){const{leave:Y,delayLeave:G}=B,W=()=>Y(O,V);G?G(I.el,V,W):W()}else V()},mt=(I,E)=>{let O;for(;I!==E;)O=h(I),i(I),I=O;i(E)},zt=(I,E,O)=>{const{bum:F,scope:B,job:V,subTree:Y,um:G,m:W,a:z,parent:oe,slots:{__:X}}=I;zu(W),zu(z),F&&Za(F),oe&&Q(X)&&X.forEach(te=>{oe.renderCache[te]=void 0}),B.stop(),V&&(V.flags|=8,_e(Y,I,E,O)),G&&ot(G,E),ot(()=>{I.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},Lt=(I,E,O,F=!1,B=!1,V=0)=>{for(let Y=V;Y<I.length;Y++)_e(I[Y],E,O,F,B)},$t=I=>{if(I.shapeFlag&6)return $t(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const E=h(I.anchor||I.el),O=E&&E[Cb];return O?h(O):E};let be=!1;const ne=(I,E,O)=>{I==null?E._vnode&&_e(E._vnode,null,null,!0):p(E._vnode||null,I,E,null,null,null,O),E._vnode=I,be||(be=!0,Mg(),Vu(),be=!1)},ve={p,um:_e,m:Xe,r:ct,mt:k,mc:C,pc:U,pbc:D,n:$t,o:t};let K,J;return e&&([K,J]=e(ve)),{render:ne,hydrate:K,createApp:xD(ne,K)}}function Tc({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function fi({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function iw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function rp(t,e,r=!1){const n=t.children,i=e.children;if(Q(n)&&Q(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Xn(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&rp(o,s)),s.type===Qn&&(s.el=o.el),s.type===tt&&!s.el&&(s.el=o.el)}}function PD(t){const e=t.slice(),r=[0];let n,i,a,o,s;const l=t.length;for(n=0;n<l;n++){const u=t[n];if(u!==0){if(i=r[r.length-1],t[i]<u){e[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,t[r[s]]<u?a=s+1:o=s;u<t[r[a]]&&(a>0&&(e[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=e[o];return r}function aw(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:aw(e)}function zu(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const ow=Symbol.for("v-scx"),sw=()=>Yi(ow);function ea(t,e){return sl(t,null,e)}function RD(t,e){return sl(t,null,{flush:"post"})}function lw(t,e){return sl(t,null,{flush:"sync"})}function rt(t,e,r){return sl(t,e,r)}function sl(t,e,r=Te){const{immediate:n,deep:i,flush:a,once:o}=r,s=Ve({},r),l=e&&n||!e&&a!=="post";let u;if(oo){if(a==="sync"){const d=sw();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=wr,d.resume=wr,d.pause=wr,d}}const f=st;s.call=(d,v,p)=>xr(d,f,v,p);let c=!1;a==="post"?s.scheduler=d=>{ot(d,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(d,v)=>{v?d():Gv(d)}),s.augmentJob=d=>{e&&(d.flags|=4),c&&(d.flags|=2,f&&(d.id=f.uid,d.i=f))};const h=xC(t,e,s);return oo&&(u?u.push(h):l&&h()),h}function OD(t,e,r){const n=this.proxy,i=We(t)?t.includes(".")?uw(n,t):()=>n[t]:t.bind(n,n);let a;le(e)?a=e:(a=e.handler,r=e);const o=ra(this),s=sl(i,a.bind(n),r);return o(),s}function uw(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Dr(t,e,r=Te){const n=gt(),i=dt(e),a=Zt(e),o=fw(t,i),s=mb((l,u)=>{let f,c=Te,h;return lw(()=>{const d=t[i];kt(f,d)&&(f=d,u())}),{get(){return l(),r.get?r.get(f):f},set(d){const v=r.set?r.set(d):d;if(!kt(v,f)&&!(c!==Te&&kt(d,c)))return;const p=n.vnode.props;p&&(e in p||i in p||a in p)&&(`onUpdate:${e}`in p||`onUpdate:${i}`in p||`onUpdate:${a}`in p)||(f=d,u()),n.emit(`update:${e}`,v),kt(d,v)&&kt(d,c)&&!kt(v,h)&&u(),c=d,h=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Te:s,done:!1}:{done:!0}}}},s}const fw=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${dt(e)}Modifiers`]||t[`${Zt(e)}Modifiers`];function kD(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||Te;let i=r;const a=e.startsWith("update:"),o=a&&fw(n,e.slice(7));o&&(o.trim&&(i=r.map(f=>We(f)?f.trim():f)),o.number&&(i=r.map(Ru)));let s,l=n[s=ja(e)]||n[s=ja(dt(e))];!l&&a&&(l=n[s=ja(Zt(e))]),l&&xr(l,t,6,i);const u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,xr(u,t,6,i)}}function cw(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const a=t.emits;let o={},s=!1;if(!le(t)){const l=u=>{const f=cw(u,e,!0);f&&(s=!0,Ve(o,f))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(Ne(t)&&n.set(t,null),null):(Q(a)?a.forEach(l=>o[l]=null):Ve(o,a),Ne(t)&&n.set(t,o),o)}function Vf(t,e){return!t||!rl(e)?!1:(e=e.slice(2).replace(/Once$/,""),Le(t,e[0].toLowerCase()+e.slice(1))||Le(t,Zt(e))||Le(t,e))}function pu(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:d,ctx:v,inheritAttrs:p}=t,g=Rs(t);let m,_;try{if(r.shapeFlag&4){const b=i||n,w=b;m=Xt(u.call(w,b,f,c,d,h,v)),_=s}else{const b=e;m=Xt(b.length>1?b(c,{attrs:s,slots:o,emit:l}):b(c,null)),_=e.props?s:BD(s)}}catch(b){vs.length=0,ua(b,t,1),m=ee(tt)}let y=m;if(_&&p!==!1){const b=Object.keys(_),{shapeFlag:w}=y;b.length&&w&7&&(a&&b.some(Pv)&&(_=FD(_,a)),y=Nr(y,_,!1,!0))}return r.dirs&&(y=Nr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Dn(y,r.transition),m=y,Rs(g),m}function ND(t,e=!0){let r;for(let n=0;n<t.length;n++){const i=t[n];if(In(i)){if(i.type!==tt||i.children==="v-if"){if(r)return;r=i}}else return}return r}const BD=t=>{let e;for(const r in t)(r==="class"||r==="style"||rl(r))&&((e||(e={}))[r]=t[r]);return e},FD=(t,e)=>{const r={};for(const n in t)(!Pv(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function VD(t,e,r){const{props:n,children:i,component:a}=t,{props:o,children:s,patchFlag:l}=e,u=a.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?zg(n,o,u):!!o;if(l&8){const f=e.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!Vf(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?zg(n,o,u):!0:!!o;return!1}function zg(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(e[a]!==t[a]&&!Vf(r,a))return!0}return!1}function Hf({vnode:t,parent:e},r){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=r,e=e.parent;else break}}const $u=t=>t.__isSuspense;let pd=0;const HD={name:"Suspense",__isSuspense:!0,process(t,e,r,n,i,a,o,s,l,u){if(t==null)$D(e,r,n,i,a,o,s,l,u);else{if(a&&a.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}UD(t,e,r,n,i,o,s,l,u)}},hydrate:GD,normalize:WD},zD=HD;function ks(t,e){const r=t.props&&t.props[e];le(r)&&r()}function $D(t,e,r,n,i,a,o,s,l){const{p:u,o:{createElement:f}}=l,c=f("div"),h=t.suspense=hw(t,i,n,e,c,r,a,o,s,l);u(null,h.pendingBranch=t.ssContent,c,null,n,h,a,o),h.deps>0?(ks(t,"onPending"),ks(t,"onFallback"),u(null,t.ssFallback,e,r,n,null,a,o),eo(h,t.ssFallback)):h.resolve(!1,!0)}function UD(t,e,r,n,i,a,o,s,{p:l,um:u,o:{createElement:f}}){const c=e.suspense=t.suspense;c.vnode=e,e.el=t.el;const h=e.ssContent,d=e.ssFallback,{activeBranch:v,pendingBranch:p,isInFallback:g,isHydrating:m}=c;if(p)c.pendingBranch=h,Rr(h,p)?(l(p,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():g&&(m||(l(v,d,r,n,i,null,a,o,s),eo(c,d)))):(c.pendingId=pd++,m?(c.isHydrating=!1,c.activeBranch=p):u(p,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=f("div"),g?(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(l(v,d,r,n,i,null,a,o,s),eo(c,d))):v&&Rr(h,v)?(l(v,h,r,n,i,c,a,o,s),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(v&&Rr(h,v))l(v,h,r,n,i,c,a,o,s),eo(c,h);else if(ks(e,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=pd++,l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:y}=c;_>0?setTimeout(()=>{c.pendingId===y&&c.fallback(d)},_):_===0&&c.fallback(d)}}function hw(t,e,r,n,i,a,o,s,l,u,f=!1){const{p:c,m:h,um:d,n:v,o:{parentNode:p,remove:g}}=u;let m;const _=YD(t);_&&e&&e.pendingBranch&&(m=e.pendingId,e.deps++);const y=t.props?Ou(t.props.timeout):void 0,b=a,w={vnode:t,parent:e,parentComponent:r,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:pd++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(S=!1,T=!1){const{vnode:C,activeBranch:x,pendingBranch:D,pendingId:A,effects:M,parentComponent:R,container:k}=w;let H=!1;w.isHydrating?w.isHydrating=!1:S||(H=x&&D.transition&&D.transition.mode==="out-in",H&&(x.transition.afterLeave=()=>{A===w.pendingId&&(h(D,k,a===b?v(x):a,0),Ls(M))}),x&&(p(x.el)===k&&(a=v(x)),d(x,R,w,!0)),H||h(D,k,a,0)),eo(w,D),w.pendingBranch=null,w.isInFallback=!1;let N=w.parent,q=!1;for(;N;){if(N.pendingBranch){N.effects.push(...M),q=!0;break}N=N.parent}!q&&!H&&Ls(M),w.effects=[],_&&e&&e.pendingBranch&&m===e.pendingId&&(e.deps--,e.deps===0&&!T&&e.resolve()),ks(C,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:x,container:D,namespace:A}=w;ks(T,"onFallback");const M=v(C),R=()=>{w.isInFallback&&(c(null,S,D,M,x,null,A,s,l),eo(w,S))},k=S.transition&&S.transition.mode==="out-in";k&&(C.transition.afterLeave=R),w.isInFallback=!0,d(C,x,null,!0),k||R()},move(S,T,C){w.activeBranch&&h(w.activeBranch,S,T,C),w.container=S},next(){return w.activeBranch&&v(w.activeBranch)},registerDep(S,T,C){const x=!!w.pendingBranch;x&&w.deps++;const D=S.vnode.el;S.asyncDep.catch(A=>{ua(A,S,0)}).then(A=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;_d(S,A,!1),D&&(M.el=D);const R=!D&&S.subTree.el;T(S,M,p(D||S.subTree.el),D?null:v(S.subTree),w,o,C),R&&g(R),Hf(S,M.el),x&&--w.deps===0&&w.resolve()})},unmount(S,T){w.isUnmounted=!0,w.activeBranch&&d(w.activeBranch,r,S,T),w.pendingBranch&&d(w.pendingBranch,r,S,T)}};return w}function GD(t,e,r,n,i,a,o,s,l){const u=e.suspense=hw(e,n,r,t.parentNode,document.createElement("div"),null,i,a,o,s,!0),f=l(t,u.pendingBranch=e.ssContent,r,u,a,o);return u.deps===0&&u.resolve(!1,!0),f}function WD(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=$g(n?r.default:r),t.ssFallback=n?$g(r.fallback):ee(tt)}function $g(t){let e;if(le(t)){const r=ta&&t._c;r&&(t._d=!1,j()),t=t(),r&&(t._d=!0,e=It,vw())}return Q(t)&&(t=ND(t)),t=Xt(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function dw(t,e){e&&e.pendingBranch?Q(t)?e.effects.push(...t):e.effects.push(t):Ls(t)}function eo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,Hf(n,i))}function YD(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const qe=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Xi=Symbol.for("v-stc"),vs=[];let It=null;function j(t=!1){vs.push(It=t?null:[])}function vw(){vs.pop(),It=vs[vs.length-1]||null}let ta=1;function gd(t,e=!1){ta+=t,t<0&&It&&e&&(It.hasOnce=!0)}function pw(t){return t.dynamicChildren=ta>0?It||Xa:null,vw(),ta>0&&It&&It.push(t),t}function je(t,e,r,n,i,a){return pw(pe(t,e,r,n,i,a,!0))}function de(t,e,r,n,i){return pw(ee(t,e,r,n,i,!0))}function In(t){return t?t.__v_isVNode===!0:!1}function Rr(t,e){return t.type===e.type&&t.key===e.key}function XD(t){}const gw=({key:t})=>t??null,gu=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?We(t)||Ue(t)||le(t)?{i:lt,r:t,k:e,f:!!r}:t:null);function pe(t,e=null,r=null,n=0,i=null,a=t===qe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&gw(e),ref:e&&gu(e),scopeId:Rf,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:lt};return s?(ip(l,r),a&128&&t.normalize(l)):r&&(l.shapeFlag|=We(r)?8:16),ta>0&&!o&&It&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&It.push(l),l}const ee=KD;function KD(t,e=null,r=null,n=0,i=null,a=!1){if((!t||t===Ub)&&(t=tt),In(t)){const s=Nr(t,e,!0);return r&&ip(s,r),ta>0&&!a&&It&&(s.shapeFlag&6?It[It.indexOf(t)]=s:It.push(s)),s.patchFlag=-2,s}if(tI(t)&&(t=t.__vccOpts),e){e=np(e);let{class:s,style:l}=e;s&&!We(s)&&(e.class=Sn(s)),Ne(l)&&(Pf(l)&&!Q(l)&&(l=Ve({},l)),e.style=po(l))}const o=We(t)?1:$u(t)?128:Db(t)?64:Ne(t)?4:le(t)?2:0;return pe(t,e,r,n,i,o,a,!0)}function np(t){return t?Pf(t)||qb(t)?Ve({},t):t:null}function Nr(t,e,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=t,u=e?pt(i||{},e):i,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&gw(u),ref:e&&e.ref?r&&a?Q(a)?a.concat(gu(e)):[a,gu(e)]:gu(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==qe?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Nr(t.ssContent),ssFallback:t.ssFallback&&Nr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Dn(f,l.clone(f)),f}function br(t=" ",e=0){return ee(Qn,null,t,e)}function mw(t,e){const r=ee(Xi,null,t);return r.staticCount=e,r}function Qr(t="",e=!1){return e?(j(),de(tt,null,t)):ee(tt,null,t)}function Xt(t){return t==null||typeof t=="boolean"?ee(tt):Q(t)?ee(qe,null,t.slice()):In(t)?Xn(t):ee(Qn,null,String(t))}function Xn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Nr(t)}function ip(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Q(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),ip(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!qb(e)?e._ctx=lt:i===3&&lt&&(lt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else le(e)?(e={default:e,_ctx:lt},r=32):(e=String(e),n&64?(r=16,e=[br(e)]):r=8);t.children=e,t.shapeFlag|=r}function pt(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=Sn([e.class,n.class]));else if(i==="style")e.style=po([e.style,n.style]);else if(rl(i)){const a=e[i],o=n[i];o&&a!==o&&!(Q(a)&&a.includes(o))&&(e[i]=a?[].concat(a,o):o)}else i!==""&&(e[i]=n[i])}return e}function Yt(t,e,r,n=null){xr(t,e,7,[r,n])}const qD=Yb();let jD=0;function yw(t,e,r){const n=t.type,i=(e?e.appContext:t.appContext)||qD,a={uid:jD++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zb(n,i),emitsOptions:cw(n,i),emit:null,emitted:null,propsDefaults:Te,inheritAttrs:n.inheritAttrs,ctx:Te,data:Te,props:Te,attrs:Te,slots:Te,refs:Te,setupState:Te,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=e?e.root:a,a.emit=kD.bind(null,a),t.ce&&t.ce(a),a}let st=null;const gt=()=>st||lt;let Uu,md;{const t=Cf(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Uu=e("__VUE_INSTANCE_SETTERS__",r=>st=r),md=e("__VUE_SSR_SETTERS__",r=>oo=r)}const ra=t=>{const e=st;return Uu(t),t.scope.on(),()=>{t.scope.off(),Uu(e)}},yd=()=>{st&&st.scope.off(),Uu(null)};function _w(t){return t.vnode.shapeFlag&4}let oo=!1;function bw(t,e=!1,r=!1){e&&md(e);const{props:n,children:i}=t.vnode,a=_w(t);DD(t,n,a,e),ED(t,i,r||e);const o=a?ZD(t,e):void 0;return e&&md(!1),o}function ZD(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,cd);const{setup:n}=r;if(n){Tn();const i=t.setupContext=n.length>1?Sw(t):null,a=ra(t),o=yo(n,t,0,[t.props,i]),s=Ov(o);if(xn(),a(),(s||t.sp)&&!Zn(t)&&Xv(t),s){if(o.then(yd,yd),e)return o.then(l=>{_d(t,l,e)}).catch(l=>{ua(l,t,0)});t.asyncDep=o}else _d(t,o,e)}else ww(t,e)}function _d(t,e,r){le(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ne(e)&&(t.setupState=Uv(e)),ww(t,r)}let Gu,bd;function QD(t){Gu=t,bd=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,aD))}}const JD=()=>!Gu;function ww(t,e,r){const n=t.type;if(!t.render){if(!e&&Gu&&!n.render){const i=n.template||Jv(t).template;if(i){const{isCustomElement:a,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ve(Ve({isCustomElement:a,delimiters:s},o),l);n.render=Gu(i,u)}}t.render=n.render||wr,bd&&bd(t)}{const i=ra(t);Tn();try{yD(t)}finally{xn(),i()}}}const eI={get(t,e){return Dt(t,"get",""),t[e]}};function Sw(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,eI),slots:t.slots,emit:t.emit,expose:e}}function ll(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Uv(pb(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in ds)return ds[r](t)},has(e,r){return r in e||r in ds}})):t.proxy}function wd(t,e=!0){return le(t)?t.displayName||t.name:t.name||e&&t.__name}function tI(t){return le(t)&&"__vccOpts"in t}const ge=(t,e)=>bC(t,e,oo);function to(t,e,r){const n=arguments.length;return n===2?Ne(e)&&!Q(e)?In(e)?ee(t,null,[e]):ee(t,e):ee(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&In(r)&&(r=[r]),ee(t,e,r))}function rI(){}function nI(t,e,r,n){const i=r[n];if(i&&Tw(i,t))return i;const a=e();return a.memo=t.slice(),a.cacheIndex=n,r[n]=a}function Tw(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(kt(r[n],e[n]))return!1;return ta>0&&It&&It.push(t),!0}const xw="3.5.17",iI=wr,aI=MC,oI=Fa,sI=xb,lI={createComponentInstance:yw,setupComponent:bw,renderComponentRoot:pu,setCurrentRenderingInstance:Rs,isVNode:In,normalizeVNode:Xt,getComponentPublicInstance:ll,ensureValidVNode:Qv,pushWarningContext:CC,popWarningContext:DC},uI=lI,fI=null,cI=null,hI=null;/**
13
+ **/const bb=[];function CC(t){bb.push(t)}function DC(){bb.pop()}function IC(t,e){}const AC={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},MC={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function yo(t,e,r,n){try{return n?t(...n):t()}catch(i){ua(i,e,r)}}function xr(t,e,r,n){if(le(t)){const i=yo(t,e,r,n);return i&&Ov(i)&&i.catch(a=>{ua(a,e,r)}),i}if(Q(t)){const i=[];for(let a=0;a<t.length;a++)i.push(xr(t[a],e,r,n));return i}}function ua(t,e,r,n=!0){const i=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Te;if(e){let s=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${r}`;for(;s;){const f=s.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](t,l,u)===!1)return}s=s.parent}if(a){Tn(),yo(a,null,10,[t,l,u]),xn();return}}EC(t,r,i,n,o)}function EC(t,e,r,n=!0,i=!1){if(i)throw t;console.error(t)}const Nt=[];let Xr=-1;const Qa=[];let Wn=null,Ba=0;const wb=Promise.resolve();let Fu=null;function Cr(t){const e=Fu||wb;return t?e.then(this?t.bind(this):t):e}function LC(t){let e=Xr+1,r=Nt.length;for(;e<r;){const n=e+r>>>1,i=Nt[n],a=Ps(i);a<t||a===t&&i.flags&2?e=n+1:r=n}return e}function Gv(t){if(!(t.flags&1)){const e=Ps(t),r=Nt[Nt.length-1];!r||!(t.flags&2)&&e>=Ps(r)?Nt.push(t):Nt.splice(LC(e),0,t),t.flags|=1,Sb()}}function Sb(){Fu||(Fu=wb.then(Tb))}function Ls(t){Q(t)?Qa.push(...t):Wn&&t.id===-1?Wn.splice(Ba+1,0,t):t.flags&1||(Qa.push(t),t.flags|=1),Sb()}function Mg(t,e,r=Xr+1){for(;r<Nt.length;r++){const n=Nt[r];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Nt.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Vu(t){if(Qa.length){const e=[...new Set(Qa)].sort((r,n)=>Ps(r)-Ps(n));if(Qa.length=0,Wn){Wn.push(...e);return}for(Wn=e,Ba=0;Ba<Wn.length;Ba++){const r=Wn[Ba];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Wn=null,Ba=0}}const Ps=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Tb(t){try{for(Xr=0;Xr<Nt.length;Xr++){const e=Nt[Xr];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),yo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Xr<Nt.length;Xr++){const e=Nt[Xr];e&&(e.flags&=-2)}Xr=-1,Nt.length=0,Vu(),Fu=null,(Nt.length||Qa.length)&&Tb()}}let Fa,Sl=[];function xb(t,e){var r,n;Fa=t,Fa?(Fa.enabled=!0,Sl.forEach(({event:i,args:a})=>Fa.emit(i,...a)),Sl=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{xb(a,e)}),setTimeout(()=>{Fa||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Sl=[])},3e3)):Sl=[]}let lt=null,Rf=null;function Rs(t){const e=lt;return lt=t,Rf=t&&t.type.__scopeId||null,e}function PC(t){Rf=t}function RC(){Rf=null}const OC=t=>ie;function ie(t,e=lt,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&gd(-1);const a=Rs(e);let o;try{o=t(...i)}finally{Rs(a),n._d&&gd(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Of(t,e){if(lt===null)return t;const r=ll(lt),n=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[a,o,s,l=Te]=e[i];a&&(le(a)&&(a={mounted:a,updated:a}),a.deep&&gn(o),n.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:l}))}return t}function Kr(t,e,r,n){const i=t.dirs,a=e&&e.dirs;for(let o=0;o<i.length;o++){const s=i[o];a&&(s.oldValue=a[o].value);let l=s.dir[n];l&&(Tn(),xr(l,r,8,[t.el,s,t,e]),xn())}}const Cb=Symbol("_vte"),Db=t=>t.__isTeleport,hs=t=>t&&(t.disabled||t.disabled===""),Eg=t=>t&&(t.defer||t.defer===""),Lg=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Pg=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,ud=(t,e)=>{const r=t&&t.to;return We(r)?e?e(r):null:r},Ib={name:"Teleport",__isTeleport:!0,process(t,e,r,n,i,a,o,s,l,u){const{mc:f,pc:c,pbc:h,o:{insert:d,querySelector:v,createText:p,createComment:g}}=u,m=hs(e.props);let{shapeFlag:_,children:y,dynamicChildren:b}=e;if(t==null){const w=e.el=p(""),S=e.anchor=p("");d(w,r,n),d(S,r,n);const T=(x,D)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=x),f(y,x,D,i,a,o,s,l))},C=()=>{const x=e.target=ud(e.props,v),D=Mb(x,e,p,d);x&&(o!=="svg"&&Lg(x)?o="svg":o!=="mathml"&&Pg(x)&&(o="mathml"),m||(T(x,D),vu(e,!1)))};m&&(T(r,S),vu(e,!0)),Eg(e.props)?(e.el.__isMounted=!1,ot(()=>{C(),delete e.el.__isMounted},a)):C()}else{if(Eg(e.props)&&t.el.__isMounted===!1){ot(()=>{Ib.process(t,e,r,n,i,a,o,s,l,u)},a);return}e.el=t.el,e.targetStart=t.targetStart;const w=e.anchor=t.anchor,S=e.target=t.target,T=e.targetAnchor=t.targetAnchor,C=hs(t.props),x=C?r:S,D=C?w:T;if(o==="svg"||Lg(S)?o="svg":(o==="mathml"||Pg(S))&&(o="mathml"),b?(h(t.dynamicChildren,b,x,i,a,o,s),rp(t,e,!0)):l||c(t,e,x,D,i,a,o,s,!1),m)C?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Tl(e,r,w,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const A=e.target=ud(e.props,v);A&&Tl(e,A,null,u,0)}else C&&Tl(e,S,T,u,1);vu(e,m)}},remove(t,e,r,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:f,target:c,props:h}=t;if(c&&(i(u),i(f)),a&&i(l),o&16){const d=a||!hs(h);for(let v=0;v<s.length;v++){const p=s[v];n(p,e,r,d,!!p.dynamicChildren)}}},move:Tl,hydrate:kC};function Tl(t,e,r,{o:{insert:n},m:i},a=2){a===0&&n(t.targetAnchor,e,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:f}=t,c=a===2;if(c&&n(o,e,r),(!c||hs(f))&&l&16)for(let h=0;h<u.length;h++)i(u[h],e,r,2);c&&n(s,e,r)}function kC(t,e,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:f}},c){const h=e.target=ud(e.props,l);if(h){const d=hs(e.props),v=h._lpa||h.firstChild;if(e.shapeFlag&16)if(d)e.anchor=c(o(t),e,s(t),r,n,i,a),e.targetStart=v,e.targetAnchor=v&&o(v);else{e.anchor=o(t);let p=v;for(;p;){if(p&&p.nodeType===8){if(p.data==="teleport start anchor")e.targetStart=p;else if(p.data==="teleport anchor"){e.targetAnchor=p,h._lpa=e.targetAnchor&&o(e.targetAnchor);break}}p=o(p)}e.targetAnchor||Mb(h,e,f,u),c(v&&o(v),e,h,r,n,i,a)}vu(e,d)}return e.anchor&&o(e.anchor)}const Ab=Ib;function vu(t,e){const r=t.ctx;if(r&&r.ut){let n,i;for(e?(n=t.el,i=t.anchor):(n=t.targetStart,i=t.targetAnchor);n&&n!==i;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}function Mb(t,e,r,n){const i=e.targetStart=r(""),a=e.targetAnchor=r("");return i[Cb]=a,t&&(n(i,t),n(a,t)),a}const Yn=Symbol("_leaveCb"),xl=Symbol("_enterCb");function Wv(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return an(()=>{t.isMounted=!0}),ol(()=>{t.isUnmounting=!0}),t}const hr=[Function,Array],Yv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hr,onEnter:hr,onAfterEnter:hr,onEnterCancelled:hr,onBeforeLeave:hr,onLeave:hr,onAfterLeave:hr,onLeaveCancelled:hr,onBeforeAppear:hr,onAppear:hr,onAfterAppear:hr,onAppearCancelled:hr},Eb=t=>{const e=t.subTree;return e.component?Eb(e.component):e},NC={name:"BaseTransition",props:Yv,setup(t,{slots:e}){const r=gt(),n=Wv();return()=>{const i=e.default&&kf(e.default(),!0);if(!i||!i.length)return;const a=Lb(i),o=Ce(t),{mode:s}=o;if(n.isLeaving)return _c(a);const l=Rg(a);if(!l)return _c(a);let u=ao(l,o,n,r,c=>u=c);l.type!==tt&&Dn(l,u);let f=r.subTree&&Rg(r.subTree);if(f&&f.type!==tt&&!Rr(l,f)&&Eb(r).type!==tt){let c=ao(f,o,n,r);if(Dn(f,c),s==="out-in"&&l.type!==tt)return n.isLeaving=!0,c.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete c.afterLeave,f=void 0},_c(a);s==="in-out"&&l.type!==tt?c.delayLeave=(h,d,v)=>{const p=Rb(n,f);p[String(f.key)]=f,h[Yn]=()=>{d(),h[Yn]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return a}}};function Lb(t){let e=t[0];if(t.length>1){for(const r of t)if(r.type!==tt){e=r;break}}return e}const Pb=NC;function Rb(t,e){const{leavingVNodes:r}=t;let n=r.get(e.type);return n||(n=Object.create(null),r.set(e.type,n)),n}function ao(t,e,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:f,onEnterCancelled:c,onBeforeLeave:h,onLeave:d,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:_,onAppearCancelled:y}=e,b=String(t.key),w=Rb(r,t),S=(x,D)=>{x&&xr(x,n,9,D)},T=(x,D)=>{const A=D[1];S(x,D),Q(x)?x.every(M=>M.length<=1)&&A():x.length<=1&&A()},C={mode:o,persisted:s,beforeEnter(x){let D=l;if(!r.isMounted)if(a)D=g||l;else return;x[Yn]&&x[Yn](!0);const A=w[b];A&&Rr(t,A)&&A.el[Yn]&&A.el[Yn](),S(D,[x])},enter(x){let D=u,A=f,M=c;if(!r.isMounted)if(a)D=m||u,A=_||f,M=y||c;else return;let R=!1;const k=x[xl]=H=>{R||(R=!0,H?S(M,[x]):S(A,[x]),C.delayedLeave&&C.delayedLeave(),x[xl]=void 0)};D?T(D,[x,k]):k()},leave(x,D){const A=String(t.key);if(x[xl]&&x[xl](!0),r.isUnmounting)return D();S(h,[x]);let M=!1;const R=x[Yn]=k=>{M||(M=!0,D(),k?S(p,[x]):S(v,[x]),x[Yn]=void 0,w[A]===t&&delete w[A])};w[A]=t,d?T(d,[x,R]):R()},clone(x){const D=ao(x,e,r,n,i);return i&&i(D),D}};return C}function _c(t){if(al(t))return t=Nr(t),t.children=null,t}function Rg(t){if(!al(t))return Db(t.type)&&t.children?Lb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:r}=t;if(r){if(e&16)return r[0];if(e&32&&le(r.default))return r.default()}}function Dn(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Dn(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function kf(t,e=!1,r){let n=[],i=0;for(let a=0;a<t.length;a++){let o=t[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===qe?(o.patchFlag&128&&i++,n=n.concat(kf(o.children,e,s))):(e||o.type!==tt)&&n.push(s!=null?Nr(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function fe(t,e){return le(t)?Ve({name:t.name},e,{setup:t}):t}function Ob(){const t=gt();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function Xv(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Kv(t){const e=gt(),r=il(null);if(e){const i=e.refs===Te?e.refs={}:e.refs;Object.defineProperty(i,t,{enumerable:!0,get:()=>r.value,set:a=>r.value=a})}return r}function Ja(t,e,r,n,i=!1){if(Q(t)){t.forEach((v,p)=>Ja(v,e&&(Q(e)?e[p]:e),r,n,i));return}if(Zn(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ja(t,e,r,n.component.subTree);return}const a=n.shapeFlag&4?ll(n.component):n.el,o=i?null:a,{i:s,r:l}=t,u=e&&e.r,f=s.refs===Te?s.refs={}:s.refs,c=s.setupState,h=Ce(c),d=c===Te?()=>!1:v=>Le(h,v);if(u!=null&&u!==l&&(We(u)?(f[u]=null,d(u)&&(c[u]=null)):Ue(u)&&(u.value=null)),le(l))yo(l,s,12,[o,f]);else{const v=We(l),p=Ue(l);if(v||p){const g=()=>{if(t.f){const m=v?d(l)?c[l]:f[l]:l.value;i?Q(m)&&Rv(m,a):Q(m)?m.includes(a)||m.push(a):v?(f[l]=[a],d(l)&&(c[l]=f[l])):(l.value=[a],t.k&&(f[t.k]=l.value))}else v?(f[l]=o,d(l)&&(c[l]=o)):p&&(l.value=o,t.k&&(f[t.k]=o))};o?(g.id=-1,ot(g,r)):g()}}}let Og=!1;const ma=()=>{Og||(console.error("Hydration completed but contains mismatches."),Og=!0)},BC=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",FC=t=>t.namespaceURI.includes("MathML"),Cl=t=>{if(t.nodeType===1){if(BC(t))return"svg";if(FC(t))return"mathml"}},za=t=>t.nodeType===8;function VC(t){const{mt:e,p:r,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=t,f=(y,b)=>{if(!b.hasChildNodes()){r(null,y,b),Vu(),b._vnode=y;return}c(b.firstChild,y,null,null,null),Vu(),b._vnode=y},c=(y,b,w,S,T,C=!1)=>{C=C||!!b.dynamicChildren;const x=za(y)&&y.data==="[",D=()=>p(y,b,w,S,T,x),{type:A,ref:M,shapeFlag:R,patchFlag:k}=b;let H=y.nodeType;b.el=y,k===-2&&(C=!1,b.dynamicChildren=null);let N=null;switch(A){case Qn:H!==3?b.children===""?(l(b.el=i(""),o(y),y),N=y):N=D():(y.data!==b.children&&(ma(),y.data=b.children),N=a(y));break;case tt:_(y)?(N=a(y),m(b.el=y.content.firstChild,y,w)):H!==8||x?N=D():N=a(y);break;case Xi:if(x&&(y=a(y),H=y.nodeType),H===1||H===3){N=y;const q=!b.children.length;for(let U=0;U<b.staticCount;U++)q&&(b.children+=N.nodeType===1?N.outerHTML:N.data),U===b.staticCount-1&&(b.anchor=N),N=a(N);return x?a(N):N}else D();break;case qe:x?N=v(y,b,w,S,T,C):N=D();break;default:if(R&1)(H!==1||b.type.toLowerCase()!==y.tagName.toLowerCase())&&!_(y)?N=D():N=h(y,b,w,S,T,C);else if(R&6){b.slotScopeIds=T;const q=o(y);if(x?N=g(y):za(y)&&y.data==="teleport start"?N=g(y,y.data,"teleport end"):N=a(y),e(b,q,null,w,S,Cl(q),C),Zn(b)&&!b.type.__asyncResolved){let U;x?(U=ee(qe),U.anchor=N?N.previousSibling:q.lastChild):U=y.nodeType===3?br(""):ee("div"),U.el=y,b.component.subTree=U}}else R&64?H!==8?N=D():N=b.type.hydrate(y,b,w,S,T,C,t,d):R&128&&(N=b.type.hydrate(y,b,w,S,Cl(o(y)),T,C,t,c))}return M!=null&&Ja(M,null,S,b),N},h=(y,b,w,S,T,C)=>{C=C||!!b.dynamicChildren;const{type:x,props:D,patchFlag:A,shapeFlag:M,dirs:R,transition:k}=b,H=x==="input"||x==="option";if(H||A!==-1){R&&Kr(b,null,w,"created");let N=!1;if(_(y)){N=iw(null,k)&&w&&w.vnode.props&&w.vnode.props.appear;const U=y.content.firstChild;if(N){const ue=U.getAttribute("class");ue&&(U.$cls=ue),k.beforeEnter(U)}m(U,y,w),b.el=y=U}if(M&16&&!(D&&(D.innerHTML||D.textContent))){let U=d(y.firstChild,b,y,w,S,T,C);for(;U;){Dl(y,1)||ma();const ue=U;U=U.nextSibling,s(ue)}}else if(M&8){let U=b.children;U[0]===`
14
+ `&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(U=U.slice(1)),y.textContent!==U&&(Dl(y,0)||ma(),y.textContent=b.children)}if(D){if(H||!C||A&48){const U=y.tagName.includes("-");for(const ue in D)(H&&(ue.endsWith("value")||ue==="indeterminate")||rl(ue)&&!qa(ue)||ue[0]==="."||U)&&n(y,ue,null,D[ue],void 0,w)}else if(D.onClick)n(y,"onClick",null,D.onClick,void 0,w);else if(A&4&&jn(D.style))for(const U in D.style)D.style[U]}let q;(q=D&&D.onVnodeBeforeMount)&&Yt(q,w,b),R&&Kr(b,null,w,"beforeMount"),((q=D&&D.onVnodeMounted)||R||N)&&dw(()=>{q&&Yt(q,w,b),N&&k.enter(y),R&&Kr(b,null,w,"mounted")},S)}return y.nextSibling},d=(y,b,w,S,T,C,x)=>{x=x||!!b.dynamicChildren;const D=b.children,A=D.length;for(let M=0;M<A;M++){const R=x?D[M]:D[M]=Xt(D[M]),k=R.type===Qn;y?(k&&!x&&M+1<A&&Xt(D[M+1]).type===Qn&&(l(i(y.data.slice(R.children.length)),w,a(y)),y.data=R.children),y=c(y,R,S,T,C,x)):k&&!R.children?l(R.el=i(""),w):(Dl(w,1)||ma(),r(null,R,w,null,S,T,Cl(w),C))}return y},v=(y,b,w,S,T,C)=>{const{slotScopeIds:x}=b;x&&(T=T?T.concat(x):x);const D=o(y),A=d(a(y),b,D,w,S,T,C);return A&&za(A)&&A.data==="]"?a(b.anchor=A):(ma(),l(b.anchor=u("]"),D,A),A)},p=(y,b,w,S,T,C)=>{if(Dl(y.parentElement,1)||ma(),b.el=null,C){const A=g(y);for(;;){const M=a(y);if(M&&M!==A)s(M);else break}}const x=a(y),D=o(y);return s(y),r(null,b,D,x,w,S,Cl(D),T),w&&(w.vnode.el=b.el,Hf(w,b.el)),x},g=(y,b="[",w="]")=>{let S=0;for(;y;)if(y=a(y),y&&za(y)&&(y.data===b&&S++,y.data===w)){if(S===0)return a(y);S--}return y},m=(y,b,w)=>{const S=b.parentNode;S&&S.replaceChild(y,b);let T=w;for(;T;)T.vnode.el===b&&(T.vnode.el=T.subTree.el=y),T=T.parent},_=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[f,c]}const kg="data-allow-mismatch",HC={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Dl(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(kg);)t=t.parentElement;const r=t&&t.getAttribute(kg);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return e===0&&n.includes("children")?!0:n.includes(HC[e])}}const zC=Cf().requestIdleCallback||(t=>setTimeout(t,1)),$C=Cf().cancelIdleCallback||(t=>clearTimeout(t)),UC=(t=1e4)=>e=>{const r=zC(e,{timeout:t});return()=>$C(r)};function GC(t){const{top:e,left:r,bottom:n,right:i}=t.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(e>0&&e<a||n>0&&n<a)&&(r>0&&r<o||i>0&&i<o)}const WC=t=>(e,r)=>{const n=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){n.disconnect(),e();break}},t);return r(i=>{if(i instanceof Element){if(GC(i))return e(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},YC=t=>e=>{if(t){const r=matchMedia(t);if(r.matches)e();else return r.addEventListener("change",e,{once:!0}),()=>r.removeEventListener("change",e)}},XC=(t=[])=>(e,r)=>{We(t)&&(t=[t]);let n=!1;const i=o=>{n||(n=!0,a(),e(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{r(o=>{for(const s of t)o.removeEventListener(s,i)})};return r(o=>{for(const s of t)o.addEventListener(s,i,{once:!0})}),a};function KC(t,e){if(za(t)&&t.data==="["){let r=1,n=t.nextSibling;for(;n;){if(n.nodeType===1){if(e(n)===!1)break}else if(za(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else e(t)}const Zn=t=>!!t.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function qC(t){le(t)&&(t={loader:t});const{loader:e,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=t;let u=null,f,c=0;const h=()=>(c++,u=null,d()),d=()=>{let v;return u||(v=u=e().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((g,m)=>{l(p,()=>g(h()),()=>m(p),c+1)});throw p}).then(p=>v!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),f=p,p)))};return fe({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(v,p,g){const m=a?()=>{const y=a(()=>{g()},b=>KC(v,b));y&&(p.bum||(p.bum=[])).push(y),(p.u||(p.u=[])).push(()=>!0)}:g;f?m():d().then(()=>!p.isUnmounted&&m())},get __asyncResolved(){return f},setup(){const v=st;if(Xv(v),f)return()=>bc(f,v);const p=y=>{u=null,ua(y,v,13,!n)};if(s&&v.suspense||oo)return d().then(y=>()=>bc(y,v)).catch(y=>(p(y),()=>n?ee(n,{error:y}):null));const g=we(!1),m=we(),_=we(!!i);return i&&setTimeout(()=>{_.value=!1},i),o!=null&&setTimeout(()=>{if(!g.value&&!m.value){const y=new Error(`Async component timed out after ${o}ms.`);p(y),m.value=y}},o),d().then(()=>{g.value=!0,v.parent&&al(v.parent.vnode)&&v.parent.update()}).catch(y=>{p(y),m.value=y}),()=>{if(g.value&&f)return bc(f,v);if(m.value&&n)return ee(n,{error:m.value});if(r&&!_.value)return ee(r)}}})}function bc(t,e){const{ref:r,props:n,children:i,ce:a}=e.vnode,o=ee(t,n,i);return o.ref=r,o.ce=a,delete e.vnode.ce,o}const al=t=>t.type.__isKeepAlive,jC={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const r=gt(),n=r.ctx;if(!n.renderer)return()=>{const _=e.default&&e.default();return _&&_.length===1?_[0]:_};const i=new Map,a=new Set;let o=null;const s=r.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:c}}}=n,h=c("div");n.activate=(_,y,b,w,S)=>{const T=_.component;u(_,y,b,0,s),l(T.vnode,_,y,b,T,s,w,_.slotScopeIds,S),ot(()=>{T.isDeactivated=!1,T.a&&Za(T.a);const C=_.props&&_.props.onVnodeMounted;C&&Yt(C,T.parent,_)},s)},n.deactivate=_=>{const y=_.component;zu(y.m),zu(y.a),u(_,h,null,1,s),ot(()=>{y.da&&Za(y.da);const b=_.props&&_.props.onVnodeUnmounted;b&&Yt(b,y.parent,_),y.isDeactivated=!0},s)};function d(_){wc(_),f(_,r,s,!0)}function v(_){i.forEach((y,b)=>{const w=wd(y.type);w&&!_(w)&&p(b)})}function p(_){const y=i.get(_);y&&(!o||!Rr(y,o))?d(y):o&&wc(o),i.delete(_),a.delete(_)}rt(()=>[t.include,t.exclude],([_,y])=>{_&&v(b=>Jo(_,b)),y&&v(b=>!Jo(y,b))},{flush:"post",deep:!0});let g=null;const m=()=>{g!=null&&($u(r.subTree.type)?ot(()=>{i.set(g,Il(r.subTree))},r.subTree.suspense):i.set(g,Il(r.subTree)))};return an(m),Bf(m),ol(()=>{i.forEach(_=>{const{subTree:y,suspense:b}=r,w=Il(y);if(_.type===w.type&&_.key===w.key){wc(w);const S=w.component.da;S&&ot(S,b);return}d(_)})}),()=>{if(g=null,!e.default)return o=null;const _=e.default(),y=_[0];if(_.length>1)return o=null,_;if(!In(y)||!(y.shapeFlag&4)&&!(y.shapeFlag&128))return o=null,y;let b=Il(y);if(b.type===tt)return o=null,b;const w=b.type,S=wd(Zn(b)?b.type.__asyncResolved||{}:w),{include:T,exclude:C,max:x}=t;if(T&&(!S||!Jo(T,S))||C&&S&&Jo(C,S))return b.shapeFlag&=-257,o=b,y;const D=b.key==null?w:b.key,A=i.get(D);return b.el&&(b=Nr(b),y.shapeFlag&128&&(y.ssContent=b)),g=D,A?(b.el=A.el,b.component=A.component,b.transition&&Dn(b,b.transition),b.shapeFlag|=512,a.delete(D),a.add(D)):(a.add(D),x&&a.size>parseInt(x,10)&&p(a.values().next().value)),b.shapeFlag|=256,o=b,$u(y.type)?y:b}}},ZC=jC;function Jo(t,e){return Q(t)?t.some(r=>Jo(r,e)):We(t)?t.split(",").includes(e):Lx(t)?(t.lastIndex=0,t.test(e)):!1}function kb(t,e){Bb(t,"a",e)}function Nb(t,e){Bb(t,"da",e)}function Bb(t,e,r=st){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Nf(e,n,r),r){let i=r.parent;for(;i&&i.parent;)al(i.parent.vnode)&&QC(n,e,r,i),i=i.parent}}function QC(t,e,r,n){const i=Nf(e,t,n,!0);fa(()=>{Rv(n[e],i)},r)}function wc(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Il(t){return t.shapeFlag&128?t.ssContent:t}function Nf(t,e,r=st,n=!1){if(r){const i=r[t]||(r[t]=[]),a=e.__weh||(e.__weh=(...o)=>{Tn();const s=ra(r),l=xr(e,r,t,o);return s(),xn(),l});return n?i.unshift(a):i.push(a),a}}const Mn=t=>(e,r=st)=>{(!oo||t==="sp")&&Nf(t,(...n)=>e(...n),r)},Fb=Mn("bm"),an=Mn("m"),qv=Mn("bu"),Bf=Mn("u"),ol=Mn("bum"),fa=Mn("um"),Vb=Mn("sp"),Hb=Mn("rtg"),zb=Mn("rtc");function $b(t,e=st){Nf("ec",t,e)}const jv="components",JC="directives";function eD(t,e){return Zv(jv,t,!0,e)||t}const Ub=Symbol.for("v-ndc");function tD(t){return We(t)?Zv(jv,t,!1)||t:t||Ub}function rD(t){return Zv(JC,t)}function Zv(t,e,r=!0,n=!1){const i=lt||st;if(i){const a=i.type;if(t===jv){const s=wd(a,!1);if(s&&(s===e||s===dt(e)||s===nl(dt(e))))return a}const o=Ng(i[t]||a[t],e)||Ng(i.appContext[t],e);return!o&&n?a:o}}function Ng(t,e){return t&&(t[e]||t[dt(e)]||t[nl(dt(e))])}function _o(t,e,r,n){let i;const a=r&&r[n],o=Q(t);if(o||We(t)){const s=o&&jn(t);let l=!1,u=!1;s&&(l=!ur(t),u=Cn(t),t=Mf(t)),i=new Array(t.length);for(let f=0,c=t.length;f<c;f++)i[f]=e(l?u?Nu(yt(t[f])):yt(t[f]):t[f],f,void 0,a&&a[f])}else if(typeof t=="number"){i=new Array(t);for(let s=0;s<t;s++)i[s]=e(s+1,s,void 0,a&&a[s])}else if(Ne(t))if(t[Symbol.iterator])i=Array.from(t,(s,l)=>e(s,l,void 0,a&&a[l]));else{const s=Object.keys(t);i=new Array(s.length);for(let l=0,u=s.length;l<u;l++){const f=s[l];i[l]=e(t[f],f,l,a&&a[l])}}else i=[];return r&&(r[n]=i),i}function nD(t,e){for(let r=0;r<e.length;r++){const n=e[r];if(Q(n))for(let i=0;i<n.length;i++)t[n[i].name]=n[i].fn;else n&&(t[n.name]=n.key?(...i)=>{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return t}function Ee(t,e,r={},n,i){if(lt.ce||lt.parent&&Zn(lt.parent)&&lt.parent.ce)return e!=="default"&&(r.name=e),j(),de(qe,null,[ee("slot",r,n&&n())],64);let a=t[e];a&&a._c&&(a._d=!1),j();const o=a&&Qv(a(r)),s=r.key||o&&o.key,l=de(qe,{key:(s&&!kr(s)?s:`_${e}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function Qv(t){return t.some(e=>In(e)?!(e.type===tt||e.type===qe&&!Qv(e.children)):!0)?t:null}function iD(t,e){const r={};for(const n in t)r[e&&/[A-Z]/.test(n)?`on:${n}`:ja(n)]=t[n];return r}const fd=t=>t?_w(t)?ll(t):fd(t.parent):null,ds=Ve(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>fd(t.parent),$root:t=>fd(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Jv(t),$forceUpdate:t=>t.f||(t.f=()=>{Gv(t.update)}),$nextTick:t=>t.n||(t.n=Cr.bind(t.proxy)),$watch:t=>OD.bind(t)}),Sc=(t,e)=>t!==Te&&!t.__isScriptSetup&&Le(t,e),cd={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return a[e]}else{if(Sc(n,e))return o[e]=1,n[e];if(i!==Te&&Le(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&Le(u,e))return o[e]=3,a[e];if(r!==Te&&Le(r,e))return o[e]=4,r[e];hd&&(o[e]=0)}}const f=ds[e];let c,h;if(f)return e==="$attrs"&&Dt(t.attrs,"get",""),f(t);if((c=s.__cssModules)&&(c=c[e]))return c;if(r!==Te&&Le(r,e))return o[e]=4,r[e];if(h=l.config.globalProperties,Le(h,e))return h[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:a}=t;return Sc(i,e)?(i[e]=r,!0):n!==Te&&Le(n,e)?(n[e]=r,!0):Le(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||t!==Te&&Le(t,o)||Sc(e,o)||(s=a[0])&&Le(s,o)||Le(n,o)||Le(ds,o)||Le(i.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Le(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}},aD=Ve({},cd,{get(t,e){if(e!==Symbol.unscopables)return cd.get(t,e,t)},has(t,e){return e[0]!=="_"&&!Nx(e)}});function oD(){return null}function sD(){return null}function lD(t){}function uD(t){}function fD(){return null}function cD(){}function hD(t,e){return null}function dD(){return Gb().slots}function vD(){return Gb().attrs}function Gb(){const t=gt();return t.setupContext||(t.setupContext=Sw(t))}function Os(t){return Q(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}function pD(t,e){const r=Os(t);for(const n in e){if(n.startsWith("__skip"))continue;let i=r[n];i?Q(i)||le(i)?i=r[n]={type:i,default:e[n]}:i.default=e[n]:i===null&&(i=r[n]={default:e[n]}),i&&e[`__skip_${n}`]&&(i.skipFactory=!0)}return r}function on(t,e){return!t||!e?t||e:Q(t)&&Q(e)?t.concat(e):Ve({},Os(t),Os(e))}function gD(t,e){const r={};for(const n in t)e.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>t[n]});return r}function mD(t){const e=gt();let r=t();return yd(),Ov(r)&&(r=r.catch(n=>{throw ra(e),n})),[r,()=>ra(e)]}let hd=!0;function yD(t){const e=Jv(t),r=t.proxy,n=t.ctx;hd=!1,e.beforeCreate&&Bg(e.beforeCreate,t,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:f,beforeMount:c,mounted:h,beforeUpdate:d,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:_,destroyed:y,unmounted:b,render:w,renderTracked:S,renderTriggered:T,errorCaptured:C,serverPrefetch:x,expose:D,inheritAttrs:A,components:M,directives:R,filters:k}=e;if(u&&_D(u,n,null),o)for(const q in o){const U=o[q];le(U)&&(n[q]=U.bind(r))}if(i){const q=i.call(r,r);Ne(q)&&(t.data=go(q))}if(hd=!0,a)for(const q in a){const U=a[q],ue=le(U)?U.bind(r,r):le(U.get)?U.get.bind(r,r):wr,He=!le(U)&&le(U.set)?U.set.bind(r):wr,Xe=ge({get:ue,set:He});Object.defineProperty(n,q,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:_e=>Xe.value=_e})}if(s)for(const q in s)Wb(s[q],n,r,q);if(l){const q=le(l)?l.call(r):l;Reflect.ownKeys(q).forEach(U=>{Ff(U,q[U])})}f&&Bg(f,t,"c");function N(q,U){Q(U)?U.forEach(ue=>q(ue.bind(r))):U&&q(U.bind(r))}if(N(Fb,c),N(an,h),N(qv,d),N(Bf,v),N(kb,p),N(Nb,g),N($b,C),N(zb,S),N(Hb,T),N(ol,_),N(fa,b),N(Vb,x),Q(D))if(D.length){const q=t.exposed||(t.exposed={});D.forEach(U=>{Object.defineProperty(q,U,{get:()=>r[U],set:ue=>r[U]=ue})})}else t.exposed||(t.exposed={});w&&t.render===wr&&(t.render=w),A!=null&&(t.inheritAttrs=A),M&&(t.components=M),R&&(t.directives=R),x&&Xv(t)}function _D(t,e,r=wr){Q(t)&&(t=dd(t));for(const n in t){const i=t[n];let a;Ne(i)?"default"in i?a=Yi(i.from||n,i.default,!0):a=Yi(i.from||n):a=Yi(i),Ue(a)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):e[n]=a}}function Bg(t,e,r){xr(Q(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Wb(t,e,r,n){let i=n.includes(".")?uw(r,n):()=>r[n];if(We(t)){const a=e[t];le(a)&&rt(i,a)}else if(le(t))rt(i,t.bind(r));else if(Ne(t))if(Q(t))t.forEach(a=>Wb(a,e,r,n));else{const a=le(t.handler)?t.handler.bind(r):e[t.handler];le(a)&&rt(i,a,t)}}function Jv(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=t.appContext,s=a.get(e);let l;return s?l=s:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>Hu(l,u,o,!0)),Hu(l,e,o)),Ne(e)&&a.set(e,l),l}function Hu(t,e,r,n=!1){const{mixins:i,extends:a}=e;a&&Hu(t,a,r,!0),i&&i.forEach(o=>Hu(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const s=bD[o]||r&&r[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const bD={data:Fg,props:Vg,emits:Vg,methods:es,computed:es,beforeCreate:Pt,created:Pt,beforeMount:Pt,mounted:Pt,beforeUpdate:Pt,updated:Pt,beforeDestroy:Pt,beforeUnmount:Pt,destroyed:Pt,unmounted:Pt,activated:Pt,deactivated:Pt,errorCaptured:Pt,serverPrefetch:Pt,components:es,directives:es,watch:SD,provide:Fg,inject:wD};function Fg(t,e){return e?t?function(){return Ve(le(t)?t.call(this,this):t,le(e)?e.call(this,this):e)}:e:t}function wD(t,e){return es(dd(t),dd(e))}function dd(t){if(Q(t)){const e={};for(let r=0;r<t.length;r++)e[t[r]]=t[r];return e}return t}function Pt(t,e){return t?[...new Set([].concat(t,e))]:e}function es(t,e){return t?Ve(Object.create(null),t,e):e}function Vg(t,e){return t?Q(t)&&Q(e)?[...new Set([...t,...e])]:Ve(Object.create(null),Os(t),Os(e??{})):e}function SD(t,e){if(!t)return e;if(!e)return t;const r=Ve(Object.create(null),t);for(const n in e)r[n]=Pt(t[n],e[n]);return r}function Yb(){return{app:null,config:{isNativeTag:Mx,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 TD=0;function xD(t,e){return function(n,i=null){le(n)||(n=Ve({},n)),i!=null&&!Ne(i)&&(i=null);const a=Yb(),o=new WeakSet,s=[];let l=!1;const u=a.app={_uid:TD++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:xw,get config(){return a.config},set config(f){},use(f,...c){return o.has(f)||(f&&le(f.install)?(o.add(f),f.install(u,...c)):le(f)&&(o.add(f),f(u,...c))),u},mixin(f){return a.mixins.includes(f)||a.mixins.push(f),u},component(f,c){return c?(a.components[f]=c,u):a.components[f]},directive(f,c){return c?(a.directives[f]=c,u):a.directives[f]},mount(f,c,h){if(!l){const d=u._ceVNode||ee(n,i);return d.appContext=a,h===!0?h="svg":h===!1&&(h=void 0),c&&e?e(d,f):t(d,f,h),l=!0,u._container=f,f.__vue_app__=u,ll(d.component)}},onUnmount(f){s.push(f)},unmount(){l&&(xr(s,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(f,c){return a.provides[f]=c,u},runWithContext(f){const c=Wi;Wi=u;try{return f()}finally{Wi=c}}};return u}}let Wi=null;function Ff(t,e){if(st){let r=st.provides;const n=st.parent&&st.parent.provides;n===r&&(r=st.provides=Object.create(n)),r[t]=e}}function Yi(t,e,r=!1){const n=st||lt;if(n||Wi){let i=Wi?Wi._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return r&&le(e)?e.call(n&&n.proxy):e}}function CD(){return!!(st||lt||Wi)}const Xb={},Kb=()=>Object.create(Xb),qb=t=>Object.getPrototypeOf(t)===Xb;function DD(t,e,r,n=!1){const i={},a=Kb();t.propsDefaults=Object.create(null),jb(t,e,i,a);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);r?t.props=n?i:vb(i):t.type.props?t.props=i:t.props=a,t.attrs=a}function ID(t,e,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=t,s=Ce(i),[l]=t.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const f=t.vnode.dynamicProps;for(let c=0;c<f.length;c++){let h=f[c];if(Vf(t.emitsOptions,h))continue;const d=e[h];if(l)if(Le(a,h))d!==a[h]&&(a[h]=d,u=!0);else{const v=dt(h);i[v]=vd(l,s,v,d,t,!1)}else d!==a[h]&&(a[h]=d,u=!0)}}}else{jb(t,e,i,a)&&(u=!0);let f;for(const c in s)(!e||!Le(e,c)&&((f=Zt(c))===c||!Le(e,f)))&&(l?r&&(r[c]!==void 0||r[f]!==void 0)&&(i[c]=vd(l,s,c,void 0,t,!0)):delete i[c]);if(a!==s)for(const c in a)(!e||!Le(e,c))&&(delete a[c],u=!0)}u&&pn(t.attrs,"set","")}function jb(t,e,r,n){const[i,a]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(qa(l))continue;const u=e[l];let f;i&&Le(i,f=dt(l))?!a||!a.includes(f)?r[f]=u:(s||(s={}))[f]=u:Vf(t.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Ce(r),u=s||Te;for(let f=0;f<a.length;f++){const c=a[f];r[c]=vd(i,l,c,u[c],t,!Le(u,c))}}return o}function vd(t,e,r,n,i,a){const o=t[r];if(o!=null){const s=Le(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&le(l)){const{propsDefaults:u}=i;if(r in u)n=u[r];else{const f=ra(i);n=u[r]=l.call(null,e),f()}}else n=l;i.ce&&i.ce._setProp(r,n)}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===Zt(r))&&(n=!0))}return n}const AD=new WeakMap;function Zb(t,e,r=!1){const n=r?AD:e.propsCache,i=n.get(t);if(i)return i;const a=t.props,o={},s=[];let l=!1;if(!le(t)){const f=c=>{l=!0;const[h,d]=Zb(c,e,!0);Ve(o,h),d&&s.push(...d)};!r&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!a&&!l)return Ne(t)&&n.set(t,Xa),Xa;if(Q(a))for(let f=0;f<a.length;f++){const c=dt(a[f]);Hg(c)&&(o[c]=Te)}else if(a)for(const f in a){const c=dt(f);if(Hg(c)){const h=a[f],d=o[c]=Q(h)||le(h)?{type:h}:Ve({},h),v=d.type;let p=!1,g=!0;if(Q(v))for(let m=0;m<v.length;++m){const _=v[m],y=le(_)&&_.name;if(y==="Boolean"){p=!0;break}else y==="String"&&(g=!1)}else p=le(v)&&v.name==="Boolean";d[0]=p,d[1]=g,(p||Le(d,"default"))&&s.push(c)}}const u=[o,s];return Ne(t)&&n.set(t,u),u}function Hg(t){return t[0]!=="$"&&!qa(t)}const ep=t=>t[0]==="_"||t==="$stable",tp=t=>Q(t)?t.map(Xt):[Xt(t)],MD=(t,e,r)=>{if(e._n)return e;const n=ie((...i)=>tp(e(...i)),r);return n._c=!1,n},Qb=(t,e,r)=>{const n=t._ctx;for(const i in t){if(ep(i))continue;const a=t[i];if(le(a))e[i]=MD(i,a,n);else if(a!=null){const o=tp(a);e[i]=()=>o}}},Jb=(t,e)=>{const r=tp(e);t.slots.default=()=>r},ew=(t,e,r)=>{for(const n in e)(r||!ep(n))&&(t[n]=e[n])},ED=(t,e,r)=>{const n=t.slots=Kb();if(t.vnode.shapeFlag&32){const i=e.__;i&&ad(n,"__",i,!0);const a=e._;a?(ew(n,e,r),r&&ad(n,"_",a,!0)):Qb(e,n)}else e&&Jb(t,e)},LD=(t,e,r)=>{const{vnode:n,slots:i}=t;let a=!0,o=Te;if(n.shapeFlag&32){const s=e._;s?r&&s===1?a=!1:ew(i,e,r):(a=!e.$stable,Qb(e,i)),o=e}else e&&(Jb(t,e),o={default:1});if(a)for(const s in i)!ep(s)&&o[s]==null&&delete i[s]},ot=dw;function tw(t){return nw(t)}function rw(t){return nw(t,VC)}function nw(t,e){const r=Cf();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:h,setScopeId:d=wr,insertStaticContent:v}=t,p=(I,E,O,F=null,B=null,V=null,Y=void 0,G=null,W=!!E.dynamicChildren)=>{if(I===E)return;I&&!Rr(I,E)&&(F=$t(I),_e(I,B,V,!0),I=null),E.patchFlag===-2&&(W=!1,E.dynamicChildren=null);const{type:z,ref:oe,shapeFlag:X}=E;switch(z){case Qn:g(I,E,O,F);break;case tt:m(I,E,O,F);break;case Xi:I==null&&_(E,O,F,Y);break;case qe:M(I,E,O,F,B,V,Y,G,W);break;default:X&1?w(I,E,O,F,B,V,Y,G,W):X&6?R(I,E,O,F,B,V,Y,G,W):(X&64||X&128)&&z.process(I,E,O,F,B,V,Y,G,W,ve)}oe!=null&&B?Ja(oe,I&&I.ref,V,E||I,!E):oe==null&&I&&I.ref!=null&&Ja(I.ref,null,V,I,!0)},g=(I,E,O,F)=>{if(I==null)n(E.el=s(E.children),O,F);else{const B=E.el=I.el;E.children!==I.children&&u(B,E.children)}},m=(I,E,O,F)=>{I==null?n(E.el=l(E.children||""),O,F):E.el=I.el},_=(I,E,O,F)=>{[I.el,I.anchor]=v(I.children,E,O,F,I.el,I.anchor)},y=({el:I,anchor:E},O,F)=>{let B;for(;I&&I!==E;)B=h(I),n(I,O,F),I=B;n(E,O,F)},b=({el:I,anchor:E})=>{let O;for(;I&&I!==E;)O=h(I),i(I),I=O;i(E)},w=(I,E,O,F,B,V,Y,G,W)=>{E.type==="svg"?Y="svg":E.type==="math"&&(Y="mathml"),I==null?S(E,O,F,B,V,Y,G,W):x(I,E,B,V,Y,G,W)},S=(I,E,O,F,B,V,Y,G)=>{let W,z;const{props:oe,shapeFlag:X,transition:te,dirs:ce}=I;if(W=I.el=o(I.type,V,oe&&oe.is,oe),X&8?f(W,I.children):X&16&&C(I.children,W,null,F,B,Tc(I,V),Y,G),ce&&Kr(I,null,F,"created"),T(W,I,I.scopeId,Y,F),oe){for(const ze in oe)ze!=="value"&&!qa(ze)&&a(W,ze,null,oe[ze],V,F);"value"in oe&&a(W,"value",null,oe.value,V),(z=oe.onVnodeBeforeMount)&&Yt(z,F,I)}ce&&Kr(I,null,F,"beforeMount");const xe=iw(B,te);xe&&te.beforeEnter(W),n(W,E,O),((z=oe&&oe.onVnodeMounted)||xe||ce)&&ot(()=>{z&&Yt(z,F,I),xe&&te.enter(W),ce&&Kr(I,null,F,"mounted")},B)},T=(I,E,O,F,B)=>{if(O&&d(I,O),F)for(let V=0;V<F.length;V++)d(I,F[V]);if(B){let V=B.subTree;if(E===V||$u(V.type)&&(V.ssContent===E||V.ssFallback===E)){const Y=B.vnode;T(I,Y,Y.scopeId,Y.slotScopeIds,B.parent)}}},C=(I,E,O,F,B,V,Y,G,W=0)=>{for(let z=W;z<I.length;z++){const oe=I[z]=G?Xn(I[z]):Xt(I[z]);p(null,oe,E,O,F,B,V,Y,G)}},x=(I,E,O,F,B,V,Y)=>{const G=E.el=I.el;let{patchFlag:W,dynamicChildren:z,dirs:oe}=E;W|=I.patchFlag&16;const X=I.props||Te,te=E.props||Te;let ce;if(O&&fi(O,!1),(ce=te.onVnodeBeforeUpdate)&&Yt(ce,O,E,I),oe&&Kr(E,I,O,"beforeUpdate"),O&&fi(O,!0),(X.innerHTML&&te.innerHTML==null||X.textContent&&te.textContent==null)&&f(G,""),z?D(I.dynamicChildren,z,G,O,F,Tc(E,B),V):Y||U(I,E,G,null,O,F,Tc(E,B),V,!1),W>0){if(W&16)A(G,X,te,O,B);else if(W&2&&X.class!==te.class&&a(G,"class",null,te.class,B),W&4&&a(G,"style",X.style,te.style,B),W&8){const xe=E.dynamicProps;for(let ze=0;ze<xe.length;ze++){const Oe=xe[ze],Ut=X[Oe],_t=te[Oe];(_t!==Ut||Oe==="value")&&a(G,Oe,Ut,_t,B,O)}}W&1&&I.children!==E.children&&f(G,E.children)}else!Y&&z==null&&A(G,X,te,O,B);((ce=te.onVnodeUpdated)||oe)&&ot(()=>{ce&&Yt(ce,O,E,I),oe&&Kr(E,I,O,"updated")},F)},D=(I,E,O,F,B,V,Y)=>{for(let G=0;G<E.length;G++){const W=I[G],z=E[G],oe=W.el&&(W.type===qe||!Rr(W,z)||W.shapeFlag&198)?c(W.el):O;p(W,z,oe,null,F,B,V,Y,!0)}},A=(I,E,O,F,B)=>{if(E!==O){if(E!==Te)for(const V in E)!qa(V)&&!(V in O)&&a(I,V,E[V],null,B,F);for(const V in O){if(qa(V))continue;const Y=O[V],G=E[V];Y!==G&&V!=="value"&&a(I,V,G,Y,B,F)}"value"in O&&a(I,"value",E.value,O.value,B)}},M=(I,E,O,F,B,V,Y,G,W)=>{const z=E.el=I?I.el:s(""),oe=E.anchor=I?I.anchor:s("");let{patchFlag:X,dynamicChildren:te,slotScopeIds:ce}=E;ce&&(G=G?G.concat(ce):ce),I==null?(n(z,O,F),n(oe,O,F),C(E.children||[],O,oe,B,V,Y,G,W)):X>0&&X&64&&te&&I.dynamicChildren?(D(I.dynamicChildren,te,O,B,V,Y,G),(E.key!=null||B&&E===B.subTree)&&rp(I,E,!0)):U(I,E,O,oe,B,V,Y,G,W)},R=(I,E,O,F,B,V,Y,G,W)=>{E.slotScopeIds=G,I==null?E.shapeFlag&512?B.ctx.activate(E,O,F,Y,W):k(E,O,F,B,V,Y,W):H(I,E,W)},k=(I,E,O,F,B,V,Y)=>{const G=I.component=yw(I,F,B);if(al(I)&&(G.ctx.renderer=ve),bw(G,!1,Y),G.asyncDep){if(B&&B.registerDep(G,N,Y),!I.el){const W=G.subTree=ee(tt);m(null,W,E,O)}}else N(G,I,E,O,B,V,Y)},H=(I,E,O)=>{const F=E.component=I.component;if(VD(I,E,O))if(F.asyncDep&&!F.asyncResolved){q(F,E,O);return}else F.next=E,F.update();else E.el=I.el,F.vnode=E},N=(I,E,O,F,B,V,Y)=>{const G=()=>{if(I.isMounted){let{next:X,bu:te,u:ce,parent:xe,vnode:ze}=I;{const nr=aw(I);if(nr){X&&(X.el=ze.el,q(I,X,Y)),nr.asyncDep.then(()=>{I.isUnmounted||G()});return}}let Oe=X,Ut;fi(I,!1),X?(X.el=ze.el,q(I,X,Y)):X=ze,te&&Za(te),(Ut=X.props&&X.props.onVnodeBeforeUpdate)&&Yt(Ut,xe,X,ze),fi(I,!0);const _t=pu(I),Ar=I.subTree;I.subTree=_t,p(Ar,_t,c(Ar.el),$t(Ar),I,B,V),X.el=_t.el,Oe===null&&Hf(I,_t.el),ce&&ot(ce,B),(Ut=X.props&&X.props.onVnodeUpdated)&&ot(()=>Yt(Ut,xe,X,ze),B)}else{let X;const{el:te,props:ce}=E,{bm:xe,m:ze,parent:Oe,root:Ut,type:_t}=I,Ar=Zn(E);if(fi(I,!1),xe&&Za(xe),!Ar&&(X=ce&&ce.onVnodeBeforeMount)&&Yt(X,Oe,E),fi(I,!0),te&&J){const nr=()=>{I.subTree=pu(I),J(te,I.subTree,I,B,null)};Ar&&_t.__asyncHydrate?_t.__asyncHydrate(te,I,nr):nr()}else{Ut.ce&&Ut.ce._def.shadowRoot!==!1&&Ut.ce._injectChildStyle(_t);const nr=I.subTree=pu(I);p(null,nr,O,F,I,B,V),E.el=nr.el}if(ze&&ot(ze,B),!Ar&&(X=ce&&ce.onVnodeMounted)){const nr=E;ot(()=>Yt(X,Oe,nr),B)}(E.shapeFlag&256||Oe&&Zn(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&I.a&&ot(I.a,B),I.isMounted=!0,E=O=F=null}};I.scope.on();const W=I.effect=new As(G);I.scope.off();const z=I.update=W.run.bind(W),oe=I.job=W.runIfDirty.bind(W);oe.i=I,oe.id=I.uid,W.scheduler=()=>Gv(oe),fi(I,!0),z()},q=(I,E,O)=>{E.component=I;const F=I.vnode.props;I.vnode=E,I.next=null,ID(I,E.props,F,O),LD(I,E.children,O),Tn(),Mg(I),xn()},U=(I,E,O,F,B,V,Y,G,W=!1)=>{const z=I&&I.children,oe=I?I.shapeFlag:0,X=E.children,{patchFlag:te,shapeFlag:ce}=E;if(te>0){if(te&128){He(z,X,O,F,B,V,Y,G,W);return}else if(te&256){ue(z,X,O,F,B,V,Y,G,W);return}}ce&8?(oe&16&&Lt(z,B,V),X!==z&&f(O,X)):oe&16?ce&16?He(z,X,O,F,B,V,Y,G,W):Lt(z,B,V,!0):(oe&8&&f(O,""),ce&16&&C(X,O,F,B,V,Y,G,W))},ue=(I,E,O,F,B,V,Y,G,W)=>{I=I||Xa,E=E||Xa;const z=I.length,oe=E.length,X=Math.min(z,oe);let te;for(te=0;te<X;te++){const ce=E[te]=W?Xn(E[te]):Xt(E[te]);p(I[te],ce,O,null,B,V,Y,G,W)}z>oe?Lt(I,B,V,!0,!1,X):C(E,O,F,B,V,Y,G,W,X)},He=(I,E,O,F,B,V,Y,G,W)=>{let z=0;const oe=E.length;let X=I.length-1,te=oe-1;for(;z<=X&&z<=te;){const ce=I[z],xe=E[z]=W?Xn(E[z]):Xt(E[z]);if(Rr(ce,xe))p(ce,xe,O,null,B,V,Y,G,W);else break;z++}for(;z<=X&&z<=te;){const ce=I[X],xe=E[te]=W?Xn(E[te]):Xt(E[te]);if(Rr(ce,xe))p(ce,xe,O,null,B,V,Y,G,W);else break;X--,te--}if(z>X){if(z<=te){const ce=te+1,xe=ce<oe?E[ce].el:F;for(;z<=te;)p(null,E[z]=W?Xn(E[z]):Xt(E[z]),O,xe,B,V,Y,G,W),z++}}else if(z>te)for(;z<=X;)_e(I[z],B,V,!0),z++;else{const ce=z,xe=z,ze=new Map;for(z=xe;z<=te;z++){const ir=E[z]=W?Xn(E[z]):Xt(E[z]);ir.key!=null&&ze.set(ir.key,z)}let Oe,Ut=0;const _t=te-xe+1;let Ar=!1,nr=0;const Io=new Array(_t);for(z=0;z<_t;z++)Io[z]=0;for(z=ce;z<=X;z++){const ir=I[z];if(Ut>=_t){_e(ir,B,V,!0);continue}let zr;if(ir.key!=null)zr=ze.get(ir.key);else for(Oe=xe;Oe<=te;Oe++)if(Io[Oe-xe]===0&&Rr(ir,E[Oe])){zr=Oe;break}zr===void 0?_e(ir,B,V,!0):(Io[zr-xe]=z+1,zr>=nr?nr=zr:Ar=!0,p(ir,E[zr],O,null,B,V,Y,G,W),Ut++)}const Tg=Ar?PD(Io):Xa;for(Oe=Tg.length-1,z=_t-1;z>=0;z--){const ir=xe+z,zr=E[ir],xg=ir+1<oe?E[ir+1].el:F;Io[z]===0?p(null,zr,O,xg,B,V,Y,G,W):Ar&&(Oe<0||z!==Tg[Oe]?Xe(zr,O,xg,2):Oe--)}}},Xe=(I,E,O,F,B=null)=>{const{el:V,type:Y,transition:G,children:W,shapeFlag:z}=I;if(z&6){Xe(I.component.subTree,E,O,F);return}if(z&128){I.suspense.move(E,O,F);return}if(z&64){Y.move(I,E,O,ve);return}if(Y===qe){n(V,E,O);for(let X=0;X<W.length;X++)Xe(W[X],E,O,F);n(I.anchor,E,O);return}if(Y===Xi){y(I,E,O);return}if(F!==2&&z&1&&G)if(F===0)G.beforeEnter(V),n(V,E,O),ot(()=>G.enter(V),B);else{const{leave:X,delayLeave:te,afterLeave:ce}=G,xe=()=>{I.ctx.isUnmounted?i(V):n(V,E,O)},ze=()=>{X(V,()=>{xe(),ce&&ce()})};te?te(V,xe,ze):ze()}else n(V,E,O)},_e=(I,E,O,F=!1,B=!1)=>{const{type:V,props:Y,ref:G,children:W,dynamicChildren:z,shapeFlag:oe,patchFlag:X,dirs:te,cacheIndex:ce}=I;if(X===-2&&(B=!1),G!=null&&(Tn(),Ja(G,null,O,I,!0),xn()),ce!=null&&(E.renderCache[ce]=void 0),oe&256){E.ctx.deactivate(I);return}const xe=oe&1&&te,ze=!Zn(I);let Oe;if(ze&&(Oe=Y&&Y.onVnodeBeforeUnmount)&&Yt(Oe,E,I),oe&6)zt(I.component,O,F);else{if(oe&128){I.suspense.unmount(O,F);return}xe&&Kr(I,null,E,"beforeUnmount"),oe&64?I.type.remove(I,E,O,ve,F):z&&!z.hasOnce&&(V!==qe||X>0&&X&64)?Lt(z,E,O,!1,!0):(V===qe&&X&384||!B&&oe&16)&&Lt(W,E,O),F&&ct(I)}(ze&&(Oe=Y&&Y.onVnodeUnmounted)||xe)&&ot(()=>{Oe&&Yt(Oe,E,I),xe&&Kr(I,null,E,"unmounted")},O)},ct=I=>{const{type:E,el:O,anchor:F,transition:B}=I;if(E===qe){mt(O,F);return}if(E===Xi){b(I);return}const V=()=>{i(O),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(I.shapeFlag&1&&B&&!B.persisted){const{leave:Y,delayLeave:G}=B,W=()=>Y(O,V);G?G(I.el,V,W):W()}else V()},mt=(I,E)=>{let O;for(;I!==E;)O=h(I),i(I),I=O;i(E)},zt=(I,E,O)=>{const{bum:F,scope:B,job:V,subTree:Y,um:G,m:W,a:z,parent:oe,slots:{__:X}}=I;zu(W),zu(z),F&&Za(F),oe&&Q(X)&&X.forEach(te=>{oe.renderCache[te]=void 0}),B.stop(),V&&(V.flags|=8,_e(Y,I,E,O)),G&&ot(G,E),ot(()=>{I.isUnmounted=!0},E),E&&E.pendingBranch&&!E.isUnmounted&&I.asyncDep&&!I.asyncResolved&&I.suspenseId===E.pendingId&&(E.deps--,E.deps===0&&E.resolve())},Lt=(I,E,O,F=!1,B=!1,V=0)=>{for(let Y=V;Y<I.length;Y++)_e(I[Y],E,O,F,B)},$t=I=>{if(I.shapeFlag&6)return $t(I.component.subTree);if(I.shapeFlag&128)return I.suspense.next();const E=h(I.anchor||I.el),O=E&&E[Cb];return O?h(O):E};let be=!1;const ne=(I,E,O)=>{I==null?E._vnode&&_e(E._vnode,null,null,!0):p(E._vnode||null,I,E,null,null,null,O),E._vnode=I,be||(be=!0,Mg(),Vu(),be=!1)},ve={p,um:_e,m:Xe,r:ct,mt:k,mc:C,pc:U,pbc:D,n:$t,o:t};let K,J;return e&&([K,J]=e(ve)),{render:ne,hydrate:K,createApp:xD(ne,K)}}function Tc({type:t,props:e},r){return r==="svg"&&t==="foreignObject"||r==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:r}function fi({effect:t,job:e},r){r?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function iw(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function rp(t,e,r=!1){const n=t.children,i=e.children;if(Q(n)&&Q(i))for(let a=0;a<n.length;a++){const o=n[a];let s=i[a];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=i[a]=Xn(i[a]),s.el=o.el),!r&&s.patchFlag!==-2&&rp(o,s)),s.type===Qn&&(s.el=o.el),s.type===tt&&!s.el&&(s.el=o.el)}}function PD(t){const e=t.slice(),r=[0];let n,i,a,o,s;const l=t.length;for(n=0;n<l;n++){const u=t[n];if(u!==0){if(i=r[r.length-1],t[i]<u){e[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,t[r[s]]<u?a=s+1:o=s;u<t[r[a]]&&(a>0&&(e[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=e[o];return r}function aw(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:aw(e)}function zu(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const ow=Symbol.for("v-scx"),sw=()=>Yi(ow);function ea(t,e){return sl(t,null,e)}function RD(t,e){return sl(t,null,{flush:"post"})}function lw(t,e){return sl(t,null,{flush:"sync"})}function rt(t,e,r){return sl(t,e,r)}function sl(t,e,r=Te){const{immediate:n,deep:i,flush:a,once:o}=r,s=Ve({},r),l=e&&n||!e&&a!=="post";let u;if(oo){if(a==="sync"){const d=sw();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=wr,d.resume=wr,d.pause=wr,d}}const f=st;s.call=(d,v,p)=>xr(d,f,v,p);let c=!1;a==="post"?s.scheduler=d=>{ot(d,f&&f.suspense)}:a!=="sync"&&(c=!0,s.scheduler=(d,v)=>{v?d():Gv(d)}),s.augmentJob=d=>{e&&(d.flags|=4),c&&(d.flags|=2,f&&(d.id=f.uid,d.i=f))};const h=xC(t,e,s);return oo&&(u?u.push(h):l&&h()),h}function OD(t,e,r){const n=this.proxy,i=We(t)?t.includes(".")?uw(n,t):()=>n[t]:t.bind(n,n);let a;le(e)?a=e:(a=e.handler,r=e);const o=ra(this),s=sl(i,a.bind(n),r);return o(),s}function uw(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Dr(t,e,r=Te){const n=gt(),i=dt(e),a=Zt(e),o=fw(t,i),s=mb((l,u)=>{let f,c=Te,h;return lw(()=>{const d=t[i];kt(f,d)&&(f=d,u())}),{get(){return l(),r.get?r.get(f):f},set(d){const v=r.set?r.set(d):d;if(!kt(v,f)&&!(c!==Te&&kt(d,c)))return;const p=n.vnode.props;p&&(e in p||i in p||a in p)&&(`onUpdate:${e}`in p||`onUpdate:${i}`in p||`onUpdate:${a}`in p)||(f=d,u()),n.emit(`update:${e}`,v),kt(d,v)&&kt(d,c)&&!kt(v,h)&&u(),c=d,h=v}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||Te:s,done:!1}:{done:!0}}}},s}const fw=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${dt(e)}Modifiers`]||t[`${Zt(e)}Modifiers`];function kD(t,e,...r){if(t.isUnmounted)return;const n=t.vnode.props||Te;let i=r;const a=e.startsWith("update:"),o=a&&fw(n,e.slice(7));o&&(o.trim&&(i=r.map(f=>We(f)?f.trim():f)),o.number&&(i=r.map(Ru)));let s,l=n[s=ja(e)]||n[s=ja(dt(e))];!l&&a&&(l=n[s=ja(Zt(e))]),l&&xr(l,t,6,i);const u=n[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,xr(u,t,6,i)}}function cw(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const a=t.emits;let o={},s=!1;if(!le(t)){const l=u=>{const f=cw(u,e,!0);f&&(s=!0,Ve(o,f))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(Ne(t)&&n.set(t,null),null):(Q(a)?a.forEach(l=>o[l]=null):Ve(o,a),Ne(t)&&n.set(t,o),o)}function Vf(t,e){return!t||!rl(e)?!1:(e=e.slice(2).replace(/Once$/,""),Le(t,e[0].toLowerCase()+e.slice(1))||Le(t,Zt(e))||Le(t,e))}function pu(t){const{type:e,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:f,props:c,data:h,setupState:d,ctx:v,inheritAttrs:p}=t,g=Rs(t);let m,_;try{if(r.shapeFlag&4){const b=i||n,w=b;m=Xt(u.call(w,b,f,c,d,h,v)),_=s}else{const b=e;m=Xt(b.length>1?b(c,{attrs:s,slots:o,emit:l}):b(c,null)),_=e.props?s:BD(s)}}catch(b){vs.length=0,ua(b,t,1),m=ee(tt)}let y=m;if(_&&p!==!1){const b=Object.keys(_),{shapeFlag:w}=y;b.length&&w&7&&(a&&b.some(Pv)&&(_=FD(_,a)),y=Nr(y,_,!1,!0))}return r.dirs&&(y=Nr(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(r.dirs):r.dirs),r.transition&&Dn(y,r.transition),m=y,Rs(g),m}function ND(t,e=!0){let r;for(let n=0;n<t.length;n++){const i=t[n];if(In(i)){if(i.type!==tt||i.children==="v-if"){if(r)return;r=i}}else return}return r}const BD=t=>{let e;for(const r in t)(r==="class"||r==="style"||rl(r))&&((e||(e={}))[r]=t[r]);return e},FD=(t,e)=>{const r={};for(const n in t)(!Pv(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function VD(t,e,r){const{props:n,children:i,component:a}=t,{props:o,children:s,patchFlag:l}=e,u=a.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?zg(n,o,u):!!o;if(l&8){const f=e.dynamicProps;for(let c=0;c<f.length;c++){const h=f[c];if(o[h]!==n[h]&&!Vf(u,h))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?zg(n,o,u):!0:!!o;return!1}function zg(t,e,r){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(e[a]!==t[a]&&!Vf(r,a))return!0}return!1}function Hf({vnode:t,parent:e},r){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=r,e=e.parent;else break}}const $u=t=>t.__isSuspense;let pd=0;const HD={name:"Suspense",__isSuspense:!0,process(t,e,r,n,i,a,o,s,l,u){if(t==null)$D(e,r,n,i,a,o,s,l,u);else{if(a&&a.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}UD(t,e,r,n,i,o,s,l,u)}},hydrate:GD,normalize:WD},zD=HD;function ks(t,e){const r=t.props&&t.props[e];le(r)&&r()}function $D(t,e,r,n,i,a,o,s,l){const{p:u,o:{createElement:f}}=l,c=f("div"),h=t.suspense=hw(t,i,n,e,c,r,a,o,s,l);u(null,h.pendingBranch=t.ssContent,c,null,n,h,a,o),h.deps>0?(ks(t,"onPending"),ks(t,"onFallback"),u(null,t.ssFallback,e,r,n,null,a,o),eo(h,t.ssFallback)):h.resolve(!1,!0)}function UD(t,e,r,n,i,a,o,s,{p:l,um:u,o:{createElement:f}}){const c=e.suspense=t.suspense;c.vnode=e,e.el=t.el;const h=e.ssContent,d=e.ssFallback,{activeBranch:v,pendingBranch:p,isInFallback:g,isHydrating:m}=c;if(p)c.pendingBranch=h,Rr(h,p)?(l(p,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():g&&(m||(l(v,d,r,n,i,null,a,o,s),eo(c,d)))):(c.pendingId=pd++,m?(c.isHydrating=!1,c.activeBranch=p):u(p,i,c),c.deps=0,c.effects.length=0,c.hiddenContainer=f("div"),g?(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0?c.resolve():(l(v,d,r,n,i,null,a,o,s),eo(c,d))):v&&Rr(h,v)?(l(v,h,r,n,i,c,a,o,s),c.resolve(!0)):(l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0&&c.resolve()));else if(v&&Rr(h,v))l(v,h,r,n,i,c,a,o,s),eo(c,h);else if(ks(e,"onPending"),c.pendingBranch=h,h.shapeFlag&512?c.pendingId=h.component.suspenseId:c.pendingId=pd++,l(null,h,c.hiddenContainer,null,i,c,a,o,s),c.deps<=0)c.resolve();else{const{timeout:_,pendingId:y}=c;_>0?setTimeout(()=>{c.pendingId===y&&c.fallback(d)},_):_===0&&c.fallback(d)}}function hw(t,e,r,n,i,a,o,s,l,u,f=!1){const{p:c,m:h,um:d,n:v,o:{parentNode:p,remove:g}}=u;let m;const _=YD(t);_&&e&&e.pendingBranch&&(m=e.pendingId,e.deps++);const y=t.props?Ou(t.props.timeout):void 0,b=a,w={vnode:t,parent:e,parentComponent:r,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:pd++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(S=!1,T=!1){const{vnode:C,activeBranch:x,pendingBranch:D,pendingId:A,effects:M,parentComponent:R,container:k}=w;let H=!1;w.isHydrating?w.isHydrating=!1:S||(H=x&&D.transition&&D.transition.mode==="out-in",H&&(x.transition.afterLeave=()=>{A===w.pendingId&&(h(D,k,a===b?v(x):a,0),Ls(M))}),x&&(p(x.el)===k&&(a=v(x)),d(x,R,w,!0)),H||h(D,k,a,0)),eo(w,D),w.pendingBranch=null,w.isInFallback=!1;let N=w.parent,q=!1;for(;N;){if(N.pendingBranch){N.effects.push(...M),q=!0;break}N=N.parent}!q&&!H&&Ls(M),w.effects=[],_&&e&&e.pendingBranch&&m===e.pendingId&&(e.deps--,e.deps===0&&!T&&e.resolve()),ks(C,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:T,activeBranch:C,parentComponent:x,container:D,namespace:A}=w;ks(T,"onFallback");const M=v(C),R=()=>{w.isInFallback&&(c(null,S,D,M,x,null,A,s,l),eo(w,S))},k=S.transition&&S.transition.mode==="out-in";k&&(C.transition.afterLeave=R),w.isInFallback=!0,d(C,x,null,!0),k||R()},move(S,T,C){w.activeBranch&&h(w.activeBranch,S,T,C),w.container=S},next(){return w.activeBranch&&v(w.activeBranch)},registerDep(S,T,C){const x=!!w.pendingBranch;x&&w.deps++;const D=S.vnode.el;S.asyncDep.catch(A=>{ua(A,S,0)}).then(A=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:M}=S;_d(S,A,!1),D&&(M.el=D);const R=!D&&S.subTree.el;T(S,M,p(D||S.subTree.el),D?null:v(S.subTree),w,o,C),R&&g(R),Hf(S,M.el),x&&--w.deps===0&&w.resolve()})},unmount(S,T){w.isUnmounted=!0,w.activeBranch&&d(w.activeBranch,r,S,T),w.pendingBranch&&d(w.pendingBranch,r,S,T)}};return w}function GD(t,e,r,n,i,a,o,s,l){const u=e.suspense=hw(e,n,r,t.parentNode,document.createElement("div"),null,i,a,o,s,!0),f=l(t,u.pendingBranch=e.ssContent,r,u,a,o);return u.deps===0&&u.resolve(!1,!0),f}function WD(t){const{shapeFlag:e,children:r}=t,n=e&32;t.ssContent=$g(n?r.default:r),t.ssFallback=n?$g(r.fallback):ee(tt)}function $g(t){let e;if(le(t)){const r=ta&&t._c;r&&(t._d=!1,j()),t=t(),r&&(t._d=!0,e=It,vw())}return Q(t)&&(t=ND(t)),t=Xt(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(r=>r!==t)),t}function dw(t,e){e&&e.pendingBranch?Q(t)?e.effects.push(...t):e.effects.push(t):Ls(t)}function eo(t,e){t.activeBranch=e;const{vnode:r,parentComponent:n}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,Hf(n,i))}function YD(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const qe=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),tt=Symbol.for("v-cmt"),Xi=Symbol.for("v-stc"),vs=[];let It=null;function j(t=!1){vs.push(It=t?null:[])}function vw(){vs.pop(),It=vs[vs.length-1]||null}let ta=1;function gd(t,e=!1){ta+=t,t<0&&It&&e&&(It.hasOnce=!0)}function pw(t){return t.dynamicChildren=ta>0?It||Xa:null,vw(),ta>0&&It&&It.push(t),t}function je(t,e,r,n,i,a){return pw(pe(t,e,r,n,i,a,!0))}function de(t,e,r,n,i){return pw(ee(t,e,r,n,i,!0))}function In(t){return t?t.__v_isVNode===!0:!1}function Rr(t,e){return t.type===e.type&&t.key===e.key}function XD(t){}const gw=({key:t})=>t??null,gu=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?We(t)||Ue(t)||le(t)?{i:lt,r:t,k:e,f:!!r}:t:null);function pe(t,e=null,r=null,n=0,i=null,a=t===qe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&gw(e),ref:e&&gu(e),scopeId:Rf,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:lt};return s?(ip(l,r),a&128&&t.normalize(l)):r&&(l.shapeFlag|=We(r)?8:16),ta>0&&!o&&It&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&It.push(l),l}const ee=KD;function KD(t,e=null,r=null,n=0,i=null,a=!1){if((!t||t===Ub)&&(t=tt),In(t)){const s=Nr(t,e,!0);return r&&ip(s,r),ta>0&&!a&&It&&(s.shapeFlag&6?It[It.indexOf(t)]=s:It.push(s)),s.patchFlag=-2,s}if(tI(t)&&(t=t.__vccOpts),e){e=np(e);let{class:s,style:l}=e;s&&!We(s)&&(e.class=en(s)),Ne(l)&&(Pf(l)&&!Q(l)&&(l=Ve({},l)),e.style=po(l))}const o=We(t)?1:$u(t)?128:Db(t)?64:Ne(t)?4:le(t)?2:0;return pe(t,e,r,n,i,o,a,!0)}function np(t){return t?Pf(t)||qb(t)?Ve({},t):t:null}function Nr(t,e,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=t,u=e?pt(i||{},e):i,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&gw(u),ref:e&&e.ref?r&&a?Q(a)?a.concat(gu(e)):[a,gu(e)]:gu(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==qe?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Nr(t.ssContent),ssFallback:t.ssFallback&&Nr(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&Dn(f,l.clone(f)),f}function br(t=" ",e=0){return ee(Qn,null,t,e)}function mw(t,e){const r=ee(Xi,null,t);return r.staticCount=e,r}function Qr(t="",e=!1){return e?(j(),de(tt,null,t)):ee(tt,null,t)}function Xt(t){return t==null||typeof t=="boolean"?ee(tt):Q(t)?ee(qe,null,t.slice()):In(t)?Xn(t):ee(Qn,null,String(t))}function Xn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Nr(t)}function ip(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(Q(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),ip(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!qb(e)?e._ctx=lt:i===3&&lt&&(lt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else le(e)?(e={default:e,_ctx:lt},r=32):(e=String(e),n&64?(r=16,e=[br(e)]):r=8);t.children=e,t.shapeFlag|=r}function pt(...t){const e={};for(let r=0;r<t.length;r++){const n=t[r];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=en([e.class,n.class]));else if(i==="style")e.style=po([e.style,n.style]);else if(rl(i)){const a=e[i],o=n[i];o&&a!==o&&!(Q(a)&&a.includes(o))&&(e[i]=a?[].concat(a,o):o)}else i!==""&&(e[i]=n[i])}return e}function Yt(t,e,r,n=null){xr(t,e,7,[r,n])}const qD=Yb();let jD=0;function yw(t,e,r){const n=t.type,i=(e?e.appContext:t.appContext)||qD,a={uid:jD++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nv(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zb(n,i),emitsOptions:cw(n,i),emit:null,emitted:null,propsDefaults:Te,inheritAttrs:n.inheritAttrs,ctx:Te,data:Te,props:Te,attrs:Te,slots:Te,refs:Te,setupState:Te,setupContext:null,suspense:r,suspenseId:r?r.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 a.ctx={_:a},a.root=e?e.root:a,a.emit=kD.bind(null,a),t.ce&&t.ce(a),a}let st=null;const gt=()=>st||lt;let Uu,md;{const t=Cf(),e=(r,n)=>{let i;return(i=t[r])||(i=t[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};Uu=e("__VUE_INSTANCE_SETTERS__",r=>st=r),md=e("__VUE_SSR_SETTERS__",r=>oo=r)}const ra=t=>{const e=st;return Uu(t),t.scope.on(),()=>{t.scope.off(),Uu(e)}},yd=()=>{st&&st.scope.off(),Uu(null)};function _w(t){return t.vnode.shapeFlag&4}let oo=!1;function bw(t,e=!1,r=!1){e&&md(e);const{props:n,children:i}=t.vnode,a=_w(t);DD(t,n,a,e),ED(t,i,r||e);const o=a?ZD(t,e):void 0;return e&&md(!1),o}function ZD(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,cd);const{setup:n}=r;if(n){Tn();const i=t.setupContext=n.length>1?Sw(t):null,a=ra(t),o=yo(n,t,0,[t.props,i]),s=Ov(o);if(xn(),a(),(s||t.sp)&&!Zn(t)&&Xv(t),s){if(o.then(yd,yd),e)return o.then(l=>{_d(t,l,e)}).catch(l=>{ua(l,t,0)});t.asyncDep=o}else _d(t,o,e)}else ww(t,e)}function _d(t,e,r){le(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ne(e)&&(t.setupState=Uv(e)),ww(t,r)}let Gu,bd;function QD(t){Gu=t,bd=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,aD))}}const JD=()=>!Gu;function ww(t,e,r){const n=t.type;if(!t.render){if(!e&&Gu&&!n.render){const i=n.template||Jv(t).template;if(i){const{isCustomElement:a,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Ve(Ve({isCustomElement:a,delimiters:s},o),l);n.render=Gu(i,u)}}t.render=n.render||wr,bd&&bd(t)}{const i=ra(t);Tn();try{yD(t)}finally{xn(),i()}}}const eI={get(t,e){return Dt(t,"get",""),t[e]}};function Sw(t){const e=r=>{t.exposed=r||{}};return{attrs:new Proxy(t.attrs,eI),slots:t.slots,emit:t.emit,expose:e}}function ll(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Uv(pb(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in ds)return ds[r](t)},has(e,r){return r in e||r in ds}})):t.proxy}function wd(t,e=!0){return le(t)?t.displayName||t.name:t.name||e&&t.__name}function tI(t){return le(t)&&"__vccOpts"in t}const ge=(t,e)=>bC(t,e,oo);function to(t,e,r){const n=arguments.length;return n===2?Ne(e)&&!Q(e)?In(e)?ee(t,null,[e]):ee(t,e):ee(t,null,e):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&In(r)&&(r=[r]),ee(t,e,r))}function rI(){}function nI(t,e,r,n){const i=r[n];if(i&&Tw(i,t))return i;const a=e();return a.memo=t.slice(),a.cacheIndex=n,r[n]=a}function Tw(t,e){const r=t.memo;if(r.length!=e.length)return!1;for(let n=0;n<r.length;n++)if(kt(r[n],e[n]))return!1;return ta>0&&It&&It.push(t),!0}const xw="3.5.17",iI=wr,aI=MC,oI=Fa,sI=xb,lI={createComponentInstance:yw,setupComponent:bw,renderComponentRoot:pu,setCurrentRenderingInstance:Rs,isVNode:In,normalizeVNode:Xt,getComponentPublicInstance:ll,ensureValidVNode:Qv,pushWarningContext:CC,popWarningContext:DC},uI=lI,fI=null,cI=null,hI=null;/**
15
15
  * @vue/runtime-dom v3.5.17
16
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
17
  * @license MIT
18
- **/let Sd;const Ug=typeof window<"u"&&window.trustedTypes;if(Ug)try{Sd=Ug.createPolicy("vue",{createHTML:t=>t})}catch{}const Cw=Sd?t=>Sd.createHTML(t):t=>t,dI="http://www.w3.org/2000/svg",vI="http://www.w3.org/1998/Math/MathML",hn=typeof document<"u"?document:null,Gg=hn&&hn.createElement("template"),pI={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e==="svg"?hn.createElementNS(dI,t):e==="mathml"?hn.createElementNS(vI,t):r?hn.createElement(t,{is:r}):hn.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>hn.createTextNode(t),createComment:t=>hn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>hn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,a){const o=r?r.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{Gg.innerHTML=Cw(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const s=Gg.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Pn="transition",Mo="animation",so=Symbol("_vtc"),Dw={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Iw=Ve({},Yv,Dw),gI=t=>(t.displayName="Transition",t.props=Iw,t),mI=gI((t,{slots:e})=>to(Pb,Aw(t),e)),ci=(t,e=[])=>{Q(t)?t.forEach(r=>r(...e)):t&&t(...e)},Wg=t=>t?Q(t)?t.some(e=>e.length>1):t.length>1:!1;function Aw(t){const e={};for(const M in t)M in Dw||(e[M]=t[M]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=t,v=yI(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:_,onEnterCancelled:y,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=m,onAppear:T=_,onAppearCancelled:C=y}=e,x=(M,R,k,H)=>{M._enterCancelled=H,Vn(M,R?f:s),Vn(M,R?u:o),k&&k()},D=(M,R)=>{M._isLeaving=!1,Vn(M,c),Vn(M,d),Vn(M,h),R&&R()},A=M=>(R,k)=>{const H=M?T:_,N=()=>x(R,M,k);ci(H,[R,N]),Yg(()=>{Vn(R,M?l:a),Yr(R,M?f:s),Wg(H)||Xg(R,n,p,N)})};return Ve(e,{onBeforeEnter(M){ci(m,[M]),Yr(M,a),Yr(M,o)},onBeforeAppear(M){ci(S,[M]),Yr(M,l),Yr(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,R){M._isLeaving=!0;const k=()=>D(M,R);Yr(M,c),M._enterCancelled?(Yr(M,h),Td()):(Td(),Yr(M,h)),Yg(()=>{M._isLeaving&&(Vn(M,c),Yr(M,d),Wg(b)||Xg(M,n,g,k))}),ci(b,[M,k])},onEnterCancelled(M){x(M,!1,void 0,!0),ci(y,[M])},onAppearCancelled(M){x(M,!0,void 0,!0),ci(C,[M])},onLeaveCancelled(M){D(M),ci(w,[M])}})}function yI(t){if(t==null)return null;if(Ne(t))return[xc(t.enter),xc(t.leave)];{const e=xc(t);return[e,e]}}function xc(t){return Ou(t)}function Yr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[so]||(t[so]=new Set)).add(e)}function Vn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[so];r&&(r.delete(e),r.size||(t[so]=void 0))}function Yg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let _I=0;function Xg(t,e,r,n){const i=t._endId=++_I,a=()=>{i===t._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=Mw(t,e);if(!o)return n();const u=o+"end";let f=0;const c=()=>{t.removeEventListener(u,h),a()},h=d=>{d.target===t&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),t.addEventListener(u,h)}function Mw(t,e){const r=window.getComputedStyle(t),n=v=>(r[v]||"").split(", "),i=n(`${Pn}Delay`),a=n(`${Pn}Duration`),o=Kg(i,a),s=n(`${Mo}Delay`),l=n(`${Mo}Duration`),u=Kg(s,l);let f=null,c=0,h=0;e===Pn?o>0&&(f=Pn,c=o,h=a.length):e===Mo?u>0&&(f=Mo,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Pn:Mo:null,h=f?f===Pn?a.length:l.length:0);const d=f===Pn&&/\b(transform|all)(,|$)/.test(n(`${Pn}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:d}}function Kg(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,n)=>qg(r)+qg(t[n])))}function qg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Td(){return document.body.offsetHeight}function bI(t,e,r){const n=t[so];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Wu=Symbol("_vod"),Ew=Symbol("_vsh"),Lw={beforeMount(t,{value:e},{transition:r}){t[Wu]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Eo(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Eo(t,!0),n.enter(t)):n.leave(t,()=>{Eo(t,!1)}):Eo(t,e))},beforeUnmount(t,{value:e}){Eo(t,e)}};function Eo(t,e){t.style.display=e?t[Wu]:"none",t[Ew]=!e}function wI(){Lw.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const Pw=Symbol("");function SI(t){const e=gt();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>Yu(a,i))},n=()=>{const i=t(e.proxy);e.ce?Yu(e.ce,i):xd(e.subTree,i),r(i)};qv(()=>{Ls(n)}),nn(()=>{rt(n,wr,{flush:"post"});const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),fa(()=>i.disconnect())})}function xd(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{xd(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Yu(t.el,e);else if(t.type===qe)t.children.forEach(r=>xd(r,e));else if(t.type===Xi){let{el:r,anchor:n}=t;for(;r&&(Yu(r,e),r!==n);)r=r.nextSibling}}function Yu(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const i in e)r.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;r[Pw]=n}}const TI=/(^|;)\s*display\s*:/;function xI(t,e,r){const n=t.style,i=We(r);let a=!1;if(r&&!i){if(e)if(We(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&mu(n,s,"")}else for(const o in e)r[o]==null&&mu(n,o,"");for(const o in r)o==="display"&&(a=!0),mu(n,o,r[o])}else if(i){if(e!==r){const o=n[Pw];o&&(r+=";"+o),n.cssText=r,a=TI.test(r)}}else e&&t.removeAttribute("style");Wu in t&&(t[Wu]=a?n.display:"",t[Ew]&&(n.display="none"))}const jg=/\s*!important$/;function mu(t,e,r){if(Q(r))r.forEach(n=>mu(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=CI(t,e);jg.test(r)?t.setProperty(Zt(n),r.replace(jg,""),"important"):t[n]=r}}const Zg=["Webkit","Moz","ms"],Cc={};function CI(t,e){const r=Cc[e];if(r)return r;let n=dt(e);if(n!=="filter"&&n in t)return Cc[e]=n;n=nl(n);for(let i=0;i<Zg.length;i++){const a=Zg[i]+n;if(a in t)return Cc[e]=a}return e}const Qg="http://www.w3.org/1999/xlink";function Jg(t,e,r,n,i,a=$x(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(Qg,e.slice(6,e.length)):t.setAttributeNS(Qg,e,r):r==null||a&&!j0(r)?t.removeAttribute(e):t.setAttribute(e,a?"":kr(r)?String(r):r)}function em(t,e,r,n,i){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?Cw(r):r);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?t.getAttribute("value")||"":t.value,l=r==null?t.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in t))&&(t.value=l),r==null&&t.removeAttribute(e),t._value=r;return}let o=!1;if(r===""||r==null){const s=typeof t[e];s==="boolean"?r=j0(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{t[e]=r}catch{}o&&t.removeAttribute(i||e)}function gn(t,e,r,n){t.addEventListener(e,r,n)}function DI(t,e,r,n){t.removeEventListener(e,r,n)}const tm=Symbol("_vei");function II(t,e,r,n,i=null){const a=t[tm]||(t[tm]={}),o=a[e];if(n&&o)o.value=n;else{const[s,l]=AI(e);if(n){const u=a[e]=LI(n,i);gn(t,s,u,l)}else o&&(DI(t,s,o,l),a[e]=void 0)}}const rm=/(?:Once|Passive|Capture)$/;function AI(t){let e;if(rm.test(t)){e={};let n;for(;n=t.match(rm);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Zt(t.slice(2)),e]}let Dc=0;const MI=Promise.resolve(),EI=()=>Dc||(MI.then(()=>Dc=0),Dc=Date.now());function LI(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;xr(PI(n,r.value),e,5,[n])};return r.value=t,r.attached=EI(),r}function PI(t,e){if(Q(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const nm=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,RI=(t,e,r,n,i,a)=>{const o=i==="svg";e==="class"?bI(t,n,o):e==="style"?xI(t,r,n):rl(e)?Pv(e)||II(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OI(t,e,n,o))?(em(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Jg(t,e,n,o,a,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!We(n))?em(t,dt(e),n,a,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Jg(t,e,n,o))};function OI(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&nm(e)&&le(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return nm(e)&&We(r)?!1:e in t}const im={};/*! #__NO_SIDE_EFFECTS__ */function Rw(t,e,r){const n=fe(t,e);Tf(n)&&Ve(n,e);class i extends zf{constructor(o){super(n,o,r)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const kI=(t,e)=>Rw(t,e,Ww),NI=typeof HTMLElement<"u"?HTMLElement:class{};class zf extends NI{constructor(e,r={},n=qu){super(),this._def=e,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==qu?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof zf){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Cr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=n;let s;if(a&&!Q(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Ou(this._props[l])),(s||(s=Object.create(null)))[dt(l)]=!0)}this._numberProps=s,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,e(this._def=n,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Le(this,n)||Object.defineProperty(this,n,{get:()=>P(r[n])})}_resolveProps(e){const{props:r}=e,n=Q(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(dt))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const r=this.hasAttribute(e);let n=r?this.getAttribute(e):im;const i=dt(e);r&&this._numberProps&&this._numberProps[i]&&(n=Ou(n)),this._setProp(i,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,r,n=!0,i=!1){if(r!==this._props[e]&&(r===im?delete this._props[e]:(this._props[e]=r,e==="key"&&this._app&&(this._app._ceVNode.key=r)),i&&this._instance&&this._update(),n)){const a=this._ob;a&&a.disconnect(),r===!0?this.setAttribute(Zt(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Zt(e),r+""):r||this.removeAttribute(Zt(e)),a&&a.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Gw(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const r=ee(this._def,Ve(e,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(a,o)=>{this.dispatchEvent(new CustomEvent(a,Tf(o[0])?Ve({detail:o},o[0]):{detail:o}))};n.emit=(a,...o)=>{i(a,o),Zt(a)!==a&&i(Zt(a),o)},this._setParent()}),r}_applyStyles(e,r){if(!e)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let i=e.length-1;i>=0;i--){const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.textContent=e[i],this.shadowRoot.prepend(a)}}_parseSlots(){const e=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const i=e[n],a=i.getAttribute("name")||"default",o=this._slots[a],s=i.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const u=r+"-s",f=document.createTreeWalker(l,1);l.setAttribute(u,"");let c;for(;c=f.nextNode();)c.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function Ow(t){const e=gt(),r=e&&e.ce;return r||null}function BI(){const t=Ow();return t&&t.shadowRoot}function FI(t="$style"){{const e=gt();if(!e)return Te;const r=e.type.__cssModules;if(!r)return Te;const n=r[t];return n||Te}}const kw=new WeakMap,Nw=new WeakMap,Xu=Symbol("_moveCb"),am=Symbol("_enterCb"),VI=t=>(delete t.props.mode,t),HI=VI({name:"TransitionGroup",props:Ve({},Iw,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=gt(),n=Wv();let i,a;return Bf(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!WI(i[0].el,r.vnode.el,o)){i=[];return}i.forEach($I),i.forEach(UI);const s=i.filter(GI);Td(),s.forEach(l=>{const u=l.el,f=u.style;Yr(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const c=u[Xu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Xu]=null,Vn(u,o))};u.addEventListener("transitionend",c)}),i=[]}),()=>{const o=Ce(t),s=Aw(o);let l=o.tag||qe;if(i=[],a)for(let u=0;u<a.length;u++){const f=a[u];f.el&&f.el instanceof Element&&(i.push(f),Dn(f,ao(f,s,n,r)),kw.set(f,f.el.getBoundingClientRect()))}a=e.default?kf(e.default()):[];for(let u=0;u<a.length;u++){const f=a[u];f.key!=null&&Dn(f,ao(f,s,n,r))}return ee(l,null,a)}}}),zI=HI;function $I(t){const e=t.el;e[Xu]&&e[Xu](),e[am]&&e[am]()}function UI(t){Nw.set(t,t.el.getBoundingClientRect())}function GI(t){const e=kw.get(t),r=Nw.get(t),n=e.left-r.left,i=e.top-r.top;if(n||i){const a=t.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",t}}function WI(t,e,r){const n=t.cloneNode(),i=t[so];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(n);const{hasTransform:o}=Mw(n);return a.removeChild(n),o}const oi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Q(e)?r=>Za(e,r):e};function YI(t){t.target.composing=!0}function om(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Sr=Symbol("_assign"),Ku={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t[Sr]=oi(i);const a=n||i.props&&i.props.type==="number";gn(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;r&&(s=s.trim()),a&&(s=Ru(s)),t[Sr](s)}),r&&gn(t,"change",()=>{t.value=t.value.trim()}),e||(gn(t,"compositionstart",YI),gn(t,"compositionend",om),gn(t,"change",om))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(t[Sr]=oi(o),t.composing)return;const s=(a||t.type==="number")&&!/^0\d/.test(t.value)?Ru(t.value):t.value,l=e??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||i&&t.value.trim()===l)||(t.value=l))}},ap={deep:!0,created(t,e,r){t[Sr]=oi(r),gn(t,"change",()=>{const n=t._modelValue,i=lo(t),a=t.checked,o=t[Sr];if(Q(n)){const s=Df(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(la(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(Bw(t,a))})},mounted:sm,beforeUpdate(t,e,r){t[Sr]=oi(r),sm(t,e,r)}};function sm(t,{value:e,oldValue:r},n){t._modelValue=e;let i;if(Q(e))i=Df(e,n.props.value)>-1;else if(la(e))i=e.has(n.props.value);else{if(e===r)return;i=ai(e,Bw(t,!0))}t.checked!==i&&(t.checked=i)}const op={created(t,{value:e},r){t.checked=ai(e,r.props.value),t[Sr]=oi(r),gn(t,"change",()=>{t[Sr](lo(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[Sr]=oi(n),e!==r&&(t.checked=ai(e,n.props.value))}},ul={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=la(e);gn(t,"change",()=>{const a=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?Ru(lo(o)):lo(o));t[Sr](t.multiple?i?new Set(a):a:a[0]),t._assigning=!0,Cr(()=>{t._assigning=!1})}),t[Sr]=oi(n)},mounted(t,{value:e}){lm(t,e)},beforeUpdate(t,e,r){t[Sr]=oi(r)},updated(t,{value:e}){t._assigning||lm(t,e)}};function lm(t,e){const r=t.multiple,n=Q(e);if(!(r&&!n&&!la(e))){for(let i=0,a=t.options.length;i<a;i++){const o=t.options[i],s=lo(o);if(r)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=e.some(u=>String(u)===String(s)):o.selected=Df(e,s)>-1}else o.selected=e.has(s);else if(ai(lo(o),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function lo(t){return"_value"in t?t._value:t.value}function Bw(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const Fw={created(t,e,r){Al(t,e,r,null,"created")},mounted(t,e,r){Al(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Al(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Al(t,e,r,n,"updated")}};function Vw(t,e){switch(t){case"SELECT":return ul;case"TEXTAREA":return Ku;default:switch(e){case"checkbox":return ap;case"radio":return op;default:return Ku}}}function Al(t,e,r,n,i){const o=Vw(t.tagName,r.props&&r.props.type)[i];o&&o(t,e,r,n)}function XI(){Ku.getSSRProps=({value:t})=>({value:t}),op.getSSRProps=({value:t},e)=>{if(e.props&&ai(e.props.value,t))return{checked:!0}},ap.getSSRProps=({value:t},e)=>{if(Q(t)){if(e.props&&Df(t,e.props.value)>-1)return{checked:!0}}else if(la(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Fw.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=Vw(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const KI=["ctrl","shift","alt","meta"],qI={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>KI.some(r=>t[`${r}Key`]&&!e.includes(r))},Hw=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<e.length;o++){const s=qI[e[o]];if(s&&s(i,e))return}return t(i,...a)})},jI={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},sp=(t,e)=>{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=Zt(i.key);if(e.some(o=>o===a||jI[o]===a))return t(i)})},zw=Ve({patchProp:RI},pI);let ps,um=!1;function $w(){return ps||(ps=tw(zw))}function Uw(){return ps=um?ps:rw(zw),um=!0,ps}const Gw=(...t)=>{$w().render(...t)},ZI=(...t)=>{Uw().hydrate(...t)},qu=(...t)=>{const e=$w().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=Xw(n);if(!i)return;const a=e._component;!le(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,Yw(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},Ww=(...t)=>{const e=Uw().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=Xw(n);if(i)return r(i,!0,Yw(i))},e};function Yw(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Xw(t){return We(t)?document.querySelector(t):t}let fm=!1;const QI=()=>{fm||(fm=!0,XI(),wI())};/**
18
+ **/let Sd;const Ug=typeof window<"u"&&window.trustedTypes;if(Ug)try{Sd=Ug.createPolicy("vue",{createHTML:t=>t})}catch{}const Cw=Sd?t=>Sd.createHTML(t):t=>t,dI="http://www.w3.org/2000/svg",vI="http://www.w3.org/1998/Math/MathML",dn=typeof document<"u"?document:null,Gg=dn&&dn.createElement("template"),pI={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e==="svg"?dn.createElementNS(dI,t):e==="mathml"?dn.createElementNS(vI,t):r?dn.createElement(t,{is:r}):dn.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>dn.createTextNode(t),createComment:t=>dn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>dn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,a){const o=r?r.previousSibling:e.lastChild;if(i&&(i===a||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{Gg.innerHTML=Cw(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const s=Gg.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}},Pn="transition",Mo="animation",so=Symbol("_vtc"),Dw={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Iw=Ve({},Yv,Dw),gI=t=>(t.displayName="Transition",t.props=Iw,t),mI=gI((t,{slots:e})=>to(Pb,Aw(t),e)),ci=(t,e=[])=>{Q(t)?t.forEach(r=>r(...e)):t&&t(...e)},Wg=t=>t?Q(t)?t.some(e=>e.length>1):t.length>1:!1;function Aw(t){const e={};for(const M in t)M in Dw||(e[M]=t[M]);if(t.css===!1)return e;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:f=s,leaveFromClass:c=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:d=`${r}-leave-to`}=t,v=yI(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:_,onEnterCancelled:y,onLeave:b,onLeaveCancelled:w,onBeforeAppear:S=m,onAppear:T=_,onAppearCancelled:C=y}=e,x=(M,R,k,H)=>{M._enterCancelled=H,Vn(M,R?f:s),Vn(M,R?u:o),k&&k()},D=(M,R)=>{M._isLeaving=!1,Vn(M,c),Vn(M,d),Vn(M,h),R&&R()},A=M=>(R,k)=>{const H=M?T:_,N=()=>x(R,M,k);ci(H,[R,N]),Yg(()=>{Vn(R,M?l:a),Yr(R,M?f:s),Wg(H)||Xg(R,n,p,N)})};return Ve(e,{onBeforeEnter(M){ci(m,[M]),Yr(M,a),Yr(M,o)},onBeforeAppear(M){ci(S,[M]),Yr(M,l),Yr(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,R){M._isLeaving=!0;const k=()=>D(M,R);Yr(M,c),M._enterCancelled?(Yr(M,h),Td()):(Td(),Yr(M,h)),Yg(()=>{M._isLeaving&&(Vn(M,c),Yr(M,d),Wg(b)||Xg(M,n,g,k))}),ci(b,[M,k])},onEnterCancelled(M){x(M,!1,void 0,!0),ci(y,[M])},onAppearCancelled(M){x(M,!0,void 0,!0),ci(C,[M])},onLeaveCancelled(M){D(M),ci(w,[M])}})}function yI(t){if(t==null)return null;if(Ne(t))return[xc(t.enter),xc(t.leave)];{const e=xc(t);return[e,e]}}function xc(t){return Ou(t)}function Yr(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t[so]||(t[so]=new Set)).add(e)}function Vn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const r=t[so];r&&(r.delete(e),r.size||(t[so]=void 0))}function Yg(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let _I=0;function Xg(t,e,r,n){const i=t._endId=++_I,a=()=>{i===t._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=Mw(t,e);if(!o)return n();const u=o+"end";let f=0;const c=()=>{t.removeEventListener(u,h),a()},h=d=>{d.target===t&&++f>=l&&c()};setTimeout(()=>{f<l&&c()},s+1),t.addEventListener(u,h)}function Mw(t,e){const r=window.getComputedStyle(t),n=v=>(r[v]||"").split(", "),i=n(`${Pn}Delay`),a=n(`${Pn}Duration`),o=Kg(i,a),s=n(`${Mo}Delay`),l=n(`${Mo}Duration`),u=Kg(s,l);let f=null,c=0,h=0;e===Pn?o>0&&(f=Pn,c=o,h=a.length):e===Mo?u>0&&(f=Mo,c=u,h=l.length):(c=Math.max(o,u),f=c>0?o>u?Pn:Mo:null,h=f?f===Pn?a.length:l.length:0);const d=f===Pn&&/\b(transform|all)(,|$)/.test(n(`${Pn}Property`).toString());return{type:f,timeout:c,propCount:h,hasTransform:d}}function Kg(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((r,n)=>qg(r)+qg(t[n])))}function qg(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Td(){return document.body.offsetHeight}function bI(t,e,r){const n=t[so];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}const Wu=Symbol("_vod"),Ew=Symbol("_vsh"),Lw={beforeMount(t,{value:e},{transition:r}){t[Wu]=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):Eo(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),Eo(t,!0),n.enter(t)):n.leave(t,()=>{Eo(t,!1)}):Eo(t,e))},beforeUnmount(t,{value:e}){Eo(t,e)}};function Eo(t,e){t.style.display=e?t[Wu]:"none",t[Ew]=!e}function wI(){Lw.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const Pw=Symbol("");function SI(t){const e=gt();if(!e)return;const r=e.ut=(i=t(e.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${e.uid}"]`)).forEach(a=>Yu(a,i))},n=()=>{const i=t(e.proxy);e.ce?Yu(e.ce,i):xd(e.subTree,i),r(i)};qv(()=>{Ls(n)}),an(()=>{rt(n,wr,{flush:"post"});const i=new MutationObserver(n);i.observe(e.subTree.el.parentNode,{childList:!0}),fa(()=>i.disconnect())})}function xd(t,e){if(t.shapeFlag&128){const r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{xd(r.activeBranch,e)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)Yu(t.el,e);else if(t.type===qe)t.children.forEach(r=>xd(r,e));else if(t.type===Xi){let{el:r,anchor:n}=t;for(;r&&(Yu(r,e),r!==n);)r=r.nextSibling}}function Yu(t,e){if(t.nodeType===1){const r=t.style;let n="";for(const i in e)r.setProperty(`--${i}`,e[i]),n+=`--${i}: ${e[i]};`;r[Pw]=n}}const TI=/(^|;)\s*display\s*:/;function xI(t,e,r){const n=t.style,i=We(r);let a=!1;if(r&&!i){if(e)if(We(e))for(const o of e.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&mu(n,s,"")}else for(const o in e)r[o]==null&&mu(n,o,"");for(const o in r)o==="display"&&(a=!0),mu(n,o,r[o])}else if(i){if(e!==r){const o=n[Pw];o&&(r+=";"+o),n.cssText=r,a=TI.test(r)}}else e&&t.removeAttribute("style");Wu in t&&(t[Wu]=a?n.display:"",t[Ew]&&(n.display="none"))}const jg=/\s*!important$/;function mu(t,e,r){if(Q(r))r.forEach(n=>mu(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=CI(t,e);jg.test(r)?t.setProperty(Zt(n),r.replace(jg,""),"important"):t[n]=r}}const Zg=["Webkit","Moz","ms"],Cc={};function CI(t,e){const r=Cc[e];if(r)return r;let n=dt(e);if(n!=="filter"&&n in t)return Cc[e]=n;n=nl(n);for(let i=0;i<Zg.length;i++){const a=Zg[i]+n;if(a in t)return Cc[e]=a}return e}const Qg="http://www.w3.org/1999/xlink";function Jg(t,e,r,n,i,a=$x(e)){n&&e.startsWith("xlink:")?r==null?t.removeAttributeNS(Qg,e.slice(6,e.length)):t.setAttributeNS(Qg,e,r):r==null||a&&!j0(r)?t.removeAttribute(e):t.setAttribute(e,a?"":kr(r)?String(r):r)}function em(t,e,r,n,i){if(e==="innerHTML"||e==="textContent"){r!=null&&(t[e]=e==="innerHTML"?Cw(r):r);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const s=a==="OPTION"?t.getAttribute("value")||"":t.value,l=r==null?t.type==="checkbox"?"on":"":String(r);(s!==l||!("_value"in t))&&(t.value=l),r==null&&t.removeAttribute(e),t._value=r;return}let o=!1;if(r===""||r==null){const s=typeof t[e];s==="boolean"?r=j0(r):r==null&&s==="string"?(r="",o=!0):s==="number"&&(r=0,o=!0)}try{t[e]=r}catch{}o&&t.removeAttribute(i||e)}function mn(t,e,r,n){t.addEventListener(e,r,n)}function DI(t,e,r,n){t.removeEventListener(e,r,n)}const tm=Symbol("_vei");function II(t,e,r,n,i=null){const a=t[tm]||(t[tm]={}),o=a[e];if(n&&o)o.value=n;else{const[s,l]=AI(e);if(n){const u=a[e]=LI(n,i);mn(t,s,u,l)}else o&&(DI(t,s,o,l),a[e]=void 0)}}const rm=/(?:Once|Passive|Capture)$/;function AI(t){let e;if(rm.test(t)){e={};let n;for(;n=t.match(rm);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Zt(t.slice(2)),e]}let Dc=0;const MI=Promise.resolve(),EI=()=>Dc||(MI.then(()=>Dc=0),Dc=Date.now());function LI(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;xr(PI(n,r.value),e,5,[n])};return r.value=t,r.attached=EI(),r}function PI(t,e){if(Q(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const nm=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,RI=(t,e,r,n,i,a)=>{const o=i==="svg";e==="class"?bI(t,n,o):e==="style"?xI(t,r,n):rl(e)?Pv(e)||II(t,e,r,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):OI(t,e,n,o))?(em(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Jg(t,e,n,o,a,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!We(n))?em(t,dt(e),n,a,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Jg(t,e,n,o))};function OI(t,e,r,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&nm(e)&&le(r));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return nm(e)&&We(r)?!1:e in t}const im={};/*! #__NO_SIDE_EFFECTS__ */function Rw(t,e,r){const n=fe(t,e);Tf(n)&&Ve(n,e);class i extends zf{constructor(o){super(n,o,r)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const kI=(t,e)=>Rw(t,e,Ww),NI=typeof HTMLElement<"u"?HTMLElement:class{};class zf extends NI{constructor(e,r={},n=qu){super(),this._def=e,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==qu?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof zf){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Cr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=n;let s;if(a&&!Q(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=Ou(this._props[l])),(s||(s=Object.create(null)))[dt(l)]=!0)}this._numberProps=s,this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>{n.configureApp=this._def.configureApp,e(this._def=n,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)Le(this,n)||Object.defineProperty(this,n,{get:()=>P(r[n])})}_resolveProps(e){const{props:r}=e,n=Q(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(dt))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const r=this.hasAttribute(e);let n=r?this.getAttribute(e):im;const i=dt(e);r&&this._numberProps&&this._numberProps[i]&&(n=Ou(n)),this._setProp(i,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,r,n=!0,i=!1){if(r!==this._props[e]&&(r===im?delete this._props[e]:(this._props[e]=r,e==="key"&&this._app&&(this._app._ceVNode.key=r)),i&&this._instance&&this._update(),n)){const a=this._ob;a&&a.disconnect(),r===!0?this.setAttribute(Zt(e),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Zt(e),r+""):r||this.removeAttribute(Zt(e)),a&&a.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),Gw(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const r=ee(this._def,Ve(e,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(a,o)=>{this.dispatchEvent(new CustomEvent(a,Tf(o[0])?Ve({detail:o},o[0]):{detail:o}))};n.emit=(a,...o)=>{i(a,o),Zt(a)!==a&&i(Zt(a),o)},this._setParent()}),r}_applyStyles(e,r){if(!e)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let i=e.length-1;i>=0;i--){const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.textContent=e[i],this.shadowRoot.prepend(a)}}_parseSlots(){const e=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const i=e[n],a=i.getAttribute("name")||"default",o=this._slots[a],s=i.parentNode;if(o)for(const l of o){if(r&&l.nodeType===1){const u=r+"-s",f=document.createTreeWalker(l,1);l.setAttribute(u,"");let c;for(;c=f.nextNode();)c.setAttribute(u,"")}s.insertBefore(l,i)}else for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function Ow(t){const e=gt(),r=e&&e.ce;return r||null}function BI(){const t=Ow();return t&&t.shadowRoot}function FI(t="$style"){{const e=gt();if(!e)return Te;const r=e.type.__cssModules;if(!r)return Te;const n=r[t];return n||Te}}const kw=new WeakMap,Nw=new WeakMap,Xu=Symbol("_moveCb"),am=Symbol("_enterCb"),VI=t=>(delete t.props.mode,t),HI=VI({name:"TransitionGroup",props:Ve({},Iw,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=gt(),n=Wv();let i,a;return Bf(()=>{if(!i.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!WI(i[0].el,r.vnode.el,o)){i=[];return}i.forEach($I),i.forEach(UI);const s=i.filter(GI);Td(),s.forEach(l=>{const u=l.el,f=u.style;Yr(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const c=u[Xu]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",c),u[Xu]=null,Vn(u,o))};u.addEventListener("transitionend",c)}),i=[]}),()=>{const o=Ce(t),s=Aw(o);let l=o.tag||qe;if(i=[],a)for(let u=0;u<a.length;u++){const f=a[u];f.el&&f.el instanceof Element&&(i.push(f),Dn(f,ao(f,s,n,r)),kw.set(f,f.el.getBoundingClientRect()))}a=e.default?kf(e.default()):[];for(let u=0;u<a.length;u++){const f=a[u];f.key!=null&&Dn(f,ao(f,s,n,r))}return ee(l,null,a)}}}),zI=HI;function $I(t){const e=t.el;e[Xu]&&e[Xu](),e[am]&&e[am]()}function UI(t){Nw.set(t,t.el.getBoundingClientRect())}function GI(t){const e=kw.get(t),r=Nw.get(t),n=e.left-r.left,i=e.top-r.top;if(n||i){const a=t.el.style;return a.transform=a.webkitTransform=`translate(${n}px,${i}px)`,a.transitionDuration="0s",t}}function WI(t,e,r){const n=t.cloneNode(),i=t[so];i&&i.forEach(s=>{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(n);const{hasTransform:o}=Mw(n);return a.removeChild(n),o}const oi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Q(e)?r=>Za(e,r):e};function YI(t){t.target.composing=!0}function om(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Sr=Symbol("_assign"),Ku={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t[Sr]=oi(i);const a=n||i.props&&i.props.type==="number";mn(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;r&&(s=s.trim()),a&&(s=Ru(s)),t[Sr](s)}),r&&mn(t,"change",()=>{t.value=t.value.trim()}),e||(mn(t,"compositionstart",YI),mn(t,"compositionend",om),mn(t,"change",om))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(t[Sr]=oi(o),t.composing)return;const s=(a||t.type==="number")&&!/^0\d/.test(t.value)?Ru(t.value):t.value,l=e??"";s!==l&&(document.activeElement===t&&t.type!=="range"&&(n&&e===r||i&&t.value.trim()===l)||(t.value=l))}},ap={deep:!0,created(t,e,r){t[Sr]=oi(r),mn(t,"change",()=>{const n=t._modelValue,i=lo(t),a=t.checked,o=t[Sr];if(Q(n)){const s=Df(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(la(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(Bw(t,a))})},mounted:sm,beforeUpdate(t,e,r){t[Sr]=oi(r),sm(t,e,r)}};function sm(t,{value:e,oldValue:r},n){t._modelValue=e;let i;if(Q(e))i=Df(e,n.props.value)>-1;else if(la(e))i=e.has(n.props.value);else{if(e===r)return;i=ai(e,Bw(t,!0))}t.checked!==i&&(t.checked=i)}const op={created(t,{value:e},r){t.checked=ai(e,r.props.value),t[Sr]=oi(r),mn(t,"change",()=>{t[Sr](lo(t))})},beforeUpdate(t,{value:e,oldValue:r},n){t[Sr]=oi(n),e!==r&&(t.checked=ai(e,n.props.value))}},ul={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=la(e);mn(t,"change",()=>{const a=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?Ru(lo(o)):lo(o));t[Sr](t.multiple?i?new Set(a):a:a[0]),t._assigning=!0,Cr(()=>{t._assigning=!1})}),t[Sr]=oi(n)},mounted(t,{value:e}){lm(t,e)},beforeUpdate(t,e,r){t[Sr]=oi(r)},updated(t,{value:e}){t._assigning||lm(t,e)}};function lm(t,e){const r=t.multiple,n=Q(e);if(!(r&&!n&&!la(e))){for(let i=0,a=t.options.length;i<a;i++){const o=t.options[i],s=lo(o);if(r)if(n){const l=typeof s;l==="string"||l==="number"?o.selected=e.some(u=>String(u)===String(s)):o.selected=Df(e,s)>-1}else o.selected=e.has(s);else if(ai(lo(o),e)){t.selectedIndex!==i&&(t.selectedIndex=i);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function lo(t){return"_value"in t?t._value:t.value}function Bw(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const Fw={created(t,e,r){Al(t,e,r,null,"created")},mounted(t,e,r){Al(t,e,r,null,"mounted")},beforeUpdate(t,e,r,n){Al(t,e,r,n,"beforeUpdate")},updated(t,e,r,n){Al(t,e,r,n,"updated")}};function Vw(t,e){switch(t){case"SELECT":return ul;case"TEXTAREA":return Ku;default:switch(e){case"checkbox":return ap;case"radio":return op;default:return Ku}}}function Al(t,e,r,n,i){const o=Vw(t.tagName,r.props&&r.props.type)[i];o&&o(t,e,r,n)}function XI(){Ku.getSSRProps=({value:t})=>({value:t}),op.getSSRProps=({value:t},e)=>{if(e.props&&ai(e.props.value,t))return{checked:!0}},ap.getSSRProps=({value:t},e)=>{if(Q(t)){if(e.props&&Df(t,e.props.value)>-1)return{checked:!0}}else if(la(t)){if(e.props&&t.has(e.props.value))return{checked:!0}}else if(t)return{checked:!0}},Fw.getSSRProps=(t,e)=>{if(typeof e.type!="string")return;const r=Vw(e.type.toUpperCase(),e.props&&e.props.type);if(r.getSSRProps)return r.getSSRProps(t,e)}}const KI=["ctrl","shift","alt","meta"],qI={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>KI.some(r=>t[`${r}Key`]&&!e.includes(r))},Hw=(t,e)=>{const r=t._withMods||(t._withMods={}),n=e.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o<e.length;o++){const s=qI[e[o]];if(s&&s(i,e))return}return t(i,...a)})},jI={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},sp=(t,e)=>{const r=t._withKeys||(t._withKeys={}),n=e.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=Zt(i.key);if(e.some(o=>o===a||jI[o]===a))return t(i)})},zw=Ve({patchProp:RI},pI);let ps,um=!1;function $w(){return ps||(ps=tw(zw))}function Uw(){return ps=um?ps:rw(zw),um=!0,ps}const Gw=(...t)=>{$w().render(...t)},ZI=(...t)=>{Uw().hydrate(...t)},qu=(...t)=>{const e=$w().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=Xw(n);if(!i)return;const a=e._component;!le(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,Yw(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e},Ww=(...t)=>{const e=Uw().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=Xw(n);if(i)return r(i,!0,Yw(i))},e};function Yw(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Xw(t){return We(t)?document.querySelector(t):t}let fm=!1;const QI=()=>{fm||(fm=!0,XI(),wI())};/**
19
19
  * vue v3.5.17
20
20
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
21
  * @license MIT
22
- **/const JI=()=>{},eA=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Pb,BaseTransitionPropsValidators:Yv,Comment:tt,DeprecationTypes:hI,EffectScope:Nv,ErrorCodes:AC,ErrorTypeStrings:aI,Fragment:qe,KeepAlive:ZC,ReactiveEffect:As,Static:Xi,Suspense:zD,Teleport:Ab,Text:Qn,TrackOpTypes:wC,Transition:mI,TransitionGroup:zI,TriggerOpTypes:SC,VueElement:zf,assertNumber:IC,callWithAsyncErrorHandling:xr,callWithErrorHandling:yo,camelize:dt,capitalize:nl,cloneVNode:Nr,compatUtils:cI,compile:JI,computed:ge,createApp:qu,createBlock:de,createCommentVNode:Qr,createElementBlock:je,createElementVNode:pe,createHydrationRenderer:rw,createPropsRestProxy:gD,createRenderer:tw,createSSRApp:Ww,createSlots:nD,createStaticVNode:mw,createTextVNode:br,createVNode:ee,customRef:mb,defineAsyncComponent:qC,defineComponent:fe,defineCustomElement:Rw,defineEmits:sD,defineExpose:lD,defineModel:cD,defineOptions:uD,defineProps:oD,defineSSRCustomElement:kI,defineSlots:fD,devtools:oI,effect:Wx,effectScope:Bv,getCurrentInstance:gt,getCurrentScope:If,getCurrentWatcher:TC,getTransitionRawChildren:kf,guardReactiveProps:np,h:to,handleError:ua,hasInjectionContext:CD,hydrate:ZI,hydrateOnIdle:UC,hydrateOnInteraction:XC,hydrateOnMediaQuery:YC,hydrateOnVisible:WC,initCustomFormatter:rI,initDirectivesForSSR:QI,inject:Yi,isMemoSame:Tw,isProxy:Pf,isReactive:jn,isReadonly:Cn,isRef:Ue,isRuntimeOnly:JD,isShallow:ur,isVNode:In,markRaw:pb,mergeDefaults:pD,mergeModels:an,mergeProps:pt,nextTick:Cr,normalizeClass:Sn,normalizeProps:q0,normalizeStyle:po,onActivated:kb,onBeforeMount:Fb,onBeforeUnmount:ol,onBeforeUpdate:qv,onDeactivated:Nb,onErrorCaptured:$b,onMounted:nn,onRenderTracked:zb,onRenderTriggered:Hb,onScopeDispose:Fv,onServerPrefetch:Vb,onUnmounted:fa,onUpdated:Bf,onWatcherCleanup:_b,openBlock:j,popScopeId:RC,provide:Ff,proxyRefs:Uv,pushScopeId:PC,queuePostFlushCb:Ls,reactive:go,readonly:$v,ref:we,registerRuntimeCompiler:QD,render:Gw,renderList:_o,renderSlot:Ee,resolveComponent:eD,resolveDirective:rD,resolveDynamicComponent:tD,resolveFilter:fI,resolveTransitionHooks:ao,setBlockTracking:gd,setDevtoolsHook:sI,setTransitionHooks:Dn,shallowReactive:vb,shallowReadonly:cC,shallowRef:il,ssrContextKey:ow,ssrUtils:uI,stop:Yx,toDisplayString:Ct,toHandlerKey:ja,toHandlers:iD,toRaw:Ce,toRef:yC,toRefs:mo,toValue:At,transformVNodeArgs:XD,triggerRef:dC,unref:P,useAttrs:vD,useCssModule:FI,useCssVars:SI,useHost:Ow,useId:Ob,useModel:Dr,useSSRContext:sw,useShadowRoot:BI,useSlots:dD,useTemplateRef:Kv,useTransitionState:Wv,vModelCheckbox:ap,vModelDynamic:Fw,vModelRadio:op,vModelSelect:ul,vModelText:Ku,vShow:Lw,version:xw,warn:iI,watch:rt,watchEffect:ea,watchPostEffect:RD,watchSyncEffect:lw,withAsyncContext:mD,withCtx:ie,withDefaults:hD,withDirectives:Of,withKeys:sp,withMemo:nI,withModifiers:Hw,withScopeId:OC},Symbol.toStringTag,{value:"Module"})),tA={class:"flex border border-solid border-blue-700 rounded-lg"},rA="bg-blue-700 rounded-l-md c-white",nA="bg-blue-700 rounded-r-md c-white",iA=fe({__name:"ViewToggle",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue");return(r,n)=>(j(),je("div",tA,[pe("div",{class:Sn(["flex w-1/2 items-center justify-center py-1 cursor-pointer",{[rA]:e.value==="treemap"}]),onClick:n[0]||(n[0]=i=>e.value="treemap")},n[2]||(n[2]=[pe("div",{class:"i-mdi-chart-tree"},null,-1)]),2),pe("div",{class:Sn(["flex w-1/2 items-center justify-center py-1 cursor-pointer",{[nA]:e.value==="graph"}]),onClick:n[1]||(n[1]=i=>e.value="graph")},n[3]||(n[3]=[pe("div",{class:"i-mdi-graph"},null,-1)]),2)]))}});function aA(t,e,r,n){let i=0;do{i=0;const a=[];for(let s=0;s<t.length;s+=1){const l=[];for(let u=0;u<e.length;u+=1)e[u][0]===s&&l.push(e[u][1]);l.length===0&&!mn(t[s],r,n)&&a.push(s)}i=a.length;const o=Kw(t,e,a);t=o.nodes,e=o.edges}while(i);return{nodes:t,edges:e}}function Kw(t,e,r,n=!0){let i=n?[...t]:t,a=n?e.map(([o,s])=>[o,s]):e;for(const o of[...r].sort((s,l)=>l-s))a=a.filter(([s,l])=>s!==o&&l!==o),i=i.filter((s,l)=>l!==o),a.forEach(s=>{s[0]>o&&(s[0]-=1),s[1]>o&&(s[1]-=1)});return{nodes:i,edges:a}}const lr={Rendered:"rendered",Minified:"minified",Compressed:"compressed"};function oA(t){return t[0].toUpperCase()+t.slice(1)+" size"}function lp(t){const e=[];return t.chunks.every(r=>r.minifiedLength!==-1)&&e.push(lr.Minified),e.push(lr.Rendered),t.chunks.every(r=>r.compressedLength!==-1)&&e.push(lr.Compressed),e}function sA(t,e,r){const n=e.chunks.find(i=>i.fileName===t);if(n)switch(r){case lr.Rendered:return n.modules.reduce((i,a)=>i+a.renderedLength,0);case lr.Minified:return n.minifiedLength;case lr.Compressed:return n.compressedLength}}function up(t){return t<1024?`${Math.ceil(t)} B`:t<1024*1024?`${(t/1024).toFixed(2)} KB`:`${(t/1024/1024).toFixed(2)} MB`}function mn(t,e,r){const n=typeof t=="string"?e.moduleFileNames.indexOf(t):t;if(n!==-1){for(const i of e.chunks)for(const a of i.modules)if(a.fileNameIndex===n){if(r===lr.Rendered)return a.renderedLength;const o=sA(i.fileName,e,lr.Rendered),s=a.renderedLength/o;if(r===lr.Minified)return i.minifiedLength*s;if(r===lr.Compressed)return i.compressedLength*s}}}function lA(t){return t.startsWith("node_modules")}function Cd(t){if(!lA(t))return"";if(t.startsWith("node_modules/.pnpm")){const n=t.split("/");return n[4].startsWith("@")?`${n[4]}/${n[5]}`:n[4]}const e=t.split("/"),r=e.lastIndexOf("node_modules");return e[r+1].startsWith("@")?`${e[r+1]}/${e[r+2]}`:e[r+1]}/*! *****************************************************************************
22
+ **/const JI=()=>{},eA=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Pb,BaseTransitionPropsValidators:Yv,Comment:tt,DeprecationTypes:hI,EffectScope:Nv,ErrorCodes:AC,ErrorTypeStrings:aI,Fragment:qe,KeepAlive:ZC,ReactiveEffect:As,Static:Xi,Suspense:zD,Teleport:Ab,Text:Qn,TrackOpTypes:wC,Transition:mI,TransitionGroup:zI,TriggerOpTypes:SC,VueElement:zf,assertNumber:IC,callWithAsyncErrorHandling:xr,callWithErrorHandling:yo,camelize:dt,capitalize:nl,cloneVNode:Nr,compatUtils:cI,compile:JI,computed:ge,createApp:qu,createBlock:de,createCommentVNode:Qr,createElementBlock:je,createElementVNode:pe,createHydrationRenderer:rw,createPropsRestProxy:gD,createRenderer:tw,createSSRApp:Ww,createSlots:nD,createStaticVNode:mw,createTextVNode:br,createVNode:ee,customRef:mb,defineAsyncComponent:qC,defineComponent:fe,defineCustomElement:Rw,defineEmits:sD,defineExpose:lD,defineModel:cD,defineOptions:uD,defineProps:oD,defineSSRCustomElement:kI,defineSlots:fD,devtools:oI,effect:Wx,effectScope:Bv,getCurrentInstance:gt,getCurrentScope:If,getCurrentWatcher:TC,getTransitionRawChildren:kf,guardReactiveProps:np,h:to,handleError:ua,hasInjectionContext:CD,hydrate:ZI,hydrateOnIdle:UC,hydrateOnInteraction:XC,hydrateOnMediaQuery:YC,hydrateOnVisible:WC,initCustomFormatter:rI,initDirectivesForSSR:QI,inject:Yi,isMemoSame:Tw,isProxy:Pf,isReactive:jn,isReadonly:Cn,isRef:Ue,isRuntimeOnly:JD,isShallow:ur,isVNode:In,markRaw:pb,mergeDefaults:pD,mergeModels:on,mergeProps:pt,nextTick:Cr,normalizeClass:en,normalizeProps:q0,normalizeStyle:po,onActivated:kb,onBeforeMount:Fb,onBeforeUnmount:ol,onBeforeUpdate:qv,onDeactivated:Nb,onErrorCaptured:$b,onMounted:an,onRenderTracked:zb,onRenderTriggered:Hb,onScopeDispose:Fv,onServerPrefetch:Vb,onUnmounted:fa,onUpdated:Bf,onWatcherCleanup:_b,openBlock:j,popScopeId:RC,provide:Ff,proxyRefs:Uv,pushScopeId:PC,queuePostFlushCb:Ls,reactive:go,readonly:$v,ref:we,registerRuntimeCompiler:QD,render:Gw,renderList:_o,renderSlot:Ee,resolveComponent:eD,resolveDirective:rD,resolveDynamicComponent:tD,resolveFilter:fI,resolveTransitionHooks:ao,setBlockTracking:gd,setDevtoolsHook:sI,setTransitionHooks:Dn,shallowReactive:vb,shallowReadonly:cC,shallowRef:il,ssrContextKey:ow,ssrUtils:uI,stop:Yx,toDisplayString:Ct,toHandlerKey:ja,toHandlers:iD,toRaw:Ce,toRef:yC,toRefs:mo,toValue:At,transformVNodeArgs:XD,triggerRef:dC,unref:P,useAttrs:vD,useCssModule:FI,useCssVars:SI,useHost:Ow,useId:Ob,useModel:Dr,useSSRContext:sw,useShadowRoot:BI,useSlots:dD,useTemplateRef:Kv,useTransitionState:Wv,vModelCheckbox:ap,vModelDynamic:Fw,vModelRadio:op,vModelSelect:ul,vModelText:Ku,vShow:Lw,version:xw,warn:iI,watch:rt,watchEffect:ea,watchPostEffect:RD,watchSyncEffect:lw,withAsyncContext:mD,withCtx:ie,withDefaults:hD,withDirectives:Of,withKeys:sp,withMemo:nI,withModifiers:Hw,withScopeId:OC},Symbol.toStringTag,{value:"Module"})),tA={class:"flex border border-solid border-blue-700 rounded-lg"},rA="bg-blue-700 rounded-l-md c-white",nA="bg-blue-700 rounded-r-md c-white",iA=fe({__name:"ViewToggle",props:{modelValue:{required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue");return(r,n)=>(j(),je("div",tA,[pe("div",{class:en(["flex w-1/2 items-center justify-center py-1 cursor-pointer",{[rA]:e.value==="treemap"}]),onClick:n[0]||(n[0]=i=>e.value="treemap")},n[2]||(n[2]=[pe("div",{class:"i-mdi-chart-tree"},null,-1)]),2),pe("div",{class:en(["flex w-1/2 items-center justify-center py-1 cursor-pointer",{[nA]:e.value==="graph"}]),onClick:n[1]||(n[1]=i=>e.value="graph")},n[3]||(n[3]=[pe("div",{class:"i-mdi-graph"},null,-1)]),2)]))}});function aA(t,e,r,n){let i=0;do{i=0;const a=[];for(let s=0;s<t.length;s+=1){const l=[];for(let u=0;u<e.length;u+=1)e[u][0]===s&&l.push(e[u][1]);l.length===0&&!yn(t[s],r,n)&&a.push(s)}i=a.length;const o=Kw(t,e,a);t=o.nodes,e=o.edges}while(i);return{nodes:t,edges:e}}function Kw(t,e,r,n=!0){let i=n?[...t]:t,a=n?e.map(([o,s])=>[o,s]):e;for(const o of[...r].sort((s,l)=>l-s))a=a.filter(([s,l])=>s!==o&&l!==o),i=i.filter((s,l)=>l!==o),a.forEach(s=>{s[0]>o&&(s[0]-=1),s[1]>o&&(s[1]-=1)});return{nodes:i,edges:a}}const lr={Rendered:"rendered",Minified:"minified",Compressed:"compressed"};function oA(t){return t[0].toUpperCase()+t.slice(1)+" size"}function lp(t){const e=[];return t.chunks.every(r=>r.minifiedLength!==-1)&&e.push(lr.Minified),e.push(lr.Rendered),t.chunks.every(r=>r.compressedLength!==-1)&&e.push(lr.Compressed),e}function sA(t,e,r){const n=e.chunks.find(i=>i.fileName===t);if(n)switch(r){case lr.Rendered:return n.modules.reduce((i,a)=>i+a.renderedLength,0);case lr.Minified:return n.minifiedLength;case lr.Compressed:return n.compressedLength}}function up(t){return t<1024?`${Math.ceil(t)} B`:t<1024*1024?`${(t/1024).toFixed(2)} KB`:`${(t/1024/1024).toFixed(2)} MB`}function yn(t,e,r){const n=typeof t=="string"?e.moduleFileNames.indexOf(t):t;if(n!==-1){for(const i of e.chunks)for(const a of i.modules)if(a.fileNameIndex===n){if(r===lr.Rendered)return a.renderedLength;const o=sA(i.fileName,e,lr.Rendered),s=a.renderedLength/o;if(r===lr.Minified)return i.minifiedLength*s;if(r===lr.Compressed)return i.compressedLength*s}}}function lA(t){return t.startsWith("node_modules")}function Cd(t){if(!lA(t))return"";if(t.startsWith("node_modules/.pnpm")){const n=t.split("/");return n[4].startsWith("@")?`${n[4]}/${n[5]}`:n[4]}const e=t.split("/"),r=e.lastIndexOf("node_modules");return e[r+1].startsWith("@")?`${e[r+1]}/${e[r+2]}`:e[r+1]}/*! *****************************************************************************
23
23
  Copyright (c) Microsoft Corporation.
24
24
 
25
25
  Permission to use, copy, modify, and/or distribute this software for any
@@ -32,7 +32,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
32
32
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
33
33
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
34
34
  PERFORMANCE OF THIS SOFTWARE.
35
- ***************************************************************************** */var Dd=function(t,e){return Dd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Dd(t,e)};function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Dd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var uA=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),fA=function(){function t(){this.browser=new uA,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 t}(),he=new fA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(he.wxa=!0,he.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?he.worker=!0:!he.hasGlobalWindow||"Deno"in window?(he.node=!0,he.svgSupported=!0):cA(navigator.userAgent,he);function cA(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var fp=12,hA="sans-serif",na=fp+"px "+hA,dA=20,vA=100,pA="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function gA(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-dA)/vA;e[n]=i}return e}var mA=gA(pA),bo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=bo.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||na),t.measureText(r);r=r||"",n=n||na;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||fp,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=mA[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},qw=wo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),jw=wo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),fl=Object.prototype.toString,$f=Array.prototype,yA=$f.forEach,_A=$f.filter,cp=$f.slice,bA=$f.map,cm=(function(){}).constructor,Ml=cm?cm.prototype:null,hp="__proto__",wA=2311;function Zw(){return wA++}function dp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Se(t){if(t==null||typeof t!="object")return t;var e=t,r=fl.call(t);if(r==="[object Array]"){if(!gs(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=Se(t[n])}}else if(jw[r]){if(!gs(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!qw[r]&&!gs(t)&&!Ns(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==hp&&(e[o]=Se(t[o]))}return e}function Qe(t,e,r){if(!se(e)||!se(t))return r?Se(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==hp){var i=t[n],a=e[n];se(a)&&se(i)&&!Z(a)&&!Z(i)&&!Ns(a)&&!Ns(i)&&!hm(a)&&!hm(i)&&!gs(a)&&!gs(i)?Qe(i,a,r):(r||!(n in t))&&(t[n]=Se(e[n]))}return t}function $(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==hp&&(t[r]=e[r]);return t}function Ke(t,e,r){for(var n=Je(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function ke(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function SA(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Fr(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else Ke(t,e)}function er(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function L(t,e,r){if(t&&e)if(t.forEach&&t.forEach===yA)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function Me(t,e,r){if(!t)return[];if(!e)return vp(t);if(t.map&&t.map===bA)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function wo(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function or(t,e,r){if(!t)return[];if(!e)return vp(t);if(t.filter&&t.filter===_A)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Je(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function TA(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(cp.call(arguments)))}}var De=Ml&&Ie(Ml.bind)?Ml.call.bind(Ml.bind):TA;function Ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(cp.call(arguments)))}}function Z(t){return Array.isArray?Array.isArray(t):fl.call(t)==="[object Array]"}function Ie(t){return typeof t=="function"}function ae(t){return typeof t=="string"}function Id(t){return fl.call(t)==="[object String]"}function et(t){return typeof t=="number"}function se(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function hm(t){return!!qw[fl.call(t)]}function tr(t){return!!jw[fl.call(t)]}function Ns(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Uf(t){return t.colorStops!=null}function xA(t){return t.image!=null}function CA(t){return t!==t}function si(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function ye(t,e){return t??e}function Ki(t,e,r){return t??e??r}function vp(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return cp.apply(t,e)}function pp(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Br(t,e){if(!t)throw new Error(e)}function jr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Qw="__ec_primitive__";function Ad(t){t[Qw]=!0}function gs(t){return t[Qw]}var DA=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Je(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),Jw=typeof Map=="function";function IA(){return Jw?new Map:new DA}var AA=function(){function t(e){var r=Z(e);this.data=IA();var n=this;e instanceof t?e.each(i):e&&L(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Jw?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function me(t){return new AA(t)}function MA(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function Gf(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&$(r,e),r}function e1(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ia(t,e){return t.hasOwnProperty(e)}function ut(){}var EA=180/Math.PI;function ca(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Rt(t,e){return t[0]=e[0],t[1]=e[1],t}function _n(t){return[t[0],t[1]]}function LA(t,e,r){return t[0]=e,t[1]=r,t}function dm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Md(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Fi(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Ed(t){return Math.sqrt(PA(t))}function PA(t){return t[0]*t[0]+t[1]*t[1]}function yu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function So(t,e){var r=Ed(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Ld(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var RA=Ld;function OA(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var qi=OA;function fr(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function $a(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ua(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ya=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),kA=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ya(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new ya(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ya(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ya(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ya(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ya(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),Vr=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}(),NA=Math.log(2);function Pd(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/NA);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(c+=(d%2?-1:1)*t[r][h]*Pd(t,e-1,f,u,i|v,a),d++)}return a[o]=c,c}function vm(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Pd(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pd(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var pm="___zrEVENTSAVED",Ic=[];function BA(t,e,r,n,i){return Rd(Ic,e,n,i,!0)&&Rd(t,r,Ic[0],Ic[1])}function Rd(t,e,r,n,i){if(e.getBoundingClientRect&&he.domSupported&&!t1(e)){var a=e[pm]||(e[pm]={}),o=FA(e,a),s=VA(o,a,i);if(s)return s(t,r,n),!0}return!1}function FA(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function VA(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,h=f.left,d=f.top;o.push(h,d),l=l&&a&&h===a[c]&&d===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?vm(s,o):vm(o,s))}function t1(t){return t.nodeName.toUpperCase()==="CANVAS"}var HA=/([&<>"'])/g,zA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Bt(t){return t==null?"":(t+"").replace(HA,function(e,r){return zA[r]})}var $A=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ac=[],UA=he.browser.firefox&&+he.browser.version.split(".")[0]<39;function Od(t,e,r,n){return r=r||{},n?gm(t,e,r):UA&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):gm(t,e,r),r}function gm(t,e,r){if(he.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(t1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Rd(Ac,t,n,i)){r.zrX=Ac[0],r.zrY=Ac[1];return}}r.zrX=r.zrY=0}function gp(t){return t||window.event}function gr(t,e,r){if(e=gp(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Od(t,o,e,r)}else{Od(t,e,e,r);var a=GA(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&$A.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function GA(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function WA(t,e,r,n){t.addEventListener(e,r,n)}function YA(t,e,r,n){t.removeEventListener(e,r,n)}var Wf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function mm(t){return t.which===2||t.which===3}var XA=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Od(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Mc)if(Mc.hasOwnProperty(r)){var n=Mc[r](this._track,e);if(n)return n}},t}();function ym(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function KA(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Mc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=ym(n)/ym(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=KA(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Jn(){return[1,0,0,1,0,0]}function mp(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r1(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ro(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Bs(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function yp(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function n1(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function _p(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Fe=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),El=Math.min,Ll=Math.max,hi=new Fe,di=new Fe,vi=new Fe,pi=new Fe,Lo=new Fe,Po=new Fe,Ae=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=El(e.x,this.x),n=El(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ll(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ll(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=Jn();return Bs(a,a,[-r.x,-r.y]),n1(a,a,[n,i]),Bs(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,h=!(a<l||u<i||s<f||c<o);if(r){var d=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),_=Math.abs(c-o),y=Math.min(p,g),b=Math.min(m,_);a<l||u<i?y>v&&(v=y,p<g?Fe.set(Po,-p,0):Fe.set(Po,g,0)):y<d&&(d=y,p<g?Fe.set(Lo,p,0):Fe.set(Lo,-g,0)),s<f||c<o?b>v&&(v=b,m<_?Fe.set(Po,0,-m):Fe.set(Po,0,_)):y<d&&(d=y,m<_?Fe.set(Lo,0,m):Fe.set(Lo,0,-_))}return r&&Fe.copy(r,h?Lo:Po),h},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hi.x=vi.x=r.x,hi.y=pi.y=r.y,di.x=pi.x=r.x+r.width,di.y=vi.y=r.y+r.height,hi.transform(n),pi.transform(n),di.transform(n),vi.transform(n),e.x=El(hi.x,di.x,vi.x,pi.x),e.y=El(hi.y,di.y,vi.y,pi.y);var l=Ll(hi.x,di.x,vi.x,pi.x),u=Ll(hi.y,di.y,vi.y,pi.y);e.width=l-e.x,e.height=u-e.y},t}(),i1="silent";function qA(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:jA}}function jA(){Wf(this.event)}var ZA=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Vr),Ro=function(){function t(e,r){this.x=e,this.y=r}return t}(),QA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ec=new Ae(0,0,0,0),a1=function(t){re(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Ro(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new ZA,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new kA(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(L(QA,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=o1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ro(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ro(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=qA(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ro(r,n);if(_m(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Ae(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ec.copy(h.getBoundingRect()),h.transform&&Ec.applyTransform(h.transform),Ec.intersect(f)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=d)for(var m=0;m<p;m+=v){var _=r+g*Math.cos(m),y=n+g*Math.sin(m);if(_m(s,o,_,y,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new XA);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ro;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Vr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){a1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=o1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||RA(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function JA(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?i1:!0}return!1}function _m(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=JA(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==i1)){e.target=o;break}}}function o1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var s1=32,Oo=7;function eM(t){for(var e=0;t>=s1;)e|=t&1,t>>=1;return t+e}function bm(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;tM(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function tM(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function wm(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Lc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Pc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function rM(t,e){var r=Oo,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;f(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,f(d)}}function f(d){var v=n[d],p=i[d],g=n[d+1],m=i[d+1];i[d]=p+m,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var _=Pc(t[g],t,v,p,0,e);v+=_,p-=_,p!==0&&(m=Lc(t[v+p-1],t,g,m,m-1,e),m!==0&&(p<=m?c(v,p,g,m):h(v,p,g,m)))}function c(d,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=t[d+m];var _=0,y=p,b=d;if(t[b++]=t[y++],--g===0){for(m=0;m<v;m++)t[b+m]=o[_+m];return}if(v===1){for(m=0;m<g;m++)t[b+m]=t[y+m];t[b+g]=o[_];return}for(var w=r,S,T,C;;){S=0,T=0,C=!1;do if(e(t[y],o[_])<0){if(t[b++]=t[y++],T++,S=0,--g===0){C=!0;break}}else if(t[b++]=o[_++],S++,T=0,--v===1){C=!0;break}while((S|T)<w);if(C)break;do{if(S=Pc(t[y],o,_,v,0,e),S!==0){for(m=0;m<S;m++)t[b+m]=o[_+m];if(b+=S,_+=S,v-=S,v<=1){C=!0;break}}if(t[b++]=t[y++],--g===0){C=!0;break}if(T=Lc(o[_],t,y,g,0,e),T!==0){for(m=0;m<T;m++)t[b+m]=t[y+m];if(b+=T,y+=T,g-=T,g===0){C=!0;break}}if(t[b++]=o[_++],--v===1){C=!0;break}w--}while(S>=Oo||T>=Oo);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),v===1){for(m=0;m<g;m++)t[b+m]=t[y+m];t[b+g]=o[_]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[b+m]=o[_+m]}}function h(d,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var _=d+v-1,y=g-1,b=p+g-1,w=0,S=0;if(t[b--]=t[_--],--v===0){for(w=b-(g-1),m=0;m<g;m++)t[w+m]=o[m];return}if(g===1){for(b-=v,_-=v,S=b+1,w=_+1,m=v-1;m>=0;m--)t[S+m]=t[w+m];t[b]=o[y];return}for(var T=r;;){var C=0,x=0,D=!1;do if(e(o[y],t[_])<0){if(t[b--]=t[_--],C++,x=0,--v===0){D=!0;break}}else if(t[b--]=o[y--],x++,C=0,--g===1){D=!0;break}while((C|x)<T);if(D)break;do{if(C=v-Pc(o[y],t,d,v,v-1,e),C!==0){for(b-=C,_-=C,v-=C,S=b+1,w=_+1,m=C-1;m>=0;m--)t[S+m]=t[w+m];if(v===0){D=!0;break}}if(t[b--]=o[y--],--g===1){D=!0;break}if(x=g-Lc(t[_],o,0,g,g-1,e),x!==0){for(b-=x,y-=x,g-=x,S=b+1,w=y+1,m=0;m<x;m++)t[S+m]=o[w+m];if(g<=1){D=!0;break}}if(t[b--]=t[_--],--v===0){D=!0;break}T--}while(C>=Oo||x>=Oo);if(D)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(b-=v,_-=v,S=b+1,w=_+1,m=v-1;m>=0;m--)t[S+m]=t[w+m];t[b]=o[y]}else{if(g===0)throw new Error;for(w=b-(g-1),m=0;m<g;m++)t[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _u(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<s1){a=bm(t,r,n,e),wm(t,r,n,r+a,e);return}var o=rM(t,e),s=eM(i);do{if(a=bm(t,r,n,e),a<s){var l=i;l>s&&(l=s),wm(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var sr=1,ts=2,Va=4,Sm=!1;function Rc(){Sm||(Sm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Tm(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nM=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Tm}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,_u(n,Tm)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=sr),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Rc(),f.z=0),isNaN(f.z2)&&(Rc(),f.z2=0),isNaN(f.zlevel)&&(Rc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ke(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),ju;ju=he.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ms={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ms.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ms.bounceIn(t*2)*.5:ms.bounceOut(t*2-1)*.5+.5}},Pl=Math.pow,ei=Math.sqrt,Zu=1e-8,l1=1e-4,xm=ei(3),Rl=1/3,qr=ca(),_r=ca(),no=ca();function Kn(t){return t>-Zu&&t<Zu}function u1(t){return t>Zu||t<-Zu}function Ft(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Cm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function f1(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Kn(f)&&Kn(c))if(Kn(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=c*c-4*f*h;if(Kn(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m)}else if(p>0){var _=ei(p),y=f*s+1.5*o*(-c+_),b=f*s+1.5*o*(-c-_);y<0?y=-Pl(-y,Rl):y=Pl(y,Rl),b<0?b=-Pl(-b,Rl):b=Pl(b,Rl);var v=(-s-(y+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var w=(2*f*s-3*o*c)/(2*ei(f*f*f)),S=Math.acos(w)/3,T=ei(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),m=(-s+T*(C+xm*Math.sin(S)))/(3*o),x=(-s+T*(C-xm*Math.sin(S)))/(3*o);v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m),x>=0&&x<=1&&(a[d++]=x)}}return d}function c1(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Kn(o)){if(u1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Kn(f))i[0]=-a/(2*o);else if(f>0){var c=ei(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Qu(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function iM(t,e,r,n,i,a,o,s,l,u,f){var c,h=.005,d=1/0,v,p,g,m;qr[0]=l,qr[1]=u;for(var _=0;_<1;_+=.05)_r[0]=Ft(t,r,i,o,_),_r[1]=Ft(e,n,a,s,_),g=qi(qr,_r),g<d&&(c=_,d=g);d=1/0;for(var y=0;y<32&&!(h<l1);y++)v=c-h,p=c+h,_r[0]=Ft(t,r,i,o,v),_r[1]=Ft(e,n,a,s,v),g=qi(_r,qr),v>=0&&g<d?(c=v,d=g):(no[0]=Ft(t,r,i,o,p),no[1]=Ft(e,n,a,s,p),m=qi(no,qr),p<=1&&m<d?(c=p,d=m):h*=.5);return ei(d)}function aM(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,h=1/l,d=1;d<=l;d++){var v=d*h,p=Ft(t,r,i,o,v),g=Ft(e,n,a,s,v),m=p-u,_=g-f;c+=Math.sqrt(m*m+_*_),u=p,f=g}return c}function Vt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Dm(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function oM(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Kn(a)){if(u1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Kn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ei(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function h1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Fs(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function sM(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;qr[0]=o,qr[1]=s;for(var h=0;h<1;h+=.05){_r[0]=Vt(t,r,i,h),_r[1]=Vt(e,n,a,h);var d=qi(qr,_r);d<c&&(u=h,c=d)}c=1/0;for(var v=0;v<32&&!(f<l1);v++){var p=u-f,g=u+f;_r[0]=Vt(t,r,i,p),_r[1]=Vt(e,n,a,p);var d=qi(_r,qr);if(p>=0&&d<c)u=p,c=d;else{no[0]=Vt(t,r,i,g),no[1]=Vt(e,n,a,g);var m=qi(no,qr);g<=1&&m<c?(u=g,c=m):f*=.5}}return ei(c)}function lM(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,d=Vt(t,r,i,h),v=Vt(e,n,a,h),p=d-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=d,l=v}return u}var uM=/cubic-bezier\(([0-9,\.e ]+)\)/;function d1(t){var e=t&&uM.exec(t);if(e){var r=e[1].split(","),n=+jr(r[0]),i=+jr(r[1]),a=+jr(r[2]),o=+jr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:f1(0,n,a,1,l,s)&&Ft(0,i,o,1,s[0])}}}var fM=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ut,this.ondestroy=e.ondestroy||ut,this.onrestart=e.onrestart||ut,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ie(e)?e:ms[e]||d1(e)},t}(),v1=function(){function t(e){this.value=e}return t}(),cM=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new v1(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),cl=function(){function t(e){this._list=new cM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new v1(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Im={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 ti(t){return t=Math.round(t),t<0?0:t>255?255:t}function hM(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ju(t){return t<0?0:t>1?1:t}function Oc(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ti(parseFloat(e)/100*255):ti(parseInt(e,10))}function ji(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ju(parseFloat(e)/100):Ju(parseFloat(e))}function kc(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ol(t,e,r){return t+(e-t)*r}function pr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function kd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p1=new cl(20),kl=null;function _a(t,e){kl&&kd(kl,e),kl=p1.put(t,kl||e.slice())}function Jr(t,e){if(t){e=e||[];var r=p1.get(t);if(r)return kd(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Im)return kd(e,Im[n]),_a(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){pr(e,0,0,0,1);return}return pr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),_a(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){pr(e,0,0,0,1);return}return pr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),_a(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){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?pr(e,+u[0],+u[1],+u[2],1):pr(e,0,0,0,1);f=ji(u.pop());case"rgb":if(u.length>=3)return pr(e,Oc(u[0]),Oc(u[1]),Oc(u[2]),u.length===3?f:ji(u[3])),_a(t,e),e;pr(e,0,0,0,1);return;case"hsla":if(u.length!==4){pr(e,0,0,0,1);return}return u[3]=ji(u[3]),Nd(u,e),_a(t,e),e;case"hsl":if(u.length!==3){pr(e,0,0,0,1);return}return Nd(u,e),_a(t,e),e;default:return}}pr(e,0,0,0,1)}}function Nd(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=ji(t[1]),i=ji(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],pr(e,ti(kc(o,a,r+1/3)*255),ti(kc(o,a,r)*255),ti(kc(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function dM(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-c:r===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function Am(t,e){var r=Jr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ri(r,r.length===4?"rgba":"rgb")}}function Nc(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=ti(Ol(o[0],s[0],l)),r[1]=ti(Ol(o[1],s[1],l)),r[2]=ti(Ol(o[2],s[2],l)),r[3]=Ju(Ol(o[3],s[3],l)),r}}function ys(t,e,r,n){var i=Jr(t);if(t)return i=dM(i),e!=null&&(i[0]=hM(e)),r!=null&&(i[1]=ji(r)),n!=null&&(i[2]=ji(n)),ri(Nd(i),"rgba")}function g1(t,e){var r=Jr(t);if(r&&e!=null)return r[3]=Ju(e),ri(r,"rgba")}function ri(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function ef(t,e){var r=Jr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Mm=new cl(100);function Em(t){if(ae(t)){var e=Mm.get(t);return e||(e=Am(t,-.1),Mm.put(t,e)),e}else if(Uf(t)){var r=$({},t);return r.colorStops=Me(t.colorStops,function(n){return{offset:n.offset,color:Am(n.color,-.1)}}),r}return t}function vM(t){return t.type==="linear"}function pM(t){return t.type==="radial"}(function(){return he.hasGlobalWindow&&Ie(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Bd=Array.prototype.slice;function dn(t,e,r){return(e-t)*r+t}function Bc(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=dn(e[a],r[a],n);return t}function gM(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=dn(e[o][s],r[o][s],n)}return t}function Nl(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Lm(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function mM(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function yM(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Bd.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function bu(t){if(er(t)){var e=t.length;if(er(t[0])){for(var r=[],n=0;n<e;n++)r.push(Bd.call(t[n]));return r}return Bd.call(t)}return t}function wu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function _M(t){return er(t&&t[0])?2:1}var Bl=0,Su=1,m1=2,rs=3,Fd=4,Vd=5,Pm=6;function Rm(t){return t===Fd||t===Vd}function Fl(t){return t===Su||t===m1}var ko=[0,0,0,0],bM=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Pm,l=r;if(er(r)){var u=_M(r);s=u,(u===1&&!et(r[0])||u===2&&!et(r[0][0]))&&(o=!0)}else if(et(r)&&!CA(r))s=Bl;else if(ae(r))if(!isNaN(+r))s=Bl;else{var f=Jr(r);f&&(l=f,s=rs)}else if(Uf(r)){var c=$({},l);c.colorStops=Me(r.colorStops,function(d){return{offset:d.offset,color:Jr(d.color)}}),vM(r)?s=Fd:pM(r)&&(s=Vd),l=c}a===0?this.valType=s:(s!==this.valType||s===Pm)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Ie(n)?n:ms[n]||d1(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fl(i),u=Rm(i),f=0;f<a;f++){var c=n[f],h=c.value,d=o.value;c.percent=c.time/e,s||(l&&f!==a-1?yM(h,d,i):u&&mM(h.colorStops,d.colorStops))}if(!s&&i!==Vd&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===Bl?n[f].additiveValue=n[f].value-v:i===rs?n[f].additiveValue=Nl([],n[f].value,v,-1):Fl(i)&&(n[f].additiveValue=i===Su?Nl([],n[f].value,v,-1):Lm([],n[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===rs,f,c=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-d.percent,m=g===0?1:h((r-d.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var _=n?this._additiveValue:u?ko:e[l];if((Fl(a)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=m<1?d.rawValue:v.rawValue;else if(Fl(a))a===Su?Bc(_,d[i],v[i],m):gM(_,d[i],v[i],m);else if(Rm(a)){var y=d[i],b=v[i],w=a===Fd;e[l]={type:w?"linear":"radial",x:dn(y.x,b.x,m),y:dn(y.y,b.y,m),colorStops:Me(y.colorStops,function(T,C){var x=b.colorStops[C];return{offset:dn(T.offset,x.offset,m),color:wu(Bc([],T.color,x.color,m))}}),global:b.global},w?(e[l].x2=dn(y.x2,b.x2,m),e[l].y2=dn(y.y2,b.y2,m)):e[l].r=dn(y.r,b.r,m)}else if(u)Bc(_,d[i],v[i],m),n||(e[l]=wu(_));else{var S=dn(d[i],v[i],m);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Bl?e[n]=e[n]+i:r===rs?(Jr(e[n],ko),Nl(ko,ko,i,1),e[n]=wu(ko)):r===Su?Nl(e[n],e[n],i,1):r===m1&&Lm(e[n],e[n],i,1)},t}(),bp=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){dp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Je(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new bM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===rs&&u&&(u=wu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,bu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,bu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new fM({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,d);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Me(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=bu(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Je(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();function Ga(){return new Date().getTime()}var wM=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ga()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(ju(n),!r._paused&&r.update())}ju(n)},e.prototype.start=function(){this._running||(this._time=Ga(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ga(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ga()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new bp(r,n.loop);return this.addAnimator(i),i},e}(Vr),SM=300,Fc=he.domSupported,Vc=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Me(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),Om={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},km=!1;function Hd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TM(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Hc(t){t&&(t.zrByTouch=!0)}function xM(t,e){return gr(t.dom,new CM(t,e),!0)}function y1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var CM=function(){function t(e,r){this.stopPropagation=ut,this.stopImmediatePropagation=ut,this.preventDefault=ut,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Lr={mousedown:function(t){t=gr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=gr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=gr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=gr(this.dom,t);var e=t.toElement||t.relatedTarget;y1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){km=!0,t=gr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){km||(t=gr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=gr(this.dom,t),Hc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lr.mousemove.call(this,t),Lr.mousedown.call(this,t)},touchmove:function(t){t=gr(this.dom,t),Hc(t),this.handler.processGesture(t,"change"),Lr.mousemove.call(this,t)},touchend:function(t){t=gr(this.dom,t),Hc(t),this.handler.processGesture(t,"end"),Lr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<SM&&Lr.click.call(this,t)},pointerdown:function(t){Lr.mousedown.call(this,t)},pointermove:function(t){Hd(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},pointerout:function(t){Hd(t)||Lr.mouseout.call(this,t)}};L(["click","dblclick","contextmenu"],function(t){Lr[t]=function(e){e=gr(this.dom,e),this.trigger(t,e)}});var zd={pointermove:function(t){Hd(t)||zd.mousemove.call(this,t)},pointerup:function(t){zd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function DM(t,e){var r=e.domHandlers;he.pointerEventsSupported?L(Vc.pointer,function(n){Tu(e,n,function(i){r[n].call(t,i)})}):(he.touchEventsSupported&&L(Vc.touch,function(n){Tu(e,n,function(i){r[n].call(t,i),TM(e)})}),L(Vc.mouse,function(n){Tu(e,n,function(i){i=gp(i),e.touching||r[n].call(t,i)})}))}function IM(t,e){he.pointerEventsSupported?L(Om.pointer,r):he.touchEventsSupported||L(Om.mouse,r);function r(n){function i(a){a=gp(a),y1(t,a.target)||(a=xM(t,a),e.domHandlers[n].call(t,a))}Tu(e,n,i,{capture:!0})}}function Tu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,WA(t.domTarget,e,r,n)}function zc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&YA(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Nm=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),AM=function(t){re(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Nm(r,Lr),Fc&&(i._globalHandlerScope=new Nm(document,zd)),DM(i,i._localHandlerScope),i}return e.prototype.dispose=function(){zc(this._localHandlerScope),Fc&&zc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Fc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?IM(this,n):zc(n)}},e}(Vr),_1=1;he.hasGlobalWindow&&(_1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var tf=_1,$d=.4,Ud="#333",Gd="#ccc",MM="#eee",Bm=mp,Fm=5e-5;function gi(t){return t>Fm||t<-Fm}var mi=[],ba=[],$c=Jn(),Uc=Math.abs,Vi=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return gi(this.rotation)||gi(this.x)||gi(this.y)||gi(this.scaleX-1)||gi(this.scaleY-1)||gi(this.skewX)||gi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Bm(n),this.invTransform=null);return}n=n||Jn(),r?this.getLocalTransform(n):Bm(n),e&&(r?ro(n,e,n):r1(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(mi);var n=mi[0]<0?-1:1,i=mi[1]<0?-1:1,a=((mi[0]-n)*r+n)/mi[0]||0,o=((mi[1]-i)*r+i)/mi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Jn(),_p(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Jn(),ro(ba,e.invTransform,r),r=ba);var n=this.originX,i=this.originY;(n||i)&&($c[4]=n,$c[5]=i,ro(ba,r,$c),ba[4]-=n,ba[5]-=i,r=ba),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&fr(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&fr(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Uc(e[0]-1)>1e-10&&Uc(e[3]-1)>1e-10?Math.sqrt(Uc(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){EM(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&yp(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Vs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function EM(t,e){for(var r=0;r<Vs.length;r++){var n=Vs[r];t[n]=e[n]}}var Vm={};function cr(t,e){e=e||na;var r=Vm[e];r||(r=Vm[e]=new cl(500));var n=r.get(t);return n==null&&(n=bo.measureText(t,e).width,r.put(t,n)),n}function Hm(t,e,r,n){var i=cr(t,e),a=wp(e),o=ns(0,i,r),s=Ha(0,a,n),l=new Ae(o,s,i,a);return l}function b1(t,e,r,n){var i=((t||"")+"").split(`
35
+ ***************************************************************************** */var Dd=function(t,e){return Dd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Dd(t,e)};function re(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Dd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var uA=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),fA=function(){function t(){this.browser=new uA,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 t}(),he=new fA;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(he.wxa=!0,he.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?he.worker=!0:!he.hasGlobalWindow||"Deno"in window?(he.node=!0,he.svgSupported=!0):cA(navigator.userAgent,he);function cA(t,e){var r=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,e.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}var fp=12,hA="sans-serif",na=fp+"px "+hA,dA=20,vA=100,pA="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function gA(t){var e={};if(typeof JSON>"u")return e;for(var r=0;r<t.length;r++){var n=String.fromCharCode(r+32),i=(t.charCodeAt(r)-dA)/vA;e[n]=i}return e}var mA=gA(pA),bo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(r,n){if(!t){var i=bo.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==n&&(e=t.font=n||na),t.measureText(r);r=r||"",n=n||na;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||fp,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=mA[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,r){var n=new Image;return n.onload=e,n.onerror=r,n.src=t,n}},qw=wo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),jw=wo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),fl=Object.prototype.toString,$f=Array.prototype,yA=$f.forEach,_A=$f.filter,cp=$f.slice,bA=$f.map,cm=(function(){}).constructor,Ml=cm?cm.prototype:null,hp="__proto__",wA=2311;function Zw(){return wA++}function dp(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Se(t){if(t==null||typeof t!="object")return t;var e=t,r=fl.call(t);if(r==="[object Array]"){if(!gs(t)){e=[];for(var n=0,i=t.length;n<i;n++)e[n]=Se(t[n])}}else if(jw[r]){if(!gs(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}}}else if(!qw[r]&&!gs(t)&&!Ns(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==hp&&(e[o]=Se(t[o]))}return e}function Qe(t,e,r){if(!se(e)||!se(t))return r?Se(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==hp){var i=t[n],a=e[n];se(a)&&se(i)&&!Z(a)&&!Z(i)&&!Ns(a)&&!Ns(i)&&!hm(a)&&!hm(i)&&!gs(a)&&!gs(i)?Qe(i,a,r):(r||!(n in t))&&(t[n]=Se(e[n]))}return t}function $(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==hp&&(t[r]=e[r]);return t}function Ke(t,e,r){for(var n=Je(e),i=0,a=n.length;i<a;i++){var o=n[i];t[o]==null&&(t[o]=e[o])}return t}function ke(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r}return-1}function SA(t,e){var r=t.prototype;function n(){}n.prototype=e.prototype,t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.prototype.constructor=t,t.superClass=e}function Fr(t,e,r){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&t[a]==null&&(t[a]=e[a])}else Ke(t,e)}function er(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function L(t,e,r){if(t&&e)if(t.forEach&&t.forEach===yA)t.forEach(e,r);else if(t.length===+t.length)for(var n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function Me(t,e,r){if(!t)return[];if(!e)return vp(t);if(t.map&&t.map===bA)return t.map(e,r);for(var n=[],i=0,a=t.length;i<a;i++)n.push(e.call(r,t[i],i,t));return n}function wo(t,e,r,n){if(t&&e){for(var i=0,a=t.length;i<a;i++)r=e.call(n,r,t[i],i,t);return r}}function or(t,e,r){if(!t)return[];if(!e)return vp(t);if(t.filter&&t.filter===_A)return t.filter(e,r);for(var n=[],i=0,a=t.length;i<a;i++)e.call(r,t[i],i,t)&&n.push(t[i]);return n}function Je(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function TA(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return t.apply(e,r.concat(cp.call(arguments)))}}var De=Ml&&Ie(Ml.bind)?Ml.call.bind(Ml.bind):TA;function Ze(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(cp.call(arguments)))}}function Z(t){return Array.isArray?Array.isArray(t):fl.call(t)==="[object Array]"}function Ie(t){return typeof t=="function"}function ae(t){return typeof t=="string"}function Id(t){return fl.call(t)==="[object String]"}function et(t){return typeof t=="number"}function se(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function hm(t){return!!qw[fl.call(t)]}function tr(t){return!!jw[fl.call(t)]}function Ns(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Uf(t){return t.colorStops!=null}function xA(t){return t.image!=null}function CA(t){return t!==t}function si(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,n=t.length;r<n;r++)if(t[r]!=null)return t[r]}function ye(t,e){return t??e}function Ki(t,e,r){return t??e??r}function vp(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return cp.apply(t,e)}function pp(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Br(t,e){if(!t)throw new Error(e)}function jr(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Qw="__ec_primitive__";function Ad(t){t[Qw]=!0}function gs(t){return t[Qw]}var DA=function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return Je(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&e(r[n],n)},t}(),Jw=typeof Map=="function";function IA(){return Jw?new Map:new DA}var AA=function(){function t(e){var r=Z(e);this.data=IA();var n=this;e instanceof t?e.each(i):e&&L(e,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(n,i){e.call(r,n,i)})},t.prototype.keys=function(){var e=this.data.keys();return Jw?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function me(t){return new AA(t)}function MA(t,e){for(var r=new t.constructor(t.length+e.length),n=0;n<t.length;n++)r[n]=t[n];for(var i=t.length,n=0;n<e.length;n++)r[n+i]=e[n];return r}function Gf(t,e){var r;if(Object.create)r=Object.create(t);else{var n=function(){};n.prototype=t,r=new n}return e&&$(r,e),r}function e1(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ia(t,e){return t.hasOwnProperty(e)}function ut(){}var EA=180/Math.PI;function ca(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function Rt(t,e){return t[0]=e[0],t[1]=e[1],t}function bn(t){return[t[0],t[1]]}function LA(t,e,r){return t[0]=e,t[1]=r,t}function dm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Md(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Fi(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function Ed(t){return Math.sqrt(PA(t))}function PA(t){return t[0]*t[0]+t[1]*t[1]}function yu(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function So(t,e){var r=Ed(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function Ld(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var RA=Ld;function OA(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var qi=OA;function fr(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function $a(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ua(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var ya=function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t}(),kA=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ya(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new ya(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ya(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ya(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ya(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ya(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),Vr=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}(),NA=Math.log(2);function Pd(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/NA);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var c=0,h=0,d=0;h<s;h++){var v=1<<h;v&i||(c+=(d%2?-1:1)*t[r][h]*Pd(t,e-1,f,u,i|v,a),d++)}return a[o]=c,c}function vm(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=Pd(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Pd(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var pm="___zrEVENTSAVED",Ic=[];function BA(t,e,r,n,i){return Rd(Ic,e,n,i,!0)&&Rd(t,r,Ic[0],Ic[1])}function Rd(t,e,r,n,i){if(e.getBoundingClientRect&&he.domSupported&&!t1(e)){var a=e[pm]||(e[pm]={}),o=FA(e,a),s=VA(o,a,i);if(s)return s(t,r,n),!0}return!1}function FA(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return r}function VA(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,h=f.left,d=f.top;o.push(h,d),l=l&&a&&h===a[c]&&d===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?vm(s,o):vm(o,s))}function t1(t){return t.nodeName.toUpperCase()==="CANVAS"}var HA=/([&<>"'])/g,zA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Bt(t){return t==null?"":(t+"").replace(HA,function(e,r){return zA[r]})}var $A=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ac=[],UA=he.browser.firefox&&+he.browser.version.split(".")[0]<39;function Od(t,e,r,n){return r=r||{},n?gm(t,e,r):UA&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):gm(t,e,r),r}function gm(t,e,r){if(he.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(t1(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Rd(Ac,t,n,i)){r.zrX=Ac[0],r.zrY=Ac[1];return}}r.zrX=r.zrY=0}function gp(t){return t||window.event}function gr(t,e,r){if(e=gp(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Od(t,o,e,r)}else{Od(t,e,e,r);var a=GA(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&$A.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function GA(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function WA(t,e,r,n){t.addEventListener(e,r,n)}function YA(t,e,r,n){t.removeEventListener(e,r,n)}var Wf=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function mm(t){return t.which===2||t.which===3}var XA=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Od(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in Mc)if(Mc.hasOwnProperty(r)){var n=Mc[r](this._track,e);if(n)return n}},t}();function ym(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function KA(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var Mc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=ym(n)/ym(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=KA(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Jn(){return[1,0,0,1,0,0]}function mp(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function r1(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ro(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Bs(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function yp(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=i*c+s*f,t[1]=-i*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-n[0])+f*(u-n[1])+n[0],t[5]=c*(u-n[1])-f*(o-n[0])+n[1],t}function n1(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function _p(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var Fe=function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t}(),El=Math.min,Ll=Math.max,hi=new Fe,di=new Fe,vi=new Fe,pi=new Fe,Lo=new Fe,Po=new Fe,Ae=function(){function t(e,r,n,i){n<0&&(e=e+n,n=-n),i<0&&(r=r+i,i=-i),this.x=e,this.y=r,this.width=n,this.height=i}return t.prototype.union=function(e){var r=El(e.x,this.x),n=El(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ll(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ll(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=Jn();return Bs(a,a,[-r.x,-r.y]),n1(a,a,[n,i]),Bs(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,c=e.y+e.height,h=!(a<l||u<i||s<f||c<o);if(r){var d=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-f),_=Math.abs(c-o),y=Math.min(p,g),b=Math.min(m,_);a<l||u<i?y>v&&(v=y,p<g?Fe.set(Po,-p,0):Fe.set(Po,g,0)):y<d&&(d=y,p<g?Fe.set(Lo,p,0):Fe.set(Lo,-g,0)),s<f||c<o?b>v&&(v=b,m<_?Fe.set(Po,0,-m):Fe.set(Po,0,_)):y<d&&(d=y,m<_?Fe.set(Lo,0,m):Fe.set(Lo,0,-_))}return r&&Fe.copy(r,h?Lo:Po),h},t.prototype.contain=function(e,r){var n=this;return e>=n.x&&e<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}hi.x=vi.x=r.x,hi.y=pi.y=r.y,di.x=pi.x=r.x+r.width,di.y=vi.y=r.y+r.height,hi.transform(n),pi.transform(n),di.transform(n),vi.transform(n),e.x=El(hi.x,di.x,vi.x,pi.x),e.y=El(hi.y,di.y,vi.y,pi.y);var l=Ll(hi.x,di.x,vi.x,pi.x),u=Ll(hi.y,di.y,vi.y,pi.y);e.width=l-e.x,e.height=u-e.y},t}(),i1="silent";function qA(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:jA}}function jA(){Wf(this.event)}var ZA=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Vr),Ro=function(){function t(e,r){this.x=e,this.y=r}return t}(),QA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ec=new Ae(0,0,0,0),a1=function(t){re(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new Ro(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new ZA,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new kA(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(L(QA,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=o1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ro(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new Ro(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=qA(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Ro(r,n);if(_m(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new Ae(r-u,n-u,l,l),c=a.length-1;c>=0;c--){var h=a[c];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ec.copy(h.getBoundingRect()),h.transform&&Ec.applyTransform(h.transform),Ec.intersect(f)&&s.push(h))}if(s.length)for(var d=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=d)for(var m=0;m<p;m+=v){var _=r+g*Math.cos(m),y=n+g*Math.sin(m);if(_m(s,o,_,y,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new XA);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ro;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(Vr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){a1.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=o1(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||RA(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function JA(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?i1:!0}return!1}function _m(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=JA(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==i1)){e.target=o;break}}}function o1(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var s1=32,Oo=7;function eM(t){for(var e=0;t>=s1;)e|=t&1,t>>=1;return t+e}function bm(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;tM(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function tM(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function wm(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Lc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function Pc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function rM(t,e){var r=Oo,n,i,a=0,o=[];n=[],i=[];function s(d,v){n[a]=d,i[a]=v,a+=1}function l(){for(;a>1;){var d=a-2;if(d>=1&&i[d-1]<=i[d]+i[d+1]||d>=2&&i[d-2]<=i[d]+i[d-1])i[d-1]<i[d+1]&&d--;else if(i[d]>i[d+1])break;f(d)}}function u(){for(;a>1;){var d=a-2;d>0&&i[d-1]<i[d+1]&&d--,f(d)}}function f(d){var v=n[d],p=i[d],g=n[d+1],m=i[d+1];i[d]=p+m,d===a-3&&(n[d+1]=n[d+2],i[d+1]=i[d+2]),a--;var _=Pc(t[g],t,v,p,0,e);v+=_,p-=_,p!==0&&(m=Lc(t[v+p-1],t,g,m,m-1,e),m!==0&&(p<=m?c(v,p,g,m):h(v,p,g,m)))}function c(d,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=t[d+m];var _=0,y=p,b=d;if(t[b++]=t[y++],--g===0){for(m=0;m<v;m++)t[b+m]=o[_+m];return}if(v===1){for(m=0;m<g;m++)t[b+m]=t[y+m];t[b+g]=o[_];return}for(var w=r,S,T,C;;){S=0,T=0,C=!1;do if(e(t[y],o[_])<0){if(t[b++]=t[y++],T++,S=0,--g===0){C=!0;break}}else if(t[b++]=o[_++],S++,T=0,--v===1){C=!0;break}while((S|T)<w);if(C)break;do{if(S=Pc(t[y],o,_,v,0,e),S!==0){for(m=0;m<S;m++)t[b+m]=o[_+m];if(b+=S,_+=S,v-=S,v<=1){C=!0;break}}if(t[b++]=t[y++],--g===0){C=!0;break}if(T=Lc(o[_],t,y,g,0,e),T!==0){for(m=0;m<T;m++)t[b+m]=t[y+m];if(b+=T,y+=T,g-=T,g===0){C=!0;break}}if(t[b++]=o[_++],--v===1){C=!0;break}w--}while(S>=Oo||T>=Oo);if(C)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),v===1){for(m=0;m<g;m++)t[b+m]=t[y+m];t[b+g]=o[_]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[b+m]=o[_+m]}}function h(d,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=t[p+m];var _=d+v-1,y=g-1,b=p+g-1,w=0,S=0;if(t[b--]=t[_--],--v===0){for(w=b-(g-1),m=0;m<g;m++)t[w+m]=o[m];return}if(g===1){for(b-=v,_-=v,S=b+1,w=_+1,m=v-1;m>=0;m--)t[S+m]=t[w+m];t[b]=o[y];return}for(var T=r;;){var C=0,x=0,D=!1;do if(e(o[y],t[_])<0){if(t[b--]=t[_--],C++,x=0,--v===0){D=!0;break}}else if(t[b--]=o[y--],x++,C=0,--g===1){D=!0;break}while((C|x)<T);if(D)break;do{if(C=v-Pc(o[y],t,d,v,v-1,e),C!==0){for(b-=C,_-=C,v-=C,S=b+1,w=_+1,m=C-1;m>=0;m--)t[S+m]=t[w+m];if(v===0){D=!0;break}}if(t[b--]=o[y--],--g===1){D=!0;break}if(x=g-Lc(t[_],o,0,g,g-1,e),x!==0){for(b-=x,y-=x,g-=x,S=b+1,w=y+1,m=0;m<x;m++)t[S+m]=o[w+m];if(g<=1){D=!0;break}}if(t[b--]=t[_--],--v===0){D=!0;break}T--}while(C>=Oo||x>=Oo);if(D)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(b-=v,_-=v,S=b+1,w=_+1,m=v-1;m>=0;m--)t[S+m]=t[w+m];t[b]=o[y]}else{if(g===0)throw new Error;for(w=b-(g-1),m=0;m<g;m++)t[w+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function _u(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<s1){a=bm(t,r,n,e),wm(t,r,n,r+a,e);return}var o=rM(t,e),s=eM(i);do{if(a=bm(t,r,n,e),a<s){var l=i;l>s&&(l=s),wm(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var sr=1,ts=2,Va=4,Sm=!1;function Rc(){Sm||(Sm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Tm(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var nM=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Tm}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,_u(n,Tm)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=sr),this._updateAndAddDisplayable(u,r,n)}e.__dirty=0}else{var f=e;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Rc(),f.z=0),isNaN(f.z2)&&(Rc(),f.z2=0),isNaN(f.zlevel)&&(Rc(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,r,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,r,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=ke(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),ju;ju=he.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ms={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-ms.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?ms.bounceIn(t*2)*.5:ms.bounceOut(t*2-1)*.5+.5}},Pl=Math.pow,ei=Math.sqrt,Zu=1e-8,l1=1e-4,xm=ei(3),Rl=1/3,qr=ca(),_r=ca(),no=ca();function Kn(t){return t>-Zu&&t<Zu}function u1(t){return t>Zu||t<-Zu}function Ft(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function Cm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function f1(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,c=s*l-9*o*u,h=l*l-3*s*u,d=0;if(Kn(f)&&Kn(c))if(Kn(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[d++]=v)}else{var p=c*c-4*f*h;if(Kn(p)){var g=c/f,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m)}else if(p>0){var _=ei(p),y=f*s+1.5*o*(-c+_),b=f*s+1.5*o*(-c-_);y<0?y=-Pl(-y,Rl):y=Pl(y,Rl),b<0?b=-Pl(-b,Rl):b=Pl(b,Rl);var v=(-s-(y+b))/(3*o);v>=0&&v<=1&&(a[d++]=v)}else{var w=(2*f*s-3*o*c)/(2*ei(f*f*f)),S=Math.acos(w)/3,T=ei(f),C=Math.cos(S),v=(-s-2*T*C)/(3*o),m=(-s+T*(C+xm*Math.sin(S)))/(3*o),x=(-s+T*(C-xm*Math.sin(S)))/(3*o);v>=0&&v<=1&&(a[d++]=v),m>=0&&m<=1&&(a[d++]=m),x>=0&&x<=1&&(a[d++]=x)}}return d}function c1(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Kn(o)){if(u1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Kn(f))i[0]=-a/(2*o);else if(f>0){var c=ei(f),u=(-a+c)/(2*o),h=(-a-c)/(2*o);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function Qu(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,c=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=n}function iM(t,e,r,n,i,a,o,s,l,u,f){var c,h=.005,d=1/0,v,p,g,m;qr[0]=l,qr[1]=u;for(var _=0;_<1;_+=.05)_r[0]=Ft(t,r,i,o,_),_r[1]=Ft(e,n,a,s,_),g=qi(qr,_r),g<d&&(c=_,d=g);d=1/0;for(var y=0;y<32&&!(h<l1);y++)v=c-h,p=c+h,_r[0]=Ft(t,r,i,o,v),_r[1]=Ft(e,n,a,s,v),g=qi(_r,qr),v>=0&&g<d?(c=v,d=g):(no[0]=Ft(t,r,i,o,p),no[1]=Ft(e,n,a,s,p),m=qi(no,qr),p<=1&&m<d?(c=p,d=m):h*=.5);return ei(d)}function aM(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,c=0,h=1/l,d=1;d<=l;d++){var v=d*h,p=Ft(t,r,i,o,v),g=Ft(e,n,a,s,v),m=p-u,_=g-f;c+=Math.sqrt(m*m+_*_),u=p,f=g}return c}function Vt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Dm(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function oM(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Kn(a)){if(u1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Kn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var c=ei(f),u=(-o+c)/(2*a),h=(-o-c)/(2*a);u>=0&&u<=1&&(i[l++]=u),h>=0&&h<=1&&(i[l++]=h)}}return l}function h1(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function Fs(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function sM(t,e,r,n,i,a,o,s,l){var u,f=.005,c=1/0;qr[0]=o,qr[1]=s;for(var h=0;h<1;h+=.05){_r[0]=Vt(t,r,i,h),_r[1]=Vt(e,n,a,h);var d=qi(qr,_r);d<c&&(u=h,c=d)}c=1/0;for(var v=0;v<32&&!(f<l1);v++){var p=u-f,g=u+f;_r[0]=Vt(t,r,i,p),_r[1]=Vt(e,n,a,p);var d=qi(_r,qr);if(p>=0&&d<c)u=p,c=d;else{no[0]=Vt(t,r,i,g),no[1]=Vt(e,n,a,g);var m=qi(no,qr);g<=1&&m<c?(u=g,c=m):f*=.5}}return ei(c)}function lM(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var h=c*f,d=Vt(t,r,i,h),v=Vt(e,n,a,h),p=d-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=d,l=v}return u}var uM=/cubic-bezier\(([0-9,\.e ]+)\)/;function d1(t){var e=t&&uM.exec(t);if(e){var r=e[1].split(","),n=+jr(r[0]),i=+jr(r[1]),a=+jr(r[2]),o=+jr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:f1(0,n,a,1,l,s)&&Ft(0,i,o,1,s[0])}}}var fM=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ut,this.ondestroy=e.ondestroy||ut,this.onrestart=e.onrestart||ut,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Ie(e)?e:ms[e]||d1(e)},t}(),v1=function(){function t(e){this.value=e}return t}(),cM=function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new v1(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),cl=function(){function t(e){this._list=new cM,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new v1(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Im={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 ti(t){return t=Math.round(t),t<0?0:t>255?255:t}function hM(t){return t=Math.round(t),t<0?0:t>360?360:t}function Ju(t){return t<0?0:t>1?1:t}function Oc(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ti(parseFloat(e)/100*255):ti(parseInt(e,10))}function ji(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Ju(parseFloat(e)/100):Ju(parseFloat(e))}function kc(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function Ol(t,e,r){return t+(e-t)*r}function pr(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function kd(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p1=new cl(20),kl=null;function _a(t,e){kl&&kd(kl,e),kl=p1.put(t,kl||e.slice())}function Jr(t,e){if(t){e=e||[];var r=p1.get(t);if(r)return kd(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in Im)return kd(e,Im[n]),_a(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){pr(e,0,0,0,1);return}return pr(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),_a(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){pr(e,0,0,0,1);return}return pr(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),_a(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){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?pr(e,+u[0],+u[1],+u[2],1):pr(e,0,0,0,1);f=ji(u.pop());case"rgb":if(u.length>=3)return pr(e,Oc(u[0]),Oc(u[1]),Oc(u[2]),u.length===3?f:ji(u[3])),_a(t,e),e;pr(e,0,0,0,1);return;case"hsla":if(u.length!==4){pr(e,0,0,0,1);return}return u[3]=ji(u[3]),Nd(u,e),_a(t,e),e;case"hsl":if(u.length!==3){pr(e,0,0,0,1);return}return Nd(u,e),_a(t,e),e;default:return}}pr(e,0,0,0,1)}}function Nd(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=ji(t[1]),i=ji(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],pr(e,ti(kc(o,a,r+1/3)*255),ti(kc(o,a,r)*255),ti(kc(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function dM(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,h=((a-n)/6+o/2)/o;e===a?l=h-c:r===a?l=1/3+f-h:n===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return t[3]!=null&&d.push(t[3]),d}}function Am(t,e){var r=Jr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ri(r,r.length===4?"rgba":"rgb")}}function Nc(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){r=r||[];var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return r[0]=ti(Ol(o[0],s[0],l)),r[1]=ti(Ol(o[1],s[1],l)),r[2]=ti(Ol(o[2],s[2],l)),r[3]=Ju(Ol(o[3],s[3],l)),r}}function ys(t,e,r,n){var i=Jr(t);if(t)return i=dM(i),e!=null&&(i[0]=hM(e)),r!=null&&(i[1]=ji(r)),n!=null&&(i[2]=ji(n)),ri(Nd(i),"rgba")}function g1(t,e){var r=Jr(t);if(r&&e!=null)return r[3]=Ju(e),ri(r,"rgba")}function ri(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function ef(t,e){var r=Jr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Mm=new cl(100);function Em(t){if(ae(t)){var e=Mm.get(t);return e||(e=Am(t,-.1),Mm.put(t,e)),e}else if(Uf(t)){var r=$({},t);return r.colorStops=Me(t.colorStops,function(n){return{offset:n.offset,color:Am(n.color,-.1)}}),r}return t}function vM(t){return t.type==="linear"}function pM(t){return t.type==="radial"}(function(){return he.hasGlobalWindow&&Ie(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var Bd=Array.prototype.slice;function vn(t,e,r){return(e-t)*r+t}function Bc(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=vn(e[a],r[a],n);return t}function gM(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=vn(e[o][s],r[o][s],n)}return t}function Nl(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function Lm(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function mM(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function yM(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Bd.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function bu(t){if(er(t)){var e=t.length;if(er(t[0])){for(var r=[],n=0;n<e;n++)r.push(Bd.call(t[n]));return r}return Bd.call(t)}return t}function wu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function _M(t){return er(t&&t[0])?2:1}var Bl=0,Su=1,m1=2,rs=3,Fd=4,Vd=5,Pm=6;function Rm(t){return t===Fd||t===Vd}function Fl(t){return t===Su||t===m1}var ko=[0,0,0,0],bM=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Pm,l=r;if(er(r)){var u=_M(r);s=u,(u===1&&!et(r[0])||u===2&&!et(r[0][0]))&&(o=!0)}else if(et(r)&&!CA(r))s=Bl;else if(ae(r))if(!isNaN(+r))s=Bl;else{var f=Jr(r);f&&(l=f,s=rs)}else if(Uf(r)){var c=$({},l);c.colorStops=Me(r.colorStops,function(d){return{offset:d.offset,color:Jr(d.color)}}),vM(r)?s=Fd:pM(r)&&(s=Vd),l=c}a===0?this.valType=s:(s!==this.valType||s===Pm)&&(o=!0),this.discrete=this.discrete||o;var h={time:e,value:l,rawValue:r,percent:0};return n&&(h.easing=n,h.easingFunc=Ie(n)?n:ms[n]||d1(n)),i.push(h),h},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Fl(i),u=Rm(i),f=0;f<a;f++){var c=n[f],h=c.value,d=o.value;c.percent=c.time/e,s||(l&&f!==a-1?yM(h,d,i):u&&mM(h.colorStops,d.colorStops))}if(!s&&i!==Vd&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,f=0;f<a;f++)i===Bl?n[f].additiveValue=n[f].value-v:i===rs?n[f].additiveValue=Nl([],n[f].value,v,-1):Fl(i)&&(n[f].additiveValue=i===Su?Nl([],n[f].value,v,-1):Lm([],n[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===rs,f,c=this._lastFr,h=Math.min,d,v;if(s===1)d=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var p=h(c+1,s-1);for(f=p;f>=0&&!(o[f].percent<=r);f--);f=h(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=h(f-1,s-2)}v=o[f+1],d=o[f]}if(d&&v){this._lastFr=f,this._lastFrP=r;var g=v.percent-d.percent,m=g===0?1:h((r-d.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var _=n?this._additiveValue:u?ko:e[l];if((Fl(a)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)e[l]=m<1?d.rawValue:v.rawValue;else if(Fl(a))a===Su?Bc(_,d[i],v[i],m):gM(_,d[i],v[i],m);else if(Rm(a)){var y=d[i],b=v[i],w=a===Fd;e[l]={type:w?"linear":"radial",x:vn(y.x,b.x,m),y:vn(y.y,b.y,m),colorStops:Me(y.colorStops,function(T,C){var x=b.colorStops[C];return{offset:vn(T.offset,x.offset,m),color:wu(Bc([],T.color,x.color,m))}}),global:b.global},w?(e[l].x2=vn(y.x2,b.x2,m),e[l].y2=vn(y.y2,b.y2,m)):e[l].r=vn(y.r,b.r,m)}else if(u)Bc(_,d[i],v[i],m),n||(e[l]=wu(_));else{var S=vn(d[i],v[i],m);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===Bl?e[n]=e[n]+i:r===rs?(Jr(e[n],ko),Nl(ko,ko,i,1),e[n]=wu(ko)):r===Su?Nl(e[n],e[n],i,1):r===m1&&Lm(e[n],e[n],i,1)},t}(),bp=function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){dp("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Je(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new bM(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,h=c[c.length-1];u=h&&h.value,f.valType===rs&&u&&(u=wu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,bu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,bu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var h=new fM({life:i,loop:this._loop,delay:this._delay||0,onframe:function(d){r._started=2;var v=r._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,d);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,d)},ondestroy:function(){r._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),e&&h.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Me(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=bu(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Je(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();function Ga(){return new Date().getTime()}var wM=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ga()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(ju(n),!r._paused&&r.update())}ju(n)},e.prototype.start=function(){this._running||(this._time=Ga(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ga(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ga()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new bp(r,n.loop);return this.addAnimator(i),i},e}(Vr),SM=300,Fc=he.domSupported,Vc=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Me(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}}(),Om={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},km=!1;function Hd(t){var e=t.pointerType;return e==="pen"||e==="touch"}function TM(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Hc(t){t&&(t.zrByTouch=!0)}function xM(t,e){return gr(t.dom,new CM(t,e),!0)}function y1(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var CM=function(){function t(e,r){this.stopPropagation=ut,this.stopImmediatePropagation=ut,this.preventDefault=ut,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t}(),Lr={mousedown:function(t){t=gr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=gr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=gr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=gr(this.dom,t);var e=t.toElement||t.relatedTarget;y1(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){km=!0,t=gr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){km||(t=gr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=gr(this.dom,t),Hc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lr.mousemove.call(this,t),Lr.mousedown.call(this,t)},touchmove:function(t){t=gr(this.dom,t),Hc(t),this.handler.processGesture(t,"change"),Lr.mousemove.call(this,t)},touchend:function(t){t=gr(this.dom,t),Hc(t),this.handler.processGesture(t,"end"),Lr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<SM&&Lr.click.call(this,t)},pointerdown:function(t){Lr.mousedown.call(this,t)},pointermove:function(t){Hd(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},pointerout:function(t){Hd(t)||Lr.mouseout.call(this,t)}};L(["click","dblclick","contextmenu"],function(t){Lr[t]=function(e){e=gr(this.dom,e),this.trigger(t,e)}});var zd={pointermove:function(t){Hd(t)||zd.mousemove.call(this,t)},pointerup:function(t){zd.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function DM(t,e){var r=e.domHandlers;he.pointerEventsSupported?L(Vc.pointer,function(n){Tu(e,n,function(i){r[n].call(t,i)})}):(he.touchEventsSupported&&L(Vc.touch,function(n){Tu(e,n,function(i){r[n].call(t,i),TM(e)})}),L(Vc.mouse,function(n){Tu(e,n,function(i){i=gp(i),e.touching||r[n].call(t,i)})}))}function IM(t,e){he.pointerEventsSupported?L(Om.pointer,r):he.touchEventsSupported||L(Om.mouse,r);function r(n){function i(a){a=gp(a),y1(t,a.target)||(a=xM(t,a),e.domHandlers[n].call(t,a))}Tu(e,n,i,{capture:!0})}}function Tu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,WA(t.domTarget,e,r,n)}function zc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&YA(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Nm=function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t}(),AM=function(t){re(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Nm(r,Lr),Fc&&(i._globalHandlerScope=new Nm(document,zd)),DM(i,i._localHandlerScope),i}return e.prototype.dispose=function(){zc(this._localHandlerScope),Fc&&zc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Fc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?IM(this,n):zc(n)}},e}(Vr),_1=1;he.hasGlobalWindow&&(_1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var tf=_1,$d=.4,Ud="#333",Gd="#ccc",MM="#eee",Bm=mp,Fm=5e-5;function gi(t){return t>Fm||t<-Fm}var mi=[],ba=[],$c=Jn(),Uc=Math.abs,Vi=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return gi(this.rotation)||gi(this.x)||gi(this.y)||gi(this.scaleX-1)||gi(this.scaleY-1)||gi(this.skewX)||gi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(Bm(n),this.invTransform=null);return}n=n||Jn(),r?this.getLocalTransform(n):Bm(n),e&&(r?ro(n,e,n):r1(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(mi);var n=mi[0]<0?-1:1,i=mi[1]<0?-1:1,a=((mi[0]-n)*r+n)/mi[0]||0,o=((mi[1]-i)*r+i)/mi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Jn(),_p(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Jn(),ro(ba,e.invTransform,r),r=ba);var n=this.originX,i=this.originY;(n||i)&&($c[4]=n,$c[5]=i,ro(ba,r,$c),ba[4]-=n,ba[5]-=i,r=ba),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&fr(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&fr(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Uc(e[0]-1)>1e-10&&Uc(e[3]-1)>1e-10?Math.sqrt(Uc(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){EM(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,h=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-h*p*o,r[5]=-p*o-d*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=d*a,r[2]=h*o,u&&yp(r,r,u),r[4]+=n+f,r[5]+=i+c,r},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Vs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function EM(t,e){for(var r=0;r<Vs.length;r++){var n=Vs[r];t[n]=e[n]}}var Vm={};function cr(t,e){e=e||na;var r=Vm[e];r||(r=Vm[e]=new cl(500));var n=r.get(t);return n==null&&(n=bo.measureText(t,e).width,r.put(t,n)),n}function Hm(t,e,r,n){var i=cr(t,e),a=wp(e),o=ns(0,i,r),s=Ha(0,a,n),l=new Ae(o,s,i,a);return l}function b1(t,e,r,n){var i=((t||"")+"").split(`
36
36
  `),a=i.length;if(a===1)return Hm(i[0],e,r,n);for(var o=new Ae(0,0,0,0),s=0;s<i.length;s++){var l=Hm(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function ns(t,e,r){return r==="right"?t-=e:r==="center"&&(t-=e/2),t}function Ha(t,e,r){return r==="middle"?t-=e/2:r==="bottom"&&(t-=e),t}function wp(t){return cr("国",t)}function Hs(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function w1(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",c="top";if(n instanceof Array)l+=Hs(n[0],r.width),u+=Hs(n[1],r.height),f=null,c=null;else switch(n){case"left":l-=i,u+=s,f="right",c="middle";break;case"right":l+=i+o,u+=s,c="middle";break;case"top":l+=o/2,u-=i,f="center",c="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=i,u+=s,c="middle";break;case"insideRight":l+=o-i,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",c="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,c="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",c="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var Gc="__zr_normal__",Wc=Vs.concat(["ignore"]),LM=wo(Vs,function(t,e){return t[e]=!0,t},{ignore:!1}),wa={},PM=new Ae(0,0,0,0),Yf=function(){function t(e){this.id=Zw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var f=PM;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wa,n,f):w1(wa,n,f),a.x=wa.x,a.y=wa.y,o=wa.align,s=wa.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var h=void 0,d=void 0;c==="center"?(h=f.width*.5,d=f.height*.5):(h=Hs(c[0],f.width),d=Hs(c[1],f.height)),u=!0,a.originX=-a.x+h+(i?0:f.x),a.originY=-a.y+d+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,_=void 0,y=void 0;p&&this.canBeInsideText()?(m=n.insideFill,_=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,_=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(m),y=!0)),m=m||"#000",(m!==g.fill||_!==g.stroke||y!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=_,g.autoStroke=y,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=sr,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gd:Ud},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Jr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ri(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},$(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(se(e))for(var n=e,i=Je(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Gc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Wc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Gc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Gc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ke(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){dp("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,h=this._textGuide;return c&&c.useState(e,r,n,f),h&&h.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~sr),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var c=i[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,r,h),g&&g.useStates(e,r,h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~sr)}},t.prototype.isSilent=function(){for(var e=this.silent,r=this.parent;!e&&r;){if(r.silent){e=!0;break}r=r.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=ke(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=ke(i,e),o=ke(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];$(r,a),a.textConfig&&(n=n||{},$(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=$({},i?this.textConfig:n.textConfig),$(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Wc.length;f++){var c=Wc[f],h=a&&LM[c];r&&r[c]!=null?h?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(h?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!a)for(var f=0;f<this.animators.length;f++){var d=this.animators[f],v=d.targetName;d.getLoop()||d.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Vi,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),$(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=sr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this,a=new bp(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ke(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){Yc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){Yc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=Yc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=sr;function r(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();Fr(Yf,Vr);Fr(Yf,Vi);function Yc(t,e,r,n,i){r=r||{};var a=[];S1(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.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(),a.length>0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var h=0;h<a.length;h++){var d=a[h];f&&d.done(f),c&&d.aborted(c),r.force&&d.duration(r.duration),d.start(r.easing)}return a}function Xc(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function RM(t){return er(t[0])}function OM(t,e,r){if(er(e[r]))if(er(t[r])||(t[r]=[]),tr(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Xc(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(RM(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Xc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Xc(a,i,o);a.length=i.length}else t[r]=e[r]}function kM(t,e){return t===e||er(t)&&er(e)&&NM(t,e)}function NM(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function S1(t,e,r,n,i,a,o,s){for(var l=Je(n),u=i.duration,f=i.delay,c=i.additive,h=i.setToFinal,d=!se(a),v=t.animators,p=[],g=0;g<l.length;g++){var m=l[g],_=n[m];if(_!=null&&r[m]!=null&&(d||a[m]))if(se(_)&&!er(_)&&!Uf(_)){if(e){s||(r[m]=_,t.updateDuringAnimation(e));continue}S1(t,m,r[m],_,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=_,t.updateDuringAnimation(e),p.push(m))}var y=p.length;if(!c&&y)for(var b=0;b<v.length;b++){var w=v[b];if(w.targetName===e){var S=w.stopTracks(p);if(S){var T=ke(v,w);v.splice(T,1)}}}if(i.force||(p=or(p,function(A){return!kM(n[A],r[A])}),y=p.length),y>0||i.force&&!o.length){var C=void 0,x=void 0,D=void 0;if(s){x={},h&&(C={});for(var b=0;b<y;b++){var m=p[b];x[m]=r[m],h?C[m]=n[m]:r[m]=n[m]}}else if(h){D={};for(var b=0;b<y;b++){var m=p[b];D[m]=bu(r[m]),OM(r,n,m)}}var w=new bp(r,!1,!1,c?or(v,function(M){return M.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),h&&C&&w.whenWithKeys(0,C,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(u??500,s?x:n,p).delay(f||0),t.addAnimator(w,e),o.push(w)}}var ft=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=ke(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=ke(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new Ae(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(Ae.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(Yf);ft.prototype.type="group";/*!
37
37
  * ZRender, a high performance 2d drawing library.
38
38
  *
@@ -47,17 +47,17 @@ PERFORMANCE OF THIS SOFTWARE.
47
47
  `):[];var d=h.length*s,v=ye(e.height,d);if(d>v&&u){var p=Math.floor(v/s);f=f||h.length>p,h=h.slice(0,p)}if(t&&a&&c!=null)for(var g=k1(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},_=0;_<h.length;_++)N1(m,h[_],g),h[_]=m.textLine,f=f||m.isTruncated;for(var y=v,b=0,_=0;_<h.length;_++)b=Math.max(cr(h[_],i),b);c==null&&(c=b);var w=b;return n&&(y+=n[0]+n[2],w+=n[1]+n[3],c+=n[1]+n[3]),l&&(w=c),{lines:h,height:v,outerWidth:w,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c,isTruncated:f}}var wE=function(){function t(){}return t}(),Km=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),SE=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function TE(t,e){var r=new SE;if(t!=null&&(t+=""),!t)return r;for(var n=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=qc.lastIndex=0,l;(l=qc.exec(t))!=null;){var u=l.index;u>s&&jc(r,t.substring(s,u),e,o),jc(r,l[2],e,o,l[1]),s=qc.lastIndex}s<t.length&&jc(r,t.substring(s,t.length),e,o);var f=[],c=0,h=0,d=e.padding,v=a==="truncate",p=e.lineOverflow==="truncate",g={};function m(He,Xe,_e){He.width=Xe,He.lineHeight=_e,c+=_e,h=Math.max(h,Xe)}e:for(var _=0;_<r.lines.length;_++){for(var y=r.lines[_],b=0,w=0,S=0;S<y.tokens.length;S++){var T=y.tokens[S],C=T.styleName&&e.rich[T.styleName]||{},x=T.textPadding=C.padding,D=x?x[1]+x[3]:0,A=T.font=C.font||e.font;T.contentHeight=wp(A);var M=ye(C.height,T.contentHeight);if(T.innerHeight=M,x&&(M+=x[0]+x[2]),T.height=M,T.lineHeight=Ki(C.lineHeight,e.lineHeight,M),T.align=C&&C.align||e.align,T.verticalAlign=C&&C.verticalAlign||"middle",p&&i!=null&&c+T.lineHeight>i){var R=r.lines.length;S>0?(y.tokens=y.tokens.slice(0,S),m(y,w,b),r.lines=r.lines.slice(0,_+1)):r.lines=r.lines.slice(0,_),r.isTruncated=r.isTruncated||r.lines.length<R;break e}var k=C.width,H=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")T.percentWidth=k,f.push(T),T.contentWidth=cr(T.text,A);else{if(H){var N=C.backgroundColor,q=N&&N.image;q&&(q=mE(q),Kf(q)&&(T.width=Math.max(T.width,q.width*M/q.height)))}var U=v&&n!=null?n-w:null;U!=null&&U<T.width?!H||U<D?(T.text="",T.width=T.contentWidth=0):(yE(g,T.text,U-D,A,e.ellipsis,{minChar:e.truncateMinChar}),T.text=g.text,r.isTruncated=r.isTruncated||g.isTruncated,T.width=T.contentWidth=cr(T.text,A)):T.contentWidth=cr(T.text,A)}T.width+=D,w+=T.width,C&&(b=Math.max(b,T.lineHeight))}m(y,w,b)}r.outerWidth=r.width=ye(n,h),r.outerHeight=r.height=ye(i,c),r.contentHeight=c,r.contentWidth=h,d&&(r.outerWidth+=d[1]+d[3],r.outerHeight+=d[0]+d[2]);for(var _=0;_<f.length;_++){var T=f[_],ue=T.percentWidth;T.width=parseInt(ue,10)/100*r.width}return r}function jc(t,e,r,n,i){var a=e==="",o=i&&r.rich[i]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(n){var h=o.padding,d=h?h[1]+h[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Hs(o.width,n.width)+d;s.length>0&&v+n.accumWidth>n.width&&(f=e.split(`
48
48
  `),u=!0),n.accumWidth=v}else{var p=B1(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+d,c=p.linesWidths,f=p.lines}}else f=e.split(`
49
49
  `);for(var g=0;g<f.length;g++){var m=f[g],_=new wE;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=c?c[g]:cr(m,l),!g&&!u){var y=(s[s.length-1]||(s[0]=new Km)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=_:(m||!b||a)&&y.push(_)}else s.push(new Km([_]))}}function xE(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var CE=wo(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function DE(t){return xE(t)?!!CE[t]:!0}function B1(t,e,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,c=0;c<t.length;c++){var h=t.charAt(c);if(h===`
50
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=cr(h,e),v=n?!1:!DE(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Xd="__zr_style_"+Math.round(Math.random()*10),Zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zi[Xd]=!0;var qm=["z","z2","invisible"],IE=["invisible"],To=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Je(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&AE(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ae(0,0,0,0)),n?Ae.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ae(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:$(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ts,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ts)},e.prototype.styleUpdated=function(){this.__dirty&=~ts},e.prototype.createStyle=function(r){return Gf(Zi,r)},e.prototype.useStyle=function(r){r[Xd]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Xd]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,qm)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Je(f),h=0;h<c.length;h++){var d=c[h];d in u&&(u[d]=u[d],this.style[d]=f[d])}for(var v=Je(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?IE:qm,h=0;h<p.length;h++){var d=p[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return $(r,n),r},e.prototype.getAnimationStyleProps=function(){return qf},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=sr|ts}(),e}(Yf),Zc=new Ae(0,0,0,0),Qc=new Ae(0,0,0,0);function AE(t,e,r){return Zc.copy(t.getBoundingRect()),t.transform&&Zc.applyTransform(t.transform),Qc.width=e,Qc.height=r,!Zc.intersect(Qc)}var qt=Math.min,jt=Math.max,Jc=Math.sin,eh=Math.cos,_i=Math.PI*2,Vl=ca(),Hl=ca(),zl=ca();function ME(t,e,r){if(t.length!==0){for(var n=t[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],i=qt(i,n[0]),a=jt(a,n[0]),o=qt(o,n[1]),s=jt(s,n[1]);e[0]=i,e[1]=o,r[0]=a,r[1]=s}}function jm(t,e,r,n,i,a){i[0]=qt(t,r),i[1]=qt(e,n),a[0]=jt(t,r),a[1]=jt(e,n)}var Zm=[],Qm=[];function EE(t,e,r,n,i,a,o,s,l,u){var f=c1,c=Ft,h=f(t,r,i,o,Zm);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=c(t,r,i,o,Zm[d]);l[0]=qt(v,l[0]),u[0]=jt(v,u[0])}h=f(e,n,a,s,Qm);for(var d=0;d<h;d++){var p=c(e,n,a,s,Qm[d]);l[1]=qt(p,l[1]),u[1]=jt(p,u[1])}l[0]=qt(t,l[0]),u[0]=jt(t,u[0]),l[0]=qt(o,l[0]),u[0]=jt(o,u[0]),l[1]=qt(e,l[1]),u[1]=jt(e,u[1]),l[1]=qt(s,l[1]),u[1]=jt(s,u[1])}function LE(t,e,r,n,i,a,o,s){var l=h1,u=Vt,f=jt(qt(l(t,r,i),1),0),c=jt(qt(l(e,n,a),1),0),h=u(t,r,i,f),d=u(e,n,a,c);o[0]=qt(t,i,h),o[1]=qt(e,a,d),s[0]=jt(t,i,h),s[1]=jt(e,a,d)}function PE(t,e,r,n,i,a,o,s,l){var u=$a,f=Ua,c=Math.abs(i-a);if(c%_i<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Vl[0]=eh(i)*r+t,Vl[1]=Jc(i)*n+e,Hl[0]=eh(a)*r+t,Hl[1]=Jc(a)*n+e,u(s,Vl,Hl),f(l,Vl,Hl),i=i%_i,i<0&&(i=i+_i),a=a%_i,a<0&&(a=a+_i),i>a&&!o?a+=_i:i<a&&o&&(i+=_i),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(zl[0]=eh(d)*r+t,zl[1]=Jc(d)*n+e,u(s,zl,s),f(l,zl,l))}var Re={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bi=[],wi=[],$r=[],Rn=[],Ur=[],Gr=[],th=Math.min,rh=Math.max,Si=Math.cos,Ti=Math.sin,un=Math.abs,Kd=Math.PI,Hn=Kd*2,nh=typeof Float32Array<"u",No=[];function ih(t){var e=Math.round(t/Kd*1e8)/1e8;return e%2*Kd}function RE(t,e){var r=ih(t[0]);r<0&&(r+=Hn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Hn?i=r+Hn:e&&r-i>=Hn?i=r-Hn:!e&&r>i?i=r+(Hn-ih(r-i)):e&&r<i&&(i=r-(Hn-ih(i-r))),t[0]=r,t[1]=i}var fo=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=un(n/tf/e)||0,this._uy=un(n/tf/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Re.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=un(e-this._xi),i=un(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Re.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Re.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Re.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),No[0]=i,No[1]=a,RE(No,o),i=No[0],a=No[1];var s=a-i;return this.addData(Re.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Si(a)*n+e,this._yi=Ti(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Re.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Re.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&nh&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();nh&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},t.prototype.addData=function(e,r,n,i,a,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]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,nh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){$r[0]=$r[1]=Ur[0]=Ur[1]=Number.MAX_VALUE,Rn[0]=Rn[1]=Gr[0]=Gr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Re.M:r=i=e[o++],n=a=e[o++],Ur[0]=i,Ur[1]=a,Gr[0]=i,Gr[1]=a;break;case Re.L:jm(r,n,e[o],e[o+1],Ur,Gr),r=e[o++],n=e[o++];break;case Re.C:EE(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ur,Gr),r=e[o++],n=e[o++];break;case Re.Q:LE(r,n,e[o++],e[o++],e[o],e[o+1],Ur,Gr),r=e[o++],n=e[o++];break;case Re.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],d=e[o++],v=e[o++]+d;o+=1;var p=!e[o++];l&&(i=Si(d)*c+u,a=Ti(d)*h+f),PE(u,f,c,h,d,v,p,Ur,Gr),r=Si(v)*c+u,n=Ti(v)*h+f;break;case Re.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];jm(i,a,i+g,a+m,Ur,Gr);break;case Re.Z:r=i,n=a;break}$a($r,$r,Ur),Ua(Rn,Rn,Gr)}return o===0&&($r[0]=$r[1]=Rn[0]=Rn[1]=0),new Ae($r[0],$r[1],Rn[0]-$r[0],Rn[1]-$r[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var d=e[h++],v=h===1;v&&(a=e[h],o=e[h+1],s=a,l=o);var p=-1;switch(d){case Re.M:a=s=e[h++],o=l=e[h++];break;case Re.L:{var g=e[h++],m=e[h++],_=g-a,y=m-o;(un(_)>n||un(y)>i||h===r-1)&&(p=Math.sqrt(_*_+y*y),a=g,o=m);break}case Re.C:{var b=e[h++],w=e[h++],g=e[h++],m=e[h++],S=e[h++],T=e[h++];p=aM(a,o,b,w,g,m,S,T,10),a=S,o=T;break}case Re.Q:{var b=e[h++],w=e[h++],g=e[h++],m=e[h++];p=lM(a,o,b,w,g,m,10),a=g,o=m;break}case Re.A:var C=e[h++],x=e[h++],D=e[h++],A=e[h++],M=e[h++],R=e[h++],k=R+M;h+=1,v&&(s=Si(M)*D+C,l=Ti(M)*A+x),p=rh(D,A)*th(Hn,Math.abs(R)),a=Si(k)*D+C,o=Ti(k)*A+x;break;case Re.R:{s=a=e[h++],l=o=e[h++];var H=e[h++],N=e[h++];p=H*2+N*2;break}case Re.Z:{var _=s-a,y=l-o;p=Math.sqrt(_*_+y*y),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,d=r<1,v,p,g=0,m=0,_,y=0,b,w;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,_=r*p,!_)))e:for(var S=0;S<o;){var T=n[S++],C=S===1;switch(C&&(u=n[S],f=n[S+1],s=u,l=f),T!==Re.L&&y>0&&(e.lineTo(b,w),y=0),T){case Re.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Re.L:{c=n[S++],h=n[S++];var x=un(c-u),D=un(h-f);if(x>i||D>a){if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;e.lineTo(u*(1-M)+c*M,f*(1-M)+h*M);break e}g+=A}e.lineTo(c,h),u=c,f=h,y=0}else{var R=x*x+D*D;R>y&&(b=c,w=h,y=R)}break}case Re.C:{var k=n[S++],H=n[S++],N=n[S++],q=n[S++],U=n[S++],ue=n[S++];if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;Qu(u,k,N,U,M,bi),Qu(f,H,q,ue,M,wi),e.bezierCurveTo(bi[1],wi[1],bi[2],wi[2],bi[3],wi[3]);break e}g+=A}e.bezierCurveTo(k,H,N,q,U,ue),u=U,f=ue;break}case Re.Q:{var k=n[S++],H=n[S++],N=n[S++],q=n[S++];if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;Fs(u,k,N,M,bi),Fs(f,H,q,M,wi),e.quadraticCurveTo(bi[1],wi[1],bi[2],wi[2]);break e}g+=A}e.quadraticCurveTo(k,H,N,q),u=N,f=q;break}case Re.A:var He=n[S++],Xe=n[S++],_e=n[S++],ct=n[S++],mt=n[S++],zt=n[S++],Lt=n[S++],$t=!n[S++],be=_e>ct?_e:ct,ne=un(_e-ct)>.001,ve=mt+zt,K=!1;if(d){var A=v[m++];g+A>_&&(ve=mt+zt*(_-g)/A,K=!0),g+=A}if(ne&&e.ellipse?e.ellipse(He,Xe,_e,ct,Lt,mt,ve,$t):e.arc(He,Xe,be,mt,ve,$t),K)break e;C&&(s=Si(mt)*_e+He,l=Ti(mt)*ct+Xe),u=Si(ve)*_e+He,f=Ti(ve)*ct+Xe;break;case Re.R:s=u=n[S],l=f=n[S+1],c=n[S++],h=n[S++];var J=n[S++],I=n[S++];if(d){var A=v[m++];if(g+A>_){var E=_-g;e.moveTo(c,h),e.lineTo(c+th(E,J),h),E-=J,E>0&&e.lineTo(c+J,h+th(E,I)),E-=I,E>0&&e.lineTo(c+rh(J-E,0),h+I),E-=J,E>0&&e.lineTo(c,h+rh(I-E,0));break e}g+=A}e.rect(c,h,J,I);break;case Re.Z:if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;e.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break e}g+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Re,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Sa(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function OE(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=iM(t,e,r,n,i,a,o,s,u,f);return h<=c/2}function kE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=sM(t,e,r,n,i,a,s,l);return f<=u/2}var Jm=Math.PI*2;function $l(t){return t%=Jm,t<0&&(t+=Jm),t}var Bo=Math.PI*2;function NE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Bo<1e-4)return!0;if(a){var c=n;n=$l(i),i=$l(c)}else n=$l(n),i=$l(i);n>i&&(i+=Bo);var h=Math.atan2(l,s);return h<0&&(h+=Bo),h>=n&&h<=i||h+Bo>=n&&h+Bo<=i}function xi(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var On=fo.CMD,Ci=Math.PI*2,BE=1e-4;function FE(t,e){return Math.abs(t-e)<BE}var Ot=[-1,-1,-1],yr=[-1,-1];function VE(){var t=yr[0];yr[0]=yr[1],yr[1]=t}function HE(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=f1(e,n,a,s,u,Ot);if(f===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,p=0;p<f;p++){var g=Ot[p],m=g===0||g===1?.5:1,_=Ft(t,r,i,o,g);_<l||(h<0&&(h=c1(e,n,a,s,yr),yr[1]<yr[0]&&h>1&&VE(),d=Ft(e,n,a,s,yr[0]),h>1&&(v=Ft(e,n,a,s,yr[1]))),h===2?g<yr[0]?c+=d<e?m:-m:g<yr[1]?c+=v<d?m:-m:c+=s<v?m:-m:g<yr[0]?c+=d<e?m:-m:c+=s<d?m:-m)}return c}function zE(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=oM(e,n,a,s,Ot);if(l===0)return 0;var u=h1(e,n,a);if(u>=0&&u<=1){for(var f=0,c=Vt(e,n,a,u),h=0;h<l;h++){var d=Ot[h]===0||Ot[h]===1?.5:1,v=Vt(t,r,i,Ot[h]);v<o||(Ot[h]<u?f+=c<e?d:-d:f+=a<c?d:-d)}return f}else{var d=Ot[0]===0||Ot[0]===1?.5:1,v=Vt(t,r,i,Ot[0]);return v<o?0:a<e?d:-d}}function $E(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Ot[0]=-l,Ot[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ci-1e-4){n=0,i=Ci;var f=a?1:-1;return o>=Ot[0]+t&&o<=Ot[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ci,i+=Ci);for(var h=0,d=0;d<2;d++){var v=Ot[d];if(v+t>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ci+p),(p>=n&&p<=i||p+Ci>=n&&p+Ci<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function F1(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,h,d,v=0;v<o;){var p=a[v++],g=v===1;switch(p===On.M&&v>1&&(r||(s+=xi(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case On.M:f=a[v++],c=a[v++],l=f,u=c;break;case On.L:if(r){if(Sa(l,u,a[v],a[v+1],e,n,i))return!0}else s+=xi(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case On.C:if(r){if(OE(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=HE(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case On.Q:if(r){if(kE(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=zE(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case On.A:var m=a[v++],_=a[v++],y=a[v++],b=a[v++],w=a[v++],S=a[v++];v+=1;var T=!!(1-a[v++]);h=Math.cos(w)*y+m,d=Math.sin(w)*b+_,g?(f=h,c=d):s+=xi(l,u,h,d,n,i);var C=(n-m)*b/y+m;if(r){if(NE(m,_,b,w,w+S,T,e,C,i))return!0}else s+=$E(m,_,b,w,w+S,T,C,i);l=Math.cos(w+S)*y+m,u=Math.sin(w+S)*b+_;break;case On.R:f=l=a[v++],c=u=a[v++];var x=a[v++],D=a[v++];if(h=f+x,d=c+D,r){if(Sa(f,c,h,c,e,n,i)||Sa(h,c,h,d,e,n,i)||Sa(h,d,f,d,e,n,i)||Sa(f,d,f,c,e,n,i))return!0}else s+=xi(h,c,h,d,n,i),s+=xi(f,d,f,c,n,i);break;case On.Z:if(r){if(Sa(l,u,f,c,e,n,i))return!0}else s+=xi(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!FE(u,c)&&(s+=xi(l,u,f,c,n,i)||0),s!==0}function UE(t,e,r){return F1(t,0,!1,e,r)}function GE(t,e,r,n){return F1(t,e,!0,r,n)}var V1=Ke({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zi),WE={style:Ke({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qf.style)},ah=Vs.concat(["invisible","culling","z","z2","zlevel","parent"]),Ye=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<ah.length;++s)i[ah[s]]=this[ah[s]];i.__dirty|=sr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Je(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?$(this.style,s):this.useStyle(s):o==="shape"?$(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ae(r)){var n=ef(r,0);return n>.5?Ud:n>.2?MM:Gd}else if(r)return Gd}return Ud},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ae(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=ef(r,0)<$d;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Va},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new fo(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Va)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);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 r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,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)),GE(s,l/u,r,n)))return!0}if(this.hasFill())return UE(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Va,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:$(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Va)},e.prototype.createStyle=function(r){return Gf(V1,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=$({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=$({},i.shape),$(u,n.shape)):(u=$({},a?this.shape:i.shape),$(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=$({},this.shape);for(var f={},c=Je(u),h=0;h<c.length;h++){var d=c[h];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return WE},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){re(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Se(r.style)},o.prototype.getDefaultShape=function(){return Se(r.shape)},o}(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=sr|ts|Va}(),e}(To),YE=Ke({strokeFirst:!0,font:na,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},V1),af=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Gf(YE,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=b1(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(To);af.prototype.type="tspan";var XE=Ke({x:0,y:0},Zi),KE={style:Ke({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qf.style)};function qE(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var li=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Gf(XE,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=qE(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return KE},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ae(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(To);li.prototype.type="image";function jE(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),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>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Wa=Math.round;function H1(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Wa(n*2)===Wa(i*2)&&(t.x1=t.x2=zi(n,s,!0)),Wa(a*2)===Wa(o*2)&&(t.y1=t.y2=zi(a,s,!0))),t}}function z1(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=zi(n,s,!0),t.y=zi(i,s,!0),t.width=Math.max(zi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(zi(i+o,s,!1)-t.y,o===0?0:1)),t}}function zi(t,e,r){if(!e)return t;var n=Wa(t*2);return(n+Wa(e))%2===0?n/2:(n+(r?1:-1))/2}var ZE=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),QE={},Mt=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ZE},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=z1(QE,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?jE(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ye);Mt.prototype.type="rect";var ey={fill:"#000"},ty=2,JE={style:Ke({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},qf.style)},Et=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ey,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,iL(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Ae(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||ey},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return $(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Je(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},$(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return JE},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||na,i=r.padding,a=ly(r),o=bE(a,r),s=oh(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=r.x||0,g=r.y||0,m=r.align||v.align||"left",_=r.verticalAlign||v.verticalAlign||"top",y=p,b=Ha(g,o.contentHeight,_);if(s||i){var w=ns(p,f,m),S=Ha(g,u,_);s&&this._renderBackground(r,r,w,S,f,u)}b+=d/2,i&&(y=sy(p,m,i),_==="top"?b+=i[0]:_==="bottom"&&(b-=i[2]));for(var T=0,C=!1,x=oy("fill"in r?r.fill:(C=!0,v.fill)),D=ay("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(T=ty,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),R=o.calculatedLineHeight,k=0;k<h.length;k++){var H=this._getOrCreateChild(af),N=H.createStyle();H.useStyle(N),N.text=h[k],N.x=y,N.y=b,N.textAlign=m,N.textBaseline="middle",N.opacity=r.opacity,N.strokeFirst=!0,A&&(N.shadowBlur=r.textShadowBlur||0,N.shadowColor=r.textShadowColor||"transparent",N.shadowOffsetX=r.textShadowOffsetX||0,N.shadowOffsetY=r.textShadowOffsetY||0),N.stroke=D,N.fill=x,D&&(N.lineWidth=r.lineWidth||T,N.lineDash=r.lineDash,N.lineDashOffset=r.lineDashOffset||0),N.font=n,ny(N,r),b+=d,M&&H.setBoundingRect(new Ae(ns(N.x,c,N.textAlign),Ha(N.y,R,N.textBaseline),c,R))}},e.prototype._updateRichTexts=function(){var r=this.style,n=ly(r),i=TE(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign;this.isTruncated=!!i.isTruncated;var v=ns(u,o,h),p=Ha(f,s,d),g=v,m=p;l&&(g+=l[3],m+=l[0]);var _=g+a;oh(r)&&this._renderBackground(r,r,v,p,o,s);for(var y=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var w=i.lines[b],S=w.tokens,T=S.length,C=w.lineHeight,x=w.width,D=0,A=g,M=_,R=T-1,k=void 0;D<T&&(k=S[D],!k.align||k.align==="left");)this._placeToken(k,r,C,m,A,"left",y),x-=k.width,A+=k.width,D++;for(;R>=0&&(k=S[R],k.align==="right");)this._placeToken(k,r,C,m,M,"right",y),x-=k.width,M-=k.width,R--;for(A+=(a-(A-g)-(_-M)-x)/2;D<=R;)k=S[D],this._placeToken(k,r,C,m,A+k.width/2,"center",y),A+=k.width,D++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&oh(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=sy(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(af),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,_=!1,y=0,b=oy("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,m.fill)),w=ay("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!m.autoStroke||_)?(y=ty,m.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,S&&(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=r.font||na,g.opacity=Ki(u.opacity,n.opacity,1),ny(g,u),w&&(g.lineWidth=Ki(u.lineWidth,n.lineWidth,y),g.lineDash=ye(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b);var T=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new Ae(ns(g.x,T,g.textAlign),Ha(g.y,C,g.textBaseline),T,C))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,d=r.borderRadius,v=this,p,g;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Mt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=d,p.dirtyShape()}if(h){var _=p.style;_.fill=l||null,_.fillOpacity=ye(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(li),g.onload=function(){v.dirtyStyle()};var y=g.style;y.image=l.image,y.x=i,y.y=a,y.width=o,y.height=s}if(u&&f){var _=p.style;_.lineWidth=u,_.stroke=f,_.strokeOpacity=ye(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Ki(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nL(r)&&(n=[r.fontStyle,r.fontWeight,rL(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&jr(n)||r.textFont||r.font},e}(To),eL={left:!0,right:1,center:1},tL={top:1,bottom:1,middle:1},ry=["fontStyle","fontWeight","fontSize","fontFamily"];function rL(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?fp+"px":t+"px"}function ny(t,e){for(var r=0;r<ry.length;r++){var n=ry[r],i=e[n];i!=null&&(t[n]=i)}}function nL(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function iL(t){return iy(t),L(t.rich,iy),t}function iy(t){if(t){t.font=Et.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||eL[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||tL[r]?r:"top";var n=t.padding;n&&(t.padding=pp(t.padding))}}function ay(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function oy(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function sy(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function ly(t){var e=t.text;return e!=null&&(e+=""),e}function oh(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Pe=at(),aL=function(t,e,r,n){if(n){var i=Pe(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Pe(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},uy=1,fy={},$1=at(),Dp=at(),U1=0,Ip=1,Ap=2,en=["emphasis","blur","select"],cy=["normal","emphasis","blur","select"],pl=10,oL=9,Qi="highlight",Cu="downplay",bs="select",Du="unselect",ws="toggleSelect";function Ta(t){return t!=null&&t!=="none"}function jf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function G1(t){jf(t,"emphasis",Ap)}function W1(t){t.hoverState===Ap&&jf(t,"normal",U1)}function Mp(t){jf(t,"blur",Ip)}function Y1(t){t.hoverState===Ip&&jf(t,"normal",U1)}function sL(t){t.selected=!0}function lL(t){t.selected=!1}function hy(t,e,r){e(t,r)}function En(t,e,r){hy(t,e,r),t.isGroup&&t.traverse(function(n){hy(n,e,r)})}function uL(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function fL(t,e,r,n){var i=r&&ke(r,"select")>=0,a=!1;if(t instanceof Ye){var o=$1(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ta(s)||Ta(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=$({},n),u=$({},u),u.fill=s):!Ta(u.fill)&&Ta(s)?(a=!0,n=$({},n),u=$({},u),u.fill=Em(s)):!Ta(u.stroke)&&Ta(l)&&(a||(n=$({},n),u=$({},u)),u.stroke=Em(l)),n.style=u}}if(n&&n.z2==null){a||(n=$({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??pl)}return n}function cL(t,e,r){if(r&&r.z2==null){r=$({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??oL)}return r}function hL(t,e,r){var n=ke(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:uL(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=$({},r),o=$({opacity:n?i:a.opacity*.1},o),r.style=o),r}function sh(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return fL(this,t,e,r);if(t==="blur")return hL(this,t,r);if(t==="select")return cL(this,t,r)}return r}function qd(t){t.stateProxy=sh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=sh),r&&(r.stateProxy=sh)}function dy(t,e){!j1(t,e)&&!t.__highByOuter&&En(t,G1)}function vy(t,e){!j1(t,e)&&!t.__highByOuter&&En(t,W1)}function $s(t,e){t.__highByOuter|=1<<(e||0),En(t,G1)}function Us(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&En(t,W1)}function dL(t){En(t,Mp)}function X1(t){En(t,Y1)}function K1(t){En(t,sL)}function q1(t){En(t,lL)}function j1(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Z1(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Dp(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Y1(u)}),s&&r.push(a)),o.isBlured=!1}),L(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function jd(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&X1(h)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Mp(g)}),er(e))a(u.getData(),e);else if(se(e))for(var v=Je(e),p=0;p<v.length;p++)a(u.getData(v[p]),e[v[p]]);l.push(u),Dp(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Zd(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Dp(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mp(a)})}}}function vL(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=dl(i,e);a=(Z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Pe(o);jd(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&jd(n,f,c,r)}}}function Ep(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Pe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function pL(t,e,r){var n=Pe(t),i=Ep(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Zd(n.componentMainType,n.componentIndex,r),L(a,function(s){return dy(s,e)})):(jd(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Zd(n.componentMainType,n.componentIndex,r),dy(t,e))}function gL(t,e,r){Z1(r);var n=Pe(t),i=Ep(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?L(i,function(a){return vy(a,e)}):vy(t,e)}function mL(t,e,r){if(ev(e)){var n=e.dataType,i=t.getData(n),a=dl(i,e);Z(a)||(a=[a]),t[e.type===ws?"toggleSelect":e.type===bs?"select":"unselect"](a,n)}}function py(t){var e=t.getAllData();L(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?K1(a):q1(a)})})}function yL(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();L(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Qd(t,e,r){Ya(t,!0),En(t,qd),Jd(t,e,r)}function _L(t){Ya(t,!1)}function Lp(t,e,r,n){n?_L(t):Qd(t,e,r)}function Jd(t,e,r){var n=Pe(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}function Ya(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Gs(t){return!!(t&&t.__highDownDispatcher)}function bL(t){var e=fy[t];return e==null&&uy<=32&&(e=fy[t]=uy++),e}function ev(t){var e=t.type;return e===bs||e===Du||e===ws}function gy(t){var e=t.type;return e===Qi||e===Cu}function wL(t){var e=$1(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var xa=fo.CMD,SL=[[],[],[]],my=Math.sqrt,TL=Math.atan2;function xL(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=xa.M,c=xa.C,h=xa.L,d=xa.R,v=xa.A,p=xa.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case v:var g=e[4],m=e[5],_=my(e[0]*e[0]+e[1]*e[1]),y=my(e[2]*e[2]+e[3]*e[3]),b=TL(-e[1]/y,e[0]/_);r[o]*=_,r[o++]+=g,r[o]*=y,r[o++]+=m,r[o++]*=_,r[o++]*=y,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],fr(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],fr(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=SL[l];w[0]=r[o++],w[1]=r[o++],fr(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var lh=Math.sqrt,Ul=Math.sin,Gl=Math.cos,Fo=Math.PI;function yy(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function tv(t,e){return(t[0]*e[0]+t[1]*e[1])/(yy(t)*yy(e))}function _y(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(tv(t,e))}function by(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Fo/180),h=Gl(c)*(t-r)/2+Ul(c)*(e-n)/2,d=-1*Ul(c)*(t-r)/2+Gl(c)*(e-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=lh(v),s*=lh(v));var p=(i===a?-1:1)*lh((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,g=p*o*d/s,m=p*-s*h/o,_=(t+r)/2+Gl(c)*g-Ul(c)*m,y=(e+n)/2+Ul(c)*g+Gl(c)*m,b=_y([1,0],[(h-g)/o,(d-m)/s]),w=[(h-g)/o,(d-m)/s],S=[(-1*h-g)/o,(-1*d-m)/s],T=_y(w,S);if(tv(w,S)<=-1&&(T=Fo),tv(w,S)>=1&&(T=0),T<0){var C=Math.round(T/Fo*1e6)/1e6;T=Fo*2+C%2*Fo}f.addData(u,_,y,o,s,b,T,c,a)}var CL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,DL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IL(t){var e=new fo;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=fo.CMD,l=t.match(CL);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,d=f.match(DL)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var g=0;g<v;){var m=void 0,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0,T=void 0,C=r,x=n,D=void 0,A=void 0;switch(c){case"l":r+=d[g++],n+=d[g++],h=s.L,e.addData(h,r,n);break;case"L":r=d[g++],n=d[g++],h=s.L,e.addData(h,r,n);break;case"m":r+=d[g++],n+=d[g++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=d[g++],n=d[g++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=d[g++],h=s.L,e.addData(h,r,n);break;case"H":r=d[g++],h=s.L,e.addData(h,r,n);break;case"v":n+=d[g++],h=s.L,e.addData(h,r,n);break;case"V":n=d[g++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,d[g++],d[g++],d[g++],d[g++],d[g++],d[g++]),r=d[g-2],n=d[g-1];break;case"c":h=s.C,e.addData(h,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n),r+=d[g-2],n+=d[g-1];break;case"S":m=r,_=n,D=e.len(),A=e.data,o===s.C&&(m+=r-A[D-4],_+=n-A[D-3]),h=s.C,C=d[g++],x=d[g++],r=d[g++],n=d[g++],e.addData(h,m,_,C,x,r,n);break;case"s":m=r,_=n,D=e.len(),A=e.data,o===s.C&&(m+=r-A[D-4],_+=n-A[D-3]),h=s.C,C=r+d[g++],x=n+d[g++],r+=d[g++],n+=d[g++],e.addData(h,m,_,C,x,r,n);break;case"Q":C=d[g++],x=d[g++],r=d[g++],n=d[g++],h=s.Q,e.addData(h,C,x,r,n);break;case"q":C=d[g++]+r,x=d[g++]+n,r+=d[g++],n+=d[g++],h=s.Q,e.addData(h,C,x,r,n);break;case"T":m=r,_=n,D=e.len(),A=e.data,o===s.Q&&(m+=r-A[D-4],_+=n-A[D-3]),r=d[g++],n=d[g++],h=s.Q,e.addData(h,m,_,r,n);break;case"t":m=r,_=n,D=e.len(),A=e.data,o===s.Q&&(m+=r-A[D-4],_+=n-A[D-3]),r+=d[g++],n+=d[g++],h=s.Q,e.addData(h,m,_,r,n);break;case"A":y=d[g++],b=d[g++],w=d[g++],S=d[g++],T=d[g++],C=r,x=n,r=d[g++],n=d[g++],h=s.A,by(C,x,r,n,S,T,y,b,w,h,e);break;case"a":y=d[g++],b=d[g++],w=d[g++],S=d[g++],T=d[g++],C=r,x=n,r+=d[g++],n+=d[g++],h=s.A,by(C,x,r,n,S,T,y,b,w,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var Q1=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(Ye);function J1(t){return t.setData!=null}function eS(t,e){var r=IL(t),n=$({},e);return n.buildPath=function(i){if(J1(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){xL(r,i),this.dirtyShape()},n}function AL(t,e){return new Q1(eS(t,e))}function ML(t,e){var r=eS(t,e),n=function(i){re(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Q1);return n}function EL(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ye(e);return o.createPathProxy(),o.buildPath=function(s){if(J1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var LL=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Zf=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LL},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Ye);Zf.prototype.type="circle";var PL=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Pp=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new PL},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e}(Ye);Pp.prototype.type="ellipse";var tS=Math.PI,uh=tS*2,Di=Math.sin,Ca=Math.cos,RL=Math.acos,bt=Math.atan2,wy=Math.abs,Ss=Math.sqrt,is=Math.max,Wr=Math.min,Er=1e-4;function OL(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Er))return h=(f*(e-a)-c*(t-i))/h,[t+h*l,e+h*u]}function Wl(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ss(s*s+l*l),f=u*l,c=-u*s,h=t+f,d=e+c,v=r+f,p=n+c,g=(h+v)/2,m=(d+p)/2,_=v-h,y=p-d,b=_*_+y*y,w=i-a,S=h*p-v*d,T=(y<0?-1:1)*Ss(is(0,w*w*b-S*S)),C=(S*y-_*T)/b,x=(-S*_-y*T)/b,D=(S*y+_*T)/b,A=(-S*_+y*T)/b,M=C-g,R=x-m,k=D-g,H=A-m;return M*M+R*R>k*k+H*H&&(C=D,x=A),{cx:C,cy:x,x0:-f,y0:-c,x1:C*(i/w-1),y1:x*(i/w-1)}}function kL(t){var e;if(Z(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function NL(t,e){var r,n=is(e.r,0),i=is(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,d=wy(u-l),v=d>uh&&d%uh;if(v>Er&&(d=v),!(n>Er))t.moveTo(f,c);else if(d>uh-Er)t.moveTo(f+n*Ca(l),c+n*Di(l)),t.arc(f,c,n,l,u,!h),i>Er&&(t.moveTo(f+i*Ca(u),c+i*Di(u)),t.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,m=void 0,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0,T=void 0,C=void 0,x=void 0,D=void 0,A=void 0,M=void 0,R=void 0,k=void 0,H=n*Ca(l),N=n*Di(l),q=i*Ca(u),U=i*Di(u),ue=d>Er;if(ue){var He=e.cornerRadius;He&&(r=kL(He),p=r[0],g=r[1],m=r[2],_=r[3]);var Xe=wy(n-i)/2;if(y=Wr(Xe,m),b=Wr(Xe,_),w=Wr(Xe,p),S=Wr(Xe,g),x=T=is(y,b),D=C=is(w,S),(T>Er||C>Er)&&(A=n*Ca(u),M=n*Di(u),R=i*Ca(l),k=i*Di(l),d<tS)){var _e=OL(H,N,R,k,A,M,q,U);if(_e){var ct=H-_e[0],mt=N-_e[1],zt=A-_e[0],Lt=M-_e[1],$t=1/Di(RL((ct*zt+mt*Lt)/(Ss(ct*ct+mt*mt)*Ss(zt*zt+Lt*Lt)))/2),be=Ss(_e[0]*_e[0]+_e[1]*_e[1]);x=Wr(T,(n-be)/($t+1)),D=Wr(C,(i-be)/($t-1))}}}if(!ue)t.moveTo(f+H,c+N);else if(x>Er){var ne=Wr(m,x),ve=Wr(_,x),K=Wl(R,k,H,N,n,ne,h),J=Wl(A,M,q,U,n,ve,h);t.moveTo(f+K.cx+K.x0,c+K.cy+K.y0),x<T&&ne===ve?t.arc(f+K.cx,c+K.cy,x,bt(K.y0,K.x0),bt(J.y0,J.x0),!h):(ne>0&&t.arc(f+K.cx,c+K.cy,ne,bt(K.y0,K.x0),bt(K.y1,K.x1),!h),t.arc(f,c,n,bt(K.cy+K.y1,K.cx+K.x1),bt(J.cy+J.y1,J.cx+J.x1),!h),ve>0&&t.arc(f+J.cx,c+J.cy,ve,bt(J.y1,J.x1),bt(J.y0,J.x0),!h))}else t.moveTo(f+H,c+N),t.arc(f,c,n,l,u,!h);if(!(i>Er)||!ue)t.lineTo(f+q,c+U);else if(D>Er){var ne=Wr(p,D),ve=Wr(g,D),K=Wl(q,U,A,M,i,-ve,h),J=Wl(H,N,R,k,i,-ne,h);t.lineTo(f+K.cx+K.x0,c+K.cy+K.y0),D<C&&ne===ve?t.arc(f+K.cx,c+K.cy,D,bt(K.y0,K.x0),bt(J.y0,J.x0),!h):(ve>0&&t.arc(f+K.cx,c+K.cy,ve,bt(K.y0,K.x0),bt(K.y1,K.x1),!h),t.arc(f,c,i,bt(K.cy+K.y1,K.cx+K.x1),bt(J.cy+J.y1,J.cx+J.x1),h),ne>0&&t.arc(f+J.cx,c+J.cy,ne,bt(J.y1,J.x1),bt(J.y0,J.x0),!h))}else t.lineTo(f+q,c+U),t.arc(f,c,i,u,l,h)}t.closePath()}}}var BL=function(){function t(){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 t}(),Rp=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new BL},e.prototype.buildPath=function(r,n){NL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ye);Rp.prototype.type="sector";var FL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Op=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new FL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(Ye);Op.prototype.type="ring";function VL(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++)$a(f,f,t[h]),Ua(c,c,t[h]);$a(f,f,n[0]),Ua(c,c,n[1])}for(var h=0,d=t.length;h<d;h++){var v=t[h];if(r)l=t[h?h-1:d-1],u=t[(h+1)%d];else if(h===0||h===d-1){i.push(_n(t[h]));continue}else l=t[h-1],u=t[h+1];Fi(a,u,l),yu(a,a,e);var p=Ld(v,l),g=Ld(v,u),m=p+g;m!==0&&(p/=m,g/=m),yu(o,a,-p),yu(s,a,g);var _=dm([],v,o),y=dm([],v,s);n&&(Ua(_,_,f),$a(_,_,c),Ua(y,y,f),$a(y,y,c)),i.push(_),i.push(y)}return r&&i.push(i.shift()),i}function rS(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=VL(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var HL=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Qf=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new HL},e.prototype.buildPath=function(r,n){rS(r,n,!0)},e}(Ye);Qf.prototype.type="polygon";var zL=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),kp=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zL},e.prototype.buildPath=function(r,n){rS(r,n,!1)},e}(Ye);kp.prototype.type="polyline";var $L={},UL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ha=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UL},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=H1($L,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Ye);ha.prototype.type="line";var Gt=[],GL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Sy(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Cm:Ft)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Cm:Ft)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Dm:Vt)(t.x1,t.cpx1,t.x2,e),(r?Dm:Vt)(t.y1,t.cpy1,t.y2,e)]}var Jf=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GL},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(Fs(i,l,o,h,Gt),l=Gt[1],o=Gt[2],Fs(a,u,s,h,Gt),u=Gt[1],s=Gt[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Qu(i,l,f,o,h,Gt),l=Gt[1],f=Gt[2],o=Gt[3],Qu(a,u,c,s,h,Gt),u=Gt[1],c=Gt[2],s=Gt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return Sy(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Sy(this.shape,r,!0);return So(n,n)},e}(Ye);Jf.prototype.type="bezier-curve";var WL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),ec=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WL},e.prototype.buildPath=function(r,n){var i=n.cx,a=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);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e}(Ye);ec.prototype.type="arc";var YL=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ye.prototype.getBoundingRect.call(this)},e}(Ye),nS=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),XL=function(t){re(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(nS),KL=function(t){re(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(nS),Ii=[0,0],Ai=[0,0],Yl=new Fe,Xl=new Fe,of=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Fe;for(var n=0;n<2;n++)this._axes[n]=new Fe;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Fe.sub(i[0],n[1],n[0]),Fe.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,i=!r;return Yl.set(1/0,1/0),Xl.set(0,0),!this._intersectCheckOneSide(this,e,Yl,Xl,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,Yl,Xl,i,-1)&&(n=!1,i)||i||Fe.copy(r,n?Yl:Xl),n},t.prototype._intersectCheckOneSide=function(e,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Ii),this._getProjMinMaxOnAxis(l,r._corners,Ai),Ii[1]<Ai[0]||Ii[0]>Ai[1]){if(s=!1,a)return s;var f=Math.abs(Ai[0]-Ii[1]),c=Math.abs(Ii[0]-Ai[1]);Math.min(f,c)>i.len()&&(f<c?Fe.scale(i,u,-f*o):Fe.scale(i,u,c*o))}else if(n){var f=Math.abs(Ai[0]-Ii[1]),c=Math.abs(Ii[0]-Ai[1]);Math.min(f,c)<n.len()&&(f<c?Fe.scale(n,u,f*o):Fe.scale(n,u,-c*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},t}(),qL=[],jL=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Ae(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(qL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(To),ZL=at();function QL(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ye(n.duration,200),f=ye(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Ie(c)&&(c=c(r,i)),Ie(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Np(t,e,r,n,i,a,o){var s=!1,l;Ie(i)?(o=a,a=i,i=null):se(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=QL(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,d=f.easing,v={duration:c,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function ui(t,e,r,n,i,a){Np("update",t,e,r,n,i,a)}function Bp(t,e,r,n,i,a){Np("enter",t,e,r,n,i,a)}function Ts(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function sf(t,e,r,n,i,a){Ts(t)||Np("leave",t,e,r,n,i,a)}function Ty(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),sf(t,{style:{opacity:0}},e,r,n)}function JL(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||Ty(i,e,r,n)}):Ty(t,e,r,n)}function eP(t){ZL(t).oldStyle=t.style}var lf=Math.max,uf=Math.min,rv={};function tP(t){return Ye.extend(t)}var rP=ML;function nP(t,e){return rP(t,e)}function Hr(t,e){rv[t]=e}function iP(t){if(rv.hasOwnProperty(t))return rv[t]}function Fp(t,e,r,n){var i=AL(t,e);return r&&(n==="center"&&(r=aS(r,i.getBoundingRect())),oS(i,r)),i}function iS(t,e,r){var n=new li({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(aS(e,a))}}});return n}function aS(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var aP=EL;function oS(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Vp(t,e){return H1(t,t,{lineWidth:e}),t}function oP(t){return z1(t.shape,t.shape,t.style),t}var sP=zi;function lP(t,e){for(var r=mp([]);t&&t!==e;)ro(r,t.getLocalTransform(),r),t=t.parent;return r}function Hp(t,e,r){return e&&!er(e)&&(e=Vi.getLocalTransform(e)),r&&(e=_p([],e)),fr([],t,e)}function uP(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Hp(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function xy(t){return!t.isGroup}function fP(t){return t.shape!=null}function cP(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){xy(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fP(o)&&(s.shape=$({},o.shape)),s}var a=n(t);e.traverse(function(o){if(xy(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ui(o,l,r,Pe(o).dataIndex)}}})}function hP(t,e){return Me(t,function(r){var n=r[0];n=lf(n,e.x),n=uf(n,e.x+e.width);var i=r[1];return i=lf(i,e.y),i=uf(i,e.y+e.height),[n,i]})}function dP(t,e){var r=lf(t.x,e.x),n=uf(t.x+t.width,e.x+e.width),i=lf(t.y,e.y),a=uf(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function zp(t,e,r){var n=$({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Ke(i,r),new li(n)):Fp(t.replace("path://",""),n,r,"center")}function vP(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(sS(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function sS(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=fh(f,c,l,u);if(pP(h))return!1;var d=t-i,v=e-a,p=fh(d,v,l,u)/h;if(p<0||p>1)return!1;var g=fh(d,v,f,c)/h;return!(g<0||g>1)}function fh(t,e,r,n){return t*n-r*e}function pP(t){return t<=1e-6&&t>=-1e-6}function tc(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=ae(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&L(Je(l),function(f){ia(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Pe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ke({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Cy(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function rc(t,e){if(t)if(Z(t))for(var r=0;r<t.length;r++)Cy(t[r],e);else Cy(t,e)}Hr("circle",Zf);Hr("ellipse",Pp);Hr("sector",Rp);Hr("ring",Op);Hr("polygon",Qf);Hr("polyline",kp);Hr("rect",Mt);Hr("line",ha);Hr("bezierCurve",Jf);Hr("arc",ec);const gP=Object.freeze(Object.defineProperty({__proto__:null,Arc:ec,BezierCurve:Jf,BoundingRect:Ae,Circle:Zf,CompoundPath:YL,Ellipse:Pp,Group:ft,Image:li,IncrementalDisplayable:jL,Line:ha,LinearGradient:XL,OrientedBoundingRect:of,Path:Ye,Point:Fe,Polygon:Qf,Polyline:kp,RadialGradient:KL,Rect:Mt,Ring:Op,Sector:Rp,Text:Et,applyTransform:Hp,clipPointsByRect:hP,clipRectByRect:dP,createIcon:zp,extendPath:nP,extendShape:tP,getShapeClass:iP,getTransform:lP,groupTransition:cP,initProps:Bp,isElementRemoved:Ts,lineLineIntersect:sS,linePolygonIntersect:vP,makeImage:iS,makePath:Fp,mergePath:aP,registerShape:Hr,removeElement:sf,removeElementWithFadeOut:JL,resizePath:oS,setTooltipConfig:tc,subPixelOptimize:sP,subPixelOptimizeLine:Vp,subPixelOptimizeRect:oP,transformDirection:uP,traverseElements:rc,updateProps:ui},Symbol.toStringTag,{value:"Module"}));var nc={};function mP(t,e){for(var r=0;r<en.length;r++){var n=en[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Dy(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Ie(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<en.length;u++){var f=en[u],c=e[f];l[f]=ye(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function ic(t,e,r,n){r=r||nc;for(var i=t instanceof Et,a=!1,o=0;o<cy.length;o++){var s=e[cy[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Et,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Dy(r,e),f=e.normal,c=!!f.getShallow("show"),h=tn(f,n,r,!1,!i);h.text=u.normal,i||t.setTextConfig(Iy(f,r,!1));for(var o=0;o<en.length;o++){var d=en[o],s=e[d];if(s){var v=l.ensureState(d),p=!!ye(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=tn(s,n,r,!0,!i),v.style.text=u[d],!i){var g=t.ensureState(d);g.textConfig=Iy(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(wP(l).setLabelText=function(m){var _=Dy(r,e,m);mP(l,_)})}else l&&(l.ignore=!0);t.dirty()}function gl(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<en.length;n++){var i=en[n];r[i]=t.getModel([i,e])}return r}function tn(t,e,r,n,i){var a={};return yP(a,t,r,n,i),e&&$(a,e),a}function Iy(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=ye(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function yP(t,e,r,n,i){r=r||nc;var a=e.ecModel,o=a&&a.option.textStyle,s=_P(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);Ly(l[u]={},f,o,r,n,i,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var h=e.get("minMargin");h!=null&&(t.margin=h),Ly(t,e,o,r,n,i,!0,!1)}function _P(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||nc).rich;if(r){e=e||{};for(var n=Je(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Ay=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],My=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Ey=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ly(t,e,r,n,i,a,o,s){r=!i&&r||nc;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=ye(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(t.fill=u),f!=null&&(t.stroke=f);var h=ye(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var d=ye(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var v=ye(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(t.opacity=c),!i&&!a&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<Ay.length;p++){var g=Ay[p],m=ye(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<My.length;p++){var g=My[p],m=e.getShallow(g);m!=null&&(t[g]=m)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!o||!n.disableBox){for(var p=0;p<Ey.length;p++){var g=Ey[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var y=e.getShallow("borderType");y!=null&&(t.borderDash=y),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function bP(t,e){var r=e&&e.getModel("textStyle");return jr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var wP=at(),SP=["textStyle","color"],ch=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],hh=new Et,TP=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(SP):null)},t.prototype.getFont=function(){return bP({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ch.length;n++)r[ch[n]]=this.getShallow(ch[n]);return hh.useStyle(r),hh.update(),hh.getBoundingRect()},t}(),lS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],xP=uo(lS),CP=function(){function t(){}return t.prototype.getLineStyle=function(e){return xP(this,e)},t}(),uS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],DP=uo(uS),IP=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return DP(this,e,r)},t}(),Ge=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Qe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Se(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!he.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();xp(Ge);cE(Ge);Fr(Ge,CP);Fr(Ge,IP);Fr(Ge,gE);Fr(Ge,TP);var AP=Math.round(Math.random()*10);function ac(t){return[t||"",AP++].join("_")}function MP(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Zr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Zr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function EP(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(L(a,function(_){h[_]=!0});c.length;){var d=c.pop(),v=f[d],p=!!h[d];p&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),L(v.successor,p?m:g)}L(h,function(){var _="";throw new Error(_)});function g(_){f[_].entryCount--,f[_].entryCount===0&&c.push(_)}function m(_){h[_]=!0,g(_)}};function r(a){var o={},s=[];return L(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),L(c,function(h){ke(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);ke(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return L(a,function(l){ke(o,l)>=0&&s.push(l)}),s}}function LP(t,e){return Qe(Qe({},t,!0),e,!0)}const PP={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:". "}}}},RP={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 ff="ZH",$p="EN",io=$p,Iu={},Up={},fS=he.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||io).toUpperCase();return t.indexOf(ff)>-1?ff:io}():io;function cS(t,e){t=t.toUpperCase(),Up[t]=new Ge(e),Iu[t]=e}function OP(t){if(ae(t)){var e=Iu[t.toUpperCase()]||{};return t===ff||t===$p?Se(e):Qe(Se(e),Se(Iu[io]),!1)}else return Qe(Se(t),Se(Iu[io]),!1)}function kP(t){return Up[t]}function NP(){return Up[io]}cS($p,PP);cS(ff,RP);function kn(t,e){return t+="","0000".substr(0,e-t.length)+t}function hS(t,e,r,n){var i=Xf(t),a=i[BP(r)](),o=i[FP(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[VP(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[HP(r)](),c=(f-1)%12+1,h=i[zP(r)](),d=i[$P(r)](),v=i[UP(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Ge?n:kP(fS)||NP(),_=m.getModel("time"),y=_.get("month"),b=_.get("monthAbbr"),w=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,kn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,kn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,kn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,kn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,kn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,kn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,kn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,kn(v,3)).replace(/{S}/g,v+"")}function BP(t){return t?"getUTCFullYear":"getFullYear"}function FP(t){return t?"getUTCMonth":"getMonth"}function VP(t){return t?"getUTCDate":"getDate"}function HP(t){return t?"getUTCHours":"getHours"}function zP(t){return t?"getUTCMinutes":"getMinutes"}function $P(t){return t?"getUTCSeconds":"getSeconds"}function UP(t){return t?"getUTCMilliseconds":"getMilliseconds"}function dS(t){if(!WM(t))return ae(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function vS(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var ml=pp;function nv(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&jr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Xf(t):t;if(isNaN(+l)){if(s)return"-"}else return hS(l,n,r)}if(e==="ordinal")return Id(t)?i(t):et(t)&&a(t)?t+"":"-";var u=nf(t);return a(u)?dS(u):Id(t)?i(t):typeof t=="boolean"?t+"":"-"}var Py=["a","b","c","d","e","f","g"],dh=function(t,e){return"{"+t+(e??"")+"}"};function pS(t,e,r){Z(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Py[a];t=t.replace(dh(o),dh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(dh(Py[l],s),r?Bt(u):u)}return t}function GP(t,e){var r=ae(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Ws(t,e){return e=e||"transparent",ae(t)?t:se(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function iv(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Au=L,WP=["left","right","top","bottom","width","height"],Kl=[["width","left","right"],["height","top","bottom"]];function Gp(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),d,v;if(t==="horizontal"){var p=f.width+(h?-h.x+f.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=d+r:o=v+r)})}var xs=Gp;Ze(Gp,"vertical");Ze(Gp,"horizontal");function YP(t,e,r){var n=e.width,i=e.height,a=ht(t.left,n),o=ht(t.top,i),s=ht(t.right,n),l=ht(t.bottom,i);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),r=ml(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function oa(t,e,r){r=ml(r||0);var n=e.width,i=e.height,a=ht(t.left,n),o=ht(t.top,i),s=ht(t.right,n),l=ht(t.bottom,i),u=ht(t.width,n),f=ht(t.height,i),c=r[2]+r[0],h=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(f)&&(d>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new Ae(a+r[3],o+r[0],u,f);return v.margin=r,v}function XP(t,e,r,n,i,a){a=a||t,a.x=t.x,a.y=t.y;var o;if(o=t.getBoundingRect(),t.needLocalTransform()){var s=t.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=oa(Ke({width:o.width,height:o.height},e),r,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===t&&t.markRedraw(),!0}function cf(t){var e=t.layoutMode||t.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function Ys(t,e,r){var n=r&&r.ignoreSize;!Z(n)&&(n=[n,n]);var i=o(Kl[0],0),a=o(Kl[1],1);u(Kl[0],t,i),u(Kl[1],t,a);function o(f,c){var h={},d=0,v={},p=0,g=2;if(Au(f,function(y){v[y]=t[y]}),Au(f,function(y){s(e,y)&&(h[y]=v[y]=e[y]),l(h,y)&&d++,l(v,y)&&p++}),n[c])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(p===g||!d)return v;if(d>=g)return h;for(var m=0;m<f.length;m++){var _=f[m];if(!s(h,_)&&s(t,_)){h[_]=t[_];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){Au(f,function(d){c[d]=h[d]})}}function Wp(t){return KP({},t)}function KP(t,e){return e&&t&&Au(WP,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var qP=at(),Be=function(t){re(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=ac("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=cf(this),a=i?Wp(r):{},o=n.getTheme();Qe(r,o.get(this.mainType)),Qe(r,this.getDefaultOption()),i&&Ys(r,a,i)},e.prototype.mergeOption=function(r,n){Qe(this.option,r,!0);var i=cf(this);i&&Ys(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!lE(r))return r.defaultOption;var n=qP(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Qe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return vl(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Ge);R1(Be,Ge);Cp(Be);MP(Be);EP(Be,jP);function jP(t){var e=[];return L(Be.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Me(e,function(r){return Zr(r).main}),t!=="dataset"&&ke(e,"dataset")<=0&&e.unshift("dataset"),e}var gS="";typeof navigator<"u"&&(gS=navigator.platform||"");var Da="rgba(0, 0, 0, 0.2)";const ZP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Da,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Da,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Da,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Da,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Da,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Da,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gS.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 mS=me(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ir="original",rr="arrayRows",on="objectRows",Ln="keyedColumns",ni="typedArray",yS="unknown",bn="column",xo="row",ar={Must:1,Might:2,Not:3},_S=at();function QP(t){_S(t).datasetMap=me()}function JP(t,e,r){var n={},i=bS(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=_S(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),L(t,function(p,g){var m=se(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});L(t,function(p,g){var m=p.name,_=v(p);if(f==null){var y=h.valueWayDim;d(n[m],y,_),d(o,y,_),h.valueWayDim+=_}else if(f===g)d(n[m],0,_),d(a,0,_);else{var y=h.categoryWayDim;d(n[m],y,_),d(o,y,_),h.categoryWayDim+=_}});function d(p,g,m){for(var _=0;_<m;_++)p.push(g+_)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function bS(t){var e=t.get("data",!0);if(!e)return vl(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Hi).models[0]}function eR(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:vl(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Hi).models}function wS(t,e){return tR(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function tR(t,e,r,n,i,a){var o,s=5;if(tr(t))return ar.Not;var l,u;if(n){var f=n[a];se(f)?(l=f.name,u=f.type):ae(f)&&(l=f)}if(u!=null)return u==="ordinal"?ar.Must:ar.Not;if(e===rr){var c=t;if(r===xo){for(var h=c[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<c.length&&d<s;d++){var v=c[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(e===on){var p=t;if(!l)return ar.Not;for(var d=0;d<p.length&&d<s;d++){var g=p[d];if(g&&(o=b(g[l]))!=null)return o}}else if(e===Ln){var m=t;if(!l)return ar.Not;var h=m[l];if(!h||tr(h))return ar.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(e===Ir)for(var _=t,d=0;d<_.length&&d<s;d++){var g=_[d],y=hl(g);if(!Z(y))return ar.Not;if((o=b(y[a]))!=null)return o}function b(w){var S=ae(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?ar.Might:ar.Not;if(S&&w!=="-")return ar.Must}return ar.Not}var rR=me();function nR(t,e,r){var n=rR.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var Ry=at(),iR=at(),Yp=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=vt(this.get("color",!0)),a=this.get("colorLayer",!0);return SS(this,Ry,i,a,e,r,n)},t.prototype.clearColorPalette=function(){sR(this,Ry)},t}();function aR(t,e,r,n){var i=vt(t.get(["aria","decal","decals"]));return SS(t,iR,i,null,e,r,n)}function oR(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function SS(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:oR(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function sR(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var ql,Vo,Oy,ky="\0_ec_inner",lR=1,Xp=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ge(a),this._locale=new Ge(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Fy(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Fy(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Oy(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&L(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=me(),u=n&&n.replaceMergeMainTypeMap;QP(this),L(r,function(c,h){c!=null&&(Be.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Se(c):Qe(i[h],c,!0))}),u&&u.each(function(c,h){Be.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Be.topologicalTravel(s,Be.getAllClassMainTypes(),f,this);function f(c){var h=nR(this,c,vt(r[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=KM(d,h,v);tE(p,c,Be),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],_=0,y;L(p,function(b,w){var S=b.existing,T=b.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=c==="series",x=Be.getClass(c,b.keyInfo.subType,!C);if(!x)return;if(c==="tooltip"){if(y)return;y=!0}if(S&&S.constructor===x)S.name=b.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var D=$({componentIndex:w},b.keyInfo);S=new x(T,this,this,D),$(S,D),b.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),_++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,_),c==="series"&&ql(this)}this._seriesIndices||ql(this)},e.prototype.getOption=function(){var r=Se(this.option);return L(r,function(n,i){if(Be.hasClass(i)){for(var a=vt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!zs(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[ky],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],L(vt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ny("id",a,s):o!=null?l=Ny("name",o,s):l=or(s,function(u){return!!u}),By(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):or(this._componentsMap.get(i),function(u){return!!u});return l(By(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?or(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ie(r)){var o=n,s=r;a.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=ae(r)?a.get(r):se(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Jt(r,null);return or(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return or(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return or(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Vo(this),L(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){L(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Vo(this),L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return L(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Vo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Vo(this);var i=[];L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=me(i)},e.prototype.restoreData=function(r){ql(this);var n=this._componentsMap,i=[];n.each(function(a,o){Be.hasClass(o)&&i.push(o)}),Be.topologicalTravel(i,Be.getAllClassMainTypes(),function(a){L(n.get(a),function(o){o&&(a!=="series"||!uR(o,r))&&o.restoreData()})})},e.internalField=function(){ql=function(r){var n=r._seriesIndices=[];L(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=me(n)},Vo=function(r){},Oy=function(r,n){r.option={},r.option[ky]=lR,r._componentsMap=me({series:[]}),r._componentsCount=me();var i=n.aria;se(i)&&i.enabled==null&&(i.enabled=!0),fR(n,r._theme.option),Qe(n,ZP,!1),r._mergeOption(n,null)}}(),e}(Ge);function uR(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function fR(t,e){var r=t.color&&!t.colorLayer;L(e,function(n,i){i==="colorLayer"&&r||Be.hasClass(i)||(typeof n=="object"?t[i]=t[i]?Qe(t[i],n,!1):Se(n):t[i]==null&&(t[i]=n))})}function Ny(t,e,r){if(Z(e)){var n=me();return L(e,function(a){if(a!=null){var o=Jt(a,null);o!=null&&n.set(a,!0)}}),or(r,function(a){return a&&n.get(a[t])})}else{var i=Jt(e,null);return or(r,function(a){return a&&i!=null&&a[t]===i})}}function By(t,e){return e.hasOwnProperty("subType")?or(t,function(r){return r&&r.subType===e.subType}):t}function Fy(t){var e=me();return t&&L(vt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Fr(Xp,Yp);var cR=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],TS=function(){function t(e){L(cR,function(r){this[r]=De(e[r],e)},this)}return t}(),vh={},oc=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];L(vh,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){L(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){vh[e]=r},t.get=function(e){return vh[e]},t}(),hR=/^(min|max)?(.+)$/,dR=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(L(vt(e.series),function(o){o&&o.data&&tr(o.data)&&Ad(o.data)}),L(vt(e.dataset),function(o){o&&o.source&&tr(o.source)&&Ad(o.source)})),e=Se(e);var i=this._optionBackup,a=vR(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Se(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=Se(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)pR(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!mR(o,this._currentMediaIndices)&&(s=Me(o,function(f){return Se(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function vR(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&Z(u)&&L(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),L(l,function(d){return h(d)}),L(n,function(d){return h(d.option)});function h(d){L(e,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function pR(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return L(t,function(a,o){var s=o.match(hR);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();gR(n[u],a,l)||(i=!1)}}),i}function gR(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function mR(t,e){return t.join(",")===e.join(",")}var Mr=L,Xs=se,Vy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ph(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Vy.length;r<n;r++){var i=Vy[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?Qe(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?Qe(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function xt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Ke(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function as(t){xt(t,"itemStyle"),xt(t,"lineStyle"),xt(t,"areaStyle"),xt(t,"label"),xt(t,"labelLine"),xt(t,"upperLabel"),xt(t,"edgeLabel")}function nt(t,e){var r=Xs(t)&&t[e],n=Xs(r)&&r.textStyle;if(n)for(var i=0,a=Ym.length;i<a;i++){var o=Ym[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function mr(t){t&&(as(t),nt(t,"label"),t.emphasis&&nt(t.emphasis,"label"))}function yR(t){if(Xs(t)){ph(t),as(t),nt(t,"label"),nt(t,"upperLabel"),nt(t,"edgeLabel"),t.emphasis&&(nt(t.emphasis,"label"),nt(t.emphasis,"upperLabel"),nt(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ph(e),mr(e));var r=t.markLine;r&&(ph(r),mr(r));var n=t.markArea;n&&mr(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!tr(a))for(var o=0;o<a.length;o++)mr(a[o]);L(t.categories,function(u){as(u)})}if(i&&!tr(i))for(var o=0;o<i.length;o++)mr(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)mr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Z(l[o])?(mr(l[o][0]),mr(l[o][1])):mr(l[o]);t.type==="gauge"?(nt(t,"axisLabel"),nt(t,"title"),nt(t,"detail")):t.type==="treemap"?(xt(t.breadcrumb,"itemStyle"),L(t.levels,function(u){as(u)})):t.type==="tree"&&as(t.leaves)}}function fn(t){return Z(t)?t:t?[t]:[]}function Hy(t){return(Z(t)?t[0]:t)||{}}function _R(t,e){Mr(fn(t.series),function(n){Xs(n)&&yR(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Mr(r,function(n){Mr(fn(t[n]),function(i){i&&(nt(i,"axisLabel"),nt(i.axisPointer,"label"))})}),Mr(fn(t.parallel),function(n){var i=n&&n.parallelAxisDefault;nt(i,"axisLabel"),nt(i&&i.axisPointer,"label")}),Mr(fn(t.calendar),function(n){xt(n,"itemStyle"),nt(n,"dayLabel"),nt(n,"monthLabel"),nt(n,"yearLabel")}),Mr(fn(t.radar),function(n){nt(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)}),Mr(fn(t.geo),function(n){Xs(n)&&(mr(n),Mr(fn(n.regions),function(i){mr(i)}))}),Mr(fn(t.timeline),function(n){mr(n),xt(n,"label"),xt(n,"itemStyle"),xt(n,"controlStyle",!0);var i=n.data;Z(i)&&L(i,function(a){se(a)&&(xt(a,"label"),xt(a,"itemStyle"))})}),Mr(fn(t.toolbox),function(n){xt(n,"iconStyle"),Mr(n.feature,function(i){xt(i,"iconStyle")})}),nt(Hy(t.axisPointer),"label"),nt(Hy(t.tooltip).axisPointer,"label")}function bR(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function wR(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function zy(t){t&&L(SR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var SR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],TR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],gh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ho(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<gh.length;r++){var n=gh[r][1],i=gh[r][0];e[n]!=null&&(e[i]=e[n])}}function $y(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Uy(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function xR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function xS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&xS(t[r].children,e)}function CS(t,e){_R(t,e),t.series=vt(t.series),L(t.series,function(r){if(se(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),$y(r.label);var i=r.data;if(i&&!tr(i))for(var a=0;a<i.length;a++)$y(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=bR(r,"pointer.color");o!=null&&wR(r,"itemStyle.color",o)}else if(n==="bar"){Ho(r),Ho(r.backgroundStyle),Ho(r.emphasis);var i=r.data;if(i&&!tr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ho(i[a]),Ho(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Uy(r),xS(r.data,Uy)}else n==="graph"||n==="sankey"?xR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ke(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),zy(r)}}),t.dataRange&&(t.visualMap=t.dataRange),L(TR,function(r){var n=t[r];n&&(Z(n)||(n=[n]),L(n,function(i){zy(i)}))})}function CR(t){var e=me();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(DR)}function DR(t){L(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(c):d=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var _=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&h>=0&&_>0||l==="samesign"&&h<=0&&_<0){h=UM(h,_),p=_;break}}}return n[0]=h,n[1]=p,n})})}var sc=function(){function t(e){this.data=e.data||(e.sourceFormat===Ln?{}:[]),this.sourceFormat=e.sourceFormat||yS,this.seriesLayoutBy=e.seriesLayoutBy||bn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&wS(this,n)===ar.Must&&(i.type="ordinal")}}return t}();function Kp(t){return t instanceof sc}function av(t,e,r){r=r||DS(t);var n=e.seriesLayoutBy,i=AR(t,r,n,e.sourceHeader,e.dimensions),a=new sc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Se(e)});return a}function qp(t){return new sc({data:t,sourceFormat:tr(t)?ni:Ir})}function IR(t){return new sc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Se(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function DS(t){var e=yS;if(tr(t))e=ni;else if(Z(t)){t.length===0&&(e=rr);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(Z(i)||tr(i)){e=rr;break}else if(se(i)){e=on;break}}}}else if(se(t)){for(var a in t)if(ia(t,a)&&er(t[a])){e=Ln;break}}return e}function AR(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Gy(i),startIndex:o,dimensionsDetectedCount:a};if(e===rr){var s=t;n==="auto"||n==null?Wy(function(u){u!=null&&u!=="-"&&(ae(u)?o==null&&(o=1):o=0)},r,s,10):o=et(n)?n:n?1:0,!i&&o===1&&(i=[],Wy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===xo?s.length:s[0]?s[0].length:null}else if(e===on)i||(i=MR(t));else if(e===Ln)i||(i=[],L(t,function(u,f){i.push(f)}));else if(e===Ir){var l=hl(t[0]);a=Z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Gy(i),dimensionsDetectedCount:a}}function MR(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Je(r)}function Gy(t){if(t){var e=me();return Me(t,function(r,n){r=se(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Wy(t,e,r,n){if(e===xo)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function IS(t){var e=t.sourceFormat;return e===on||e===Ln}var Mi,Ei,Li,Yy,Xy,AS=function(){function t(e,r){var n=Kp(e)?e:qp(e);this._source=n;var i=this._data=n.data;n.sourceFormat===ni&&(this._offset=0,this._dimSize=r,this._data=i),Xy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;Xy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,d=Yy[jp(u,f)];if($(o,d),u===ni)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=MS(u,f);o.getItem=De(v,null,s,c,h);var p=ES(u,f);o.count=De(p,null,s,c,h)}};var r=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,h=0;h<c;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],g=s-o,m=l[h],_=0;_<g;_++){var y=f[_*c+h];m[o+_]=y,y<v&&(v=y),y>p&&(p=y)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Yy=(e={},e[rr+"_"+bn]={pure:!0,appendData:a},e[rr+"_"+xo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[on]={pure:!0,appendData:a},e[Ln]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Ir]={appendData:a},e[ni]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),Ky=function(t,e,r,n){return t[n]},ER=(Mi={},Mi[rr+"_"+bn]=function(t,e,r,n){return t[n+e]},Mi[rr+"_"+xo]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Mi[on]=Ky,Mi[Ln]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=t[s];a[o]=l?l[n]:null}return a},Mi[Ir]=Ky,Mi);function MS(t,e){var r=ER[jp(t,e)];return r}var qy=function(t,e,r){return t.length},LR=(Ei={},Ei[rr+"_"+bn]=function(t,e,r){return Math.max(0,t.length-e)},Ei[rr+"_"+xo]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Ei[on]=qy,Ei[Ln]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},Ei[Ir]=qy,Ei);function ES(t,e){var r=LR[jp(t,e)];return r}var mh=function(t,e,r){return t[e]},PR=(Li={},Li[rr]=mh,Li[on]=function(t,e,r){return t[r]},Li[Ln]=mh,Li[Ir]=function(t,e,r){var n=hl(t);return n instanceof Array?n[e]:n},Li[ni]=mh,Li);function LS(t){var e=PR[t];return e}function jp(t,e){return t===rr?t+"_"+e:t}function co(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return LS(a)(n,o,s)}else{var l=n;return a===Ir&&(l=hl(n)),l}}}}var RR=/\{@(.+?)\}/g,OR=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&Z(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ie(a))return l.status=r,l.dimensionIndex=i,a(l);if(ae(a)){var f=pS(a,l);return f.replace(RR,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=co(s,e,v);if(o&&Z(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return co(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function jy(t){var e,r;return se(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Cs(t){return new kR(t)}var kR=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<v)){var p=this._progress;if(Z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,v,l,u);else this._doProgress(p,d,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Zy.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Zy.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Zy=function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}}();function Mu(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!et(t)&&t!=null&&t!=="-"&&(t=+Xf(t)),t==null||t===""?NaN:Number(t))}me({number:function(t){return parseFloat(t)},time:function(t){return+Xf(t)},trim:function(t){return ae(t)?jr(t):t}});var NR=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=et(e)?e:nf(e),i=et(r)?r:nf(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=ae(e),l=ae(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),BR=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Mu(e,r)},t}();function FR(t,e){var r=new BR,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==bn&&Kt(o);var s=[],l={},u=t.dimensionsDefine;if(u)L(u,function(p,g){var m=p.name,_={index:g,name:m,displayName:p.displayName};if(s.push(_),m!=null){var y="";ia(l,m)&&Kt(y),l[m]=_}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=MS(i,bn);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=De(VR,null,t)),r.cloneRawData=De(HR,null,t);var h=ES(i,bn);r.count=De(h,null,n,a,s);var d=LS(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return d(p,g,m.name)}};return r.getDimensionInfo=De(zR,null,s,l),r.cloneAllDimensionInfo=De($R,null,s),r}function VR(t){var e=t.sourceFormat;if(!Zp(e)){var r="";Kt(r)}return t.data}function HR(t){var e=t.sourceFormat,r=t.data;if(!Zp(e)){var n="";Kt(n)}if(e===rr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===on){for(var i=[],a=0,o=r.length;a<o;a++)i.push($({},r[a]));return i}}function zR(t,e,r){if(r!=null){if(et(r)||!isNaN(r)&&!ia(e,r))return t[r];if(ia(e,r))return e[r]}}function $R(t){return Se(t)}var PS=me();function UR(t){t=Se(t);var e=t.type,r="";e||Kt(r);var n=e.split(":");n.length!==2&&Kt(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,PS.set(e,t)}function GR(t,e,r){var n=vt(t),i=n.length,a="";i||Kt(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=WR(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function WR(t,e,r,n){var i="";e.length||Kt(i),se(t)||Kt(i);var a=t.type,o=PS.get(a);o||Kt(i);var s=Me(e,function(u){return FR(u,o)}),l=vt(o.transform({upstream:s[0],upstreamList:s,config:Se(t.config)}));return Me(l,function(u,f){var c="";se(u)||Kt(c),u.data||Kt(c);var h=DS(u.data);Zp(h)||Kt(c);var d,v=e[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),d={seriesLayoutBy:bn,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:bn,sourceHeader:0,dimensions:u.dimensions};return av(u.data,d,null)})}function Zp(t){return t===rr||t===on}var lc="undefined",YR=typeof Uint32Array===lc?Array:Uint32Array,XR=typeof Uint16Array===lc?Array:Uint16Array,RS=typeof Int32Array===lc?Array:Int32Array,Qy=typeof Float64Array===lc?Array:Float64Array,OS={float:Qy,int:RS,ordinal:Array,number:Array,time:Qy},yh;function Ia(t){return t>65535?YR:XR}function Aa(){return[1/0,-1/0]}function KR(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jy(t,e,r,n,i){var a=OS[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var ov=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=me()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=yh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],IS(i),this._dimensions=Me(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new OS[r||"float"](this._rawCount),this._rawExtent[a]=Aa(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Aa());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];Jy(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var f=i[v],p=yh.arrayRows.call(this,e[d]||c,f.property,d,v);n[v][h]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Me(o,function(_){return _.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Aa()),Jy(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var h=[],d=e;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(h,u[v],d,v);p[d]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Ia(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ia(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var p=c[f][v];d=r(p,h)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][v];s[g]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Je(e),a=i.length;if(!a)return this;var o=r.count(),s=Ia(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],h=e[f][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=d[i[0]],m=0;m<n;m++){var _=g[m];(_>=c&&_<=h||isNaN(_))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=d[i[0]],y=d[i[1]],b=e[i[1]][0],w=e[i[1]][1],m=0;m<n;m++){var _=g[m],S=y[m];(_>=c&&_<=h||isNaN(_))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),_=d[i[0]][T];(_>=c&&_<=h||isNaN(_))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),x=0;x<a;x++){var D=i[x],_=d[D][T];(_<e[D][0]||_>e[D][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Aa();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],g=v[f],m=u[p],_=i[p];_&&(_[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,d=new(Ia(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,_=0,y=p;y<g;y++){var b=this.getRawIndex(y),w=a[b];isNaN(w)||(_+=w)}_/=g-p;var S=v,T=Math.min(v+l,o),C=v-1,x=a[u];f=-1,h=S;for(var D=-1,A=0,y=S;y<T;y++){var b=this.getRawIndex(y),w=a[b];if(isNaN(w)){A++,D<0&&(D=b);continue}c=Math.abs((C-m)*(w-x)-(C-y)*(_-x)),c>f&&(f=c,h=b)}A>0&&A<T-S&&(d[s++]=Math.min(D,h),h=Math.max(D,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Ia(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],d=f,v=o[this.getRawIndex(d)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),_=o[m];_<h&&(h=_,c=f+g),_>v&&(v=_,d=f+g)}var y=this.getRawIndex(c),b=this.getRawIndex(d);c<d?(l[u++]=y,l[u++]=b):(l[u++]=b,l[u++]=y)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Aa(),h=new(Ia(this._rawCount))(Math.ceil(f/l)),d=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),_=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[_]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=_}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Aa();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&wo(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?KR(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Se(this._extent),e._rawExtent=Se(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Mu(r[a],this._dimensions[a])}yh={arrayRows:e,objectRows:function(r,n,i,a){return Mu(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Mu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),qR=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(jl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=tr(s)?ni:Ir,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=ye(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=ye(c.sourceHeader,h.sourceHeader),p=ye(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=g?[av(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var m=e;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var y=m.get("source",!0);i=[av(y,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&e_(a)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&e_(c),s.push(f),l.push(u._getVersionSign())}),n?o=GR(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[IR(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];jl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new ov,s.initData(new AS(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(jl(e)){var r=bS(e);return r?[r.getSourceManager()]:[]}else return Me(eR(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(jl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function jl(t){return t.mainType==="series"}function e_(t){throw new Error(t)}var jR="line-height:1";function kS(t){var e=t.lineHeight;return e==null?jR:"line-height:"+Bt(e+"")+"px"}function NS(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Bt(n+"")+"px;color:"+Bt(r)+";font-weight:"+Bt(i+""),valueStyle:"font-size:"+Bt(o+"")+"px;color:"+Bt(a)+";font-weight:"+Bt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var ZR=[0,10,20,30],QR=["",`
50
+ `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=cr(h,e),v=n?!1:!DE(h);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(v?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=h,f=d)):v?(a.push(l),o.push(u),l=h,u=d):(a.push(h),o.push(d));continue}f+=d,v?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Xd="__zr_style_"+Math.round(Math.random()*10),Zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qf={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zi[Xd]=!0;var qm=["z","z2","invisible"],IE=["invisible"],To=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Je(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&AE(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ae(0,0,0,0)),n?Ae.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new Ae(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:$(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ts,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ts)},e.prototype.styleUpdated=function(){this.__dirty&=~ts},e.prototype.createStyle=function(r){return Gf(Zi,r)},e.prototype.useStyle=function(r){r[Xd]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[Xd]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,qm)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var c=Je(f),h=0;h<c.length;h++){var d=c[h];d in u&&(u[d]=u[d],this.style[d]=f[d])}for(var v=Je(u),h=0;h<v.length;h++){var d=v[h];this.style[d]=this.style[d]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?IE:qm,h=0;h<p.length;h++){var d=p[h];n&&n[d]!=null?this[d]=n[d]:l&&i[d]!=null&&(this[d]=i[d])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return $(r,n),r},e.prototype.getAnimationStyleProps=function(){return qf},e.initDefaultProps=function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=sr|ts}(),e}(Yf),Zc=new Ae(0,0,0,0),Qc=new Ae(0,0,0,0);function AE(t,e,r){return Zc.copy(t.getBoundingRect()),t.transform&&Zc.applyTransform(t.transform),Qc.width=e,Qc.height=r,!Zc.intersect(Qc)}var qt=Math.min,jt=Math.max,Jc=Math.sin,eh=Math.cos,_i=Math.PI*2,Vl=ca(),Hl=ca(),zl=ca();function ME(t,e,r){if(t.length!==0){for(var n=t[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<t.length;l++)n=t[l],i=qt(i,n[0]),a=jt(a,n[0]),o=qt(o,n[1]),s=jt(s,n[1]);e[0]=i,e[1]=o,r[0]=a,r[1]=s}}function jm(t,e,r,n,i,a){i[0]=qt(t,r),i[1]=qt(e,n),a[0]=jt(t,r),a[1]=jt(e,n)}var Zm=[],Qm=[];function EE(t,e,r,n,i,a,o,s,l,u){var f=c1,c=Ft,h=f(t,r,i,o,Zm);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<h;d++){var v=c(t,r,i,o,Zm[d]);l[0]=qt(v,l[0]),u[0]=jt(v,u[0])}h=f(e,n,a,s,Qm);for(var d=0;d<h;d++){var p=c(e,n,a,s,Qm[d]);l[1]=qt(p,l[1]),u[1]=jt(p,u[1])}l[0]=qt(t,l[0]),u[0]=jt(t,u[0]),l[0]=qt(o,l[0]),u[0]=jt(o,u[0]),l[1]=qt(e,l[1]),u[1]=jt(e,u[1]),l[1]=qt(s,l[1]),u[1]=jt(s,u[1])}function LE(t,e,r,n,i,a,o,s){var l=h1,u=Vt,f=jt(qt(l(t,r,i),1),0),c=jt(qt(l(e,n,a),1),0),h=u(t,r,i,f),d=u(e,n,a,c);o[0]=qt(t,i,h),o[1]=qt(e,a,d),s[0]=jt(t,i,h),s[1]=jt(e,a,d)}function PE(t,e,r,n,i,a,o,s,l){var u=$a,f=Ua,c=Math.abs(i-a);if(c%_i<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Vl[0]=eh(i)*r+t,Vl[1]=Jc(i)*n+e,Hl[0]=eh(a)*r+t,Hl[1]=Jc(a)*n+e,u(s,Vl,Hl),f(l,Vl,Hl),i=i%_i,i<0&&(i=i+_i),a=a%_i,a<0&&(a=a+_i),i>a&&!o?a+=_i:i<a&&o&&(i+=_i),o){var h=a;a=i,i=h}for(var d=0;d<a;d+=Math.PI/2)d>i&&(zl[0]=eh(d)*r+t,zl[1]=Jc(d)*n+e,u(s,zl,s),f(l,zl,l))}var Re={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bi=[],wi=[],$r=[],Rn=[],Ur=[],Gr=[],th=Math.min,rh=Math.max,Si=Math.cos,Ti=Math.sin,fn=Math.abs,Kd=Math.PI,Hn=Kd*2,nh=typeof Float32Array<"u",No=[];function ih(t){var e=Math.round(t/Kd*1e8)/1e8;return e%2*Kd}function RE(t,e){var r=ih(t[0]);r<0&&(r+=Hn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Hn?i=r+Hn:e&&r-i>=Hn?i=r-Hn:!e&&r>i?i=r+(Hn-ih(r-i)):e&&r<i&&(i=r-(Hn-ih(i-r))),t[0]=r,t[1]=i}var fo=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=fn(n/tf/e)||0,this._uy=fn(n/tf/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Re.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=fn(e-this._xi),i=fn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Re.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Re.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Re.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),No[0]=i,No[1]=a,RE(No,o),i=No[0],a=No[1];var s=a-i;return this.addData(Re.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Si(a)*n+e,this._yi=Ti(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Re.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Re.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var r=e.length;!(this.data&&this.data.length===r)&&nh&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();nh&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},t.prototype.addData=function(e,r,n,i,a,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]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,nh&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){$r[0]=$r[1]=Ur[0]=Ur[1]=Number.MAX_VALUE,Rn[0]=Rn[1]=Gr[0]=Gr[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Re.M:r=i=e[o++],n=a=e[o++],Ur[0]=i,Ur[1]=a,Gr[0]=i,Gr[1]=a;break;case Re.L:jm(r,n,e[o],e[o+1],Ur,Gr),r=e[o++],n=e[o++];break;case Re.C:EE(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Ur,Gr),r=e[o++],n=e[o++];break;case Re.Q:LE(r,n,e[o++],e[o++],e[o],e[o+1],Ur,Gr),r=e[o++],n=e[o++];break;case Re.A:var u=e[o++],f=e[o++],c=e[o++],h=e[o++],d=e[o++],v=e[o++]+d;o+=1;var p=!e[o++];l&&(i=Si(d)*c+u,a=Ti(d)*h+f),PE(u,f,c,h,d,v,p,Ur,Gr),r=Si(v)*c+u,n=Ti(v)*h+f;break;case Re.R:i=r=e[o++],a=n=e[o++];var g=e[o++],m=e[o++];jm(i,a,i+g,a+m,Ur,Gr);break;case Re.Z:r=i,n=a;break}$a($r,$r,Ur),Ua(Rn,Rn,Gr)}return o===0&&($r[0]=$r[1]=Rn[0]=Rn[1]=0),new Ae($r[0],$r[1],Rn[0]-$r[0],Rn[1]-$r[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,h=0;h<r;){var d=e[h++],v=h===1;v&&(a=e[h],o=e[h+1],s=a,l=o);var p=-1;switch(d){case Re.M:a=s=e[h++],o=l=e[h++];break;case Re.L:{var g=e[h++],m=e[h++],_=g-a,y=m-o;(fn(_)>n||fn(y)>i||h===r-1)&&(p=Math.sqrt(_*_+y*y),a=g,o=m);break}case Re.C:{var b=e[h++],w=e[h++],g=e[h++],m=e[h++],S=e[h++],T=e[h++];p=aM(a,o,b,w,g,m,S,T,10),a=S,o=T;break}case Re.Q:{var b=e[h++],w=e[h++],g=e[h++],m=e[h++];p=lM(a,o,b,w,g,m,10),a=g,o=m;break}case Re.A:var C=e[h++],x=e[h++],D=e[h++],A=e[h++],M=e[h++],R=e[h++],k=R+M;h+=1,v&&(s=Si(M)*D+C,l=Ti(M)*A+x),p=rh(D,A)*th(Hn,Math.abs(R)),a=Si(k)*D+C,o=Ti(k)*A+x;break;case Re.R:{s=a=e[h++],l=o=e[h++];var H=e[h++],N=e[h++];p=H*2+N*2;break}case Re.Z:{var _=s-a,y=l-o;p=Math.sqrt(_*_+y*y),a=s,o=l;break}}p>=0&&(u[c++]=p,f+=p)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,c,h,d=r<1,v,p,g=0,m=0,_,y=0,b,w;if(!(d&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,_=r*p,!_)))e:for(var S=0;S<o;){var T=n[S++],C=S===1;switch(C&&(u=n[S],f=n[S+1],s=u,l=f),T!==Re.L&&y>0&&(e.lineTo(b,w),y=0),T){case Re.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Re.L:{c=n[S++],h=n[S++];var x=fn(c-u),D=fn(h-f);if(x>i||D>a){if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;e.lineTo(u*(1-M)+c*M,f*(1-M)+h*M);break e}g+=A}e.lineTo(c,h),u=c,f=h,y=0}else{var R=x*x+D*D;R>y&&(b=c,w=h,y=R)}break}case Re.C:{var k=n[S++],H=n[S++],N=n[S++],q=n[S++],U=n[S++],ue=n[S++];if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;Qu(u,k,N,U,M,bi),Qu(f,H,q,ue,M,wi),e.bezierCurveTo(bi[1],wi[1],bi[2],wi[2],bi[3],wi[3]);break e}g+=A}e.bezierCurveTo(k,H,N,q,U,ue),u=U,f=ue;break}case Re.Q:{var k=n[S++],H=n[S++],N=n[S++],q=n[S++];if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;Fs(u,k,N,M,bi),Fs(f,H,q,M,wi),e.quadraticCurveTo(bi[1],wi[1],bi[2],wi[2]);break e}g+=A}e.quadraticCurveTo(k,H,N,q),u=N,f=q;break}case Re.A:var He=n[S++],Xe=n[S++],_e=n[S++],ct=n[S++],mt=n[S++],zt=n[S++],Lt=n[S++],$t=!n[S++],be=_e>ct?_e:ct,ne=fn(_e-ct)>.001,ve=mt+zt,K=!1;if(d){var A=v[m++];g+A>_&&(ve=mt+zt*(_-g)/A,K=!0),g+=A}if(ne&&e.ellipse?e.ellipse(He,Xe,_e,ct,Lt,mt,ve,$t):e.arc(He,Xe,be,mt,ve,$t),K)break e;C&&(s=Si(mt)*_e+He,l=Ti(mt)*ct+Xe),u=Si(ve)*_e+He,f=Ti(ve)*ct+Xe;break;case Re.R:s=u=n[S],l=f=n[S+1],c=n[S++],h=n[S++];var J=n[S++],I=n[S++];if(d){var A=v[m++];if(g+A>_){var E=_-g;e.moveTo(c,h),e.lineTo(c+th(E,J),h),E-=J,E>0&&e.lineTo(c+J,h+th(E,I)),E-=I,E>0&&e.lineTo(c+rh(J-E,0),h+I),E-=J,E>0&&e.lineTo(c,h+rh(I-E,0));break e}g+=A}e.rect(c,h,J,I);break;case Re.Z:if(d){var A=v[m++];if(g+A>_){var M=(_-g)/A;e.lineTo(u*(1-M)+s*M,f*(1-M)+l*M);break e}g+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.CMD=Re,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Sa(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,c=f*f/(l*l+1);return c<=s/2*s/2}function OE(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>n+c&&f>a+c&&f>s+c||f<e-c&&f<n-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>i+c&&u>o+c||u<t-c&&u<r-c&&u<i-c&&u<o-c)return!1;var h=iM(t,e,r,n,i,a,o,s,u,f);return h<=c/2}function kE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=sM(t,e,r,n,i,a,s,l);return f<=u/2}var Jm=Math.PI*2;function $l(t){return t%=Jm,t<0&&(t+=Jm),t}var Bo=Math.PI*2;function NE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%Bo<1e-4)return!0;if(a){var c=n;n=$l(i),i=$l(c)}else n=$l(n),i=$l(i);n>i&&(i+=Bo);var h=Math.atan2(l,s);return h<0&&(h+=Bo),h>=n&&h<=i||h+Bo>=n&&h+Bo<=i}function xi(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var On=fo.CMD,Ci=Math.PI*2,BE=1e-4;function FE(t,e){return Math.abs(t-e)<BE}var Ot=[-1,-1,-1],yr=[-1,-1];function VE(){var t=yr[0];yr[0]=yr[1],yr[1]=t}function HE(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=f1(e,n,a,s,u,Ot);if(f===0)return 0;for(var c=0,h=-1,d=void 0,v=void 0,p=0;p<f;p++){var g=Ot[p],m=g===0||g===1?.5:1,_=Ft(t,r,i,o,g);_<l||(h<0&&(h=c1(e,n,a,s,yr),yr[1]<yr[0]&&h>1&&VE(),d=Ft(e,n,a,s,yr[0]),h>1&&(v=Ft(e,n,a,s,yr[1]))),h===2?g<yr[0]?c+=d<e?m:-m:g<yr[1]?c+=v<d?m:-m:c+=s<v?m:-m:g<yr[0]?c+=d<e?m:-m:c+=s<d?m:-m)}return c}function zE(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=oM(e,n,a,s,Ot);if(l===0)return 0;var u=h1(e,n,a);if(u>=0&&u<=1){for(var f=0,c=Vt(e,n,a,u),h=0;h<l;h++){var d=Ot[h]===0||Ot[h]===1?.5:1,v=Vt(t,r,i,Ot[h]);v<o||(Ot[h]<u?f+=c<e?d:-d:f+=a<c?d:-d)}return f}else{var d=Ot[0]===0||Ot[0]===1?.5:1,v=Vt(t,r,i,Ot[0]);return v<o?0:a<e?d:-d}}function $E(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Ot[0]=-l,Ot[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ci-1e-4){n=0,i=Ci;var f=a?1:-1;return o>=Ot[0]+t&&o<=Ot[1]+t?f:0}if(n>i){var c=n;n=i,i=c}n<0&&(n+=Ci,i+=Ci);for(var h=0,d=0;d<2;d++){var v=Ot[d];if(v+t>o){var p=Math.atan2(s,v),f=a?1:-1;p<0&&(p=Ci+p),(p>=n&&p<=i||p+Ci>=n&&p+Ci<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),h+=f)}}return h}function F1(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,h,d,v=0;v<o;){var p=a[v++],g=v===1;switch(p===On.M&&v>1&&(r||(s+=xi(l,u,f,c,n,i))),g&&(l=a[v],u=a[v+1],f=l,c=u),p){case On.M:f=a[v++],c=a[v++],l=f,u=c;break;case On.L:if(r){if(Sa(l,u,a[v],a[v+1],e,n,i))return!0}else s+=xi(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case On.C:if(r){if(OE(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=HE(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case On.Q:if(r){if(kE(l,u,a[v++],a[v++],a[v],a[v+1],e,n,i))return!0}else s+=zE(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case On.A:var m=a[v++],_=a[v++],y=a[v++],b=a[v++],w=a[v++],S=a[v++];v+=1;var T=!!(1-a[v++]);h=Math.cos(w)*y+m,d=Math.sin(w)*b+_,g?(f=h,c=d):s+=xi(l,u,h,d,n,i);var C=(n-m)*b/y+m;if(r){if(NE(m,_,b,w,w+S,T,e,C,i))return!0}else s+=$E(m,_,b,w,w+S,T,C,i);l=Math.cos(w+S)*y+m,u=Math.sin(w+S)*b+_;break;case On.R:f=l=a[v++],c=u=a[v++];var x=a[v++],D=a[v++];if(h=f+x,d=c+D,r){if(Sa(f,c,h,c,e,n,i)||Sa(h,c,h,d,e,n,i)||Sa(h,d,f,d,e,n,i)||Sa(f,d,f,c,e,n,i))return!0}else s+=xi(h,c,h,d,n,i),s+=xi(f,d,f,c,n,i);break;case On.Z:if(r){if(Sa(l,u,f,c,e,n,i))return!0}else s+=xi(l,u,f,c,n,i);l=f,u=c;break}}return!r&&!FE(u,c)&&(s+=xi(l,u,f,c,n,i)||0),s!==0}function UE(t,e,r){return F1(t,0,!1,e,r)}function GE(t,e,r,n){return F1(t,e,!0,r,n)}var V1=Ke({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zi),WE={style:Ke({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qf.style)},ah=Vs.concat(["invisible","culling","z","z2","zlevel","parent"]),Ye=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<ah.length;++s)i[ah[s]]=this[ah[s]];i.__dirty|=sr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Je(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?$(this.style,s):this.useStyle(s):o==="shape"?$(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(ae(r)){var n=ef(r,0);return n>.5?Ud:n>.2?MM:Gd}else if(r)return Gd}return Ud},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(ae(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=ef(r,0)<$d;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Va},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new fo(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Va)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);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 r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,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)),GE(s,l/u,r,n)))return!0}if(this.hasFill())return UE(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Va,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:$(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Va)},e.prototype.createStyle=function(r){return Gf(V1,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=$({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=$({},i.shape),$(u,n.shape)):(u=$({},a?this.shape:i.shape),$(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=$({},this.shape);for(var f={},c=Je(u),h=0;h<c.length;h++){var d=c[h];typeof u[d]=="object"?this.shape[d]=u[d]:f[d]=u[d]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return WE},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=function(a){re(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Se(r.style)},o.prototype.getDefaultShape=function(){return Se(r.shape)},o}(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=sr|ts|Va}(),e}(To),YE=Ke({strokeFirst:!0,font:na,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},V1),af=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Gf(YE,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=b1(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var r=e.prototype;r.dirtyRectTolerance=10}(),e}(To);af.prototype.type="tspan";var XE=Ke({x:0,y:0},Zi),KE={style:Ke({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qf.style)};function qE(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var li=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Gf(XE,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=qE(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return KE},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ae(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e}(To);li.prototype.type="image";function jE(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),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>i&&(c=s+l,s*=i/c,l*=i/c),u+f>i&&(c=u+f,u*=i/c,f*=i/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Wa=Math.round;function H1(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Wa(n*2)===Wa(i*2)&&(t.x1=t.x2=zi(n,s,!0)),Wa(a*2)===Wa(o*2)&&(t.y1=t.y2=zi(a,s,!0))),t}}function z1(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=zi(n,s,!0),t.y=zi(i,s,!0),t.width=Math.max(zi(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(zi(i+o,s,!1)-t.y,o===0?0:1)),t}}function zi(t,e,r){if(!e)return t;var n=Wa(t*2);return(n+Wa(e))%2===0?n/2:(n+(r?1:-1))/2}var ZE=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),QE={},Mt=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new ZE},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=z1(QE,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?jE(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ye);Mt.prototype.type="rect";var ey={fill:"#000"},ty=2,JE={style:Ke({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},qf.style)},Et=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ey,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,iL(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Ae(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||ey},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return $(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Je(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},$(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return JE},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||na,i=r.padding,a=ly(r),o=bE(a,r),s=oh(r),l=!!r.backgroundColor,u=o.outerHeight,f=o.outerWidth,c=o.contentWidth,h=o.lines,d=o.lineHeight,v=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=r.x||0,g=r.y||0,m=r.align||v.align||"left",_=r.verticalAlign||v.verticalAlign||"top",y=p,b=Ha(g,o.contentHeight,_);if(s||i){var w=ns(p,f,m),S=Ha(g,u,_);s&&this._renderBackground(r,r,w,S,f,u)}b+=d/2,i&&(y=sy(p,m,i),_==="top"?b+=i[0]:_==="bottom"&&(b-=i[2]));for(var T=0,C=!1,x=oy("fill"in r?r.fill:(C=!0,v.fill)),D=ay("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(T=ty,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),R=o.calculatedLineHeight,k=0;k<h.length;k++){var H=this._getOrCreateChild(af),N=H.createStyle();H.useStyle(N),N.text=h[k],N.x=y,N.y=b,N.textAlign=m,N.textBaseline="middle",N.opacity=r.opacity,N.strokeFirst=!0,A&&(N.shadowBlur=r.textShadowBlur||0,N.shadowColor=r.textShadowColor||"transparent",N.shadowOffsetX=r.textShadowOffsetX||0,N.shadowOffsetY=r.textShadowOffsetY||0),N.stroke=D,N.fill=x,D&&(N.lineWidth=r.lineWidth||T,N.lineDash=r.lineDash,N.lineDashOffset=r.lineDashOffset||0),N.font=n,ny(N,r),b+=d,M&&H.setBoundingRect(new Ae(ns(N.x,c,N.textAlign),Ha(N.y,R,N.textBaseline),c,R))}},e.prototype._updateRichTexts=function(){var r=this.style,n=ly(r),i=TE(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,f=r.y||0,c=this._defaultStyle,h=r.align||c.align,d=r.verticalAlign||c.verticalAlign;this.isTruncated=!!i.isTruncated;var v=ns(u,o,h),p=Ha(f,s,d),g=v,m=p;l&&(g+=l[3],m+=l[0]);var _=g+a;oh(r)&&this._renderBackground(r,r,v,p,o,s);for(var y=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var w=i.lines[b],S=w.tokens,T=S.length,C=w.lineHeight,x=w.width,D=0,A=g,M=_,R=T-1,k=void 0;D<T&&(k=S[D],!k.align||k.align==="left");)this._placeToken(k,r,C,m,A,"left",y),x-=k.width,A+=k.width,D++;for(;R>=0&&(k=S[R],k.align==="right");)this._placeToken(k,r,C,m,M,"right",y),x-=k.width,M-=k.width,R--;for(A+=(a-(A-g)-(_-M)-x)/2;D<=R;)k=S[D],this._placeToken(k,r,C,m,A+k.width/2,"center",y),A+=k.width,D++;m+=C}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+i/2;f==="top"?c=a+r.height/2:f==="bottom"&&(c=a+i-r.height/2);var h=!r.isLineHolder&&oh(u);h&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,c-r.height/2,r.width,r.height);var d=!!u.backgroundColor,v=r.textPadding;v&&(o=sy(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(af),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,_=!1,y=0,b=oy("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,m.fill)),w=ay("stroke"in u?u.stroke:"stroke"in n?n.stroke:!d&&!l&&(!m.autoStroke||_)?(y=ty,m.stroke):null),S=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=c,S&&(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=r.font||na,g.opacity=Ki(u.opacity,n.opacity,1),ny(g,u),w&&(g.lineWidth=Ki(u.lineWidth,n.lineWidth,y),g.lineDash=ye(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),b&&(g.fill=b);var T=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new Ae(ns(g.x,T,g.textAlign),Ha(g.y,C,g.textBaseline),T,C))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,h=l&&!c,d=r.borderRadius,v=this,p,g;if(h||r.lineHeight||u&&f){p=this._getOrCreateChild(Mt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=d,p.dirtyShape()}if(h){var _=p.style;_.fill=l||null,_.fillOpacity=ye(r.fillOpacity,1)}else if(c){g=this._getOrCreateChild(li),g.onload=function(){v.dirtyStyle()};var y=g.style;y.image=l.image,y.x=i,y.y=a,y.width=o,y.height=s}if(u&&f){var _=p.style;_.lineWidth=u,_.stroke=f,_.strokeOpacity=ye(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Ki(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nL(r)&&(n=[r.fontStyle,r.fontWeight,rL(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&jr(n)||r.textFont||r.font},e}(To),eL={left:!0,right:1,center:1},tL={top:1,bottom:1,middle:1},ry=["fontStyle","fontWeight","fontSize","fontFamily"];function rL(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?fp+"px":t+"px"}function ny(t,e){for(var r=0;r<ry.length;r++){var n=ry[r],i=e[n];i!=null&&(t[n]=i)}}function nL(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function iL(t){return iy(t),L(t.rich,iy),t}function iy(t){if(t){t.font=Et.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||eL[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||tL[r]?r:"top";var n=t.padding;n&&(t.padding=pp(t.padding))}}function ay(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function oy(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function sy(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function ly(t){var e=t.text;return e!=null&&(e+=""),e}function oh(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Pe=at(),aL=function(t,e,r,n){if(n){var i=Pe(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Pe(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},uy=1,fy={},$1=at(),Dp=at(),U1=0,Ip=1,Ap=2,tn=["emphasis","blur","select"],cy=["normal","emphasis","blur","select"],pl=10,oL=9,Qi="highlight",Cu="downplay",bs="select",Du="unselect",ws="toggleSelect";function Ta(t){return t!=null&&t!=="none"}function jf(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function G1(t){jf(t,"emphasis",Ap)}function W1(t){t.hoverState===Ap&&jf(t,"normal",U1)}function Mp(t){jf(t,"blur",Ip)}function Y1(t){t.hoverState===Ip&&jf(t,"normal",U1)}function sL(t){t.selected=!0}function lL(t){t.selected=!1}function hy(t,e,r){e(t,r)}function En(t,e,r){hy(t,e,r),t.isGroup&&t.traverse(function(n){hy(n,e,r)})}function uL(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function fL(t,e,r,n){var i=r&&ke(r,"select")>=0,a=!1;if(t instanceof Ye){var o=$1(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ta(s)||Ta(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=$({},n),u=$({},u),u.fill=s):!Ta(u.fill)&&Ta(s)?(a=!0,n=$({},n),u=$({},u),u.fill=Em(s)):!Ta(u.stroke)&&Ta(l)&&(a||(n=$({},n),u=$({},u)),u.stroke=Em(l)),n.style=u}}if(n&&n.z2==null){a||(n=$({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??pl)}return n}function cL(t,e,r){if(r&&r.z2==null){r=$({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??oL)}return r}function hL(t,e,r){var n=ke(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:uL(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=$({},r),o=$({opacity:n?i:a.opacity*.1},o),r.style=o),r}function sh(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return fL(this,t,e,r);if(t==="blur")return hL(this,t,r);if(t==="select")return cL(this,t,r)}return r}function qd(t){t.stateProxy=sh;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=sh),r&&(r.stateProxy=sh)}function dy(t,e){!j1(t,e)&&!t.__highByOuter&&En(t,G1)}function vy(t,e){!j1(t,e)&&!t.__highByOuter&&En(t,W1)}function $s(t,e){t.__highByOuter|=1<<(e||0),En(t,G1)}function Us(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&En(t,W1)}function dL(t){En(t,Mp)}function X1(t){En(t,Y1)}function K1(t){En(t,sL)}function q1(t){En(t,lL)}function j1(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Z1(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=Dp(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){Y1(u)}),s&&r.push(a)),o.isBlured=!1}),L(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function jd(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&X1(h)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var h=c&&s?c===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!h||e==="series"&&f)){var d=n.getViewOfSeriesModel(u);if(d.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Mp(g)}),er(e))a(u.getData(),e);else if(se(e))for(var v=Je(e),p=0;p<v.length;p++)a(u.getData(v[p]),e[v[p]]);l.push(u),Dp(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var c=n.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,i)}})}}function Zd(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){Dp(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mp(a)})}}}function vL(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=dl(i,e);a=(Z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Pe(o);jd(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),c=t.get(["emphasis","blurScope"]);f!=null&&jd(n,f,c,r)}}}function Ep(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Pe(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function pL(t,e,r){var n=Pe(t),i=Ep(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Zd(n.componentMainType,n.componentIndex,r),L(a,function(s){return dy(s,e)})):(jd(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Zd(n.componentMainType,n.componentIndex,r),dy(t,e))}function gL(t,e,r){Z1(r);var n=Pe(t),i=Ep(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?L(i,function(a){return vy(a,e)}):vy(t,e)}function mL(t,e,r){if(ev(e)){var n=e.dataType,i=t.getData(n),a=dl(i,e);Z(a)||(a=[a]),t[e.type===ws?"toggleSelect":e.type===bs?"select":"unselect"](a,n)}}function py(t){var e=t.getAllData();L(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?K1(a):q1(a)})})}function yL(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();L(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Qd(t,e,r){Ya(t,!0),En(t,qd),Jd(t,e,r)}function _L(t){Ya(t,!1)}function Lp(t,e,r,n){n?_L(t):Qd(t,e,r)}function Jd(t,e,r){var n=Pe(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}function Ya(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Gs(t){return!!(t&&t.__highDownDispatcher)}function bL(t){var e=fy[t];return e==null&&uy<=32&&(e=fy[t]=uy++),e}function ev(t){var e=t.type;return e===bs||e===Du||e===ws}function gy(t){var e=t.type;return e===Qi||e===Cu}function wL(t){var e=$1(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var xa=fo.CMD,SL=[[],[],[]],my=Math.sqrt,TL=Math.atan2;function xL(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=xa.M,c=xa.C,h=xa.L,d=xa.R,v=xa.A,p=xa.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case h:a=1;break;case c:a=3;break;case p:a=2;break;case v:var g=e[4],m=e[5],_=my(e[0]*e[0]+e[1]*e[1]),y=my(e[2]*e[2]+e[3]*e[3]),b=TL(-e[1]/y,e[0]/_);r[o]*=_,r[o++]+=g,r[o]*=y,r[o++]+=m,r[o++]*=_,r[o++]*=y,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case d:u[0]=r[o++],u[1]=r[o++],fr(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],fr(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=SL[l];w[0]=r[o++],w[1]=r[o++],fr(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var lh=Math.sqrt,Ul=Math.sin,Gl=Math.cos,Fo=Math.PI;function yy(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function tv(t,e){return(t[0]*e[0]+t[1]*e[1])/(yy(t)*yy(e))}function _y(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(tv(t,e))}function by(t,e,r,n,i,a,o,s,l,u,f){var c=l*(Fo/180),h=Gl(c)*(t-r)/2+Ul(c)*(e-n)/2,d=-1*Ul(c)*(t-r)/2+Gl(c)*(e-n)/2,v=h*h/(o*o)+d*d/(s*s);v>1&&(o*=lh(v),s*=lh(v));var p=(i===a?-1:1)*lh((o*o*(s*s)-o*o*(d*d)-s*s*(h*h))/(o*o*(d*d)+s*s*(h*h)))||0,g=p*o*d/s,m=p*-s*h/o,_=(t+r)/2+Gl(c)*g-Ul(c)*m,y=(e+n)/2+Ul(c)*g+Gl(c)*m,b=_y([1,0],[(h-g)/o,(d-m)/s]),w=[(h-g)/o,(d-m)/s],S=[(-1*h-g)/o,(-1*d-m)/s],T=_y(w,S);if(tv(w,S)<=-1&&(T=Fo),tv(w,S)>=1&&(T=0),T<0){var C=Math.round(T/Fo*1e6)/1e6;T=Fo*2+C%2*Fo}f.addData(u,_,y,o,s,b,T,c,a)}var CL=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,DL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IL(t){var e=new fo;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=fo.CMD,l=t.match(CL);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),h=void 0,d=f.match(DL)||[],v=d.length,p=0;p<v;p++)d[p]=parseFloat(d[p]);for(var g=0;g<v;){var m=void 0,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0,T=void 0,C=r,x=n,D=void 0,A=void 0;switch(c){case"l":r+=d[g++],n+=d[g++],h=s.L,e.addData(h,r,n);break;case"L":r=d[g++],n=d[g++],h=s.L,e.addData(h,r,n);break;case"m":r+=d[g++],n+=d[g++],h=s.M,e.addData(h,r,n),i=r,a=n,c="l";break;case"M":r=d[g++],n=d[g++],h=s.M,e.addData(h,r,n),i=r,a=n,c="L";break;case"h":r+=d[g++],h=s.L,e.addData(h,r,n);break;case"H":r=d[g++],h=s.L,e.addData(h,r,n);break;case"v":n+=d[g++],h=s.L,e.addData(h,r,n);break;case"V":n=d[g++],h=s.L,e.addData(h,r,n);break;case"C":h=s.C,e.addData(h,d[g++],d[g++],d[g++],d[g++],d[g++],d[g++]),r=d[g-2],n=d[g-1];break;case"c":h=s.C,e.addData(h,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n,d[g++]+r,d[g++]+n),r+=d[g-2],n+=d[g-1];break;case"S":m=r,_=n,D=e.len(),A=e.data,o===s.C&&(m+=r-A[D-4],_+=n-A[D-3]),h=s.C,C=d[g++],x=d[g++],r=d[g++],n=d[g++],e.addData(h,m,_,C,x,r,n);break;case"s":m=r,_=n,D=e.len(),A=e.data,o===s.C&&(m+=r-A[D-4],_+=n-A[D-3]),h=s.C,C=r+d[g++],x=n+d[g++],r+=d[g++],n+=d[g++],e.addData(h,m,_,C,x,r,n);break;case"Q":C=d[g++],x=d[g++],r=d[g++],n=d[g++],h=s.Q,e.addData(h,C,x,r,n);break;case"q":C=d[g++]+r,x=d[g++]+n,r+=d[g++],n+=d[g++],h=s.Q,e.addData(h,C,x,r,n);break;case"T":m=r,_=n,D=e.len(),A=e.data,o===s.Q&&(m+=r-A[D-4],_+=n-A[D-3]),r=d[g++],n=d[g++],h=s.Q,e.addData(h,m,_,r,n);break;case"t":m=r,_=n,D=e.len(),A=e.data,o===s.Q&&(m+=r-A[D-4],_+=n-A[D-3]),r+=d[g++],n+=d[g++],h=s.Q,e.addData(h,m,_,r,n);break;case"A":y=d[g++],b=d[g++],w=d[g++],S=d[g++],T=d[g++],C=r,x=n,r=d[g++],n=d[g++],h=s.A,by(C,x,r,n,S,T,y,b,w,h,e);break;case"a":y=d[g++],b=d[g++],w=d[g++],S=d[g++],T=d[g++],C=r,x=n,r+=d[g++],n+=d[g++],h=s.A,by(C,x,r,n,S,T,y,b,w,h,e);break}}(c==="z"||c==="Z")&&(h=s.Z,e.addData(h),r=i,n=a),o=h}return e.toStatic(),e}var Q1=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e}(Ye);function J1(t){return t.setData!=null}function eS(t,e){var r=IL(t),n=$({},e);return n.buildPath=function(i){if(J1(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){xL(r,i),this.dirtyShape()},n}function AL(t,e){return new Q1(eS(t,e))}function ML(t,e){var r=eS(t,e),n=function(i){re(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(Q1);return n}function EL(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ye(e);return o.createPathProxy(),o.buildPath=function(s){if(J1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var LL=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Zf=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new LL},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(Ye);Zf.prototype.type="circle";var PL=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Pp=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new PL},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e}(Ye);Pp.prototype.type="ellipse";var tS=Math.PI,uh=tS*2,Di=Math.sin,Ca=Math.cos,RL=Math.acos,bt=Math.atan2,wy=Math.abs,Ss=Math.sqrt,is=Math.max,Wr=Math.min,Er=1e-4;function OL(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=c*l-f*u;if(!(h*h<Er))return h=(f*(e-a)-c*(t-i))/h,[t+h*l,e+h*u]}function Wl(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ss(s*s+l*l),f=u*l,c=-u*s,h=t+f,d=e+c,v=r+f,p=n+c,g=(h+v)/2,m=(d+p)/2,_=v-h,y=p-d,b=_*_+y*y,w=i-a,S=h*p-v*d,T=(y<0?-1:1)*Ss(is(0,w*w*b-S*S)),C=(S*y-_*T)/b,x=(-S*_-y*T)/b,D=(S*y+_*T)/b,A=(-S*_+y*T)/b,M=C-g,R=x-m,k=D-g,H=A-m;return M*M+R*R>k*k+H*H&&(C=D,x=A),{cx:C,cy:x,x0:-f,y0:-c,x1:C*(i/w-1),y1:x*(i/w-1)}}function kL(t){var e;if(Z(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function NL(t,e){var r,n=is(e.r,0),i=is(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,h=!!e.clockwise,d=wy(u-l),v=d>uh&&d%uh;if(v>Er&&(d=v),!(n>Er))t.moveTo(f,c);else if(d>uh-Er)t.moveTo(f+n*Ca(l),c+n*Di(l)),t.arc(f,c,n,l,u,!h),i>Er&&(t.moveTo(f+i*Ca(u),c+i*Di(u)),t.arc(f,c,i,u,l,h));else{var p=void 0,g=void 0,m=void 0,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0,T=void 0,C=void 0,x=void 0,D=void 0,A=void 0,M=void 0,R=void 0,k=void 0,H=n*Ca(l),N=n*Di(l),q=i*Ca(u),U=i*Di(u),ue=d>Er;if(ue){var He=e.cornerRadius;He&&(r=kL(He),p=r[0],g=r[1],m=r[2],_=r[3]);var Xe=wy(n-i)/2;if(y=Wr(Xe,m),b=Wr(Xe,_),w=Wr(Xe,p),S=Wr(Xe,g),x=T=is(y,b),D=C=is(w,S),(T>Er||C>Er)&&(A=n*Ca(u),M=n*Di(u),R=i*Ca(l),k=i*Di(l),d<tS)){var _e=OL(H,N,R,k,A,M,q,U);if(_e){var ct=H-_e[0],mt=N-_e[1],zt=A-_e[0],Lt=M-_e[1],$t=1/Di(RL((ct*zt+mt*Lt)/(Ss(ct*ct+mt*mt)*Ss(zt*zt+Lt*Lt)))/2),be=Ss(_e[0]*_e[0]+_e[1]*_e[1]);x=Wr(T,(n-be)/($t+1)),D=Wr(C,(i-be)/($t-1))}}}if(!ue)t.moveTo(f+H,c+N);else if(x>Er){var ne=Wr(m,x),ve=Wr(_,x),K=Wl(R,k,H,N,n,ne,h),J=Wl(A,M,q,U,n,ve,h);t.moveTo(f+K.cx+K.x0,c+K.cy+K.y0),x<T&&ne===ve?t.arc(f+K.cx,c+K.cy,x,bt(K.y0,K.x0),bt(J.y0,J.x0),!h):(ne>0&&t.arc(f+K.cx,c+K.cy,ne,bt(K.y0,K.x0),bt(K.y1,K.x1),!h),t.arc(f,c,n,bt(K.cy+K.y1,K.cx+K.x1),bt(J.cy+J.y1,J.cx+J.x1),!h),ve>0&&t.arc(f+J.cx,c+J.cy,ve,bt(J.y1,J.x1),bt(J.y0,J.x0),!h))}else t.moveTo(f+H,c+N),t.arc(f,c,n,l,u,!h);if(!(i>Er)||!ue)t.lineTo(f+q,c+U);else if(D>Er){var ne=Wr(p,D),ve=Wr(g,D),K=Wl(q,U,A,M,i,-ve,h),J=Wl(H,N,R,k,i,-ne,h);t.lineTo(f+K.cx+K.x0,c+K.cy+K.y0),D<C&&ne===ve?t.arc(f+K.cx,c+K.cy,D,bt(K.y0,K.x0),bt(J.y0,J.x0),!h):(ve>0&&t.arc(f+K.cx,c+K.cy,ve,bt(K.y0,K.x0),bt(K.y1,K.x1),!h),t.arc(f,c,i,bt(K.cy+K.y1,K.cx+K.x1),bt(J.cy+J.y1,J.cx+J.x1),h),ne>0&&t.arc(f+J.cx,c+J.cy,ne,bt(J.y1,J.x1),bt(J.y0,J.x0),!h))}else t.lineTo(f+q,c+U),t.arc(f,c,i,u,l,h)}t.closePath()}}}var BL=function(){function t(){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 t}(),Rp=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new BL},e.prototype.buildPath=function(r,n){NL(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ye);Rp.prototype.type="sector";var FL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Op=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new FL},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e}(Ye);Op.prototype.type="ring";function VL(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,c;if(n){f=[1/0,1/0],c=[-1/0,-1/0];for(var h=0,d=t.length;h<d;h++)$a(f,f,t[h]),Ua(c,c,t[h]);$a(f,f,n[0]),Ua(c,c,n[1])}for(var h=0,d=t.length;h<d;h++){var v=t[h];if(r)l=t[h?h-1:d-1],u=t[(h+1)%d];else if(h===0||h===d-1){i.push(bn(t[h]));continue}else l=t[h-1],u=t[h+1];Fi(a,u,l),yu(a,a,e);var p=Ld(v,l),g=Ld(v,u),m=p+g;m!==0&&(p/=m,g/=m),yu(o,a,-p),yu(s,a,g);var _=dm([],v,o),y=dm([],v,s);n&&(Ua(_,_,f),$a(_,_,c),Ua(y,y,f),$a(y,y,c)),i.push(_),i.push(y)}return r&&i.push(i.shift()),i}function rS(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=VL(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,c=i.length;s<c;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var HL=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Qf=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new HL},e.prototype.buildPath=function(r,n){rS(r,n,!0)},e}(Ye);Qf.prototype.type="polygon";var zL=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),kp=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zL},e.prototype.buildPath=function(r,n){rS(r,n,!1)},e}(Ye);kp.prototype.type="polyline";var $L={},UL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),ha=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UL},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=H1($L,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e}(Ye);ha.prototype.type="line";var Gt=[],GL=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function Sy(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?Cm:Ft)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Cm:Ft)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Dm:Vt)(t.x1,t.cpx1,t.x2,e),(r?Dm:Vt)(t.y1,t.cpy1,t.y2,e)]}var Jf=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GL},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,c=n.cpy2,h=n.percent;h!==0&&(r.moveTo(i,a),f==null||c==null?(h<1&&(Fs(i,l,o,h,Gt),l=Gt[1],o=Gt[2],Fs(a,u,s,h,Gt),u=Gt[1],s=Gt[2]),r.quadraticCurveTo(l,u,o,s)):(h<1&&(Qu(i,l,f,o,h,Gt),l=Gt[1],f=Gt[2],o=Gt[3],Qu(a,u,c,s,h,Gt),u=Gt[1],c=Gt[2],s=Gt[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return Sy(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Sy(this.shape,r,!0);return So(n,n)},e}(Ye);Jf.prototype.type="bezier-curve";var WL=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),ec=function(t){re(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WL},e.prototype.buildPath=function(r,n){var i=n.cx,a=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);r.moveTo(f*o+i,c*o+a),r.arc(i,a,o,s,l,!u)},e}(Ye);ec.prototype.type="arc";var YL=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ye.prototype.getBoundingRect.call(this)},e}(Ye),nS=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t}(),XL=function(t){re(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(nS),KL=function(t){re(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(nS),Ii=[0,0],Ai=[0,0],Yl=new Fe,Xl=new Fe,of=function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Fe;for(var n=0;n<2;n++)this._axes[n]=new Fe;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);Fe.sub(i[0],n[1],n[0]),Fe.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r){var n=!0,i=!r;return Yl.set(1/0,1/0),Xl.set(0,0),!this._intersectCheckOneSide(this,e,Yl,Xl,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,Yl,Xl,i,-1)&&(n=!1,i)||i||Fe.copy(r,n?Yl:Xl),n},t.prototype._intersectCheckOneSide=function(e,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Ii),this._getProjMinMaxOnAxis(l,r._corners,Ai),Ii[1]<Ai[0]||Ii[0]>Ai[1]){if(s=!1,a)return s;var f=Math.abs(Ai[0]-Ii[1]),c=Math.abs(Ii[0]-Ai[1]);Math.min(f,c)>i.len()&&(f<c?Fe.scale(i,u,-f*o):Fe.scale(i,u,c*o))}else if(n){var f=Math.abs(Ai[0]-Ii[1]),c=Math.abs(Ii[0]-Ai[1]);Math.min(f,c)<n.len()&&(f<c?Fe.scale(n,u,f*o):Fe.scale(n,u,-c*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},t}(),qL=[],jL=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Ae(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(qL)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e}(To),ZL=at();function QL(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,c=void 0;n?(u=ye(n.duration,200),f=ye(n.easing,"cubicOut"),c=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),c=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),Ie(c)&&(c=c(r,i)),Ie(u)&&(u=u(r));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Np(t,e,r,n,i,a,o){var s=!1,l;Ie(i)?(o=a,a=i,i=null):se(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=QL(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,d=f.easing,v={duration:c,delay:h||0,easing:d,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function ui(t,e,r,n,i,a){Np("update",t,e,r,n,i,a)}function Bp(t,e,r,n,i,a){Np("enter",t,e,r,n,i,a)}function Ts(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function sf(t,e,r,n,i,a){Ts(t)||Np("leave",t,e,r,n,i,a)}function Ty(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),sf(t,{style:{opacity:0}},e,r,n)}function JL(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||Ty(i,e,r,n)}):Ty(t,e,r,n)}function eP(t){ZL(t).oldStyle=t.style}var lf=Math.max,uf=Math.min,rv={};function tP(t){return Ye.extend(t)}var rP=ML;function nP(t,e){return rP(t,e)}function Hr(t,e){rv[t]=e}function iP(t){if(rv.hasOwnProperty(t))return rv[t]}function Fp(t,e,r,n){var i=AL(t,e);return r&&(n==="center"&&(r=aS(r,i.getBoundingRect())),oS(i,r)),i}function iS(t,e,r){var n=new li({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(aS(e,a))}}});return n}function aS(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var aP=EL;function oS(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Vp(t,e){return H1(t,t,{lineWidth:e}),t}function oP(t){return z1(t.shape,t.shape,t.style),t}var sP=zi;function lP(t,e){for(var r=mp([]);t&&t!==e;)ro(r,t.getLocalTransform(),r),t=t.parent;return r}function Hp(t,e,r){return e&&!er(e)&&(e=Vi.getLocalTransform(e)),r&&(e=_p([],e)),fr([],t,e)}function uP(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=Hp(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function xy(t){return!t.isGroup}function fP(t){return t.shape!=null}function cP(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){xy(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return fP(o)&&(s.shape=$({},o.shape)),s}var a=n(t);e.traverse(function(o){if(xy(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ui(o,l,r,Pe(o).dataIndex)}}})}function hP(t,e){return Me(t,function(r){var n=r[0];n=lf(n,e.x),n=uf(n,e.x+e.width);var i=r[1];return i=lf(i,e.y),i=uf(i,e.y+e.height),[n,i]})}function dP(t,e){var r=lf(t.x,e.x),n=uf(t.x+t.width,e.x+e.width),i=lf(t.y,e.y),a=uf(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function zp(t,e,r){var n=$({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Ke(i,r),new li(n)):Fp(t.replace("path://",""),n,r,"center")}function vP(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(sS(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function sS(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,c=s-a,h=fh(f,c,l,u);if(pP(h))return!1;var d=t-i,v=e-a,p=fh(d,v,l,u)/h;if(p<0||p>1)return!1;var g=fh(d,v,f,c)/h;return!(g<0||g>1)}function fh(t,e,r,n){return t*n-r*e}function pP(t){return t<=1e-6&&t>=-1e-6}function tc(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=ae(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&L(Je(l),function(f){ia(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=Pe(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ke({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Cy(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function rc(t,e){if(t)if(Z(t))for(var r=0;r<t.length;r++)Cy(t[r],e);else Cy(t,e)}Hr("circle",Zf);Hr("ellipse",Pp);Hr("sector",Rp);Hr("ring",Op);Hr("polygon",Qf);Hr("polyline",kp);Hr("rect",Mt);Hr("line",ha);Hr("bezierCurve",Jf);Hr("arc",ec);const gP=Object.freeze(Object.defineProperty({__proto__:null,Arc:ec,BezierCurve:Jf,BoundingRect:Ae,Circle:Zf,CompoundPath:YL,Ellipse:Pp,Group:ft,Image:li,IncrementalDisplayable:jL,Line:ha,LinearGradient:XL,OrientedBoundingRect:of,Path:Ye,Point:Fe,Polygon:Qf,Polyline:kp,RadialGradient:KL,Rect:Mt,Ring:Op,Sector:Rp,Text:Et,applyTransform:Hp,clipPointsByRect:hP,clipRectByRect:dP,createIcon:zp,extendPath:nP,extendShape:tP,getShapeClass:iP,getTransform:lP,groupTransition:cP,initProps:Bp,isElementRemoved:Ts,lineLineIntersect:sS,linePolygonIntersect:vP,makeImage:iS,makePath:Fp,mergePath:aP,registerShape:Hr,removeElement:sf,removeElementWithFadeOut:JL,resizePath:oS,setTooltipConfig:tc,subPixelOptimize:sP,subPixelOptimizeLine:Vp,subPixelOptimizeRect:oP,transformDirection:uP,traverseElements:rc,updateProps:ui},Symbol.toStringTag,{value:"Module"}));var nc={};function mP(t,e){for(var r=0;r<tn.length;r++){var n=tn[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function Dy(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Ie(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<tn.length;u++){var f=tn[u],c=e[f];l[f]=ye(n?n.getFormattedLabel(i,f,null,a,c&&c.get("formatter")):null,s)}return l}function ic(t,e,r,n){r=r||nc;for(var i=t instanceof Et,a=!1,o=0;o<cy.length;o++){var s=e[cy[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new Et,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=Dy(r,e),f=e.normal,c=!!f.getShallow("show"),h=rn(f,n,r,!1,!i);h.text=u.normal,i||t.setTextConfig(Iy(f,r,!1));for(var o=0;o<tn.length;o++){var d=tn[o],s=e[d];if(s){var v=l.ensureState(d),p=!!ye(s.getShallow("show"),c);if(p!==c&&(v.ignore=!p),v.style=rn(s,n,r,!0,!i),v.style.text=u[d],!i){var g=t.ensureState(d);g.textConfig=Iy(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),r.enableTextSetter&&(wP(l).setLabelText=function(m){var _=Dy(r,e,m);mP(l,_)})}else l&&(l.ignore=!0);t.dirty()}function gl(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<tn.length;n++){var i=tn[n];r[i]=t.getModel([i,e])}return r}function rn(t,e,r,n,i){var a={};return yP(a,t,r,n,i),e&&$(a,e),a}function Iy(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=ye(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",n}function yP(t,e,r,n,i){r=r||nc;var a=e.ecModel,o=a&&a.option.textStyle,s=_P(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);Ly(l[u]={},f,o,r,n,i,!1,!0)}}l&&(t.rich=l);var c=e.get("overflow");c&&(t.overflow=c);var h=e.get("minMargin");h!=null&&(t.margin=h),Ly(t,e,o,r,n,i,!0,!1)}function _P(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||nc).rich;if(r){e=e||{};for(var n=Je(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var Ay=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],My=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Ey=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ly(t,e,r,n,i,a,o,s){r=!i&&r||nc;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),c=ye(e.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||r.color,f=f||r.textBorderColor),u!=null&&(t.fill=u),f!=null&&(t.stroke=f);var h=ye(e.getShallow("textBorderWidth"),r.textBorderWidth);h!=null&&(t.lineWidth=h);var d=ye(e.getShallow("textBorderType"),r.textBorderType);d!=null&&(t.lineDash=d);var v=ye(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!i&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(t.opacity=c),!i&&!a&&t.fill==null&&n.inheritColor&&(t.fill=n.inheritColor);for(var p=0;p<Ay.length;p++){var g=Ay[p],m=ye(e.getShallow(g),r[g]);m!=null&&(t[g]=m)}for(var p=0;p<My.length;p++){var g=My[p],m=e.getShallow(g);m!=null&&(t[g]=m)}if(t.verticalAlign==null){var _=e.getShallow("baseline");_!=null&&(t.verticalAlign=_)}if(!o||!n.disableBox){for(var p=0;p<Ey.length;p++){var g=Ey[p],m=e.getShallow(g);m!=null&&(t[g]=m)}var y=e.getShallow("borderType");y!=null&&(t.borderDash=y),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function bP(t,e){var r=e&&e.getModel("textStyle");return jr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var wP=at(),SP=["textStyle","color"],ch=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],hh=new Et,TP=function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(SP):null)},t.prototype.getFont=function(){return bP({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ch.length;n++)r[ch[n]]=this.getShallow(ch[n]);return hh.useStyle(r),hh.update(),hh.getBoundingRect()},t}(),lS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],xP=uo(lS),CP=function(){function t(){}return t.prototype.getLineStyle=function(e){return xP(this,e)},t}(),uS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],DP=uo(uS),IP=function(){function t(){}return t.prototype.getItemStyle=function(e,r){return DP(this,e,r)},t}(),Ge=function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){Qe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Se(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!he.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t}();xp(Ge);cE(Ge);Fr(Ge,CP);Fr(Ge,IP);Fr(Ge,gE);Fr(Ge,TP);var AP=Math.round(Math.random()*10);function ac(t){return[t||"",AP++].join("_")}function MP(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=Zr(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=Zr(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function EP(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,h={};for(L(a,function(_){h[_]=!0});c.length;){var d=c.pop(),v=f[d],p=!!h[d];p&&(s.call(l,d,v.originalDeps.slice()),delete h[d]),L(v.successor,p?m:g)}L(h,function(){var _="";throw new Error(_)});function g(_){f[_].entryCount--,f[_].entryCount===0&&c.push(_)}function m(_){h[_]=!0,g(_)}};function r(a){var o={},s=[];return L(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),c=i(f,a);u.entryCount=c.length,u.entryCount===0&&s.push(l),L(c,function(h){ke(u.predecessor,h)<0&&u.predecessor.push(h);var d=n(o,h);ke(d.successor,h)<0&&d.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return L(a,function(l){ke(o,l)>=0&&s.push(l)}),s}}function LP(t,e){return Qe(Qe({},t,!0),e,!0)}const PP={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:". "}}}},RP={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 ff="ZH",$p="EN",io=$p,Iu={},Up={},fS=he.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||io).toUpperCase();return t.indexOf(ff)>-1?ff:io}():io;function cS(t,e){t=t.toUpperCase(),Up[t]=new Ge(e),Iu[t]=e}function OP(t){if(ae(t)){var e=Iu[t.toUpperCase()]||{};return t===ff||t===$p?Se(e):Qe(Se(e),Se(Iu[io]),!1)}else return Qe(Se(t),Se(Iu[io]),!1)}function kP(t){return Up[t]}function NP(){return Up[io]}cS($p,PP);cS(ff,RP);function kn(t,e){return t+="","0000".substr(0,e-t.length)+t}function hS(t,e,r,n){var i=Xf(t),a=i[BP(r)](),o=i[FP(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[VP(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[HP(r)](),c=(f-1)%12+1,h=i[zP(r)](),d=i[$P(r)](),v=i[UP(r)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof Ge?n:kP(fS)||NP(),_=m.getModel("time"),y=_.get("month"),b=_.get("monthAbbr"),w=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,kn(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,kn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,kn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,kn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,kn(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,kn(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,kn(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,kn(v,3)).replace(/{S}/g,v+"")}function BP(t){return t?"getUTCFullYear":"getFullYear"}function FP(t){return t?"getUTCMonth":"getMonth"}function VP(t){return t?"getUTCDate":"getDate"}function HP(t){return t?"getUTCHours":"getHours"}function zP(t){return t?"getUTCMinutes":"getMinutes"}function $P(t){return t?"getUTCSeconds":"getSeconds"}function UP(t){return t?"getUTCMilliseconds":"getMilliseconds"}function dS(t){if(!WM(t))return ae(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function vS(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var ml=pp;function nv(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&jr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?Xf(t):t;if(isNaN(+l)){if(s)return"-"}else return hS(l,n,r)}if(e==="ordinal")return Id(t)?i(t):et(t)&&a(t)?t+"":"-";var u=nf(t);return a(u)?dS(u):Id(t)?i(t):typeof t=="boolean"?t+"":"-"}var Py=["a","b","c","d","e","f","g"],dh=function(t,e){return"{"+t+(e??"")+"}"};function pS(t,e,r){Z(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Py[a];t=t.replace(dh(o),dh(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(dh(Py[l],s),r?Bt(u):u)}return t}function GP(t,e){var r=ae(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bt(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bt(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Ws(t,e){return e=e||"transparent",ae(t)?t:se(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function iv(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var Au=L,WP=["left","right","top","bottom","width","height"],Kl=[["width","left","right"],["height","top","bottom"]];function Gp(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),h=c&&c.getBoundingRect(),d,v;if(t==="horizontal"){var p=f.width+(h?-h.x+f.x:0);d=a+p,d>n||l.newline?(a=0,d=p,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=d+r:o=v+r)})}var xs=Gp;Ze(Gp,"vertical");Ze(Gp,"horizontal");function YP(t,e,r){var n=e.width,i=e.height,a=ht(t.left,n),o=ht(t.top,i),s=ht(t.right,n),l=ht(t.bottom,i);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),r=ml(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function oa(t,e,r){r=ml(r||0);var n=e.width,i=e.height,a=ht(t.left,n),o=ht(t.top,i),s=ht(t.right,n),l=ht(t.bottom,i),u=ht(t.width,n),f=ht(t.height,i),c=r[2]+r[0],h=r[1]+r[3],d=t.aspect;switch(isNaN(u)&&(u=n-s-h-a),isNaN(f)&&(f=i-l-c-o),d!=null&&(isNaN(u)&&isNaN(f)&&(d>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=d*f),isNaN(f)&&(f=u/d)),isNaN(a)&&(a=n-s-u-h),isNaN(o)&&(o=i-l-f-c),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-h;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=n-h-a-(s||0)),isNaN(f)&&(f=i-c-o-(l||0));var v=new Ae(a+r[3],o+r[0],u,f);return v.margin=r,v}function XP(t,e,r,n,i,a){a=a||t,a.x=t.x,a.y=t.y;var o;if(o=t.getBoundingRect(),t.needLocalTransform()){var s=t.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=oa(Ke({width:o.width,height:o.height},e),r,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===t&&t.markRedraw(),!0}function cf(t){var e=t.layoutMode||t.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function Ys(t,e,r){var n=r&&r.ignoreSize;!Z(n)&&(n=[n,n]);var i=o(Kl[0],0),a=o(Kl[1],1);u(Kl[0],t,i),u(Kl[1],t,a);function o(f,c){var h={},d=0,v={},p=0,g=2;if(Au(f,function(y){v[y]=t[y]}),Au(f,function(y){s(e,y)&&(h[y]=v[y]=e[y]),l(h,y)&&d++,l(v,y)&&p++}),n[c])return l(e,f[1])?v[f[2]]=null:l(e,f[2])&&(v[f[1]]=null),v;if(p===g||!d)return v;if(d>=g)return h;for(var m=0;m<f.length;m++){var _=f[m];if(!s(h,_)&&s(t,_)){h[_]=t[_];break}}return h}function s(f,c){return f.hasOwnProperty(c)}function l(f,c){return f[c]!=null&&f[c]!=="auto"}function u(f,c,h){Au(f,function(d){c[d]=h[d]})}}function Wp(t){return KP({},t)}function KP(t,e){return e&&t&&Au(WP,function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var qP=at(),Be=function(t){re(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=ac("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=cf(this),a=i?Wp(r):{},o=n.getTheme();Qe(r,o.get(this.mainType)),Qe(r,this.getDefaultOption()),i&&Ys(r,a,i)},e.prototype.mergeOption=function(r,n){Qe(this.option,r,!0);var i=cf(this);i&&Ys(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!lE(r))return r.defaultOption;var n=qP(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Qe(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return vl(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),e}(Ge);R1(Be,Ge);Cp(Be);MP(Be);EP(Be,jP);function jP(t){var e=[];return L(Be.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Me(e,function(r){return Zr(r).main}),t!=="dataset"&&ke(e,"dataset")<=0&&e.unshift("dataset"),e}var gS="";typeof navigator<"u"&&(gS=navigator.platform||"");var Da="rgba(0, 0, 0, 0.2)";const ZP={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Da,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Da,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Da,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Da,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Da,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Da,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gS.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 mS=me(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ir="original",rr="arrayRows",sn="objectRows",Ln="keyedColumns",ni="typedArray",yS="unknown",wn="column",xo="row",ar={Must:1,Might:2,Not:3},_S=at();function QP(t){_S(t).datasetMap=me()}function JP(t,e,r){var n={},i=bS(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=_S(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,c;t=t.slice(),L(t,function(p,g){var m=se(p)?p:t[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=v(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});L(t,function(p,g){var m=p.name,_=v(p);if(f==null){var y=h.valueWayDim;d(n[m],y,_),d(o,y,_),h.valueWayDim+=_}else if(f===g)d(n[m],0,_),d(a,0,_);else{var y=h.categoryWayDim;d(n[m],y,_),d(o,y,_),h.categoryWayDim+=_}});function d(p,g,m){for(var _=0;_<m;_++)p.push(g+_)}function v(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function bS(t){var e=t.get("data",!0);if(!e)return vl(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Hi).models[0]}function eR(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:vl(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Hi).models}function wS(t,e){return tR(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function tR(t,e,r,n,i,a){var o,s=5;if(tr(t))return ar.Not;var l,u;if(n){var f=n[a];se(f)?(l=f.name,u=f.type):ae(f)&&(l=f)}if(u!=null)return u==="ordinal"?ar.Must:ar.Not;if(e===rr){var c=t;if(r===xo){for(var h=c[a],d=0;d<(h||[]).length&&d<s;d++)if((o=b(h[i+d]))!=null)return o}else for(var d=0;d<c.length&&d<s;d++){var v=c[i+d];if(v&&(o=b(v[a]))!=null)return o}}else if(e===sn){var p=t;if(!l)return ar.Not;for(var d=0;d<p.length&&d<s;d++){var g=p[d];if(g&&(o=b(g[l]))!=null)return o}}else if(e===Ln){var m=t;if(!l)return ar.Not;var h=m[l];if(!h||tr(h))return ar.Not;for(var d=0;d<h.length&&d<s;d++)if((o=b(h[d]))!=null)return o}else if(e===Ir)for(var _=t,d=0;d<_.length&&d<s;d++){var g=_[d],y=hl(g);if(!Z(y))return ar.Not;if((o=b(y[a]))!=null)return o}function b(w){var S=ae(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?ar.Might:ar.Not;if(S&&w!=="-")return ar.Must}return ar.Not}var rR=me();function nR(t,e,r){var n=rR.get(e);if(!n)return r;var i=n(t);return i?r.concat(i):r}var Ry=at(),iR=at(),Yp=function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=vt(this.get("color",!0)),a=this.get("colorLayer",!0);return SS(this,Ry,i,a,e,r,n)},t.prototype.clearColorPalette=function(){sR(this,Ry)},t}();function aR(t,e,r,n){var i=vt(t.get(["aria","decal","decals"]));return SS(t,iR,i,null,e,r,n)}function oR(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function SS(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:oR(n,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return i&&(u[i]=c),s.paletteIdx=(l+1)%f.length,c}}function sR(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var ql,Vo,Oy,ky="\0_ec_inner",lR=1,Xp=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ge(a),this._locale=new Ge(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){var a=Fy(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,Fy(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?Oy(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&L(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=me(),u=n&&n.replaceMergeMainTypeMap;QP(this),L(r,function(c,h){c!=null&&(Be.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?Se(c):Qe(i[h],c,!0))}),u&&u.each(function(c,h){Be.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Be.topologicalTravel(s,Be.getAllClassMainTypes(),f,this);function f(c){var h=nR(this,c,vt(r[c])),d=a.get(c),v=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=KM(d,h,v);tE(p,c,Be),i[c]=null,a.set(c,null),o.set(c,0);var g=[],m=[],_=0,y;L(p,function(b,w){var S=b.existing,T=b.newOption;if(!T)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=c==="series",x=Be.getClass(c,b.keyInfo.subType,!C);if(!x)return;if(c==="tooltip"){if(y)return;y=!0}if(S&&S.constructor===x)S.name=b.keyInfo.name,S.mergeOption(T,this),S.optionUpdated(T,!1);else{var D=$({componentIndex:w},b.keyInfo);S=new x(T,this,this,D),$(S,D),b.brandNew&&(S.__requireNewView=!0),S.init(T,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),_++):(g.push(void 0),m.push(void 0))},this),i[c]=g,a.set(c,m),o.set(c,_),c==="series"&&ql(this)}this._seriesIndices||ql(this)},e.prototype.getOption=function(){var r=Se(this.option);return L(r,function(n,i){if(Be.hasClass(i)){for(var a=vt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!zs(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[ky],r},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],L(vt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ny("id",a,s):o!=null?l=Ny("name",o,s):l=or(s,function(u){return!!u}),By(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):or(this._componentsMap.get(i),function(u){return!!u});return l(By(o,r));function s(u){var f=i+"Index",c=i+"Id",h=i+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:i,index:u[f],id:u[c],name:u[h]}:null}function l(u){return r.filter?or(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ie(r)){var o=n,s=r;a.each(function(c,h){for(var d=0;c&&d<c.length;d++){var v=c[d];v&&s.call(o,h,v,v.componentIndex)}})}else for(var l=ae(r)?a.get(r):se(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Jt(r,null);return or(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return or(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return or(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Vo(this),L(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){L(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Vo(this),L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return L(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Vo(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Vo(this);var i=[];L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=me(i)},e.prototype.restoreData=function(r){ql(this);var n=this._componentsMap,i=[];n.each(function(a,o){Be.hasClass(o)&&i.push(o)}),Be.topologicalTravel(i,Be.getAllClassMainTypes(),function(a){L(n.get(a),function(o){o&&(a!=="series"||!uR(o,r))&&o.restoreData()})})},e.internalField=function(){ql=function(r){var n=r._seriesIndices=[];L(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=me(n)},Vo=function(r){},Oy=function(r,n){r.option={},r.option[ky]=lR,r._componentsMap=me({series:[]}),r._componentsCount=me();var i=n.aria;se(i)&&i.enabled==null&&(i.enabled=!0),fR(n,r._theme.option),Qe(n,ZP,!1),r._mergeOption(n,null)}}(),e}(Ge);function uR(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function fR(t,e){var r=t.color&&!t.colorLayer;L(e,function(n,i){i==="colorLayer"&&r||Be.hasClass(i)||(typeof n=="object"?t[i]=t[i]?Qe(t[i],n,!1):Se(n):t[i]==null&&(t[i]=n))})}function Ny(t,e,r){if(Z(e)){var n=me();return L(e,function(a){if(a!=null){var o=Jt(a,null);o!=null&&n.set(a,!0)}}),or(r,function(a){return a&&n.get(a[t])})}else{var i=Jt(e,null);return or(r,function(a){return a&&i!=null&&a[t]===i})}}function By(t,e){return e.hasOwnProperty("subType")?or(t,function(r){return r&&r.subType===e.subType}):t}function Fy(t){var e=me();return t&&L(vt(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Fr(Xp,Yp);var cR=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],TS=function(){function t(e){L(cR,function(r){this[r]=De(e[r],e)},this)}return t}(),vh={},oc=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,r){var n=[];L(vh,function(i,a){var o=i.create(e,r);n=n.concat(o||[])}),this._coordinateSystems=n},t.prototype.update=function(e,r){L(this._coordinateSystems,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,r){vh[e]=r},t.get=function(e){return vh[e]},t}(),hR=/^(min|max)?(.+)$/,dR=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(L(vt(e.series),function(o){o&&o.data&&tr(o.data)&&Ad(o.data)}),L(vt(e.dataset),function(o){o&&o.source&&tr(o.source)&&Ad(o.source)})),e=Se(e);var i=this._optionBackup,a=vR(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Se(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=Se(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)pR(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!mR(o,this._currentMediaIndices)&&(s=Me(o,function(f){return Se(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t}();function vR(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&Z(u)&&L(u,function(d){d&&d.option&&(d.query?n.push(d):i||(i=d))}),h(a),L(l,function(d){return h(d)}),L(n,function(d){return h(d.option)});function h(d){L(e,function(v){v(d,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function pR(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return L(t,function(a,o){var s=o.match(hR);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();gR(n[u],a,l)||(i=!1)}}),i}function gR(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function mR(t,e){return t.join(",")===e.join(",")}var Mr=L,Xs=se,Vy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ph(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Vy.length;r<n;r++){var i=Vy[r],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?Qe(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?Qe(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function xt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(r?(t[e].normal=t[e].emphasis=null,Ke(t[e],n)):t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function as(t){xt(t,"itemStyle"),xt(t,"lineStyle"),xt(t,"areaStyle"),xt(t,"label"),xt(t,"labelLine"),xt(t,"upperLabel"),xt(t,"edgeLabel")}function nt(t,e){var r=Xs(t)&&t[e],n=Xs(r)&&r.textStyle;if(n)for(var i=0,a=Ym.length;i<a;i++){var o=Ym[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function mr(t){t&&(as(t),nt(t,"label"),t.emphasis&&nt(t.emphasis,"label"))}function yR(t){if(Xs(t)){ph(t),as(t),nt(t,"label"),nt(t,"upperLabel"),nt(t,"edgeLabel"),t.emphasis&&(nt(t.emphasis,"label"),nt(t.emphasis,"upperLabel"),nt(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(ph(e),mr(e));var r=t.markLine;r&&(ph(r),mr(r));var n=t.markArea;n&&mr(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!tr(a))for(var o=0;o<a.length;o++)mr(a[o]);L(t.categories,function(u){as(u)})}if(i&&!tr(i))for(var o=0;o<i.length;o++)mr(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)mr(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)Z(l[o])?(mr(l[o][0]),mr(l[o][1])):mr(l[o]);t.type==="gauge"?(nt(t,"axisLabel"),nt(t,"title"),nt(t,"detail")):t.type==="treemap"?(xt(t.breadcrumb,"itemStyle"),L(t.levels,function(u){as(u)})):t.type==="tree"&&as(t.leaves)}}function cn(t){return Z(t)?t:t?[t]:[]}function Hy(t){return(Z(t)?t[0]:t)||{}}function _R(t,e){Mr(cn(t.series),function(n){Xs(n)&&yR(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Mr(r,function(n){Mr(cn(t[n]),function(i){i&&(nt(i,"axisLabel"),nt(i.axisPointer,"label"))})}),Mr(cn(t.parallel),function(n){var i=n&&n.parallelAxisDefault;nt(i,"axisLabel"),nt(i&&i.axisPointer,"label")}),Mr(cn(t.calendar),function(n){xt(n,"itemStyle"),nt(n,"dayLabel"),nt(n,"monthLabel"),nt(n,"yearLabel")}),Mr(cn(t.radar),function(n){nt(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)}),Mr(cn(t.geo),function(n){Xs(n)&&(mr(n),Mr(cn(n.regions),function(i){mr(i)}))}),Mr(cn(t.timeline),function(n){mr(n),xt(n,"label"),xt(n,"itemStyle"),xt(n,"controlStyle",!0);var i=n.data;Z(i)&&L(i,function(a){se(a)&&(xt(a,"label"),xt(a,"itemStyle"))})}),Mr(cn(t.toolbox),function(n){xt(n,"iconStyle"),Mr(n.feature,function(i){xt(i,"iconStyle")})}),nt(Hy(t.axisPointer),"label"),nt(Hy(t.tooltip).axisPointer,"label")}function bR(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function wR(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function zy(t){t&&L(SR,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var SR=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],TR=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],gh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ho(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<gh.length;r++){var n=gh[r][1],i=gh[r][0];e[n]!=null&&(e[i]=e[n])}}function $y(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Uy(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function xR(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function xS(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&xS(t[r].children,e)}function CS(t,e){_R(t,e),t.series=vt(t.series),L(t.series,function(r){if(se(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),$y(r.label);var i=r.data;if(i&&!tr(i))for(var a=0;a<i.length;a++)$y(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=bR(r,"pointer.color");o!=null&&wR(r,"itemStyle.color",o)}else if(n==="bar"){Ho(r),Ho(r.backgroundStyle),Ho(r.emphasis);var i=r.data;if(i&&!tr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Ho(i[a]),Ho(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),Uy(r),xS(r.data,Uy)}else n==="graph"||n==="sankey"?xR(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ke(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),zy(r)}}),t.dataRange&&(t.visualMap=t.dataRange),L(TR,function(r){var n=t[r];n&&(Z(n)||(n=[n]),L(n,function(i){zy(i)}))})}function CR(t){var e=me();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(DR)}function DR(t){L(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,c){var h=o.get(e.stackedDimension,c);if(isNaN(h))return i;var d,v;s?v=o.getRawIndex(c):d=o.get(e.stackedByDimension,c);for(var p=NaN,g=r-1;g>=0;g--){var m=t[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,d)),v>=0){var _=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&h>=0&&_>0||l==="samesign"&&h<=0&&_<0){h=UM(h,_),p=_;break}}}return n[0]=h,n[1]=p,n})})}var sc=function(){function t(e){this.data=e.data||(e.sourceFormat===Ln?{}:[]),this.sourceFormat=e.sourceFormat||yS,this.seriesLayoutBy=e.seriesLayoutBy||wn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&wS(this,n)===ar.Must&&(i.type="ordinal")}}return t}();function Kp(t){return t instanceof sc}function av(t,e,r){r=r||DS(t);var n=e.seriesLayoutBy,i=AR(t,r,n,e.sourceHeader,e.dimensions),a=new sc({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Se(e)});return a}function qp(t){return new sc({data:t,sourceFormat:tr(t)?ni:Ir})}function IR(t){return new sc({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Se(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function DS(t){var e=yS;if(tr(t))e=ni;else if(Z(t)){t.length===0&&(e=rr);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(Z(i)||tr(i)){e=rr;break}else if(se(i)){e=sn;break}}}}else if(se(t)){for(var a in t)if(ia(t,a)&&er(t[a])){e=Ln;break}}return e}function AR(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:Gy(i),startIndex:o,dimensionsDetectedCount:a};if(e===rr){var s=t;n==="auto"||n==null?Wy(function(u){u!=null&&u!=="-"&&(ae(u)?o==null&&(o=1):o=0)},r,s,10):o=et(n)?n:n?1:0,!i&&o===1&&(i=[],Wy(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===xo?s.length:s[0]?s[0].length:null}else if(e===sn)i||(i=MR(t));else if(e===Ln)i||(i=[],L(t,function(u,f){i.push(f)}));else if(e===Ir){var l=hl(t[0]);a=Z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Gy(i),dimensionsDetectedCount:a}}function MR(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Je(r)}function Gy(t){if(t){var e=me();return Me(t,function(r,n){r=se(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Wy(t,e,r,n){if(e===xo)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function IS(t){var e=t.sourceFormat;return e===sn||e===Ln}var Mi,Ei,Li,Yy,Xy,AS=function(){function t(e,r){var n=Kp(e)?e:qp(e);this._source=n;var i=this._data=n.data;n.sourceFormat===ni&&(this._offset=0,this._dimSize=r,this._data=i),Xy(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;Xy=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,d=Yy[jp(u,f)];if($(o,d),u===ni)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=MS(u,f);o.getItem=De(v,null,s,c,h);var p=ES(u,f);o.count=De(p,null,s,c,h)}};var r=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,h=0;h<c;h++){for(var d=u[h],v=d[0]==null?1/0:d[0],p=d[1]==null?-1/0:d[1],g=s-o,m=l[h],_=0;_<g;_++){var y=f[_*c+h];m[o+_]=y,y<v&&(v=y),y>p&&(p=y)}d[0]=v,d[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Yy=(e={},e[rr+"_"+wn]={pure:!0,appendData:a},e[rr+"_"+xo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[sn]={pure:!0,appendData:a},e[Ln]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Ir]={appendData:a},e[ni]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),Ky=function(t,e,r,n){return t[n]},ER=(Mi={},Mi[rr+"_"+wn]=function(t,e,r,n){return t[n+e]},Mi[rr+"_"+xo]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Mi[sn]=Ky,Mi[Ln]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=t[s];a[o]=l?l[n]:null}return a},Mi[Ir]=Ky,Mi);function MS(t,e){var r=ER[jp(t,e)];return r}var qy=function(t,e,r){return t.length},LR=(Ei={},Ei[rr+"_"+wn]=function(t,e,r){return Math.max(0,t.length-e)},Ei[rr+"_"+xo]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},Ei[sn]=qy,Ei[Ln]=function(t,e,r){var n=r[0].name,i=t[n];return i?i.length:0},Ei[Ir]=qy,Ei);function ES(t,e){var r=LR[jp(t,e)];return r}var mh=function(t,e,r){return t[e]},PR=(Li={},Li[rr]=mh,Li[sn]=function(t,e,r){return t[r]},Li[Ln]=mh,Li[Ir]=function(t,e,r){var n=hl(t);return n instanceof Array?n[e]:n},Li[ni]=mh,Li);function LS(t){var e=PR[t];return e}function jp(t,e){return t===rr?t+"_"+e:t}function co(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return LS(a)(n,o,s)}else{var l=n;return a===Ir&&(l=hl(n)),l}}}}var RR=/\{@(.+?)\}/g,OR=function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&Z(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ie(a))return l.status=r,l.dimensionIndex=i,a(l);if(ae(a)){var f=pS(a,l);return f.replace(RR,function(c,h){var d=h.length,v=h;v.charAt(0)==="["&&v.charAt(d-1)==="]"&&(v=+v.slice(1,d-1));var p=co(s,e,v);if(o&&Z(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,r){return co(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t}();function jy(t){var e,r;return se(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function Cs(t){return new kR(t)}var kR=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var c;(this._dirty||a==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,v=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||d<v)){var p=this._progress;if(Z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,v,l,u);else this._doProgress(p,d,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){Zy.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:Zy.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Z(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Zy=function(){var t,e,r,n,i,a={reset:function(l,u,f,c){e=l,t=u,r=f,n=c,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}}();function Mu(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!et(t)&&t!=null&&t!=="-"&&(t=+Xf(t)),t==null||t===""?NaN:Number(t))}me({number:function(t){return parseFloat(t)},time:function(t){return+Xf(t)},trim:function(t){return ae(t)?jr(t):t}});var NR=function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=et(e)?e:nf(e),i=et(r)?r:nf(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=ae(e),l=ae(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t}(),BR=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Mu(e,r)},t}();function FR(t,e){var r=new BR,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==wn&&Kt(o);var s=[],l={},u=t.dimensionsDefine;if(u)L(u,function(p,g){var m=p.name,_={index:g,name:m,displayName:p.displayName};if(s.push(_),m!=null){var y="";ia(l,m)&&Kt(y),l[m]=_}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=MS(i,wn);e.__isBuiltIn&&(r.getRawDataItem=function(p){return c(n,a,s,p)},r.getRawData=De(VR,null,t)),r.cloneRawData=De(HR,null,t);var h=ES(i,wn);r.count=De(h,null,n,a,s);var d=LS(i);r.retrieveValue=function(p,g){var m=c(n,a,s,p);return v(m,g)};var v=r.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return d(p,g,m.name)}};return r.getDimensionInfo=De(zR,null,s,l),r.cloneAllDimensionInfo=De($R,null,s),r}function VR(t){var e=t.sourceFormat;if(!Zp(e)){var r="";Kt(r)}return t.data}function HR(t){var e=t.sourceFormat,r=t.data;if(!Zp(e)){var n="";Kt(n)}if(e===rr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===sn){for(var i=[],a=0,o=r.length;a<o;a++)i.push($({},r[a]));return i}}function zR(t,e,r){if(r!=null){if(et(r)||!isNaN(r)&&!ia(e,r))return t[r];if(ia(e,r))return e[r]}}function $R(t){return Se(t)}var PS=me();function UR(t){t=Se(t);var e=t.type,r="";e||Kt(r);var n=e.split(":");n.length!==2&&Kt(r);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,PS.set(e,t)}function GR(t,e,r){var n=vt(t),i=n.length,a="";i||Kt(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=WR(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function WR(t,e,r,n){var i="";e.length||Kt(i),se(t)||Kt(i);var a=t.type,o=PS.get(a);o||Kt(i);var s=Me(e,function(u){return FR(u,o)}),l=vt(o.transform({upstream:s[0],upstreamList:s,config:Se(t.config)}));return Me(l,function(u,f){var c="";se(u)||Kt(c),u.data||Kt(c);var h=DS(u.data);Zp(h)||Kt(c);var d,v=e[0];if(v&&f===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),d={seriesLayoutBy:wn,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else d={seriesLayoutBy:wn,sourceHeader:0,dimensions:u.dimensions};return av(u.data,d,null)})}function Zp(t){return t===rr||t===sn}var lc="undefined",YR=typeof Uint32Array===lc?Array:Uint32Array,XR=typeof Uint16Array===lc?Array:Uint16Array,RS=typeof Int32Array===lc?Array:Int32Array,Qy=typeof Float64Array===lc?Array:Float64Array,OS={float:Qy,int:RS,ordinal:Array,number:Array,time:Qy},yh;function Ia(t){return t>65535?YR:XR}function Aa(){return[1/0,-1/0]}function KR(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Jy(t,e,r,n,i){var a=OS[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var ov=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=me()}return t.prototype.initData=function(e,r,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=yh[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],IS(i),this._dimensions=Me(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new OS[r||"float"](this._rawCount),this._rawExtent[a]=Aa(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Aa());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];Jy(n,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var d=h-s,v=0;v<a;v++){var f=i[v],p=yh.arrayRows.call(this,e[d]||c,f.property,d,v);n[v][h]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Me(o,function(_){return _.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Aa()),Jy(a,f,c.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var h=[],d=e;d<r;d++){h=i.getItem(d,h);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(h,u[v],d,v);p[d]=g;var m=l[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,r,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f<c;f++){var h=this.getRawIndex(f),d=r-a[h],v=Math.abs(d);v<=n&&((v<s||v===s&&d>=0&&l<0)&&(s=v,l=d,u=0),d===l&&(o[u++]=f))}return o.length=u,o},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=Ia(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Ia(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],c=n._chunks,h=0;h<i;h++){var d=void 0,v=n.getRawIndex(h);if(l===0)d=r(h);else if(l===1){var p=c[f][v];d=r(p,h)}else{for(var g=0;g<l;g++)s[g]=c[e[g]][v];s[g]=h,d=r.apply(null,s)}d&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Je(e),a=i.length;if(!a)return this;var o=r.count(),s=Ia(r._rawCount),l=new s(o),u=0,f=i[0],c=e[f][0],h=e[f][1],d=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=d[i[0]],m=0;m<n;m++){var _=g[m];(_>=c&&_<=h||isNaN(_))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=d[i[0]],y=d[i[1]],b=e[i[1]][0],w=e[i[1]][1],m=0;m<n;m++){var _=g[m],S=y[m];(_>=c&&_<=h||isNaN(_))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var T=r.getRawIndex(m),_=d[i[0]][T];(_>=c&&_<=h||isNaN(_))&&(l[u++]=T)}else for(var m=0;m<o;m++){for(var C=!0,T=r.getRawIndex(m),x=0;x<a;x++){var D=i[x],_=d[D][T];(_<e[D][0]||_>e[D][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Aa();for(var c=0;c<s;c++){for(var h=e.getRawIndex(c),d=0;d<o;d++)l[d]=i[r[d]][h];l[o]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var p=r[f],g=v[f],m=u[p],_=i[p];_&&(_[h]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,h,d=new(Ia(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));d[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,_=0,y=p;y<g;y++){var b=this.getRawIndex(y),w=a[b];isNaN(w)||(_+=w)}_/=g-p;var S=v,T=Math.min(v+l,o),C=v-1,x=a[u];f=-1,h=S;for(var D=-1,A=0,y=S;y<T;y++){var b=this.getRawIndex(y),w=a[b];if(isNaN(w)){A++,D<0&&(D=b);continue}c=Math.abs((C-m)*(w-x)-(C-y)*(_-x)),c>f&&(f=c,h=b)}A>0&&A<T-S&&(d[s++]=Math.min(D,h),h=Math.max(D,h)),d[s++]=h,u=h}return d[s++]=this.getRawIndex(o-1),n._count=s,n._indices=d,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(Ia(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,h=o[this.getRawIndex(c)],d=f,v=o[this.getRawIndex(d)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var m=this.getRawIndex(f+g),_=o[m];_<h&&(h=_,c=f+g),_>v&&(v=_,d=f+g)}var y=this.getRawIndex(c),b=this.getRawIndex(d);c<d?(l[u++]=y,l[u++]=b):(l[u++]=b,l[u++]=y)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Aa(),h=new(Ia(this._rawCount))(Math.ceil(f/l)),d=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var m=n(s),_=this.getRawIndex(Math.min(v+i(s,m)||0,f-1));u[_]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),h[d++]=_}return a._count=d,a._indices=h,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=Aa();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),c=r[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&wo(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?KR(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Se(this._extent),e._rawExtent=Se(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(r,n,i,a){return Mu(r[a],this._dimensions[a])}yh={arrayRows:e,objectRows:function(r,n,i,a){return Mu(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Mu(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),t}(),qR=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(jl(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=tr(s)?ni:Ir,a=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},d=ye(c.seriesLayoutBy,h.seriesLayoutBy)||null,v=ye(c.sourceHeader,h.sourceHeader),p=ye(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!v!=!!h.sourceHeader||p;i=g?[av(s,{seriesLayoutBy:d,sourceHeader:v,dimensions:p},l)]:[]}else{var m=e;if(n){var _=this._applyTransform(r);i=_.sourceList,a=_.upstreamSignList}else{var y=m.get("source",!0);i=[av(y,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&e_(a)}var o,s=[],l=[];return L(e,function(u){u.prepareSource();var f=u.getSource(i||0),c="";i!=null&&!f&&e_(c),s.push(f),l.push(u._getVersionSign())}),n?o=GR(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[IR(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];jl(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new ov,s.initData(new AS(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(jl(e)){var r=bS(e);return r?[r.getSourceManager()]:[]}else return Me(eR(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(jl(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t}();function jl(t){return t.mainType==="series"}function e_(t){throw new Error(t)}var jR="line-height:1";function kS(t){var e=t.lineHeight;return e==null?jR:"line-height:"+Bt(e+"")+"px"}function NS(t,e){var r=t.color||"#6e7079",n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Bt(n+"")+"px;color:"+Bt(r)+";font-weight:"+Bt(i+""),valueStyle:"font-size:"+Bt(o+"")+"px;color:"+Bt(a)+";font-weight:"+Bt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var ZR=[0,10,20,30],QR=["",`
51
51
  `,`
52
52
 
53
53
  `,`
54
54
 
55
55
 
56
- `];function sa(t,e){return e.type=t,e}function sv(t){return t.type==="section"}function BS(t){return sv(t)?JR:e2}function FS(t){if(sv(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return L(t.blocks,function(i){var a=FS(i);a>=e&&(e=a+ +(n&&(!a||sv(i)&&!i.noHeader)))}),e}return 0}function JR(t,e,r,n){var i=e.noHeader,a=t2(FS(e)),o=[],s=e.blocks||[];Br(!s||Z(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ia(u,l)){var f=new NR(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(p,g){var m=e.valueFormatter,_=BS(p)(m?$($({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);_!=null&&o.push(_)});var c=t.renderMode==="richText"?o.join(a.richText):lv(n,o.join(""),i?r:a.html);if(i)return c;var h=nv(e.header,"ordinal",t.useUTC),d=NS(n,t.renderMode).nameStyle,v=kS(n);return t.renderMode==="richText"?VS(t,h,d)+a.richText+c:lv(n,'<div style="'+d+";"+v+';">'+Bt(h)+"</div>"+c,r)}function e2(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(b){return b=Z(b)?b:[b],Me(b,function(w,S){return nv(w,Z(d)?d[S]:d,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":nv(l,"ordinal",u),d=e.valueType,v=o?[]:f(e.value,e.dataIndex),p=!s||!a,g=!s&&a,m=NS(n,i),_=m.nameStyle,y=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":VS(t,h,_))+(o?"":i2(t,v,p,g,y)):lv(n,(s?"":c)+(a?"":r2(h,!s,_))+(o?"":n2(v,p,g,y)),r)}}function t_(t,e,r,n,i,a){if(t){var o=BS(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function t2(t){return{html:ZR[t],richText:QR[t]}}function lv(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=kS(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function r2(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Bt(t)+"</span>"}function n2(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=Z(t)?t:[t],'<span style="'+a+";"+n+'">'+Me(t,function(o){return Bt(o)}).join("&nbsp;&nbsp;")+"</span>"}function VS(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function i2(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Z(e)?e.join(" "):e,a)}function a2(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Ws(n)}function HS(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var _h=function(){function t(){this.richTextStyles={},this._nextStyleNameId=I1()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=GP({color:r,type:e,renderMode:n,markerId:i});return ae(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Z(r)?L(r,function(a){return $(n,a)}):$(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();function zS(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=Z(s),u=a2(e,r),f,c,h,d;if(o>1||l&&!o){var v=o2(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=f=co(i,r,a[0]),c=p.type}else d=f=l?s[0]:s;var g=Sp(e),m=g&&e.name||"",_=i.getName(r),y=n?m:_;return sa("section",{header:m,noHeader:n||!g,sortParam:d,blocks:[sa("nameValue",{markerType:"item",markerColor:u,name:y,noName:!jr(y),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function o2(t,e,r,n,i){var a=e.getData(),o=wo(t,function(c,h,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?L(n,function(c){f(co(a,r,c),c)}):L(t,f);function f(c,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(sa("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Nn=at();function Zl(t,e){return t.getName(e)||t.getId(e)}var s2="__universalTransitionEnabled",An=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Cs({count:u2,reset:f2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Nn(this).sourceManager=new qR(this);a.prepareSource();var o=this.getInitialData(r,i);n_(o,this),this.dataTask.context.data=o,Nn(this).dataBeforeProcessed=o,r_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=cf(this),a=i?Wp(r):{},o=this.subType;Be.hasClass(o)&&(o+="Series"),Qe(r,n.getTheme().get(this.subType)),Qe(r,this.getDefaultOption()),Wd(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ys(r,a,i)},e.prototype.mergeOption=function(r,n){r=Qe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=cf(this);i&&Ys(this.option,r,i);var a=Nn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);n_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Nn(this).dataBeforeProcessed=o,r_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!tr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Wd(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=uv(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Nn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=uv(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Nn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return me(r)},e.prototype.getSourceManager=function(){return Nn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Nn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,i){return zS({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(he.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Yp.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Zl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Je(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Zl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[s2])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Zl(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=n[l-1],h=Zl(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Be.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Be);Fr(An,OR);Fr(An,Yp);R1(An,Be);function r_(t){var e=t.name;Sp(t)||(t.name=l2(t)||e)}function l2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return L(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function u2(t){return t.model.getRawData().count()}function f2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),c2}function c2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function n_(t,e){L(MA(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ze(h2,e))})}function h2(t,e){var r=uv(t);return r&&r.setOutputEnd((e||this).count()),e}function uv(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var rn=function(){function t(){this.group=new ft,this.uid=ac("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();xp(rn);Cp(rn);function d2(){var t=at();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var $S=at(),v2=d2(),wn=function(){function t(){this.group=new ft,this.uid=ac("viewChart"),this.renderTask=Cs({plan:p2,reset:g2}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&a_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&a_(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){rc(this.group,e)},t.markUpdateMethod=function(e,r){$S(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function i_(t,e,r){t&&Gs(t)&&(e==="emphasis"?$s:Us)(t,r)}function a_(t,e,r){var n=dl(t,e),i=e&&e.highlightKey!=null?bL(e.highlightKey):null;n!=null?L(vt(n),function(a){i_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){i_(a,r,i)})}xp(wn);Cp(wn);function p2(t){return v2(t.model)}function g2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&$S(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),m2[l]}var m2={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},hf="\0__throttleOriginMethod",o_="\0__throttleRate",s_="\0__throttleType";function US(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var p=f||e,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){f=d},h}function GS(t,e,r,n){var i=t[e];if(i){var a=i[hf]||i,o=i[s_],s=i[o_];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=US(a,r,n==="debounce"),i[hf]=a,i[s_]=n,i[o_]=r}return i}}function fv(t,e){var r=t[e];r&&r[hf]&&(r.clear&&r.clear(),t[e]=r[hf])}var l_=at(),u_={itemStyle:uo(uS,!0),lineStyle:uo(lS,!0)},y2={lineStyle:"stroke",itemStyle:"fill"};function WS(t,e){var r=t.visualStyleMapper||u_[e];return r||(console.warn("Unknown style type '"+e+"'."),u_.itemStyle)}function YS(t,e){var r=t.visualDrawType||y2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var _2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=WS(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=YS(t,n),u=o[l],f=Ie(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ie(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Ie(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=t.getDataParams(v),g=$({},o);g[l]=f(p),d.setItemVisual(v,"style",g)}}}},zo=new Ge,b2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=WS(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){zo.option=l[n];var u=i(zo),f=o.ensureUniqueItemVisual(s,"style");$(f,u),zo.option.decal&&(o.setItemVisual(s,"decal",zo.option.decal),zo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},w2={performRawSeries:!0,overallReset:function(t){var e=me();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),l_(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=l_(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=YS(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},Ql=Math.PI;function S2(t,e){e=e||{},Ke(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ft,n=new Mt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Et({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Mt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ec({shape:{startAngle:-Ql/2,endAngle:-Ql/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ql*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ql*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var XS=function(){function t(e,r,n,i){this._stageTaskMap=me(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=me();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;L(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Br(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;L(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var _=o.getPerformArgs(g,i.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=me(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,d=s.set(h,o&&o.get(h)||Cs({plan:I2,reset:A2,count:E2}));d.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,d)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Cs({reset:T2});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=me(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,d="";Br(!e.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,L(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Cs({reset:x2,onDirty:D2})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return Ie(e)&&(e={overallReset:e,seriesType:L2(e)}),e.uid=ac("stageHandler"),r&&(e.visualType=r),e},t}();function T2(t){t.overallReset(t.ecModel,t.api,t.payload)}function x2(t){return t.overallProgress&&C2}function C2(){this.agent.dirty(),this.getDownstream().dirty()}function D2(){this.agent&&this.agent.dirty()}function I2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function A2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=vt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Me(e,function(r,n){return KS(n)}):M2}var M2=KS(0);function KS(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function E2(t){return t.data.count()}function L2(t){df=null;try{t(Ks,qS)}catch{}return df}var Ks={},qS={},df;jS(Ks,Xp);jS(qS,TS);Ks.eachSeriesByType=Ks.eachRawSeriesByType=function(t){df=t};Ks.eachComponent=function(t){t.mainType==="series"&&t.subType&&(df=t.subType)};function jS(t,e){for(var r in e.prototype)t[r]=ut}var f_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const P2={color:f_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],f_]};var St="#B9B8CE",c_="#100C2A",Jl=function(){return{axisLine:{lineStyle:{color:St}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},h_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ZS={darkMode:!0,color:h_,backgroundColor:c_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:St},pageTextStyle:{color:St}},textStyle:{color:St},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:St}},dataZoom:{borderColor:"#71708A",textStyle:{color:St},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:St}},timeline:{lineStyle:{color:St},label:{color:St},controlStyle:{color:St,borderColor:St}},calendar:{itemStyle:{color:c_},dayLabel:{color:St},monthLabel:{color:St},yearLabel:{color:St}},timeAxis:Jl(),logAxis:Jl(),valueAxis:Jl(),categoryAxis:Jl(),line:{symbol:"circle"},graph:{color:h_},gauge:{title:{color:St},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:St},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ZS.categoryAxis.splitLine.show=!1;var R2=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(ae(e)){var a=Zr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),cv=["symbol","symbolSize","symbolRotate","symbolOffset"],d_=cv.concat(["symbolKeepAspect"]),O2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<cv.length;o++){var s=cv[o],l=t.get(s);Ie(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual($({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Je(i);function f(c,h){for(var d=t.getRawValue(h),v=t.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,i[g](d,v))}}return{dataEach:a?f:null}}},k2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<d_.length;s++){var l=d_[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function N2(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function B2(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ma(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=dl(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Z(h)?c.getName(h[0]):c.getName(h),selected:ae(l)?l:$({},l)})}})}function F2(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Ma("map","selectchanged",e,i,n),Ma("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Ma("map","selected",e,i,n),Ma("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Ma("map","unselected",e,i,n),Ma("pie","unselected",e,i,n))})}function os(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var V2=Math.round(Math.random()*9),H2=typeof Object.defineProperty=="function",z2=function(){function t(){this._id="__ec_inner_"+V2++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return H2?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),$2=Ye.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),U2=Ye.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),G2=Ye.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*d,l+s+h*d,r,n-v,r,n),t.bezierCurveTo(r,n-v,r-f+c*d,l+s+h*d,r-f,l+s),t.closePath()}}),W2=Ye.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),Y2={line:ha,rect:Mt,roundRect:Mt,square:Mt,circle:Zf,diamond:U2,pin:G2,arrow:W2,triangle:$2},X2={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},hv={};L(Y2,function(t,e){hv[e]=new t});var K2=Ye.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=w1(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=hv[n];i||(n="rect",i=hv[n]),X2[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function q2(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function yl(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=iS(t.slice(8),new Ae(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Fp(t.slice(7),{},new Ae(e,r,n,i),o?"center":"cover"):l=new K2({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=q2,a&&l.setColor(a),l}function Qp(t){return Z(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function uc(t,e){if(t!=null)return Z(t)||(t=[t,t]),[ht(t[0],e[0])||0,ht(ye(t[1],t[0]),e[1])||0]}function $i(t){return isFinite(t)}function j2(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=$i(n)?n:0,i=$i(i)?i:1,a=$i(a)?a:0,o=$i(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function Z2(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=$i(o)?o:.5,s=$i(s)?s:.5,l=l>=0&&$i(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function dv(t,e,r){for(var n=e.type==="radial"?Z2(t,e,r):j2(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function Q2(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function eu(t){return parseInt(t,10)}function tu(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||eu(s[n])||eu(t.style[n]))-(eu(s[a])||0)-(eu(s[o])||0)|0}function J2(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:et(t)?[t]:Z(t)?t:null}function QS(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&J2(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=Me(r,function(a){return a/i}),n/=i)}return[r,n]}var eO=new fo(!0);function vf(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function v_(t){return typeof t=="string"&&t!=="none"}function pf(t){var e=t.fill;return e!=null&&e!=="none"}function p_(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function g_(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function vv(t,e,r){var n=O1(e.image,e.__image,r);if(Kf(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*EA),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function tO(t,e,r,n){var i,a=vf(r),o=pf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||eO,c=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,g=o&&!!h.image,m=a&&!!d.image,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0;(v||p)&&(S=e.getBoundingRect()),v&&(_=c?dv(t,h,S):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(y=c?dv(t,d,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),g&&(b=c||!e.__canvasFillPattern?vv(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(w=c||!e.__canvasStrokePattern?vv(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:g&&(b?t.fillStyle=b:o=!1),p?t.strokeStyle=y:m&&(w?t.strokeStyle=w:a=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,x;t.setLineDash&&r.lineDash&&(i=QS(e),C=i[0],x=i[1]);var D=!0;(u||c&Va)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),D=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=x),n||(r.strokeFirst?(a&&g_(t,r),o&&p_(t,r)):(o&&p_(t,r),a&&g_(t,r))),C&&t.setLineDash([])}function rO(t,e,r){var n=e.__image=O1(r.image,e.__image,e,e.onload);if(!(!n||!Kf(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;t.drawImage(n,u,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function nO(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||na,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=QS(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(vf(r)&&t.strokeText(i,r.x,r.y),pf(r)&&t.fillText(i,r.x,r.y)):(pf(r)&&t.fillText(i,r.x,r.y),vf(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var m_=["shadowBlur","shadowOffsetX","shadowOffsetY"],y_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function JS(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Qt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Zi.opacity:o}(n||e.blend!==r.blend)&&(a||(Qt(t,i),a=!0),t.globalCompositeOperation=e.blend||Zi.blend);for(var s=0;s<m_.length;s++){var l=m_[s];(n||e[l]!==r[l])&&(a||(Qt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Qt(t,i),a=!0),t.shadowColor=e.shadowColor||Zi.shadowColor),a}function __(t,e,r,n,i){var a=qs(e,i.inHover),o=n?null:r&&qs(r,i.inHover)||{};if(a===o)return!1;var s=JS(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Qt(t,i),s=!0),v_(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Qt(t,i),s=!0),v_(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Qt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Qt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<y_.length;f++){var c=y_[f],h=c[0];(n||a[h]!==o[h])&&(s||(Qt(t,i),s=!0),t[h]=a[h]||c[1])}return s}function iO(t,e,r,n,i){return JS(t,qs(e,i.inHover),r&&qs(r,i.inHover),n,i)}function eT(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function aO(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),eT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function oO(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var b_=1,w_=2,S_=3,T_=4;function sO(t){var e=pf(t),r=vf(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Qt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function qs(t,e){return e&&t.__hoverStyle||t.style}function tT(t,e){Ui(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ui(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~sr,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||Q2(a,o))&&(o&&o.length&&(Qt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Qt(t,r),t.save(),aO(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ye&&e.autoBatch&&sO(e.style);s||oO(i,u.transform)?(Qt(t,r),eT(t,e)):f||Qt(t,r);var c=qs(e,r.inHover);e instanceof Ye?(r.lastDrawType!==b_&&(l=!0,r.lastDrawType=b_),__(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),tO(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof af?(r.lastDrawType!==S_&&(l=!0,r.lastDrawType=S_),__(t,e,u,l,r),nO(t,e,c)):e instanceof li?(r.lastDrawType!==w_&&(l=!0,r.lastDrawType=w_),iO(t,e,u,l,r),rO(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==T_&&(l=!0,r.lastDrawType=T_),lO(t,e,r)),f&&n&&Qt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function lO(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ui(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ui(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var bh=new z2,x_=new cl(100),C_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&bh.delete(t);var a=bh.get(t);if(a)return a;var o=Ke(t,{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=i?1:1/r,bh.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<C_.length;++h){var d=o[C_[h]];if(d!=null&&!Z(d)&&!ae(d)&&!et(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=x_.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=nT(o.dashArrayX),m=uO(o.dashArrayY),_=rT(o.symbol),y=fO(g),b=iT(m),w=!i&&bo.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=x(),C;w&&(w.width=T.width*r,w.height=T.height*r,C=w.getContext("2d")),D(),c&&x_.put(v,w||S),u.image=w,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function x(){for(var A=1,M=0,R=y.length;M<R;++M)A=Wm(A,y[M]);for(var k=1,M=0,R=_.length;M<R;++M)k=Wm(k,_[M].length);A*=k;var H=b*y.length*_.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(H,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var R=-b,k=0,H=0,N=0;R<T.height;){if(k%2===0){for(var q=H/2%_.length,U=0,ue=0,He=0;U<T.width*2;){for(var Xe=0,M=0;M<g[N].length;++M)Xe+=g[N][M];if(Xe<=0)break;if(ue%2===0){var _e=(1-o.symbolSize)*.5,ct=U+g[N][ue]*_e,mt=R+m[k]*_e,zt=g[N][ue]*o.symbolSize,Lt=m[k]*o.symbolSize,$t=He/2%_[q].length;be(ct,mt,zt,Lt,_[q][$t])}U+=g[N][ue],++He,++ue,ue===g[N].length&&(ue=0)}++N,N===g.length&&(N=0)}R+=m[k],++H,++k,k===m.length&&(k=0)}function be(ne,ve,K,J,I){var E=i?1:r,O=yl(I,ne*E,ve*E,K*E,J*E,o.color,o.symbolKeepAspect);if(i){var F=n.painter.renderOneToVNode(O);F&&S.children.push(F)}else tT(C,O)}}}}function rT(t){if(!t||t.length===0)return[["rect"]];if(ae(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!ae(t[r])){e=!1;break}if(e)return rT([t]);for(var n=[],r=0;r<t.length;++r)ae(t[r])?n.push([t[r]]):n.push(t[r]);return n}function nT(t){if(!t||t.length===0)return[[0,0]];if(et(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!et(t[n])){r=!1;break}if(r)return nT([t]);for(var i=[],n=0;n<t.length;++n)if(et(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=Me(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function uO(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(et(t)){var e=Math.ceil(t);return[e,e]}var r=Me(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function fO(t){return Me(t,function(e){return iT(e)})}function iT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function cO(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=pv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=pv(i,e)}}})}var Pr=new Vr,aT={};function hO(t,e){aT[t]=e}function dO(t){return aT[t]}var vO=1,pO=800,gO=900,mO=1e3,yO=2e3,_O=5e3,oT=1e3,bO=1100,Jp=2e3,sT=3e3,wO=4e3,fc=4500,SO=4600,TO=5e3,xO=6e3,lT=7e3,CO={PROCESSOR:{FILTER:mO,SERIES_FILTER:pO,STATISTIC:_O},VISUAL:{LAYOUT:oT,PROGRESSIVE_LAYOUT:bO,GLOBAL:Jp,CHART:sT,POST_CHART_LAYOUT:SO,COMPONENT:wO,BRUSH:TO,CHART_ITEM:fc,ARIA:xO,DECAL:lT}},wt="__flagInMainProcess",Wt="__pendingUpdate",wh="__needsUpdateStatus",D_=/^[a-zA-Z0-9_]+$/,Sh="__connectUpdateStatus",I_=0,DO=1,IO=2;function uT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return cT(this,t,e)}}function fT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return cT(this,t,e)}}function cT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Vr.prototype[e].apply(t,r)}var hT=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Vr),dT=hT.prototype;dT.on=fT("on");dT.off=fT("off");var Ea,Th,ru,Bn,xh,Ch,Dh,$o,Uo,A_,M_,Ih,E_,nu,L_,vT,dr,P_,pT=function(t){re(e,t);function e(r,n,i){var a=t.call(this,new R2)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},ae(n)&&(n=gT[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr;var u=a._zr=zm(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ye(i.useDirtyRect,l),useCoarsePointer:ye(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=US(De(u.flush,u),17),n=Se(n),n&&CS(n,!0),a._theme=n,a._locale=OP(i.locale||fS),a._coordSysMgr=new oc;var f=a._api=L_(a);function c(h,d){return h.__prio-d.__prio}return _u(mf,c),_u(gv,c),a._scheduler=new XS(a,f,gv,mf),a._messageCenter=new hT,a._initEvents(),a.resize=De(a.resize,a),u.animation.on("frame",a._onframe,a),A_(u,a),M_(u,a),Ad(a),a}return e.prototype._onframe=function(){if(!this._disposed){P_(this);var r=this._scheduler;if(this[Wt]){var n=this[Wt].silent;this[wt]=!0;try{Ea(this),Bn.update.call(this,null,this[Wt].updateParams)}catch(l){throw this[wt]=!1,this[Wt]=null,l}this._zr.flush(),this[wt]=!1,this[Wt]=null,$o.call(this,n),Uo.call(this,n)}else if(r.unfinished){var i=vO,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Ch(this,a),r.performVisualTasks(a),nu(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[wt]){if(this._disposed){this.id;return}var a,o,s;if(se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[wt]=!0,!this._model||n){var l=new dR(this._api),u=this._theme,f=this._model=new Xp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},mv);var c={seriesTransition:s,optionChanged:!0};if(i)this[Wt]={silent:a,updateParams:c},this[wt]=!1,this.getZr().wakeUp();else{try{Ea(this),Bn.update.call(this,null,c)}catch(h){throw this[Wt]=null,this[wt]=!1,h}this._ssr||this._zr.flush(),this[Wt]=null,this[wt]=!1,$o.call(this,a),Uo.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||he.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(he.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return L(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;L(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return L(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(R_[i]){var l=s,u=s,f=-s,c=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();L(Is,function(y,b){if(y.group===i){var w=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(Se(r)),S=y.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),h.push({dom:w,left:S.left,top:S.top})}}),l*=d,u*=d,f*=d,c*=d;var v=f-l,p=c-u,g=bo.createCanvas(),m=zm(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var _="";return L(h,function(y){var b=y.left-l,w=y.top-u;_+='<g transform="translate('+b+","+w+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Mt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),L(h,function(y){var b=new li({style:{x:y.left*d-l,y:y.top*d-u,image:y.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return xh(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return xh(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Kc(i,r);return L(o,function(s,l){l.indexOf("Models")>=0&&L(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Kc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?N2(s,l,n):B2(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;L(AO,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&os(s,function(v){var p=Pe(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=$({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),L(Ds,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),L(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),F2(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&L1(this.getDom(),tg,"");var n=this,i=n._api,a=n._model;L(n._componentsViews,function(o){o.dispose(a,i)}),L(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Is[n.id]},e.prototype.resize=function(r){if(!this[wt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Wt]&&(a==null&&(a=this[Wt].silent),i=!0,this[Wt]=null),this[wt]=!0;try{i&&Ea(this),Bn.update.call(this,{type:"resize",animation:$({duration:0},r&&r.animation)})}catch(o){throw this[wt]=!1,o}this[wt]=!1,$o.call(this,a),Uo.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!yv[r]){var i=yv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=$({},r);return n.type=Ds[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(se(n)||(n={silent:!!n}),!!gf[r.type]&&this._model){if(this[wt]){this._pendingActions.push(r);return}var i=n.silent;Dh.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&he.browser.weChat&&this._throttledZrFlush(),$o.call(this,i),Uo.call(this,i)}},e.prototype.updateLabelLayout=function(){Pr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ea=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Th(c,!0),Th(c,!1),h.plan()},Th=function(c,h){for(var d=c._model,v=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,_=c._api,y=0;y<p.length;y++)p[y].__alive=!1;h?d.eachComponent(function(S,T){S!=="series"&&b(T)}):d.eachSeries(b);function b(S){var T=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,x=!T&&g[C];if(!x){var D=Zr(S.type),A=h?rn.getClass(D.main,D.sub):wn.getClass(D.sub);x=new A,x.init(d,_),g[C]=x,p.push(x),m.add(x.group)}S.__viewId=x.__id=C,x.__alive=!0,x.__model=S,x.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&v.prepareView(x,S,d,_)}for(var y=0;y<p.length;){var w=p[y];w.__alive?y++:(!h&&w.renderTask.dispose(),m.remove(w.group),w.dispose(d,_),p.splice(y,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},ru=function(c,h,d,v,p){var g=c._model;if(g.setUpdatePayload(d),!v){L([].concat(c._componentsViews).concat(c._chartsViews),w);return}var m={};m[v+"Id"]=d[v+"Id"],m[v+"Index"]=d[v+"Index"],m[v+"Name"]=d[v+"Name"];var _={mainType:v,query:m};p&&(_.subType=p);var y=d.excludeSeriesId,b;y!=null&&(b=me(),L(vt(y),function(S){var T=Jt(S,null);T!=null&&b.set(T,!0)})),g&&g.eachComponent(_,function(S){var T=b&&b.get(S.id)!=null;if(!T)if(gy(d))if(S instanceof An)d.type===Qi&&!d.notBlur&&!S.get(["emphasis","disabled"])&&vL(S,d,c._api);else{var C=Ep(S.mainType,S.componentIndex,d.name,c._api),x=C.focusSelf,D=C.dispatchers;d.type===Qi&&x&&!d.notBlur&&Zd(S.mainType,S.componentIndex,c._api),D&&L(D,function(A){d.type===Qi?$s(A):Us(A)})}else ev(d)&&S instanceof An&&(mL(S,d,c._api),py(S),dr(c))},c),g&&g.eachComponent(_,function(S){var T=b&&b.get(S.id)!=null;T||w(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function w(S){S&&S.__alive&&S[h]&&S[h](S.__model,g,c._api,d)}},Bn={prepareAndUpdate:function(c){Ea(this),Bn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(c),m.restoreData(d,c),m.performSeriesTasks(d),g.create(d,v),m.performDataProcessorTasks(d,c),Ch(this,d),g.update(d,v),r(d),m.performVisualTasks(d,c),Ih(this,d,v,c,h);var _=d.get("backgroundColor")||"transparent",y=d.get("darkMode");p.setBackgroundColor(_),y!=null&&y!=="auto"&&p.setDarkMode(y),Pr.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var p=[];d.eachComponent(function(m,_){if(m!=="series"){var y=h.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var b=y.updateTransform(_,d,v,c);b&&b.update&&p.push(y)}else p.push(y)}});var g=me();d.eachSeries(function(m){var _=h._chartsMap[m.__viewId];if(_.updateTransform){var y=_.updateTransform(m,d,v,c);y&&y.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:g}),nu(this,d,v,c,{},g),Pr.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),wn.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Ih(this,h,this._api,c,{}),Pr.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),wn.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,d,h._api,c)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,c)}),Pr.trigger("afterupdate",d,this._api))},updateLayout:function(c){Bn.update.call(this,c)}},xh=function(c,h,d,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Kc(p,d),y=0;y<g.length;y++){var b=g[y];if(b[h]&&(m=b[h](p,_,v))!=null)return m}},Ch=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},Dh=function(c,h){var d=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=gf[p],_=m.actionInfo,y=(_.update||"update").split(":"),b=y.pop(),w=y[0]!=null&&Zr(y[0]);this[wt]=!0;var S=[c],T=!1;c.batch&&(T=!0,S=Me(c.batch,function(k){return k=Ke($({},k),c),k.batch=null,k}));var C=[],x,D=ev(c),A=gy(c);if(A&&Z1(this._api),L(S,function(k){if(x=m.action(k,d._model,d._api),x=x||$({},k),x.type=_.event||x.type,C.push(x),A){var H=Tp(c),N=H.queryOptionMap,q=H.mainTypeSpecified,U=q?N.keys()[0]:"series";ru(d,b,k,U),dr(d)}else D?(ru(d,b,k,"series"),dr(d)):w&&ru(d,b,k,w.main,w.sub)}),b!=="none"&&!A&&!D&&!w)try{this[Wt]?(Ea(this),Bn.update.call(this,c),this[Wt]=null):Bn[b].call(this,c)}catch(k){throw this[wt]=!1,k}if(T?x={type:_.event||p,escapeConnect:g,batch:C}:x=C[0],this[wt]=!1,!h){var M=this._messageCenter;if(M.trigger(x.type,x),D){var R={type:"selectchanged",escapeConnect:g,selected:yL(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};M.trigger(R.type,R)}}},$o=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();Dh.call(this,d,c)}},Uo=function(c){!c&&this.trigger("updated")},A_=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[Wt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},M_=function(c,h){c.on("mouseover",function(d){var v=d.target,p=os(v,Gs);p&&(pL(p,d,h._api),dr(h))}).on("mouseout",function(d){var v=d.target,p=os(v,Gs);p&&(gL(p,d,h._api),dr(h))}).on("click",function(d){var v=d.target,p=os(v,function(_){return Pe(_).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Pe(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],d=[],v=!1;if(c.eachComponent(function(_,y){var b=y.get("zlevel")||0,w=y.get("z")||0,S=y.getZLevelKey();v=v||!!S,(_==="series"?d:h).push({zlevel:b,z:w,idx:y.componentIndex,type:_,key:S})}),v){var p=h.concat(d),g,m;_u(p,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),L(p,function(_){var y=c.getComponent(_.type,_.idx),b=_.zlevel,w=_.key;g!=null&&(b=Math.max(g,b)),w?(b===g&&w!==m&&b++,m=w):m&&(b===g&&b++,m=""),g=b,y.setZLevel(b)})}}Ih=function(c,h,d,v,p){n(h),E_(c,h,d,v,p),L(c._chartsViews,function(g){g.__alive=!1}),nu(c,h,d,v,p),L(c._chartsViews,function(g){g.__alive||g.remove(h,d)})},E_=function(c,h,d,v,p,g){L(g||c._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,h,d,v),s(_,m),f(_,m)})},nu=function(c,h,d,v,p,g){var m=c._scheduler;p=$(p||{},{updatedSeries:h.getSeries()}),Pr.trigger("series:beforeupdate",h,d,p);var _=!1;h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];b.__alive=!0;var w=b.renderTask;m.updatePayload(w,v),u(y,b),g&&g.get(y.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(_=!0),b.group.silent=!!y.get("silent"),o(y,b),py(y)}),m.unfinished=_||m.unfinished,Pr.trigger("series:layoutlabels",h,d,p),Pr.trigger("series:transition",h,d,p),h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];s(y,b),f(y,b)}),a(c,h),Pr.trigger("series:afterupdate",h,d,p)},dr=function(c){c[wh]=!0,c.getZr().wakeUp()},P_=function(c){c[wh]&&(c.getZr().storage.traverse(function(h){Ts(h)||i(h)}),c[wh]=!1)};function i(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Ap&&c.states.emphasis?h.push("emphasis"):c.hoverState===Ip&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var d=c._zr,v=d.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!he.node&&!he.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(c,h,d,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var _=c.childrenRef(),y=0;y<_.length;y++)v=Math.max(l(_[y],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),g){var b=c.textGuideLineConfig;g.z=h,g.zlevel=d,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,h){h.eachRendered(function(d){if(!Ts(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=d.get("duration"),g=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ts(m))return;if(m instanceof Ye&&wL(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(v){m.stateTransition=g;var y=m.getTextContent(),b=m.getTextGuideLine();y&&(y.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}L_=function(c){return new(function(h){re(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){$s(v,p),dr(c)},d.prototype.leaveEmphasis=function(v,p){Us(v,p),dr(c)},d.prototype.enterBlur=function(v){dL(v),dr(c)},d.prototype.leaveBlur=function(v){X1(v),dr(c)},d.prototype.enterSelect=function(v){K1(v),dr(c)},d.prototype.leaveSelect=function(v){q1(v),dr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d}(TS))(c)},vT=function(c){function h(d,v){for(var p=0;p<d.length;p++){var g=d[p];g[Sh]=v}}L(Ds,function(d,v){c._messageCenter.on(v,function(p){if(R_[c.group]&&c[Sh]!==I_){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];L(Is,function(_){_!==c&&_.group===c.group&&m.push(_)}),h(m,I_),L(m,function(_){_[Sh]!==DO&&_.dispatchAction(g)}),h(m,IO)}})})}}(),e}(Vr),eg=pT.prototype;eg.on=uT("on");eg.off=uT("off");eg.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var AO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var gf={},Ds={},gv=[],mv=[],mf=[],gT={},yv={},Is={},R_={},MO=+new Date-0,tg="_echarts_instance_";function EO(t,e,r){{var n=LO(t);if(n)return n}var i=new pT(t,e,r);return i.id="ec_"+MO++,Is[i.id]=i,L1(t,tg,i.id),vT(i),Pr.trigger("afterinit",i),i}function LO(t){return Is[iE(t,tg)]}function mT(t,e){gT[t]=e}function yT(t){ke(mv,t)<0&&mv.push(t)}function _T(t,e){ng(gv,t,e,yO)}function PO(t){rg("afterinit",t)}function RO(t){rg("afterupdate",t)}function rg(t,e){Pr.on(t,e)}function da(t,e,r){Ie(e)&&(r=e,e="");var n=se(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Ds[e]&&(Br(D_.test(n)&&D_.test(e)),gf[n]||(gf[n]={action:r,actionInfo:t}),Ds[e]=n)}function OO(t,e){oc.register(t,e)}function kO(t,e){ng(mf,t,e,oT,"layout")}function va(t,e){ng(mf,t,e,sT,"visual")}var O_=[];function ng(t,e,r,n,i){if((Ie(e)||se(e))&&(r=e,e=n),!(ke(O_,r)>=0)){O_.push(r);var a=XS.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function bT(t,e){yv[t]=e}function NO(t,e,r){var n=dO("registerMap");n&&n(t,e,r)}var BO=UR;va(Jp,_2);va(fc,b2);va(fc,w2);va(Jp,O2);va(fc,k2);va(lT,cO);yT(CS);_T(gO,CR);bT("default",S2);da({type:Qi,event:Qi,update:Qi},ut);da({type:Cu,event:Cu,update:Cu},ut);da({type:bs,event:bs,update:bs},ut);da({type:Du,event:Du,update:Du},ut);da({type:ws,event:ws,update:ws},ut);mT("light",P2);mT("dark",ZS);function Go(t){return t==null?0:t.length||1}function k_(t){return t}var wT=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||k_,this._newKeyGetter=i||k_,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Go(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(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=Go(u),h=Go(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Go(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Go(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),FO=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function VO(t,e){var r={},n=r.encode={},i=me(),a=[],o=[],s={};L(t.dimensions,function(h){var d=t.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;Ah(n,v)[p]=h,d.isExtraCoord||(i.set(v,1),zO(d.type)&&(a[0]=h),Ah(s,v)[p]=t.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}mS.each(function(g,m){var _=Ah(n,m),y=d.otherDims[m];y!=null&&y!==!1&&(_[y]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Me(l,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new FO(s,e),r}function Ah(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function HO(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function zO(t){return!(t==="ordinal"||t==="time")}var Eu=function(){function t(e){this.otherDims={},e!=null&&$(this,e)}return t}(),$O=at(),UO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ST=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=CT(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return ye(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=IS(this.source),n=!DT(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=UO[u]||"f",f&&(i+=f.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function TT(t){return t instanceof ST}function xT(t){for(var e=me(),r=0;r<(t||[]).length;r++){var n=t[r],i=se(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function CT(t){var e=$O(t);return e.dimNameMap||(e.dimNameMap=xT(t.dimensionsDefine))}function DT(t){return t>30}var Wo=se,Fn=Me,GO=typeof Int32Array>"u"?Array:Int32Array,WO="e\0\0",N_=-1,YO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XO=["_approximateExtent"],B_,iu,Yo,Xo,Mh,Ko,Eh,js=function(){function t(e,r){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,i=!1;TT(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=ae(c)?new Eu({name:c}):c instanceof Eu?c:new Eu(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=me();L(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(et(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof ov&&(a=e),!a){var o=this.dimensions,s=Kp(e)||er(e)?new AS(e,o.length):e;a=new ov;var l=Fn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=VO(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Eh(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ni&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ir;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&XM(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=Jt(h,null));var d=c.id;o[f]==null&&d!=null&&(o[f]=Jt(d,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Eh(this,f);B_(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Wo(e)?$(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Yo(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return iu(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return Z(e)?i.getValues(Fn(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?N_:i},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){Ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=Fn(Xo(e),this._getStoreDimIndex,this);this._store.each(a,i?De(r,i):r)},t.prototype.filterSelf=function(e,r,n){Ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=Fn(Xo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?De(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Je(e);return L(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){Ie(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Fn(Xo(e),this._getStoreDimIndex,this),s=Ko(this);return s._store=this._store.map(o,a?De(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Fn(Xo(e),this._getStoreDimIndex,this);this._store.modify(o,a?De(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=Ko(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Ko(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Ko(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ge(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new wT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return iu(e,n)},function(n){return iu(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Wo(e)?$(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),Z(a)?a=a.slice():Wo(a)&&(a=$({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Wo(r)?$(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Wo(e)?$(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?$(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;aL(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){L(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Fn(this.dimensions,this._getDimInfo,this),this.hostModel)),Mh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vp(arguments)))})},t.internalField=function(){B_=function(e){var r=e._invertedIndicesMap;L(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new GO(o.categories.length);for(var l=0;l<n.length;l++)n[l]=N_;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Yo=function(e,r,n){return Jt(e._getCategory(r,n),null)},iu=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Yo(e,e._idDimIdx,r)),n==null&&(n=WO+r),n},Xo=function(e){return Z(e)||(e=e!=null?[e]:[]),e},Ko=function(e){var r=new t(e._schema?e._schema:Fn(e.dimensions,e._getDimInfo,e),e.hostModel);return Mh(r,e),r},Mh=function(e,r){L(YO.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,L(XO,function(n){e[n]=Se(r[n])}),e._calculationInfo=$({},r._calculationInfo)},Eh=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Yo(e,a,r)),l==null&&o!=null&&(i[r]=l=Yo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),t}();function ig(t,e){Kp(t)||(t=qp(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=me(),a=[],o=qO(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&DT(o),l=n===t.dimensionsDefine,u=l?CT(t):xT(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=me(f),h=new RS(o),d=0;d<h.length;d++)h[d]=-1;function v(x){var D=h[x];if(D<0){var A=n[x],M=se(A)?A:{name:A},R=new Eu,k=M.name;k!=null&&u.get(k)!=null&&(R.name=R.displayName=k),M.type!=null&&(R.type=M.type),M.displayName!=null&&(R.displayName=M.displayName);var H=a.length;return h[x]=H,R.storeDimIndex=x,a.push(R),R}return a[D]}if(!s)for(var d=0;d<o;d++)v(d);c.each(function(x,D){var A=vt(x).slice();if(A.length===1&&!ae(A[0])&&A[0]<0){c.set(D,!1);return}var M=c.set(D,[]);L(A,function(R,k){var H=ae(R)?u.get(R):R;H!=null&&H<o&&(M[k]=H,g(v(H),D,k))})});var p=0;L(r,function(x){var D,A,M,R;if(ae(x))D=x,R={};else{R=x,D=R.name;var k=R.ordinalMeta;R.ordinalMeta=null,R=$({},R),R.ordinalMeta=k,A=R.dimsDef,M=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var H=c.get(D);if(H!==!1){if(H=vt(H),!H.length)for(var N=0;N<(A&&A.length||1);N++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&H.push(p++)}L(H,function(q,U){var ue=v(q);if(l&&R.type!=null&&(ue.type=R.type),g(Ke(ue,R),D,U),ue.name==null&&A){var He=A[U];!se(He)&&(He={name:He}),ue.name=ue.displayName=He.name,ue.defaultTooltip=He.defaultTooltip}M&&Ke(ue.otherDims,M)})}});function g(x,D,A){mS.get(D)!=null?x.otherDims[D]=A:(x.coordDim=D,x.coordDimIndex=A,i.set(D,!0))}var m=e.generateCoord,_=e.generateCoordCount,y=_!=null;_=m?_||1:0;var b=m||"value";function w(x){x.name==null&&(x.name=x.coordDim)}if(s)L(a,function(x){w(x)}),a.sort(function(x,D){return x.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var T=v(S),C=T.coordDim;C==null&&(T.coordDim=jO(b,i,y),T.coordDimIndex=0,(!m||_<=0)&&(T.isExtraCoord=!0),_--),w(T),T.type==null&&(wS(t,S)===ar.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return KO(a),new ST({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function KO(t){for(var e=me(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function qO(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return L(e,function(a){var o;se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function jO(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var ZO=function(){function t(e){this.coordSysDims=[],this.axisMap=me(),this.categoryAxisMap=me(),this.coordSysName=e}return t}();function QO(t){var e=t.get("coordinateSystem"),r=new ZO(e),n=JO[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var JO={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Hi).models[0],a=t.getReferringComponents("yAxis",Hi).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),La(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),La(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Hi).models[0];e.coordSysDims=["single"],r.set("single",i),La(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Hi).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),La(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),La(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),La(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function La(t){return t.get("type")==="category"}function ek(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;tk(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h;if(L(a,function(_,y){ae(_)&&(a[y]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,v=f.type,p=0;L(a,function(_){_.coordDim===d&&p++});var g={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function tk(t){return!TT(t.schema)}function rk(t,e){var r=t.get("coordinateSystem"),n=oc.get(r),i;return e&&e.coordSysDims&&(i=Me(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=HO(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nk(t,e,r){var n,i;return r&&L(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function ik(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=qp(t)):(i=n.getSource(),a=i.sourceFormat===Ir);var o=QO(e),s=rk(e,o),l=r.useEncodeDefaulter,u=Ie(l)?l:l?Ze(JP,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=ig(i,f),h=nk(c.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(c),v=ek(e,{schema:c,store:d}),p=new js(c,e);p.setCalculationInfo(v);var g=h!=null&&ak(i)?function(m,_,y,b){return b===h?y:this.defaultDimValueGetter(m,_,y,b)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,g),p}function ak(t){if(t.sourceFormat===Ir){var e=ok(t.data||[]);return!Z(hl(e))}}function ok(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function IT(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function sk(t){var e=t.get("interval");return e??"auto"}function lk(t){return t.type==="category"&&sk(t.getLabelModel())===0}var F_=[],uk={registerPreprocessor:yT,registerProcessor:_T,registerPostInit:PO,registerPostUpdate:RO,registerUpdateLifecycle:rg,registerAction:da,registerCoordinateSystem:OO,registerLayout:kO,registerVisual:va,registerTransform:BO,registerLoading:bT,registerMap:NO,registerImpl:hO,PRIORITY:CO,ComponentModel:Be,ComponentView:rn,SeriesModel:An,ChartView:wn,registerComponentModel:function(t){Be.registerClass(t)},registerComponentView:function(t){rn.registerClass(t)},registerSeriesModel:function(t){An.registerClass(t)},registerChartView:function(t){wn.registerClass(t)},registerSubTypeDefaulter:function(t,e){Be.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){HM(t,e)}};function ho(t){if(Z(t)){L(t,function(e){ho(e)});return}ke(F_,t)>=0||(F_.push(t),Ie(t)&&(t={install:t}),t.install(uk))}function fk(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new of(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function ck(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new Ae(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,d=0;d<e.length;d++){var v=e[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new of(v.localRect,v.transform)),c||(c=new of(s,l)),c.intersect(v.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function AT(t,e,r){ho(e);const n=il();function i(){n.value?.resize()}return nn(()=>{n.value=EO(t.value),r(n.value),window.addEventListener("resize",i)}),fa(()=>{window.removeEventListener("resize",i),n.value?.dispose()}),n}function Ri(t,e){return ge({get:()=>t.value[e],set:r=>{t.value={...t.value,[e]:r}}})}function V_(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:c[0],u==="x"?v[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),si(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}var qn=Math.PI,Ji=function(){function t(e,r){this.group=new ft,this.opt=r,this.axisModel=e,Ke(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ft({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!H_[e]},t.prototype.add=function(e){H_[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=D1(r-e),a,o;return rf(i)?(o=n>0?"top":"bottom",a="center"):rf(i-qn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<qn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),H_={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(fr(s,s,o),fr(l,l,o));var f=$({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ha({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Vp(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var d=e.get(["axisLine","symbolSize"]);ae(h)&&(h=[h,h]),(ae(d)||et(d))&&(d=[d,d]);var v=uc(e.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];L([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,_){if(h[_]!=="none"&&h[_]!=null){var y=yl(h[_],-p/2,-g/2,p,g,f.stroke,!0),b=m.r+m.offset,w=u?l:s;y.attr({rotation:m.rotate,x:w[0]+b*Math.cos(t.rotation),y:w[1]-b*Math.sin(t.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(t,e,r,n){var i=vk(r,n,e,t),a=gk(r,n,e,t);if(dk(e,a,i),pk(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=fk(Me(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ck(o)}},axisName:function(t,e,r,n){var i=si(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,$_(a)?t.labelOffset+o*l:0],h,d=e.get("nameRotate");d!=null&&(d=d*qn/180);var v;$_(a)?h=Ji.innerTextLayout(t.rotation,d??t.rotation,o):(h=hk(t.rotation,a,d||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,_=si(t.nameTruncateMaxWidth,g.maxWidth,v),y=new Et({x:c[0],y:c[1],rotation:h.rotation,silent:Ji.isLabelSilent(e),style:tn(s,{text:i,font:p,overflow:"truncate",width:_,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(tc({el:y,componentModel:e,itemName:i}),y.__fullText=i,y.anid="name",e.get("triggerEvent")){var b=Ji.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Pe(y).eventData=b}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function hk(t,e,r,n){var i=D1(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return rf(i-qn/2)?(o=l?"bottom":"top",a="center"):rf(i-qn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<qn*1.5&&i>qn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function dk(t,e,r){if(!lk(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(vr(a),vr(u)):z_(a,o)&&(n?(vr(o),vr(f)):(vr(a),vr(u))),i===!1?(vr(s),vr(c)):z_(l,s)&&(i?(vr(l),vr(h)):(vr(s),vr(c)))}}function vr(t){t&&(t.ignore=!0)}function z_(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=mp([]);return yp(i,i,-t.rotation),r.applyTransform(ro([],i,t.getLocalTransform())),n.applyTransform(ro([],i,e.getLocalTransform())),r.intersect(n)}}function $_(t){return t==="middle"||t==="center"}function MT(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(fr(o,o,e),fr(s,s,e));var f=new ha({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Vp(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f)}return a}function vk(t,e,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=MT(u,e.transform,l,Ke(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function pk(t,e,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ke(s.getLineStyle(),Ke(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=MT(o[f],e.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)t.add(c[h])}}function gk(t,e,r,n){var i=r.axis,a=si(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(si(n.labelRotate,o.get("rotate"))||0)*qn/180,f=Ji.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=Ji.isLabelSilent(r),v=r.get("triggerEvent");return L(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,_=p.formattedLabel,y=p.rawLabel,b=o;if(c&&c[m]){var w=c[m];se(w)&&w.textStyle&&(b=new Ge(w.textStyle,o,r.ecModel))}var S=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(m),C=b.getShallow("align",!0)||f.textAlign,x=ye(b.getShallow("alignMinLabel",!0),C),D=ye(b.getShallow("alignMaxLabel",!0),C),A=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,M=ye(b.getShallow("verticalAlignMinLabel",!0),A),R=ye(b.getShallow("verticalAlignMaxLabel",!0),A),k=new Et({x:T,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(p.level||0),style:tn(b,{text:_,align:g===0?x:g===l.length-1?D:C,verticalAlign:g===0?M:g===l.length-1?R:A,fill:Ie(S)?S(i.type==="category"?y:i.type==="value"?m+"":m,g):S})});if(k.anid="label_"+m,tc({el:k,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:y,tickIndex:g}}),v){var H=Ji.makeAxisEventDataBase(r);H.targetType="axisLabel",H.value=y,H.tickIndex=g,i.type==="category"&&(H.dataIndex=m),Pe(k).eventData=H}e.add(k),k.updateTransform(),h.push(k),t.add(k),k.decomposeTransform()}),h}}function mk(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yk(r,t,e),r.seriesInvolved&&bk(r,t),r}function yk(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];L(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zs(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(L(s.getAxes(),Ze(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&L(v.baseAxes,Ze(p,d?"cross":!0,h)),d&&L(v.otherAxes,Ze(p,"cross",!1))}function p(g,m,_){var y=_.model.getModel("axisPointer",i),b=y.get("show");if(!(!b||b==="auto"&&!g&&!_v(y))){m==null&&(m=y.get("triggerTooltip")),y=g?_k(_,c,i,e,g,m):y;var w=y.get("snap"),S=y.get("triggerEmphasis"),T=Zs(_.model),C=m||w||_.type==="category",x=t.axesInfo[T]={key:T,axis:_,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:w,useHandle:_v(y),seriesModels:[],linkGroup:null};u[T]=x,t.seriesInvolved=t.seriesInvolved||C;var D=wk(a,_);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[T]=x,A.mapper=a[D].mapper,x.linkGroup=A}}}})}function _k(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(h){l[h]=Se(o.get(h))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Ke(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ge(l,r,n))}function bk(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||L(t.coordSysAxesInfo[Zs(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function wk(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Lh(a[n+"AxisId"],r.id)||Lh(a[n+"AxisIndex"],r.componentIndex)||Lh(a[n+"AxisName"],r.name))return i}}function Lh(t,e){return t==="all"||Z(t)&&ke(t,e)>=0||t===e}function Sk(t){var e=ag(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=_v(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function ag(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Zs(t)]}function Tk(t){var e=ag(t);return e&&e.axisPointerModel}function _v(t){return!!t.get(["handle","show"])}function Zs(t){return t.type+"||"+t.id}var U_={},xk=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&Sk(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=Tk(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){U_[r]=n},e.getAxisPointerClass=function(r){return r&&U_[r]},e.type="axis",e}(rn),Bi=at(),G_=Se,Ph=De,Ck=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new ft,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=Ze(W_,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}X_(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=ag(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=Bi(e).pointerEl=new gP[a.type](G_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=Bi(e).labelEl=new Et(G_(r.label));e.add(a),Y_(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=Bi(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=Bi(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Y_(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=zp(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wf(u.event)},onmousedown:Ph(this._onHandleDragMove,this,0,0),drift:Ph(this._onHandleDragMove,this),ondragend:Ph(this._onHandleDragEnd,this)}),n.add(i)),X_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,GS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){W_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Rh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Rh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rh(i)),Bi(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),fv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function W_(t,e,r,n){ET(Bi(r).lastProp,n)||(Bi(r).lastProp=n,e?ui(r,n,t):(r.stopAnimation(),r.attr(n)))}function ET(t,e){if(se(t)&&se(e)){var r=!0;return L(e,function(n,i){r=r&&ET(t[i],n)}),!!r}else return t===e}function Y_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Rh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function X_(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function Dk(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Ik(t,e,r,n,i){var a=r.get("value"),o=LT(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ml(s.get("padding")||0),u=s.getFont(),f=b1(o,u),c=i.position,h=f.width+l[1]+l[3],d=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),Ak(c,h,d,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:tn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Ak(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function LT(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:IT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),ae(o)?a=o.replace("{value}",a):Ie(o)&&(a=o(s))}return a}function PT(t,e,r){var n=Jn();return yp(n,n,r.rotation),Bs(n,n,r.position),Hp([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Mk(t,e,r,n,i,a){var o=Ji.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Ik(e,n,i,a,{position:PT(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ek(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function Lk(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var Pk=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=K_(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Dk(a),d=Rk[u](s,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=V_(l.model,i);Mk(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=V_(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=PT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=K_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,d=[h,h];d[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[f]}},e}(Ck);function K_(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var Rk={line:function(t,e,r){var n=Ek([e,r[0]],[e,r[1]],q_(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Lk([e-n/2,r[0]],[n,i],q_(t))}}};function q_(t){return t.dim==="x"?0:1}var Ok=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Be),yn=at(),kk=L;function RT(t,e,r){if(!he.node){var n=e.getZr();yn(n).records||(yn(n).records={}),Nk(n,e);var i=yn(n).records[t]||(yn(n).records[t]={});i.handler=r}}function Nk(t,e){if(yn(t).initialized)return;yn(t).initialized=!0,r("click",Ze(j_,"click")),r("mousemove",Ze(j_,"mousemove")),r("globalout",Fk);function r(n,i){t.on(n,function(a){var o=Vk(e);kk(yn(t).records,function(s){s&&i(s,a,o.dispatchAction)}),Bk(o.pendings,e)})}}function Bk(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Fk(t,e,r){t.handler("leave",null,r)}function j_(t,e,r,n){e.handler(t,r,n)}function Vk(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function bv(t,e){if(!he.node){var r=e.getZr(),n=(yn(r).records||{})[t];n&&(yn(r).records[t]=null)}}var Hk=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";RT("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){bv("axisPointer",n)},e.prototype.dispose=function(r,n){bv("axisPointer",n)},e.type="axisPointer",e}(rn);function OT(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=dl(a,t);if(o==null||o<0||Z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Me(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Z_=at();function zk(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||De(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lu(i)&&(i=OT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Lu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Lu(i),h={},d={},v={list:[],map:{}},p={showPointer:Ze(Uk,d),showTooltip:Ze(Gk,v)};L(s.coordSysMap,function(m,_){var y=l||m.containPoint(i);L(s.coordSysAxesInfo[_],function(b,w){var S=b.axis,T=Kk(u,b);if(!c&&y&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(i)),C!=null&&Q_(b,C,p,!1,h)}})});var g={};return L(f,function(m,_){var y=m.linkGroup;y&&!d[_]&&L(y.axesInfo,function(b,w){var S=d[w];if(b!==m&&S){var T=S.value;y.mapper&&(T=m.axis.scale.parse(y.mapper(T,J_(b),J_(m)))),g[m.key]=T}})}),L(g,function(m,_){Q_(f[_],m,p,!0,h)}),Wk(d,f,h),Yk(v,i,t,o),Xk(f,o,r),h}}function Q_(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=$k(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&$(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function $k(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return L(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,t,r);h=d.dataIndices,c=d.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var v=t-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),L(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Uk(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Gk(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Zs(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Wk(t,e,r){var n=r.axesInfo=[];L(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Yk(t,e,r,n){if(Lu(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Xk(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Z_(n)[i]||{},o=Z_(n)[i]={};L(t,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&L(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];L(a,function(u,f){!o[f]&&l.push(u)}),L(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Kk(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function J_(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Lu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function qk(t){xk.registerAxisPointerClass("CartesianAxisPointer",Pk),t.registerComponentModel(Ok),t.registerComponentView(Hk),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Z(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=mk(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zk)}var e0=fr,kT=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Vi,n._rawTransformable=new Vi,n.name=r,n}return e.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new Ae(r,n,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new Ae(r,n,i,a)},e.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ae(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(r,n){r&&(this._center=[ht(r[0],n.getWidth()),ht(r[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=fr([],a,r),i=fr([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),r1(this.transform||(this.transform=[]),n.transform||Jn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],_p(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new Vi;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},e.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?e0(i,r,a):Rt(i,r)},e.prototype.pointToData=function(r){var n=this.invTransform;return n?e0([],r,n):[r[0],r[1]]},e.prototype.convertToPixel=function(r,n,i){var a=t0(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(r,n,i){var a=t0(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},e.dimensions=["x","y"],e}(Vi);function t0(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function r0(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function jk(t,e,r,n){var i=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(r0(t,s),n)),o!=null){t.scaleX*=o,t.scaleY*=o;var l=(e.originX-t.x)*(o-1),u=(e.originY-t.y)*(o-1);t.x-=l,t.y-=u,t.updateTransform(),t.setCenter(r0(t,s),n),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var n0="\0_ec_interaction_mutex";function i0(t,e){return!!Zk(t)[e]}function Zk(t){return t[n0]||(t[n0]={})}da({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ut);var NT=function(t){re(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var i=De(n._mousedownHandler,n),a=De(n._mousemoveHandler,n),o=De(n._mouseupHandler,n),s=De(n._mousewheelHandler,n),l=De(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=Ke(Se(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(r){this.pointerChecker=r},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!mm(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!Pu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||i0(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Wf(r.event),BT(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){mm(r)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(r){var n=Pu("zoomOnMouseWheel",r,this._opt),i=Pu("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;Oh(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);Oh(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!i0(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Oh(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(Vr);function Oh(t,e,r,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(Wf(n.event),BT(t,e,r,n,i))}function BT(t,e,r,n,i){i.isAvailableBehavior=De(Pu,null,r,n),t.trigger(e,i)}function Pu(t,e,r){var n=r[t];return!t||n&&(!ae(n)||e.event[n+"Key"])}function Qk(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function Jk(t,e,r,n){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var eN={axisPointer:1,tooltip:1,brush:1};function tN(t,e,r){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!eN.hasOwnProperty(n.mainType)&&i&&i.model!==r}function rN(t,e){var r=ml(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Mt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var nN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Be);function FT(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function VT(t){if(he.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var HT=VT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iN=VT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zT(t,e){if(!t)return e;e=vS(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function aN(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var oN=zT(iN,"transition"),og=zT(HT,"transform"),sN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(he.transform3dSupported?"will-change:transform;":"");function lN(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function uN(t,e,r){if(!ae(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Ws(e);var a=lN(r),o=Math.max(Math.round(i)*1.5,6),s="",l=og+":",u;ke(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function fN(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=he.transformSupported?","+og+n:",left"+n+",top"+n),oN+":"+i}function a0(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!he.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=he.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+og+":"+o+";":[["top",0],["left",0],[HT,o]]}function cN(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=ye(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),L(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function hN(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),f=t.getModel("textStyle"),c=HS(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(fN(i,r)),a&&n.push("background-color:"+a),L(["width","color","radius"],function(d){var v="border-"+d,p=vS(v),g=t.get(p);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(cN(f)),c!=null&&n.push("padding:"+ml(c).join("px ")+"px"),n.join(";")+";"}function o0(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&BA(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dN=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,he.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(ae(a)?document.querySelector(a):Ns(a)?a:Ie(a)&&a(e.getDom()));o0(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,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=i.handler,f=i.painter.getViewportRoot();gr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=aN(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=sN+hN(e,!this._firstShow,this._longHide)+a0(a[0],a[1],!0)+("border-color:"+Ws(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ae(a)&&n.get("trigger")==="item"&&!FT(n)&&(s=uN(n,i,a)),ae(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Z(e)||(e=[e]);for(var l=0;l<e.length;l++)Ns(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(o0(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=a0(n[0],n[1]);L(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",he.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),vN=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),l0(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;se(e)&&Kt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Et({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:HS(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),L(["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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=s0(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;l0(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=zn(a.borderWidth||0),s=s0(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function zn(t){return Math.max(0,t)}function s0(t){var e=zn(t.shadowBlur||0),r=zn(t.shadowOffsetX||0),n=zn(t.shadowOffsetY||0);return{left:zn(e-r),right:zn(e+r),top:zn(e-n),bottom:zn(e+n)}}function l0(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pN=new Mt({shape:{x:-1,y:-1,width:2,height:2}}),gN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(he.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=aE(i.get("renderMode"));this._tooltipContent=a==="richText"?new vN(n):new dN(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(he.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?GS(this,"_updatePosition",50,"fixRate"):fv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");RT("itemTooltip",this._api,De(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||he.node||!i.getDom())){var o=u0(a,i);this._ticket="";var s=a.dataByCoordSys,l=bN(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=pN;f.x=a.x,f.y=a.y,f.update(),Pe(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=OT(a,n),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(u0(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.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=qo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Pe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;os(i,function(f){if(Pe(f).dataIndex!=null)return l=f,!0;if(Pe(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=De(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=qo([n.tooltipOption],a),l=this._renderMode,u=[],f=sa("section",{blocks:[],noHeader:!0}),c=[],h=new _h;L(r,function(_){L(_.dataByAxis,function(y){var b=i.getComponent(y.axisDim+"Axis",y.axisIndex),w=y.value;if(!(!b||w==null)){var S=LT(w,b.axis,i,y.seriesDataIndices,y.valueLabelOpt),T=sa("section",{header:S,noHeader:!jr(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),L(y.seriesDataIndices,function(C){var x=i.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,A=x.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=y.axisDim,A.axisIndex=y.axisIndex,A.axisType=y.axisType,A.axisId=y.axisId,A.axisValue=IT(b.axis,{value:w}),A.axisValueLabel=S,A.marker=h.makeTooltipMarker("item",Ws(A.color),l);var M=jy(x.formatTooltip(D,!0,null)),R=M.frag;if(R){var k=qo([x],a).get("valueFormatter");T.blocks.push(k?$({valueFormatter:k},R):R)}M.text&&c.push(M.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var d=n.position,v=s.get("order"),p=t_(f,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
56
+ `];function sa(t,e){return e.type=t,e}function sv(t){return t.type==="section"}function BS(t){return sv(t)?JR:e2}function FS(t){if(sv(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return L(t.blocks,function(i){var a=FS(i);a>=e&&(e=a+ +(n&&(!a||sv(i)&&!i.noHeader)))}),e}return 0}function JR(t,e,r,n){var i=e.noHeader,a=t2(FS(e)),o=[],s=e.blocks||[];Br(!s||Z(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ia(u,l)){var f=new NR(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(p,g){var m=e.valueFormatter,_=BS(p)(m?$($({},t),{valueFormatter:m}):t,p,g>0?a.html:0,n);_!=null&&o.push(_)});var c=t.renderMode==="richText"?o.join(a.richText):lv(n,o.join(""),i?r:a.html);if(i)return c;var h=nv(e.header,"ordinal",t.useUTC),d=NS(n,t.renderMode).nameStyle,v=kS(n);return t.renderMode==="richText"?VS(t,h,d)+a.richText+c:lv(n,'<div style="'+d+";"+v+';">'+Bt(h)+"</div>"+c,r)}function e2(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(b){return b=Z(b)?b:[b],Me(b,function(w,S){return nv(w,Z(d)?d[S]:d,u)})};if(!(a&&o)){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=a?"":nv(l,"ordinal",u),d=e.valueType,v=o?[]:f(e.value,e.dataIndex),p=!s||!a,g=!s&&a,m=NS(n,i),_=m.nameStyle,y=m.valueStyle;return i==="richText"?(s?"":c)+(a?"":VS(t,h,_))+(o?"":i2(t,v,p,g,y)):lv(n,(s?"":c)+(a?"":r2(h,!s,_))+(o?"":n2(v,p,g,y)),r)}}function t_(t,e,r,n,i,a){if(t){var o=BS(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function t2(t){return{html:ZR[t],richText:QR[t]}}function lv(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=kS(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function r2(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Bt(t)+"</span>"}function n2(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=Z(t)?t:[t],'<span style="'+a+";"+n+'">'+Me(t,function(o){return Bt(o)}).join("&nbsp;&nbsp;")+"</span>"}function VS(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function i2(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Z(e)?e.join(" "):e,a)}function a2(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return Ws(n)}function HS(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var _h=function(){function t(){this.richTextStyles={},this._nextStyleNameId=I1()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=GP({color:r,type:e,renderMode:n,markerId:i});return ae(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};Z(r)?L(r,function(a){return $(n,a)}):$(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t}();function zS(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=Z(s),u=a2(e,r),f,c,h,d;if(o>1||l&&!o){var v=o2(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,h=v.blocks,d=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);d=f=co(i,r,a[0]),c=p.type}else d=f=l?s[0]:s;var g=Sp(e),m=g&&e.name||"",_=i.getName(r),y=n?m:_;return sa("section",{header:m,noHeader:n||!g,sortParam:d,blocks:[sa("nameValue",{markerType:"item",markerColor:u,name:y,noName:!jr(y),value:f,valueType:c,dataIndex:r})].concat(h||[])})}function o2(t,e,r,n,i){var a=e.getData(),o=wo(t,function(c,h,d){var v=a.getDimensionInfo(d);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?L(n,function(c){f(co(a,r,c),c)}):L(t,f);function f(c,h){var d=a.getDimensionInfo(h);!d||d.otherDims.tooltip===!1||(o?u.push(sa("nameValue",{markerType:"subItem",markerColor:i,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Nn=at();function Zl(t,e){return t.getName(e)||t.getId(e)}var s2="__universalTransitionEnabled",An=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Cs({count:u2,reset:f2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Nn(this).sourceManager=new qR(this);a.prepareSource();var o=this.getInitialData(r,i);n_(o,this),this.dataTask.context.data=o,Nn(this).dataBeforeProcessed=o,r_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=cf(this),a=i?Wp(r):{},o=this.subType;Be.hasClass(o)&&(o+="Series"),Qe(r,n.getTheme().get(this.subType)),Qe(r,this.getDefaultOption()),Wd(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ys(r,a,i)},e.prototype.mergeOption=function(r,n){r=Qe(this.option,r,!0),this.fillDataTextStyle(r.data);var i=cf(this);i&&Ys(this.option,r,i);var a=Nn(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);n_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Nn(this).dataBeforeProcessed=o,r_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!tr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Wd(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=uv(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Nn(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=uv(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Nn(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return me(r)},e.prototype.getSourceManager=function(){return Nn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Nn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.formatTooltip=function(r,n,i){return zS({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(he.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=Yp.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Zl(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Je(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Zl(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[s2])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=n[f],h=Zl(r,c);u[h]=!0,this._selectedDataIndicesMap[h]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var d=n[l-1],h=Zl(r,d);o.selectedMap=(i={},i[h]=!0,i),this._selectedDataIndicesMap=(a={},a[h]=r.getRawIndex(d),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return Be.registerClass(r)},e.protoInitialize=function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),e}(Be);Fr(An,OR);Fr(An,Yp);R1(An,Be);function r_(t){var e=t.name;Sp(t)||(t.name=l2(t)||e)}function l2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return L(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function u2(t){return t.model.getRawData().count()}function f2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),c2}function c2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function n_(t,e){L(MA(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ze(h2,e))})}function h2(t,e){var r=uv(t);return r&&r.setOutputEnd((e||this).count()),e}function uv(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var nn=function(){function t(){this.group=new ft,this.uid=ac("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t}();xp(nn);Cp(nn);function d2(){var t=at();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var $S=at(),v2=d2(),Sn=function(){function t(){this.group=new ft,this.uid=ac("viewChart"),this.renderTask=Cs({plan:p2,reset:g2}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&a_(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);a&&a_(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){rc(this.group,e)},t.markUpdateMethod=function(e,r){$S(e).updateMethod=r},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function i_(t,e,r){t&&Gs(t)&&(e==="emphasis"?$s:Us)(t,r)}function a_(t,e,r){var n=dl(t,e),i=e&&e.highlightKey!=null?bL(e.highlightKey):null;n!=null?L(vt(n),function(a){i_(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){i_(a,r,i)})}xp(Sn);Cp(Sn);function p2(t){return v2(t.model)}function g2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&$S(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),m2[l]}var m2={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},hf="\0__throttleOriginMethod",o_="\0__throttleRate",s_="\0__throttleType";function US(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var h=function(){for(var d=[],v=0;v<arguments.length;v++)d[v]=arguments[v];n=new Date().getTime(),l=this,u=d;var p=f||e,g=f||r;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),i=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(d){f=d},h}function GS(t,e,r,n){var i=t[e];if(i){var a=i[hf]||i,o=i[s_],s=i[o_];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=US(a,r,n==="debounce"),i[hf]=a,i[s_]=n,i[o_]=r}return i}}function fv(t,e){var r=t[e];r&&r[hf]&&(r.clear&&r.clear(),t[e]=r[hf])}var l_=at(),u_={itemStyle:uo(uS,!0),lineStyle:uo(lS,!0)},y2={lineStyle:"stroke",itemStyle:"fill"};function WS(t,e){var r=t.visualStyleMapper||u_[e];return r||(console.warn("Unknown style type '"+e+"'."),u_.itemStyle)}function YS(t,e){var r=t.visualDrawType||y2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var _2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=WS(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=YS(t,n),u=o[l],f=Ie(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ie(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||Ie(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(d,v){var p=t.getDataParams(v),g=$({},o);g[l]=f(p),d.setItemVisual(v,"style",g)}}}},zo=new Ge,b2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=WS(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){zo.option=l[n];var u=i(zo),f=o.ensureUniqueItemVisual(s,"style");$(f,u),zo.option.decal&&(o.setItemVisual(s,"decal",zo.option.decal),zo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},w2={performRawSeries:!0,overallReset:function(t){var e=me();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),l_(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=l_(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=YS(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],c=a.getItemVisual(f,"colorFromPalette");if(c){var h=a.ensureUniqueItemVisual(f,"style"),d=n.getName(u)||u+"",v=n.count();h[l]=r.getColorFromPalette(d,o,v)}})}})}},Ql=Math.PI;function S2(t,e){e=e||{},Ke(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new ft,n=new Mt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new Et({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Mt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ec({shape:{startAngle:-Ql/2,endAngle:-Ql/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Ql*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ql*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var XS=function(){function t(e,r,n,i){this._stageTaskMap=me(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=me();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;L(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";Br(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;L(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var d,v=h.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),d=!0)}),d&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);v.each(function(g){g.perform(p)}),h.perform(p)&&(a=!0)}else c&&c.each(function(g,m){s(i,g)&&g.dirty();var _=o.getPerformArgs(g,i.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(_)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=me(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(c){var h=c.uid,d=s.set(h,o&&o.get(h)||Cs({plan:I2,reset:A2,count:E2}));d.context={model:c,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,d)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Cs({reset:T2});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=me(),u=e.seriesType,f=e.getTargetSeries,c=!0,h=!1,d="";Br(!e.createOnAllSeries,d),u?n.eachRawSeriesByType(u,v):f?f(n,i).each(v):(c=!1,L(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(h=!0,Cs({reset:x2,onDirty:D2})));m.context={model:p,overallProgress:c},m.agent=o,m.__block=c,a._pipe(p,m)}h&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return Ie(e)&&(e={overallReset:e,seriesType:L2(e)}),e.uid=ac("stageHandler"),r&&(e.visualType=r),e},t}();function T2(t){t.overallReset(t.ecModel,t.api,t.payload)}function x2(t){return t.overallProgress&&C2}function C2(){this.agent.dirty(),this.getDownstream().dirty()}function D2(){this.agent&&this.agent.dirty()}function I2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function A2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=vt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Me(e,function(r,n){return KS(n)}):M2}var M2=KS(0);function KS(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function E2(t){return t.data.count()}function L2(t){df=null;try{t(Ks,qS)}catch{}return df}var Ks={},qS={},df;jS(Ks,Xp);jS(qS,TS);Ks.eachSeriesByType=Ks.eachRawSeriesByType=function(t){df=t};Ks.eachComponent=function(t){t.mainType==="series"&&t.subType&&(df=t.subType)};function jS(t,e){for(var r in e.prototype)t[r]=ut}var f_=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const P2={color:f_,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],f_]};var St="#B9B8CE",c_="#100C2A",Jl=function(){return{axisLine:{lineStyle:{color:St}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},h_=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],ZS={darkMode:!0,color:h_,backgroundColor:c_,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:St},pageTextStyle:{color:St}},textStyle:{color:St},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:St}},dataZoom:{borderColor:"#71708A",textStyle:{color:St},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:St}},timeline:{lineStyle:{color:St},label:{color:St},controlStyle:{color:St,borderColor:St}},calendar:{itemStyle:{color:c_},dayLabel:{color:St},monthLabel:{color:St},yearLabel:{color:St}},timeAxis:Jl(),logAxis:Jl(),valueAxis:Jl(),categoryAxis:Jl(),line:{symbol:"circle"},graph:{color:h_},gauge:{title:{color:St},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:St},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};ZS.categoryAxis.splitLine.show=!1;var R2=function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(ae(e)){var a=Zr(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],d=u.lastIndexOf(h);if(d>0&&d===u.length-h.length){var v=u.slice(0,d);v!=="data"&&(r.mainType=v,r[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(c,h,d,v){return c[d]==null||h[v||d]===c[d]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),cv=["symbol","symbolSize","symbolRotate","symbolOffset"],d_=cv.concat(["symbolKeepAspect"]),O2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<cv.length;o++){var s=cv[o],l=t.get(s);Ie(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual($({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Je(i);function f(c,h){for(var d=t.getRawValue(h),v=t.getDataParams(h),p=0;p<u.length;p++){var g=u[p];c.setItemVisual(h,g,i[g](d,v))}}return{dataEach:a?f:null}}},k2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<d_.length;s++){var l=d_[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function N2(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r)}}function B2(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function Ma(t,e,r,n,i){var a=t+e;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var c=o.getData(),h=dl(c,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:Z(h)?c.getName(h[0]):c.getName(h),selected:ae(l)?l:$({},l)})}})}function F2(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Ma("map","selectchanged",e,i,n),Ma("pie","selectchanged",e,i,n)):n.fromAction==="select"?(Ma("map","selected",e,i,n),Ma("pie","selected",e,i,n)):n.fromAction==="unselect"&&(Ma("map","unselected",e,i,n),Ma("pie","unselected",e,i,n))})}function os(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var V2=Math.round(Math.random()*9),H2=typeof Object.defineProperty=="function",z2=function(){function t(){this._id="__ec_inner_"+V2++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return H2?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),$2=Ye.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),U2=Ye.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),G2=Ye.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),d=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*d,l+s+h*d,r,n-v,r,n),t.bezierCurveTo(r,n-v,r-f+c*d,l+s+h*d,r-f,l+s),t.closePath()}}),W2=Ye.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),Y2={line:ha,rect:Mt,roundRect:Mt,square:Mt,circle:Zf,diamond:U2,pin:G2,arrow:W2,triangle:$2},X2={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},hv={};L(Y2,function(t,e){hv[e]=new t});var K2=Ye.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=w1(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=hv[n];i||(n="rect",i=hv[n]),X2[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function q2(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function yl(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=iS(t.slice(8),new Ae(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Fp(t.slice(7),{},new Ae(e,r,n,i),o?"center":"cover"):l=new K2({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=q2,a&&l.setColor(a),l}function Qp(t){return Z(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function uc(t,e){if(t!=null)return Z(t)||(t=[t,t]),[ht(t[0],e[0])||0,ht(ye(t[1],t[0]),e[1])||0]}function $i(t){return isFinite(t)}function j2(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=$i(n)?n:0,i=$i(i)?i:1,a=$i(a)?a:0,o=$i(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function Z2(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=$i(o)?o:.5,s=$i(s)?s:.5,l=l>=0&&$i(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function dv(t,e,r){for(var n=e.type==="radial"?Z2(t,e,r):j2(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function Q2(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function eu(t){return parseInt(t,10)}function tu(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||eu(s[n])||eu(t.style[n]))-(eu(s[a])||0)-(eu(s[o])||0)|0}function J2(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:et(t)?[t]:Z(t)?t:null}function QS(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&J2(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=Me(r,function(a){return a/i}),n/=i)}return[r,n]}var eO=new fo(!0);function vf(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function v_(t){return typeof t=="string"&&t!=="none"}function pf(t){var e=t.fill;return e!=null&&e!=="none"}function p_(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function g_(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function vv(t,e,r){var n=O1(e.image,e.__image,r);if(Kf(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*EA),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function tO(t,e,r,n){var i,a=vf(r),o=pf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||eO,c=e.__dirty;if(!n){var h=r.fill,d=r.stroke,v=o&&!!h.colorStops,p=a&&!!d.colorStops,g=o&&!!h.image,m=a&&!!d.image,_=void 0,y=void 0,b=void 0,w=void 0,S=void 0;(v||p)&&(S=e.getBoundingRect()),v&&(_=c?dv(t,h,S):e.__canvasFillGradient,e.__canvasFillGradient=_),p&&(y=c?dv(t,d,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),g&&(b=c||!e.__canvasFillPattern?vv(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=b),m&&(w=c||!e.__canvasStrokePattern?vv(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=_:g&&(b?t.fillStyle=b:o=!1),p?t.strokeStyle=y:m&&(w?t.strokeStyle=w:a=!1)}var T=e.getGlobalScale();f.setScale(T[0],T[1],e.segmentIgnoreThreshold);var C,x;t.setLineDash&&r.lineDash&&(i=QS(e),C=i[0],x=i[1]);var D=!0;(u||c&Va)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),D=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),D&&f.rebuildPath(t,l?s:1),C&&(t.setLineDash(C),t.lineDashOffset=x),n||(r.strokeFirst?(a&&g_(t,r),o&&p_(t,r)):(o&&p_(t,r),a&&g_(t,r))),C&&t.setLineDash([])}function rO(t,e,r){var n=e.__image=O1(r.image,e.__image,e,e.onload);if(!(!n||!Kf(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.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),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,h=s-f;t.drawImage(n,u,f,c,h,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function nO(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||na,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=QS(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(vf(r)&&t.strokeText(i,r.x,r.y),pf(r)&&t.fillText(i,r.x,r.y)):(pf(r)&&t.fillText(i,r.x,r.y),vf(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var m_=["shadowBlur","shadowOffsetX","shadowOffsetY"],y_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function JS(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Qt(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Zi.opacity:o}(n||e.blend!==r.blend)&&(a||(Qt(t,i),a=!0),t.globalCompositeOperation=e.blend||Zi.blend);for(var s=0;s<m_.length;s++){var l=m_[s];(n||e[l]!==r[l])&&(a||(Qt(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Qt(t,i),a=!0),t.shadowColor=e.shadowColor||Zi.shadowColor),a}function __(t,e,r,n,i){var a=qs(e,i.inHover),o=n?null:r&&qs(r,i.inHover)||{};if(a===o)return!1;var s=JS(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Qt(t,i),s=!0),v_(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Qt(t,i),s=!0),v_(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Qt(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Qt(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<y_.length;f++){var c=y_[f],h=c[0];(n||a[h]!==o[h])&&(s||(Qt(t,i),s=!0),t[h]=a[h]||c[1])}return s}function iO(t,e,r,n,i){return JS(t,qs(e,i.inHover),r&&qs(r,i.inHover),n,i)}function eT(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function aO(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),eT(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function oO(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var b_=1,w_=2,S_=3,T_=4;function sO(t){var e=pf(t),r=vf(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Qt(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function qs(t,e){return e&&t.__hoverStyle||t.style}function tT(t,e){Ui(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ui(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~sr,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||Q2(a,o))&&(o&&o.length&&(Qt(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Qt(t,r),t.save(),aO(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ye&&e.autoBatch&&sO(e.style);s||oO(i,u.transform)?(Qt(t,r),eT(t,e)):f||Qt(t,r);var c=qs(e,r.inHover);e instanceof Ye?(r.lastDrawType!==b_&&(l=!0,r.lastDrawType=b_),__(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),tO(t,e,c,f),f&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):e instanceof af?(r.lastDrawType!==S_&&(l=!0,r.lastDrawType=S_),__(t,e,u,l,r),nO(t,e,c)):e instanceof li?(r.lastDrawType!==w_&&(l=!0,r.lastDrawType=w_),iO(t,e,u,l,r),rO(t,e,c)):e.getTemporalDisplayables&&(r.lastDrawType!==T_&&(l=!0,r.lastDrawType=T_),lO(t,e,r)),f&&n&&Qt(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function lO(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ui(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ui(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var bh=new z2,x_=new cl(100),C_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pv(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&bh.delete(t);var a=bh.get(t);if(a)return a;var o=Ke(t,{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=i?1:1/r,bh.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,h=0;h<C_.length;++h){var d=o[C_[h]];if(d!=null&&!Z(d)&&!ae(d)&&!et(d)&&typeof d!="boolean"){c=!1;break}f.push(d)}var v;if(c){v=f.join(",")+(i?"-svg":"");var p=x_.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=nT(o.dashArrayX),m=uO(o.dashArrayY),_=rT(o.symbol),y=fO(g),b=iT(m),w=!i&&bo.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=x(),C;w&&(w.width=T.width*r,w.height=T.height*r,C=w.getContext("2d")),D(),c&&x_.put(v,w||S),u.image=w,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function x(){for(var A=1,M=0,R=y.length;M<R;++M)A=Wm(A,y[M]);for(var k=1,M=0,R=_.length;M<R;++M)k=Wm(k,_[M].length);A*=k;var H=b*y.length*_.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(H,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var R=-b,k=0,H=0,N=0;R<T.height;){if(k%2===0){for(var q=H/2%_.length,U=0,ue=0,He=0;U<T.width*2;){for(var Xe=0,M=0;M<g[N].length;++M)Xe+=g[N][M];if(Xe<=0)break;if(ue%2===0){var _e=(1-o.symbolSize)*.5,ct=U+g[N][ue]*_e,mt=R+m[k]*_e,zt=g[N][ue]*o.symbolSize,Lt=m[k]*o.symbolSize,$t=He/2%_[q].length;be(ct,mt,zt,Lt,_[q][$t])}U+=g[N][ue],++He,++ue,ue===g[N].length&&(ue=0)}++N,N===g.length&&(N=0)}R+=m[k],++H,++k,k===m.length&&(k=0)}function be(ne,ve,K,J,I){var E=i?1:r,O=yl(I,ne*E,ve*E,K*E,J*E,o.color,o.symbolKeepAspect);if(i){var F=n.painter.renderOneToVNode(O);F&&S.children.push(F)}else tT(C,O)}}}}function rT(t){if(!t||t.length===0)return[["rect"]];if(ae(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!ae(t[r])){e=!1;break}if(e)return rT([t]);for(var n=[],r=0;r<t.length;++r)ae(t[r])?n.push([t[r]]):n.push(t[r]);return n}function nT(t){if(!t||t.length===0)return[[0,0]];if(et(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!et(t[n])){r=!1;break}if(r)return nT([t]);for(var i=[],n=0;n<t.length;++n)if(et(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=Me(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function uO(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(et(t)){var e=Math.ceil(t);return[e,e]}var r=Me(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function fO(t){return Me(t,function(e){return iT(e)})}function iT(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function cO(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=pv(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=pv(i,e)}}})}var Pr=new Vr,aT={};function hO(t,e){aT[t]=e}function dO(t){return aT[t]}var vO=1,pO=800,gO=900,mO=1e3,yO=2e3,_O=5e3,oT=1e3,bO=1100,Jp=2e3,sT=3e3,wO=4e3,fc=4500,SO=4600,TO=5e3,xO=6e3,lT=7e3,CO={PROCESSOR:{FILTER:mO,SERIES_FILTER:pO,STATISTIC:_O},VISUAL:{LAYOUT:oT,PROGRESSIVE_LAYOUT:bO,GLOBAL:Jp,CHART:sT,POST_CHART_LAYOUT:SO,COMPONENT:wO,BRUSH:TO,CHART_ITEM:fc,ARIA:xO,DECAL:lT}},wt="__flagInMainProcess",Wt="__pendingUpdate",wh="__needsUpdateStatus",D_=/^[a-zA-Z0-9_]+$/,Sh="__connectUpdateStatus",I_=0,DO=1,IO=2;function uT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return cT(this,t,e)}}function fT(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return cT(this,t,e)}}function cT(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Vr.prototype[e].apply(t,r)}var hT=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Vr),dT=hT.prototype;dT.on=fT("on");dT.off=fT("off");var Ea,Th,ru,Bn,xh,Ch,Dh,$o,Uo,A_,M_,Ih,E_,nu,L_,vT,dr,P_,pT=function(t){re(e,t);function e(r,n,i){var a=t.call(this,new R2)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},ae(n)&&(n=gT[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr;var u=a._zr=zm(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:ye(i.useDirtyRect,l),useCoarsePointer:ye(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=US(De(u.flush,u),17),n=Se(n),n&&CS(n,!0),a._theme=n,a._locale=OP(i.locale||fS),a._coordSysMgr=new oc;var f=a._api=L_(a);function c(h,d){return h.__prio-d.__prio}return _u(mf,c),_u(gv,c),a._scheduler=new XS(a,f,gv,mf),a._messageCenter=new hT,a._initEvents(),a.resize=De(a.resize,a),u.animation.on("frame",a._onframe,a),A_(u,a),M_(u,a),Ad(a),a}return e.prototype._onframe=function(){if(!this._disposed){P_(this);var r=this._scheduler;if(this[Wt]){var n=this[Wt].silent;this[wt]=!0;try{Ea(this),Bn.update.call(this,null,this[Wt].updateParams)}catch(l){throw this[wt]=!1,this[Wt]=null,l}this._zr.flush(),this[wt]=!1,this[Wt]=null,$o.call(this,n),Uo.call(this,n)}else if(r.unfinished){var i=vO,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Ch(this,a),r.performVisualTasks(a),nu(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(!this[wt]){if(this._disposed){this.id;return}var a,o,s;if(se(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[wt]=!0,!this._model||n){var l=new dR(this._api),u=this._theme,f=this._model=new Xp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},mv);var c={seriesTransition:s,optionChanged:!0};if(i)this[Wt]={silent:a,updateParams:c},this[wt]=!1,this.getZr().wakeUp();else{try{Ea(this),Bn.update.call(this,null,c)}catch(h){throw this[Wt]=null,this[wt]=!1,h}this._ssr||this._zr.flush(),this[Wt]=null,this[wt]=!1,$o.call(this,a),Uo.call(this,a)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||he.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){if(he.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return L(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;L(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return L(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(R_[i]){var l=s,u=s,f=-s,c=-s,h=[],d=r&&r.pixelRatio||this.getDevicePixelRatio();L(Is,function(y,b){if(y.group===i){var w=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(Se(r)),S=y.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),c=o(S.bottom,c),h.push({dom:w,left:S.left,top:S.top})}}),l*=d,u*=d,f*=d,c*=d;var v=f-l,p=c-u,g=bo.createCanvas(),m=zm(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var _="";return L(h,function(y){var b=y.left-l,w=y.top-u;_+='<g transform="translate('+b+","+w+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Mt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),L(h,function(y){var b=new li({style:{x:y.left*d-l,y:y.top*d-u,image:y.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n){return xh(this,"convertToPixel",r,n)},e.prototype.convertFromPixel=function(r,n){return xh(this,"convertFromPixel",r,n)},e.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=Kc(i,r);return L(o,function(s,l){l.indexOf("Models")>=0&&L(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=Kc(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?N2(s,l,n):B2(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;L(AO,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&os(s,function(v){var p=Pe(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=$({},p.eventData),!0},!0),l){var f=l.componentType,c=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",c=l.seriesIndex);var h=f&&c!=null&&o.getComponent(f,c),d=h&&r[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:d},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),L(Ds,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),L(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),F2(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&L1(this.getDom(),tg,"");var n=this,i=n._api,a=n._model;L(n._componentsViews,function(o){o.dispose(a,i)}),L(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Is[n.id]},e.prototype.resize=function(r){if(!this[wt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Wt]&&(a==null&&(a=this[Wt].silent),i=!0,this[Wt]=null),this[wt]=!0;try{i&&Ea(this),Bn.update.call(this,{type:"resize",animation:$({duration:0},r&&r.animation)})}catch(o){throw this[wt]=!1,o}this[wt]=!1,$o.call(this,a),Uo.call(this,a)}}},e.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(se(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!yv[r]){var i=yv[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=$({},r);return n.type=Ds[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(se(n)||(n={silent:!!n}),!!gf[r.type]&&this._model){if(this[wt]){this._pendingActions.push(r);return}var i=n.silent;Dh.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&he.browser.weChat&&this._throttledZrFlush(),$o.call(this,i),Uo.call(this,i)}},e.prototype.updateLabelLayout=function(){Pr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Ea=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),Th(c,!0),Th(c,!1),h.plan()},Th=function(c,h){for(var d=c._model,v=c._scheduler,p=h?c._componentsViews:c._chartsViews,g=h?c._componentsMap:c._chartsMap,m=c._zr,_=c._api,y=0;y<p.length;y++)p[y].__alive=!1;h?d.eachComponent(function(S,T){S!=="series"&&b(T)}):d.eachSeries(b);function b(S){var T=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,x=!T&&g[C];if(!x){var D=Zr(S.type),A=h?nn.getClass(D.main,D.sub):Sn.getClass(D.sub);x=new A,x.init(d,_),g[C]=x,p.push(x),m.add(x.group)}S.__viewId=x.__id=C,x.__alive=!0,x.__model=S,x.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!h&&v.prepareView(x,S,d,_)}for(var y=0;y<p.length;){var w=p[y];w.__alive?y++:(!h&&w.renderTask.dispose(),m.remove(w.group),w.dispose(d,_),p.splice(y,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},ru=function(c,h,d,v,p){var g=c._model;if(g.setUpdatePayload(d),!v){L([].concat(c._componentsViews).concat(c._chartsViews),w);return}var m={};m[v+"Id"]=d[v+"Id"],m[v+"Index"]=d[v+"Index"],m[v+"Name"]=d[v+"Name"];var _={mainType:v,query:m};p&&(_.subType=p);var y=d.excludeSeriesId,b;y!=null&&(b=me(),L(vt(y),function(S){var T=Jt(S,null);T!=null&&b.set(T,!0)})),g&&g.eachComponent(_,function(S){var T=b&&b.get(S.id)!=null;if(!T)if(gy(d))if(S instanceof An)d.type===Qi&&!d.notBlur&&!S.get(["emphasis","disabled"])&&vL(S,d,c._api);else{var C=Ep(S.mainType,S.componentIndex,d.name,c._api),x=C.focusSelf,D=C.dispatchers;d.type===Qi&&x&&!d.notBlur&&Zd(S.mainType,S.componentIndex,c._api),D&&L(D,function(A){d.type===Qi?$s(A):Us(A)})}else ev(d)&&S instanceof An&&(mL(S,d,c._api),py(S),dr(c))},c),g&&g.eachComponent(_,function(S){var T=b&&b.get(S.id)!=null;T||w(c[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},c);function w(S){S&&S.__alive&&S[h]&&S[h](S.__model,g,c._api,d)}},Bn={prepareAndUpdate:function(c){Ea(this),Bn.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,h){var d=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(d){d.setUpdatePayload(c),m.restoreData(d,c),m.performSeriesTasks(d),g.create(d,v),m.performDataProcessorTasks(d,c),Ch(this,d),g.update(d,v),r(d),m.performVisualTasks(d,c),Ih(this,d,v,c,h);var _=d.get("backgroundColor")||"transparent",y=d.get("darkMode");p.setBackgroundColor(_),y!=null&&y!=="auto"&&p.setDarkMode(y),Pr.trigger("afterupdate",d,v)}},updateTransform:function(c){var h=this,d=this._model,v=this._api;if(d){d.setUpdatePayload(c);var p=[];d.eachComponent(function(m,_){if(m!=="series"){var y=h.getViewOfComponentModel(_);if(y&&y.__alive)if(y.updateTransform){var b=y.updateTransform(_,d,v,c);b&&b.update&&p.push(y)}else p.push(y)}});var g=me();d.eachSeries(function(m){var _=h._chartsMap[m.__viewId];if(_.updateTransform){var y=_.updateTransform(m,d,v,c);y&&y.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0,dirtyMap:g}),nu(this,d,v,c,{},g),Pr.trigger("afterupdate",d,v)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Sn.markUpdateMethod(c,"updateView"),r(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Ih(this,h,this._api,c,{}),Pr.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,d=this._model;d&&(d.setUpdatePayload(c),d.eachSeries(function(v){v.getData().clearAllVisual()}),Sn.markUpdateMethod(c,"updateVisual"),r(d),this._scheduler.performVisualTasks(d,c,{visualType:"visual",setDirty:!0}),d.eachComponent(function(v,p){if(v!=="series"){var g=h.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,d,h._api,c)}}),d.eachSeries(function(v){var p=h._chartsMap[v.__viewId];p.updateVisual(v,d,h._api,c)}),Pr.trigger("afterupdate",d,this._api))},updateLayout:function(c){Bn.update.call(this,c)}},xh=function(c,h,d,v){if(c._disposed){c.id;return}for(var p=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Kc(p,d),y=0;y<g.length;y++){var b=g[y];if(b[h]&&(m=b[h](p,_,v))!=null)return m}},Ch=function(c,h){var d=c._chartsMap,v=c._scheduler;h.eachSeries(function(p){v.updateStreamModes(p,d[p.__viewId])})},Dh=function(c,h){var d=this,v=this.getModel(),p=c.type,g=c.escapeConnect,m=gf[p],_=m.actionInfo,y=(_.update||"update").split(":"),b=y.pop(),w=y[0]!=null&&Zr(y[0]);this[wt]=!0;var S=[c],T=!1;c.batch&&(T=!0,S=Me(c.batch,function(k){return k=Ke($({},k),c),k.batch=null,k}));var C=[],x,D=ev(c),A=gy(c);if(A&&Z1(this._api),L(S,function(k){if(x=m.action(k,d._model,d._api),x=x||$({},k),x.type=_.event||x.type,C.push(x),A){var H=Tp(c),N=H.queryOptionMap,q=H.mainTypeSpecified,U=q?N.keys()[0]:"series";ru(d,b,k,U),dr(d)}else D?(ru(d,b,k,"series"),dr(d)):w&&ru(d,b,k,w.main,w.sub)}),b!=="none"&&!A&&!D&&!w)try{this[Wt]?(Ea(this),Bn.update.call(this,c),this[Wt]=null):Bn[b].call(this,c)}catch(k){throw this[wt]=!1,k}if(T?x={type:_.event||p,escapeConnect:g,batch:C}:x=C[0],this[wt]=!1,!h){var M=this._messageCenter;if(M.trigger(x.type,x),D){var R={type:"selectchanged",escapeConnect:g,selected:yL(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};M.trigger(R.type,R)}}},$o=function(c){for(var h=this._pendingActions;h.length;){var d=h.shift();Dh.call(this,d,c)}},Uo=function(c){!c&&this.trigger("updated")},A_=function(c,h){c.on("rendered",function(d){h.trigger("rendered",d),c.animation.isFinished()&&!h[Wt]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},M_=function(c,h){c.on("mouseover",function(d){var v=d.target,p=os(v,Gs);p&&(pL(p,d,h._api),dr(h))}).on("mouseout",function(d){var v=d.target,p=os(v,Gs);p&&(gL(p,d,h._api),dr(h))}).on("click",function(d){var v=d.target,p=os(v,function(_){return Pe(_).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Pe(p);h._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],d=[],v=!1;if(c.eachComponent(function(_,y){var b=y.get("zlevel")||0,w=y.get("z")||0,S=y.getZLevelKey();v=v||!!S,(_==="series"?d:h).push({zlevel:b,z:w,idx:y.componentIndex,type:_,key:S})}),v){var p=h.concat(d),g,m;_u(p,function(_,y){return _.zlevel===y.zlevel?_.z-y.z:_.zlevel-y.zlevel}),L(p,function(_){var y=c.getComponent(_.type,_.idx),b=_.zlevel,w=_.key;g!=null&&(b=Math.max(g,b)),w?(b===g&&w!==m&&b++,m=w):m&&(b===g&&b++,m=""),g=b,y.setZLevel(b)})}}Ih=function(c,h,d,v,p){n(h),E_(c,h,d,v,p),L(c._chartsViews,function(g){g.__alive=!1}),nu(c,h,d,v,p),L(c._chartsViews,function(g){g.__alive||g.remove(h,d)})},E_=function(c,h,d,v,p,g){L(g||c._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,h,d,v),s(_,m),f(_,m)})},nu=function(c,h,d,v,p,g){var m=c._scheduler;p=$(p||{},{updatedSeries:h.getSeries()}),Pr.trigger("series:beforeupdate",h,d,p);var _=!1;h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];b.__alive=!0;var w=b.renderTask;m.updatePayload(w,v),u(y,b),g&&g.get(y.uid)&&w.dirty(),w.perform(m.getPerformArgs(w))&&(_=!0),b.group.silent=!!y.get("silent"),o(y,b),py(y)}),m.unfinished=_||m.unfinished,Pr.trigger("series:layoutlabels",h,d,p),Pr.trigger("series:transition",h,d,p),h.eachSeries(function(y){var b=c._chartsMap[y.__viewId];s(y,b),f(y,b)}),a(c,h),Pr.trigger("series:afterupdate",h,d,p)},dr=function(c){c[wh]=!0,c.getZr().wakeUp()},P_=function(c){c[wh]&&(c.getZr().storage.traverse(function(h){Ts(h)||i(h)}),c[wh]=!1)};function i(c){for(var h=[],d=c.currentStates,v=0;v<d.length;v++){var p=d[v];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===Ap&&c.states.emphasis?h.push("emphasis"):c.hoverState===Ip&&c.states.blur&&h.push("blur"),c.useStates(h)}function a(c,h){var d=c._zr,v=d.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!he.node&&!he.worker&&h.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=c._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(c,h){var d=c.get("blendMode")||null;h.eachRendered(function(v){v.isGroup||(v.style.blend=d)})}function s(c,h){if(!c.preventAutoZ){var d=c.get("z")||0,v=c.get("zlevel")||0;h.eachRendered(function(p){return l(p,d,v,-1/0),!0})}}function l(c,h,d,v){var p=c.getTextContent(),g=c.getTextGuideLine(),m=c.isGroup;if(m)for(var _=c.childrenRef(),y=0;y<_.length;y++)v=Math.max(l(_[y],h,d,v),v);else c.z=h,c.zlevel=d,v=Math.max(c.z2,v);if(p&&(p.z=h,p.zlevel=d,isFinite(v)&&(p.z2=v+2)),g){var b=c.textGuideLineConfig;g.z=h,g.zlevel=d,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(c,h){h.eachRendered(function(d){if(!Ts(d)){var v=d.getTextContent(),p=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function f(c,h){var d=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),p=d.get("duration"),g=p>0?{duration:p,delay:d.get("delay"),easing:d.get("easing")}:null;h.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ts(m))return;if(m instanceof Ye&&wL(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(v){m.stateTransition=g;var y=m.getTextContent(),b=m.getTextGuideLine();y&&(y.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}L_=function(c){return new(function(h){re(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);v=v.parent}},d.prototype.enterEmphasis=function(v,p){$s(v,p),dr(c)},d.prototype.leaveEmphasis=function(v,p){Us(v,p),dr(c)},d.prototype.enterBlur=function(v){dL(v),dr(c)},d.prototype.leaveBlur=function(v){X1(v),dr(c)},d.prototype.enterSelect=function(v){K1(v),dr(c)},d.prototype.leaveSelect=function(v){q1(v),dr(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},d.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},d}(TS))(c)},vT=function(c){function h(d,v){for(var p=0;p<d.length;p++){var g=d[p];g[Sh]=v}}L(Ds,function(d,v){c._messageCenter.on(v,function(p){if(R_[c.group]&&c[Sh]!==I_){if(p&&p.escapeConnect)return;var g=c.makeActionFromEvent(p),m=[];L(Is,function(_){_!==c&&_.group===c.group&&m.push(_)}),h(m,I_),L(m,function(_){_[Sh]!==DO&&_.dispatchAction(g)}),h(m,IO)}})})}}(),e}(Vr),eg=pT.prototype;eg.on=uT("on");eg.off=uT("off");eg.one=function(t,e,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var AO=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var gf={},Ds={},gv=[],mv=[],mf=[],gT={},yv={},Is={},R_={},MO=+new Date-0,tg="_echarts_instance_";function EO(t,e,r){{var n=LO(t);if(n)return n}var i=new pT(t,e,r);return i.id="ec_"+MO++,Is[i.id]=i,L1(t,tg,i.id),vT(i),Pr.trigger("afterinit",i),i}function LO(t){return Is[iE(t,tg)]}function mT(t,e){gT[t]=e}function yT(t){ke(mv,t)<0&&mv.push(t)}function _T(t,e){ng(gv,t,e,yO)}function PO(t){rg("afterinit",t)}function RO(t){rg("afterupdate",t)}function rg(t,e){Pr.on(t,e)}function da(t,e,r){Ie(e)&&(r=e,e="");var n=se(t)?t.type:[t,t={event:e}][0];t.event=(t.event||n).toLowerCase(),e=t.event,!Ds[e]&&(Br(D_.test(n)&&D_.test(e)),gf[n]||(gf[n]={action:r,actionInfo:t}),Ds[e]=n)}function OO(t,e){oc.register(t,e)}function kO(t,e){ng(mf,t,e,oT,"layout")}function va(t,e){ng(mf,t,e,sT,"visual")}var O_=[];function ng(t,e,r,n,i){if((Ie(e)||se(e))&&(r=e,e=n),!(ke(O_,r)>=0)){O_.push(r);var a=XS.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function bT(t,e){yv[t]=e}function NO(t,e,r){var n=dO("registerMap");n&&n(t,e,r)}var BO=UR;va(Jp,_2);va(fc,b2);va(fc,w2);va(Jp,O2);va(fc,k2);va(lT,cO);yT(CS);_T(gO,CR);bT("default",S2);da({type:Qi,event:Qi,update:Qi},ut);da({type:Cu,event:Cu,update:Cu},ut);da({type:bs,event:bs,update:bs},ut);da({type:Du,event:Du,update:Du},ut);da({type:ws,event:ws,update:ws},ut);mT("light",P2);mT("dark",ZS);function Go(t){return t==null?0:t.length||1}function k_(t){return t}var wT=function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||k_,this._newKeyGetter=i||k_,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Go(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(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],c=Go(u),h=Go(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),i[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Go(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Go(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t}(),FO=function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function VO(t,e){var r={},n=r.encode={},i=me(),a=[],o=[],s={};L(t.dimensions,function(h){var d=t.getDimensionInfo(h),v=d.coordDim;if(v){var p=d.coordDimIndex;Ah(n,v)[p]=h,d.isExtraCoord||(i.set(v,1),zO(d.type)&&(a[0]=h),Ah(s,v)[p]=t.getDimensionIndex(d.name)),d.defaultTooltip&&o.push(h)}mS.each(function(g,m){var _=Ah(n,m),y=d.otherDims[m];y!=null&&y!==!1&&(_[y]=d.name)})});var l=[],u={};i.each(function(h,d){var v=n[d];u[d]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Me(l,function(h){return t.getDimensionInfo(h).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var c=n.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new FO(s,e),r}function Ah(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function HO(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function zO(t){return!(t==="ordinal"||t==="time")}var Eu=function(){function t(e){this.otherDims={},e!=null&&$(this,e)}return t}(),$O=at(),UO={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ST=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=CT(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return ye(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=IS(this.source),n=!DT(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=r?h.name:null,u=h.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=UO[u]||"f",f&&(i+=f.uid),i+="$"}var d=this.source,v=[d.seriesLayoutBy,d.startIndex,i].join("$$");return{dimensions:a,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function TT(t){return t instanceof ST}function xT(t){for(var e=me(),r=0;r<(t||[]).length;r++){var n=t[r],i=se(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function CT(t){var e=$O(t);return e.dimNameMap||(e.dimNameMap=xT(t.dimensionsDefine))}function DT(t){return t>30}var Wo=se,Fn=Me,GO=typeof Int32Array>"u"?Array:Int32Array,WO="e\0\0",N_=-1,YO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],XO=["_approximateExtent"],B_,iu,Yo,Xo,Mh,Ko,Eh,js=function(){function t(e,r){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,i=!1;TT(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var c=n[f],h=ae(c)?new Eu({name:c}):c instanceof Eu?c:new Eu(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var v=h.otherDims=h.otherDims||{};o.push(d),a[d]=h,u[d]!=null&&(l=!0),h.createInvertedIndices&&(s[d]=[]),v.itemName===0&&(this._nameDimIdx=f),v.itemId===0&&(this._idDimIdx=f),i&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=me();L(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(et(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof ov&&(a=e),!a){var o=this.dimensions,s=Kp(e)||er(e)?new AS(e,o.length):e;a=new ov;var l=Fn(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=VO(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&Eh(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ni&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Ir;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var c=i.getItem(f,u);if(!this.hasItemOption&&XM(c)&&(this.hasItemOption=!0),c){var h=c.name;a[f]==null&&h!=null&&(a[f]=Jt(h,null));var d=c.id;o[f]==null&&d!=null&&(o[f]=Jt(d,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)Eh(this,f);B_(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){Wo(e)?$(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Yo(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return iu(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return Z(e)?i.getValues(Fn(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e],i=n&&n[r];return i==null||isNaN(i)?N_:i},t.prototype.indicesOfNearest=function(e,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),r,n)},t.prototype.each=function(e,r,n){Ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=Fn(Xo(e),this._getStoreDimIndex,this);this._store.each(a,i?De(r,i):r)},t.prototype.filterSelf=function(e,r,n){Ie(e)&&(n=r,r=e,e=[]);var i=n||this,a=Fn(Xo(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?De(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Je(e);return L(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){Ie(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=Fn(Xo(e),this._getStoreDimIndex,this),s=Ko(this);return s._store=this._store.map(o,a?De(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=n||i||this,o=Fn(Xo(e),this._getStoreDimIndex,this);this._store.modify(o,a?De(r,a):r)},t.prototype.downSample=function(e,r,n,i){var a=Ko(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Ko(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Ko(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Ge(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new wT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return iu(e,n)},function(n){return iu(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},Wo(e)?$(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),Z(a)?a=a.slice():Wo(a)&&(a=$({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Wo(r)?$(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){Wo(e)?$(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?$(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;aL(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){L(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Fn(this.dimensions,this._getDimInfo,this),this.hostModel)),Mh(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(vp(arguments)))})},t.internalField=function(){B_=function(e){var r=e._invertedIndicesMap;L(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new GO(o.categories.length);for(var l=0;l<n.length;l++)n[l]=N_;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Yo=function(e,r,n){return Jt(e._getCategory(r,n),null)},iu=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Yo(e,e._idDimIdx,r)),n==null&&(n=WO+r),n},Xo=function(e){return Z(e)||(e=e!=null?[e]:[]),e},Ko=function(e){var r=new t(e._schema?e._schema:Fn(e.dimensions,e._getDimInfo,e),e.hostModel);return Mh(r,e),r},Mh=function(e,r){L(YO.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,L(XO,function(n){e[n]=Se(r[n])}),e._calculationInfo=$({},r._calculationInfo)},Eh=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Yo(e,a,r)),l==null&&o!=null&&(i[r]=l=Yo(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),t}();function ig(t,e){Kp(t)||(t=qp(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=me(),a=[],o=qO(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&DT(o),l=n===t.dimensionsDefine,u=l?CT(t):xT(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=me(f),h=new RS(o),d=0;d<h.length;d++)h[d]=-1;function v(x){var D=h[x];if(D<0){var A=n[x],M=se(A)?A:{name:A},R=new Eu,k=M.name;k!=null&&u.get(k)!=null&&(R.name=R.displayName=k),M.type!=null&&(R.type=M.type),M.displayName!=null&&(R.displayName=M.displayName);var H=a.length;return h[x]=H,R.storeDimIndex=x,a.push(R),R}return a[D]}if(!s)for(var d=0;d<o;d++)v(d);c.each(function(x,D){var A=vt(x).slice();if(A.length===1&&!ae(A[0])&&A[0]<0){c.set(D,!1);return}var M=c.set(D,[]);L(A,function(R,k){var H=ae(R)?u.get(R):R;H!=null&&H<o&&(M[k]=H,g(v(H),D,k))})});var p=0;L(r,function(x){var D,A,M,R;if(ae(x))D=x,R={};else{R=x,D=R.name;var k=R.ordinalMeta;R.ordinalMeta=null,R=$({},R),R.ordinalMeta=k,A=R.dimsDef,M=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var H=c.get(D);if(H!==!1){if(H=vt(H),!H.length)for(var N=0;N<(A&&A.length||1);N++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&H.push(p++)}L(H,function(q,U){var ue=v(q);if(l&&R.type!=null&&(ue.type=R.type),g(Ke(ue,R),D,U),ue.name==null&&A){var He=A[U];!se(He)&&(He={name:He}),ue.name=ue.displayName=He.name,ue.defaultTooltip=He.defaultTooltip}M&&Ke(ue.otherDims,M)})}});function g(x,D,A){mS.get(D)!=null?x.otherDims[D]=A:(x.coordDim=D,x.coordDimIndex=A,i.set(D,!0))}var m=e.generateCoord,_=e.generateCoordCount,y=_!=null;_=m?_||1:0;var b=m||"value";function w(x){x.name==null&&(x.name=x.coordDim)}if(s)L(a,function(x){w(x)}),a.sort(function(x,D){return x.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var T=v(S),C=T.coordDim;C==null&&(T.coordDim=jO(b,i,y),T.coordDimIndex=0,(!m||_<=0)&&(T.isExtraCoord=!0),_--),w(T),T.type==null&&(wS(t,S)===ar.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return KO(a),new ST({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function KO(t){for(var e=me(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function qO(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return L(e,function(a){var o;se(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function jO(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var ZO=function(){function t(e){this.coordSysDims=[],this.axisMap=me(),this.categoryAxisMap=me(),this.coordSysName=e}return t}();function QO(t){var e=t.get("coordinateSystem"),r=new ZO(e),n=JO[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var JO={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",Hi).models[0],a=t.getReferringComponents("yAxis",Hi).models[0];e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),La(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),La(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",Hi).models[0];e.coordSysDims=["single"],r.set("single",i),La(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",Hi).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),La(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),La(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),La(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function La(t){return t.get("type")==="category"}function ek(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;tk(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,c,h;if(L(a,function(_,y){ae(_)&&(a[y]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!i||i===_.coordDim)&&(f=_))}),f&&!n&&!u&&(n=!0),f){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,v=f.type,p=0;L(a,function(_){_.coordDim===d&&p++});var g={name:c,coordDim:d,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:h,coordDim:h,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(h,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:c}}function tk(t){return!TT(t.schema)}function rk(t,e){var r=t.get("coordinateSystem"),n=oc.get(r),i;return e&&e.coordSysDims&&(i=Me(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=HO(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nk(t,e,r){var n,i;return r&&L(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function ik(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;t?(a=!0,i=qp(t)):(i=n.getSource(),a=i.sourceFormat===Ir);var o=QO(e),s=rk(e,o),l=r.useEncodeDefaulter,u=Ie(l)?l:l?Ze(JP,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=ig(i,f),h=nk(c.dimensions,r.createInvertedIndices,o),d=a?null:n.getSharedDataStore(c),v=ek(e,{schema:c,store:d}),p=new js(c,e);p.setCalculationInfo(v);var g=h!=null&&ak(i)?function(m,_,y,b){return b===h?y:this.defaultDimValueGetter(m,_,y,b)}:null;return p.hasItemOption=!1,p.initData(a?i:d,null,g),p}function ak(t){if(t.sourceFormat===Ir){var e=ok(t.data||[]);return!Z(hl(e))}}function ok(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function IT(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function sk(t){var e=t.get("interval");return e??"auto"}function lk(t){return t.type==="category"&&sk(t.getLabelModel())===0}var F_=[],uk={registerPreprocessor:yT,registerProcessor:_T,registerPostInit:PO,registerPostUpdate:RO,registerUpdateLifecycle:rg,registerAction:da,registerCoordinateSystem:OO,registerLayout:kO,registerVisual:va,registerTransform:BO,registerLoading:bT,registerMap:NO,registerImpl:hO,PRIORITY:CO,ComponentModel:Be,ComponentView:nn,SeriesModel:An,ChartView:Sn,registerComponentModel:function(t){Be.registerClass(t)},registerComponentView:function(t){nn.registerClass(t)},registerSeriesModel:function(t){An.registerClass(t)},registerChartView:function(t){Sn.registerClass(t)},registerSubTypeDefaulter:function(t,e){Be.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){HM(t,e)}};function ho(t){if(Z(t)){L(t,function(e){ho(e)});return}ke(F_,t)>=0||(F_.push(t),Ie(t)&&(t={install:t}),t.install(uk))}function fk(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new of(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function ck(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var r=new Ae(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=a.obb,h=!1,d=0;d<e.length;d++){var v=e[d];if(r.intersect(v.rect)){if(o&&v.axisAligned){h=!0;break}if(v.obb||(v.obb=new of(v.localRect,v.transform)),c||(c=new of(s,l)),c.intersect(v.obb)){h=!0;break}}}h?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function AT(t,e,r){ho(e);const n=il();function i(){n.value?.resize()}return an(()=>{n.value=EO(t.value),r(n.value),window.addEventListener("resize",i)}),fa(()=>{window.removeEventListener("resize",i),n.value?.dispose()}),n}function Ri(t,e){return ge({get:()=>t.value[e],set:r=>{t.value={...t.value,[e]:r}}})}function V_(t,e,r){r=r||{};var n=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,v=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[h.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[h[l]]:c[0],u==="x"?v[h[l]]:c[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[h[s]]-v[h.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),si(r.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}var qn=Math.PI,Ji=function(){function t(e,r){this.group=new ft,this.opt=r,this.axisModel=e,Ke(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ft({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(e){return!!H_[e]},t.prototype.add=function(e){H_[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,r,n){var i=D1(r-e),a,o;return rf(i)?(o=n>0?"top":"bottom",a="center"):rf(i-qn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<qn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t}(),H_={axisLine:function(t,e,r,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(fr(s,s,o),fr(l,l,o));var f=$({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ha({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Vp(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var d=e.get(["axisLine","symbolSize"]);ae(h)&&(h=[h,h]),(ae(d)||et(d))&&(d=[d,d]);var v=uc(e.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];L([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,_){if(h[_]!=="none"&&h[_]!=null){var y=yl(h[_],-p/2,-g/2,p,g,f.stroke,!0),b=m.r+m.offset,w=u?l:s;y.attr({rotation:m.rotate,x:w[0]+b*Math.cos(t.rotation),y:w[1]-b*Math.sin(t.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(t,e,r,n){var i=vk(r,n,e,t),a=gk(r,n,e,t);if(dk(e,a,i),pk(r,n,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=fk(Me(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));ck(o)}},axisName:function(t,e,r,n){var i=si(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,$_(a)?t.labelOffset+o*l:0],h,d=e.get("nameRotate");d!=null&&(d=d*qn/180);var v;$_(a)?h=Ji.innerTextLayout(t.rotation,d??t.rotation,o):(h=hk(t.rotation,a,d||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(h.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},m=g.ellipsis,_=si(t.nameTruncateMaxWidth,g.maxWidth,v),y=new Et({x:c[0],y:c[1],rotation:h.rotation,silent:Ji.isLabelSilent(e),style:rn(s,{text:i,font:p,overflow:"truncate",width:_,ellipsis:m,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(tc({el:y,componentModel:e,itemName:i}),y.__fullText=i,y.anid="name",e.get("triggerEvent")){var b=Ji.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Pe(y).eventData=b}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function hk(t,e,r,n){var i=D1(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return rf(i-qn/2)?(o=l?"bottom":"top",a="center"):rf(i-qn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<qn*1.5&&i>qn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function dk(t,e,r){if(!lk(t.axis)){var n=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],r=r||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=r[0],f=r[1],c=r[r.length-1],h=r[r.length-2];n===!1?(vr(a),vr(u)):z_(a,o)&&(n?(vr(o),vr(f)):(vr(a),vr(u))),i===!1?(vr(s),vr(c)):z_(l,s)&&(i?(vr(l),vr(h)):(vr(s),vr(c)))}}function vr(t){t&&(t.ignore=!0)}function z_(t,e){var r=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!r||!n)){var i=mp([]);return yp(i,i,-t.rotation),r.applyTransform(ro([],i,t.getLocalTransform())),n.applyTransform(ro([],i,e.getLocalTransform())),r.intersect(n)}}function $_(t){return t==="middle"||t==="center"}function MT(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(fr(o,o,e),fr(s,s,e));var f=new ha({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Vp(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f)}return a}function vk(t,e,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=MT(u,e.transform,l,Ke(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}}function pk(t,e,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ke(s.getLineStyle(),Ke(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=MT(o[f],e.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)t.add(c[h])}}function gk(t,e,r,n){var i=r.axis,a=si(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(si(n.labelRotate,o.get("rotate"))||0)*qn/180,f=Ji.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),h=[],d=Ji.isLabelSilent(r),v=r.get("triggerEvent");return L(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,_=p.formattedLabel,y=p.rawLabel,b=o;if(c&&c[m]){var w=c[m];se(w)&&w.textStyle&&(b=new Ge(w.textStyle,o,r.ecModel))}var S=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(m),C=b.getShallow("align",!0)||f.textAlign,x=ye(b.getShallow("alignMinLabel",!0),C),D=ye(b.getShallow("alignMaxLabel",!0),C),A=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||f.textVerticalAlign,M=ye(b.getShallow("verticalAlignMinLabel",!0),A),R=ye(b.getShallow("verticalAlignMaxLabel",!0),A),k=new Et({x:T,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:d,z2:10+(p.level||0),style:rn(b,{text:_,align:g===0?x:g===l.length-1?D:C,verticalAlign:g===0?M:g===l.length-1?R:A,fill:Ie(S)?S(i.type==="category"?y:i.type==="value"?m+"":m,g):S})});if(k.anid="label_"+m,tc({el:k,componentModel:r,itemName:_,formatterParamsExtra:{isTruncated:function(){return k.isTruncated},value:y,tickIndex:g}}),v){var H=Ji.makeAxisEventDataBase(r);H.targetType="axisLabel",H.value=y,H.tickIndex=g,i.type==="category"&&(H.dataIndex=m),Pe(k).eventData=H}e.add(k),k.updateTransform(),h.push(k),t.add(k),k.decomposeTransform()}),h}}function mk(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yk(r,t,e),r.seriesInvolved&&bk(r,t),r}function yk(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];L(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zs(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(L(s.getAxes(),Ze(p,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",d=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&L(v.baseAxes,Ze(p,d?"cross":!0,h)),d&&L(v.otherAxes,Ze(p,"cross",!1))}function p(g,m,_){var y=_.model.getModel("axisPointer",i),b=y.get("show");if(!(!b||b==="auto"&&!g&&!_v(y))){m==null&&(m=y.get("triggerTooltip")),y=g?_k(_,c,i,e,g,m):y;var w=y.get("snap"),S=y.get("triggerEmphasis"),T=Zs(_.model),C=m||w||_.type==="category",x=t.axesInfo[T]={key:T,axis:_,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:S,involveSeries:C,snap:w,useHandle:_v(y),seriesModels:[],linkGroup:null};u[T]=x,t.seriesInvolved=t.seriesInvolved||C;var D=wk(a,_);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[T]=x,A.mapper=a[D].mapper,x.linkGroup=A}}}})}function _k(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(h){l[h]=Se(o.get(h))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var c=l.lineStyle=o.get("crossStyle");c&&Ke(u,c.textStyle)}}return t.model.getModel("axisPointer",new Ge(l,r,n))}function bk(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||L(t.coordSysAxesInfo[Zs(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function wk(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Lh(a[n+"AxisId"],r.id)||Lh(a[n+"AxisIndex"],r.componentIndex)||Lh(a[n+"AxisName"],r.name))return i}}function Lh(t,e){return t==="all"||Z(t)&&ke(t,e)>=0||t===e}function Sk(t){var e=ag(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=_v(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function ag(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Zs(t)]}function Tk(t){var e=ag(t);return e&&e.axisPointerModel}function _v(t){return!!t.get(["handle","show"])}function Zs(t){return t.type+"||"+t.id}var U_={},xk=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&Sk(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=Tk(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){U_[r]=n},e.getAxisPointerClass=function(r){return r&&U_[r]},e.type="axis",e}(nn),Bi=at(),G_=Se,Ph=De,Ck=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,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,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new ft,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var h=Ze(W_,r,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,r)}X_(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=ag(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=Bi(e).pointerEl=new gP[a.type](G_(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=Bi(e).labelEl=new Et(G_(r.label));e.add(a),Y_(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=Bi(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=Bi(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Y_(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=zp(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wf(u.event)},onmousedown:Ph(this._onHandleDragMove,this,0,0),drift:Ph(this._onHandleDragMove,this),ondragend:Ph(this._onHandleDragEnd,this)}),n.add(i)),X_(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,GS(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){W_(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Rh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Rh(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Rh(i)),Bi(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),fv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t}();function W_(t,e,r,n){ET(Bi(r).lastProp,n)||(Bi(r).lastProp=n,e?ui(r,n,t):(r.stopAnimation(),r.attr(n)))}function ET(t,e){if(se(t)&&se(e)){var r=!0;return L(e,function(n,i){r=r&&ET(t[i],n)}),!!r}else return t===e}function Y_(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Rh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function X_(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function Dk(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Ik(t,e,r,n,i){var a=r.get("value"),o=LT(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ml(s.get("padding")||0),u=s.getFont(),f=b1(o,u),c=i.position,h=f.width+l[1]+l[3],d=f.height+l[0]+l[2],v=i.align;v==="right"&&(c[0]-=h),v==="center"&&(c[0]-=h/2);var p=i.verticalAlign;p==="bottom"&&(c[1]-=d),p==="middle"&&(c[1]-=d/2),Ak(c,h,d,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:rn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Ak(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function LT(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:IT(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};L(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),ae(o)?a=o.replace("{value}",a):Ie(o)&&(a=o(s))}return a}function PT(t,e,r){var n=Jn();return yp(n,n,r.rotation),Bs(n,n,r.position),Hp([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Mk(t,e,r,n,i,a){var o=Ji.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Ik(e,n,i,a,{position:PT(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Ek(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function Lk(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var Pk=function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=K_(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=Dk(a),d=Rk[u](s,c,f);d.style=h,r.graphicKey=d.type,r.pointer=d}var v=V_(l.model,i);Mk(n,r,v,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=V_(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=PT(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=K_(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[r.x,r.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,d=[h,h];d[f]=c[f];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:d,tooltipOption:v[f]}},e}(Ck);function K_(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var Rk={line:function(t,e,r){var n=Ek([e,r[0]],[e,r[1]],q_(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:Lk([e-n/2,r[0]],[n,i],q_(t))}}};function q_(t){return t.dim==="x"?0:1}var Ok=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Be),_n=at(),kk=L;function RT(t,e,r){if(!he.node){var n=e.getZr();_n(n).records||(_n(n).records={}),Nk(n,e);var i=_n(n).records[t]||(_n(n).records[t]={});i.handler=r}}function Nk(t,e){if(_n(t).initialized)return;_n(t).initialized=!0,r("click",Ze(j_,"click")),r("mousemove",Ze(j_,"mousemove")),r("globalout",Fk);function r(n,i){t.on(n,function(a){var o=Vk(e);kk(_n(t).records,function(s){s&&i(s,a,o.dispatchAction)}),Bk(o.pendings,e)})}}function Bk(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function Fk(t,e,r){t.handler("leave",null,r)}function j_(t,e,r,n){e.handler(t,r,n)}function Vk(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function bv(t,e){if(!he.node){var r=e.getZr(),n=(_n(r).records||{})[t];n&&(_n(r).records[t]=null)}}var Hk=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";RT("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){bv("axisPointer",n)},e.prototype.dispose=function(r,n){bv("axisPointer",n)},e.type="axisPointer",e}(nn);function OT(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=dl(a,t);if(o==null||o<0||Z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,d=c==="x"||c==="radius"?1:0,v=a.mapDimension(h),p=[];p[d]=a.get(v,o),p[1-d]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Me(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Z_=at();function zk(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||De(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Lu(i)&&(i=OT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Lu(i),u=a.axesInfo,f=s.axesInfo,c=n==="leave"||Lu(i),h={},d={},v={list:[],map:{}},p={showPointer:Ze(Uk,d),showTooltip:Ze(Gk,v)};L(s.coordSysMap,function(m,_){var y=l||m.containPoint(i);L(s.coordSysAxesInfo[_],function(b,w){var S=b.axis,T=Kk(u,b);if(!c&&y&&(!u||T)){var C=T&&T.value;C==null&&!l&&(C=S.pointToData(i)),C!=null&&Q_(b,C,p,!1,h)}})});var g={};return L(f,function(m,_){var y=m.linkGroup;y&&!d[_]&&L(y.axesInfo,function(b,w){var S=d[w];if(b!==m&&S){var T=S.value;y.mapper&&(T=m.axis.scale.parse(y.mapper(T,J_(b),J_(m)))),g[m.key]=T}})}),L(g,function(m,_){Q_(f[_],m,p,!0,h)}),Wk(d,f,h),Yk(v,i,t,o),Xk(f,o,r),h}}function Q_(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=$k(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&$(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function $k(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return L(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(f,t,r);h=d.dataIndices,c=d.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],t,r.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var v=t-c,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=c,a.length=0),L(h,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Uk(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function Gk(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Zs(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Wk(t,e,r){var n=r.axesInfo=[];L(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function Yk(t,e,r,n){if(Lu(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Xk(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Z_(n)[i]||{},o=Z_(n)[i]={};L(t,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&L(c.seriesDataIndices,function(h){var d=h.seriesIndex+" | "+h.dataIndex;o[d]=h})});var s=[],l=[];L(a,function(u,f){!o[f]&&l.push(u)}),L(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Kk(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function J_(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function Lu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function qk(t){xk.registerAxisPointerClass("CartesianAxisPointer",Pk),t.registerComponentModel(Ok),t.registerComponentView(Hk),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!Z(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=mk(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},zk)}var e0=fr,kT=function(t){re(e,t);function e(r){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Vi,n._rawTransformable=new Vi,n.name=r,n}return e.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new Ae(r,n,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new Ae(r,n,i,a)},e.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ae(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(r,n){r&&(this._center=[ht(r[0],n.getWidth()),ht(r[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=fr([],a,r),i=fr([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),r1(this.transform||(this.transform=[]),n.transform||Jn()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],_p(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new Vi;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},e.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?e0(i,r,a):Rt(i,r)},e.prototype.pointToData=function(r){var n=this.invTransform;return n?e0([],r,n):[r[0],r[1]]},e.prototype.convertToPixel=function(r,n,i){var a=t0(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(r,n,i){var a=t0(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},e.dimensions=["x","y"],e}(Vi);function t0(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function r0(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function jk(t,e,r,n){var i=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(r0(t,s),n)),o!=null){t.scaleX*=o,t.scaleY*=o;var l=(e.originX-t.x)*(o-1),u=(e.originY-t.y)*(o-1);t.x-=l,t.y-=u,t.updateTransform(),t.setCenter(r0(t,s),n),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var n0="\0_ec_interaction_mutex";function i0(t,e){return!!Zk(t)[e]}function Zk(t){return t[n0]||(t[n0]={})}da({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ut);var NT=function(t){re(e,t);function e(r){var n=t.call(this)||this;n._zr=r;var i=De(n._mousedownHandler,n),a=De(n._mousemoveHandler,n),o=De(n._mouseupHandler,n),s=De(n._mousewheelHandler,n),l=De(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=Ke(Se(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(r){this.pointerChecker=r},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(r){if(!mm(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!Pu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||i0(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Wf(r.event),BT(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(r){mm(r)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(r){var n=Pu("zoomOnMouseWheel",r,this._opt),i=Pu("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;Oh(this,"zoom","zoomOnMouseWheel",r,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var c=Math.abs(a),h=(a>0?1:-1)*(c>3?.4:c>1?.15:.05);Oh(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(r){if(!i0(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Oh(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},e}(Vr);function Oh(t,e,r,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(Wf(n.event),BT(t,e,r,n,i))}function BT(t,e,r,n,i){i.isAvailableBehavior=De(Pu,null,r,n),t.trigger(e,i)}function Pu(t,e,r){var n=r[t];return!t||n&&(!ae(n)||e.event[n+"Key"])}function Qk(t,e,r){var n=t.target;n.x+=e,n.y+=r,n.dirty()}function Jk(t,e,r,n){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var eN={axisPointer:1,tooltip:1,brush:1};function tN(t,e,r){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!eN.hasOwnProperty(n.mainType)&&i&&i.model!==r}function rN(t,e){var r=ml(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new Mt({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),t}var nN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(Be);function FT(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function VT(t){if(he.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var HT=VT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),iN=VT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function zT(t,e){if(!t)return e;e=vS(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function aN(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var oN=zT(iN,"transition"),og=zT(HT,"transform"),sN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(he.transform3dSupported?"will-change:transform;":"");function lN(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function uN(t,e,r){if(!ae(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=Ws(e);var a=lN(r),o=Math.max(Math.round(i)*1.5,6),s="",l=og+":",u;ke(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+i,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),d=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-c)/2)*100)/100;s+=";"+a+":-"+d+"px";var v=e+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function fN(t,e){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+t/2+"s "+r,i="opacity"+n+",visibility"+n;return e||(n=" "+t+"s "+r,i+=he.transformSupported?","+og+n:",left"+n+",top"+n),oN+":"+i}function a0(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!he.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=he.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+og+":"+o+";":[["top",0],["left",0],[HT,o]]}function cN(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=ye(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),L(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function hN(t,e,r){var n=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),f=t.getModel("textStyle"),c=HS(t,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&i&&n.push(fN(i,r)),a&&n.push("background-color:"+a),L(["width","color","radius"],function(d){var v="border-"+d,p=vS(v),g=t.get(p);g!=null&&n.push(v+":"+g+(d==="color"?"":"px"))}),n.push(cN(f)),c!=null&&n.push("padding:"+ml(c).join("px ")+"px"),n.join(";")+";"}function o0(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&BA(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dN=function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,he.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(ae(a)?document.querySelector(a):Ns(a)?a:Ie(a)&&a(e.getDom()));o0(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,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=i.handler,f=i.painter.getViewportRoot();gr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=aN(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=sN+hN(e,!this._firstShow,this._longHide)+a0(a[0],a[1],!0)+("border-color:"+Ws(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ae(a)&&n.get("trigger")==="item"&&!FT(n)&&(s=uN(n,i,a)),ae(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Z(e)||(e=[e]);for(var l=0;l<e.length;l++)Ns(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(o0(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=a0(n[0],n[1]);L(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;r.visibility="hidden",r.opacity="0",he.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),vN=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),l0(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;se(e)&&Kt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Et({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:HS(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),L(["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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=s0(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;l0(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=zn(a.borderWidth||0),s=s0(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(De(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function zn(t){return Math.max(0,t)}function s0(t){var e=zn(t.shadowBlur||0),r=zn(t.shadowOffsetX||0),n=zn(t.shadowOffsetY||0);return{left:zn(e-r),right:zn(e+r),top:zn(e-n),bottom:zn(e+n)}}function l0(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var pN=new Mt({shape:{x:-1,y:-1,width:2,height:2}}),gN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(he.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=aE(i.get("renderMode"));this._tooltipContent=a==="richText"?new vN(n):new dN(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(he.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?GS(this,"_updatePosition",50,"fixRate"):fv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");RT("itemTooltip",this._api,De(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||he.node||!i.getDom())){var o=u0(a,i);this._ticket="";var s=a.dataByCoordSys,l=bN(a,n,i);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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=pN;f.x=a.x,f.y=a.y,f.update(),Pe(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var c=OT(a,n),h=c.point[0],d=c.point[1];h!=null&&d!=null&&this._tryShow({offsetX:h,offsetY:d,target:c.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(u0(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.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=qo([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Pe(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;os(i,function(f){if(Pe(f).dataIndex!=null)return l=f,!0;if(Pe(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=De(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=qo([n.tooltipOption],a),l=this._renderMode,u=[],f=sa("section",{blocks:[],noHeader:!0}),c=[],h=new _h;L(r,function(_){L(_.dataByAxis,function(y){var b=i.getComponent(y.axisDim+"Axis",y.axisIndex),w=y.value;if(!(!b||w==null)){var S=LT(w,b.axis,i,y.seriesDataIndices,y.valueLabelOpt),T=sa("section",{header:S,noHeader:!jr(S),sortBlocks:!0,blocks:[]});f.blocks.push(T),L(y.seriesDataIndices,function(C){var x=i.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,A=x.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=y.axisDim,A.axisIndex=y.axisIndex,A.axisType=y.axisType,A.axisId=y.axisId,A.axisValue=IT(b.axis,{value:w}),A.axisValueLabel=S,A.marker=h.makeTooltipMarker("item",Ws(A.color),l);var M=jy(x.formatTooltip(D,!0,null)),R=M.frag;if(R){var k=qo([x],a).get("valueFormatter");T.blocks.push(k?$({valueFormatter:k},R):R)}M.text&&c.push(M.text),u.push(A)}})}})}),f.blocks.reverse(),c.reverse();var d=n.position,v=s.get("order"),p=t_(f,h,l,v,i.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var g=l==="richText"?`
57
57
 
58
- `:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Pe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),d=this._renderMode,v=r.positionDefault,p=qo([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),_=new _h;m.marker=_.makeTooltipMarker("item",Ws(m.color),d);var y=jy(u.formatTooltip(f,!1,c)),b=p.get("order"),w=p.get("valueFormatter"),S=y.frag,T=S?t_(w?$({valueFormatter:w},S):S,_,d,b,a.get("useUTC"),p.get("textStyle")):y.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,_)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Pe(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ae(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Se(l),l.content=Bt(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var d=r.positionDefault,v=qo(c,this._tooltipModel,d?{position:d}:null),p=v.get("content"),g=Math.random()+"",m=new _h;this._showOrMove(v,function(){var _=Se(v.get("formatterParams")||{});this._showTooltipContent(v,p,_,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(ae(h)){var g=r.ecModel.get("useUTC"),m=Z(i)?i[0]:i,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,_&&(d=hS(m.axisValue,d,g)),d=pS(d,i,!0)}else if(Ie(h)){var y=De(function(b,w){b===this._ticket&&(c.setContent(w,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,d=h(i,a,y)}else d=h;c.setContent(d,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Z(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ie(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),Z(n))i=ht(n[0],u),a=ht(n[1],f);else if(se(n)){var p=n;p.width=c[0],p.height=c[1];var g=oa(p,{width:u,height:f});i=g.x,a=g.y,h=null,d=null}else if(ae(n)&&l){var m=_N(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=mN(i,a,o,u,f,h?null:20,d?null:20);i=m[0],a=m[1]}if(h&&(i-=f0(h)?c[0]/2:h==="right"?c[0]:0),d&&(a-=f0(d)?c[1]/2:d==="bottom"?c[1]:0),FT(r)){var m=yN(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&L(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&L(u,function(h,d){var v=c[d]||{},p=h.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===g.length,o&&L(p,function(m,_){var y=g[_];o=o&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),a&&L(h.seriesDataIndices,function(m){var _=m.seriesIndex,y=n[_],b=a[_];y&&b&&b.data!==y.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){he.node||!n.getDom()||(fv(this,"_updatePosition"),this._tooltipContent.dispose(),bv("itemTooltip",n))},e.type="tooltip",e}(rn);function qo(t,e,r){var n=e.ecModel,i;r?(i=new Ge(r,n,n),i=new Ge(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ge&&(o=o.get("tooltip",!0)),ae(o)&&(o={formatter:o}),o&&(i=new Ge(o,i,n)))}return i}function u0(t,e){return t.dispatchAction||De(e.dispatchAction,e)}function mN(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function yN(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function _N(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function f0(t){return t==="center"||t==="middle"}function bN(t,e,r){var n=Tp(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=vl(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Pe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function $T(t){ho(qk),t.registerComponentModel(nN),t.registerComponentView(gN),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ut),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ut)}var Qs=L,wN=se,yf=-1,sg=function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=Se(e);this.type=n,this.mappingMethod=r,this._normalizeData=xN[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(kh(i),SN(i)):r==="category"?i.categories?TN(i):kh(i,!0):(Br(r!=="linear"||i.dataExtent),kh(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return De(this._normalizeData,this)},t.listVisualTypes=function(){return Je(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){se(e)?L(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=Z(e)?[]:se(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&Qs(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(Z(e))e=e.slice();else if(wN(e)){var r=[];Qs(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||ae(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(ou(c[1],e,f[1]))return o}else if(f[1]===1/0){if(ou(c[0],f[0],e))return o}else if(ou(c[0],f[0],e)&&ou(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:i;function h(d,v){var p=Math.abs(d-e);p<a&&(a=p,i=v)}},t.visualHandlers={color:{applyVisual:jo("color"),getColorMapper:function(){var e=this.option;return De(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),ss.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=Nc(r,e.parsedVisual,i),a?i:ri(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ri(Nc(e,this.option.parsedVisual),"rgba")},category:ss,piecewise:function(e,r){var n=Sv.call(this,r);return n==null&&(n=ri(Nc(e,this.option.parsedVisual),"rgba")),n},fixed:Oi}},colorHue:au(function(e,r){return ys(e,r)}),colorSaturation:au(function(e,r){return ys(e,null,r)}),colorLightness:au(function(e,r){return ys(e,null,null,r)}),colorAlpha:au(function(e,r){return g1(e,r)}),decal:{applyVisual:jo("decal"),_normalizedToVisual:{linear:null,category:ss,piecewise:null,fixed:null}},opacity:{applyVisual:jo("opacity"),_normalizedToVisual:wv([0,1])},liftZ:{applyVisual:jo("liftZ"),_normalizedToVisual:{linear:Oi,category:Oi,piecewise:Oi,fixed:Oi}},symbol:{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:c0,category:ss,piecewise:function(e,r){var n=Sv.call(this,r);return n==null&&(n=c0.call(this,e)),n},fixed:Oi}},symbolSize:{applyVisual:jo("symbolSize"),_normalizedToVisual:wv([0,1])}},t}();function SN(t){var e=t.pieceList;t.hasSpecialVisual=!1,L(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}function TN(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(Qs(e,function(o,s){r[o]=s}),!Z(n)){var i=[];se(n)?Qs(n,function(o,s){var l=r[s];i[l??yf]=o}):i[yf]=n,n=UT(t,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function kh(t,e){var r=t.visual,n=[];se(r)?Qs(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),UT(t,n)}function au(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:wv([0,1])}}function c0(t){var e=this.option.visual;return e[Math.round(aa(t,[0,1],[0,e.length-1],!0))]||{}}function jo(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function ss(t){var e=this.option.visual;return e[this.option.loop&&t!==yf?t%e.length:t]}function Oi(){return this.option.visual[0]}function wv(t){return{linear:function(e){return aa(e,t,this.option.visual,!0)},category:ss,piecewise:function(e,r){var n=Sv.call(this,r);return n==null&&(n=aa(e,t,this.option.visual,!0)),n},fixed:Oi}}function Sv(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=sg.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function UT(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=Me(e,function(r){var n=Jr(r);return n||[0,0,0,1]})),e}var xN={linear:function(t){return aa(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=sg.findPieceIndex(t,e,!0);if(r!=null)return aa(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??yf},fixed:ut};function ou(t,e,r){return t?e<=r:e<r}var CN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Be),DN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ye(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Et({style:tn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),d=new Et({style:tn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!v&&!g,d.silent=!p&&!g,v&&f.on("click",function(){iv(v,"_"+r.get("target"))}),p&&d.on("click",function(){iv(p,"_"+r.get("subtarget"))}),Pe(f).eventData=Pe(d).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(d);var m=a.getBoundingRect(),_=r.getBoxLayoutParams();_.width=m.width,_.height=m.height;var y=oa(_,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),a.x=y.x,a.y=y.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),d.setStyle(b),m=a.getBoundingRect();var w=y.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var T=new Mt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e}(rn);function GT(t){t.registerComponentModel(CN),t.registerComponentView(DN)}function IN(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=co(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(co(t,e,r[o]));return a.join(" ")}}var AN=function(t){re(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=yl(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=MN,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$s(this.childAt(0))},e.prototype.downplay=function(){Us(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(d):ui(h,d,s,n),eP(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Bp(h,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,d,v,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,d=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var _=a&&a.itemModel?a.itemModel:r.getItemModel(n),y=_.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),c=_.getModel(["select","itemStyle"]).getItemStyle(),f=_.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),d=y.get("blurScope"),v=y.get("disabled"),p=gl(_),g=y.getShallow("scale"),m=_.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=uc(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var S=r.getItemVisual(n,"style"),T=S.fill;if(s instanceof li){var C=s.style;s.useStyle($({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle($({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),D=this._z2;x!=null?D==null&&(this._z2=s.z2,s.z2+=x):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;ic(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:S.opacity});function M(H){return A?r.getName(H):IN(r,H)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;R.scaleX=this._sizeX*k,R.scaleY=this._sizeY*k,this.setSymbolScale(1),Lp(this,h,d,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Pe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&sf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();sf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Qp(r.getItemVisual(n,"symbolSize"))},e}(ft);function MN(t,e){this.parent.drift(t,e)}function Nh(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function h0(t){return t!=null&&!se(t)&&(t={isIgnore:t}),t||{}}function d0(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:gl(e),cursorStyle:e.get("cursor")}}var EN=function(){function t(e){this.group=new ft,this._SymbolCtor=e||AN}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=h0(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=d0(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);if(Nh(e,h,c,r)){var d=new o(e,c,l,u);d.setPosition(h),e.setItemGraphicEl(c,d),n.add(d)}}).update(function(c,h){var d=a.getItemGraphicEl(h),v=f(c);if(!Nh(e,v,c,r)){n.remove(d);return}var p=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(e,c,l,u),d.setPosition(v);else{d.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?d.attr(m):ui(d,m,i)}n.add(d),e.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=d0(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=h0(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Nh(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){rc(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t}(),v0=ha.prototype,Bh=Jf.prototype,WT=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(WT);function Fh(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var LN=function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WT},e.prototype.buildPath=function(r,n){Fh(n)?v0.buildPath.call(this,r,n):Bh.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return Fh(this.shape)?v0.pointAt.call(this,r):Bh.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,i=Fh(n)?[n.x2-n.x1,n.y2-n.y1]:Bh.tangentAt.call(this,r);return So(i,i)},e}(Ye),Vh=["fromSymbol","toSymbol"];function p0(t){return"_"+t+"Type"}function g0(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Qp(i),u=uc(o||0,l);return n+l+u+(a||"")+(s||"")}function m0(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Qp(i),u=uc(o||0,l),f=yl(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}}function PN(t){var e=new LN({name:"line",subPixelOptimize:!0});return Tv(e.shape,t),e}function Tv(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var RN=function(t){re(e,t);function e(r,n,i){var a=t.call(this)||this;return a._createLine(r,n,i),a}return e.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=PN(o);s.shape.percent=0,Bp(s,{shape:{percent:1}},a,n),this.add(s),L(Vh,function(l){var u=m0(l,r,n);this.add(u),this[p0(l)]=g0(l,r,n)},this),this._updateCommonStl(r,n,i)},e.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Tv(l.shape,s),ui(o,l,a,n),L(Vh,function(u){var f=g0(u,r,n),c=p0(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=m0(u,r,n);this.add(h)}this[c]=f},this),this._updateCommonStl(r,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),d=p.get("blurScope"),f=gl(v)}var g=r.getItemVisual(n,"style"),m=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,L(Vh,function(S){var T=this.childOfName(S);if(T){T.setColor(m),T.style.opacity=g.opacity;for(var C=0;C<en.length;C++){var x=en[C],D=o.getState(x);if(D){var A=D.style||{},M=T.ensureState(x),R=M.style||(M.style={});A.stroke!=null&&(R[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(R.opacity=A.opacity)}}T.markRedraw()}},this);var _=a.getRawValue(n);ic(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,T){return a.getFormattedLabel(S,T,r.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?C1(_):_)+""});var y=this.getTextContent();if(y){var b=f.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var w=b.get("distance");Z(w)||(w=[w,w]),y.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Lp(this,h,d,c)},e.prototype.highlight=function(){$s(this)},e.prototype.downplay=function(){Us(this)},e.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");Tv(n.shape,r),n.dirty()},e.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=Fi([],c,f);So(h,h);function d(D,A){var M=D.__specifiedRotation;if(M==null){var R=l.tangentAt(A);D.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else D.attr("rotation",M)}if(n&&(n.setPosition(f),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),d(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,_=g[1]*o,y=u/2,b=l.tangentAt(y),w=[b[1],-b[0]],S=l.pointAt(y);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var T=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(b[1],b[0]);c[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var x=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-_,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=_,p="top";break;default:x=0,p="middle"}switch(a.__position){case"end":a.x=h[0]*m+c[0],a.y=h[1]*_+c[1],v=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*m+f[0],a.y=-h[1]*_+f[1],v=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*T+f[0],a.y=f[1]+x,v=b[0]<0?"right":"left",a.originX=-m*T,a.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=S[0],a.y=S[1]+x,v="center",a.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*T+c[0],a.y=c[1]+x,v=b[0]>=0?"right":"left",a.originX=m*T,a.originY=-x;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},e}(ft),ON=function(){function t(e){this.group=new ft,this._LineCtor=e||RN}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=y0(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=y0(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!kN(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=r.getItemLayout(i);if(Hh(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){rc(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var i=e.getItemLayout(r);if(Hh(i)){var a=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,a),this.group.add(a)}},t.prototype._doUpdate=function(e,r,n,i,a){var o=e.getItemGraphicEl(n);if(!Hh(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},t}();function kN(t){return t.animators&&t.animators.length>0}function y0(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:gl(e)}}function _0(t){return isNaN(t[0])||isNaN(t[1])}function Hh(t){return t&&!_0(t[0])&&!_0(t[1])}var NN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},xv=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Z(n)&&L(n,function(a,o){ae(a)&&(a={type:a}),n[o]=Qe(a,NN(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Sp(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=me(),s=Me(a,function(l){return(ae(l)||et(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ge(l,this,this.ecModel))},this);this._data=or(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;L(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ke(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Be),Pa=Ze,Cv=L,su=ft,YT=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new su),this.group.add(this._selectorGroup=new su),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=oa(f,c,h),v=this.layoutInner(r,o,d,a,l,u),p=oa(Ke({width:v.width,height:v.height},f),c,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rN(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=me(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Cv(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
59
- `)){var g=new su;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var _=m.getData(),y=_.getVisual("legendLineStyle")||{},b=_.getVisual("legendIcon"),w=_.getVisual("style"),S=this._createItem(m,p,v,d,n,r,y,w,b,c,a);S.on("click",Pa(b0,p,null,a,h)).on("mouseover",Pa(Dv,m.name,null,a,h)).on("mouseout",Pa(Iv,m.name,null,a,h)),i.ssr&&S.eachChild(function(T){var C=Pe(T);C.seriesIndex=m.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(T){if(!f.get(p)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(p))return;var x=C.indexOfName(p),D=C.getItemVisual(x,"style"),A=C.getItemVisual(x,"legendIcon"),M=Jr(D.fill);M&&M[3]===0&&(M[3]=.2,D=$($({},D),{fill:ri(M,"rgba")}));var R=this._createItem(T,p,v,d,n,r,{},D,A,c,a);R.on("click",Pa(b0,null,p,a,h)).on("mouseover",Pa(Dv,null,p,a,h)).on("mouseout",Pa(Iv,null,p,a,h)),i.ssr&&R.eachChild(function(k){var H=Pe(k);H.seriesIndex=T.seriesIndex,H.dataIndex=v,H.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Cv(r,function(u){var f=u.type,c=new Et({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);ic(c,{normal:h,emphasis:d},{defaultText:u.title}),Qd(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),_=a.get("symbolKeepAspect"),y=a.get("icon");f=y||f||"roundRect";var b=BN(f,a,l,u,d,g,h),w=new su,S=a.getModel("textStyle");if(Ie(r.getLegendIcon)&&(!y||y==="inherit"))w.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:_}));else{var T=y==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;w.add(FN({itemWidth:v,itemHeight:p,icon:f,iconRotate:T,itemStyle:b.itemStyle,symbolKeepAspect:_}))}var C=s==="left"?v+5:-5,x=s,D=o.get("formatter"),A=n;ae(D)&&D?A=D.replace("{name}",n??""):Ie(D)&&(A=D(n));var M=g?S.getTextColor():a.get("inactiveColor");w.add(new Et({style:tn(S,{text:A,x:C,y:p/2,fill:M,align:x,verticalAlign:"middle"},{inheritColor:M})}));var R=new Mt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&tc({el:R,componentModel:o,itemName:n,itemTooltipOption:k.option}),w.add(R),w.eachChild(function(H){H.silent=!0}),R.silent=!c,this.getContentGroup().add(w),Qd(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xs(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xs("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",_=p===0?"y":"x";s==="end"?d[p]+=f[g]+v:c[p]+=h[g]+v,d[1-p]+=f[m]/2-h[m]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var y={x:0,y:0};return y[g]=f[g]+v+h[g],y[m]=Math.max(f[m],h[m]),y[_]=Math.min(0,h[_]+d[1-p]),y}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(rn);function BN(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Cv(g,function(_,y){g[y]==="inherit"&&(g[y]=m[y])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:pv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function FN(t){var e=t.icon||"roundRect",r=yl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function b0(t,e,r,n){Iv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Dv(t,e,r,n)}function XT(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Dv(t,e,r,n){XT(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Iv(t,e,r,n){XT(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function VN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Zo(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),w0(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){L(i,function(l,u){s[l?"select":"unSelect"](u)}),w0(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function w0(t,e){var r=e||{};return L(t.getData(),function(n){var i=n.get("name");if(!(i===`
60
- `||i==="")){var a=t.isSelected(i);ia(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function HN(t){t.registerAction("legendToggleSelect","legendselectchanged",Ze(Zo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ze(Zo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ze(Zo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ze(Zo,"select")),t.registerAction("legendUnSelect","legendunselected",Ze(Zo,"unSelect"))}function KT(t){t.registerComponentModel(xv),t.registerComponentView(YT),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,VN),t.registerSubTypeDefaulter("legend",function(){return"plain"}),HN(t)}var zN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Wp(r);t.prototype.init.call(this,r,n,i),S0(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),S0(this,this.option,r)},e.type="legend.scroll",e.defaultOption=LP(xv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(xv);function S0(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,Ys(e,r,{type:"box",ignoreSize:!!i})}var T0=ft,zh=["width","height"],$h=["x","y"],$N=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new T0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new T0)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=Z(c)?c:[c,c];v("pagePrev",0);var d=n.getModel("pageTextStyle");f.add(new Et({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",_=zp(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:De(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=p,f.add(_)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=zh[u],c=$h[u],h=zh[1-u],d=$h[1-u];o&&xs("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Se(i);o&&(m[f]=i[f]-p[f]-v);var _=this._layoutContentAndController(r,a,m,u,f,h,d,c);if(o){if(s==="end")g[u]+=_[f]+v;else{var y=p[f]+v;g[u]-=y,_[c]-=y}_[f]+=p[f]+v,g[1-u]+=_[d]+_[h]/2-p[h]/2,_[h]=Math.max(_[h],p[h]),_[d]=Math.min(_[d],p[d]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;xs(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),xs("horizontal",h,r.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),v=h.getBoundingRect(),p=this._showController=d[o]>i[o],g=[-d.x,-d.y];n||(g[a]=f[u]);var m=[0,0],_=[-v.x,-v.y],y=ye(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?_[a]+=i[o]-v[o]:m[a]+=v[o]+y}_[1-a]+=d[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(_);var w={x:0,y:0};if(w[o]=p?i[o]:d[o],w[s]=Math.max(d[s],v[s]),w[l]=Math.min(0,v[l]+_[1-a]),c.__rectSize=i[o],p){var S={x:0,y:0};S[o]=Math.max(i[o]-v[o]-y,0),S[s]=w[s],c.setClipPath(new Mt({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&ui(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;L(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,d=i.childOfName(f);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",ae(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=zh[o],l=$h[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,_=p,y=null;g<=h;++g)y=b(f[g]),(!y&&_.e>m.s+a||y&&!w(y,m.s))&&(_.i>m.i?m=_:m=y,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),_=y;for(var g=u-1,m=p,_=p,y=null;g>=-1;--g)y=b(f[g]),(!y||!w(_,y.s))&&m.i<_.i&&(_=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=y;return v;function b(S){if(S){var T=S.getBoundingRect(),C=T[l]+S[l];return{s:C,e:C+T[s],i:S.__legendDataIndex}}}function w(S,T){return S.e>=T&&S.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e}(YT);function UN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function GN(t){ho(KT),t.registerComponentModel(zN),t.registerComponentView($N),UN(t)}function WN(t){ho(KT),ho(GN)}var YN=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),Tr=at();function qT(t){var e=t.mainData,r=t.datas;r||(r={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,jT(e,r,t),L(r,function(n){L(e.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,Ze(XN,t))})}),e.wrapMethod("cloneShallow",Ze(qN,t)),L(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Ze(KN,t))}),Br(r[e.dataType]===e)}function XN(t,e){if(QN(this)){var r=$({},Tr(this).datas);r[this.dataType]=e,jT(e,r,t)}else lg(e,this.dataType,Tr(this).mainData,t);return e}function KN(t,e){return t.struct&&t.struct.update(),e}function qN(t,e){return L(Tr(e).datas,function(r,n){r!==e&&lg(r.cloneShallow(),n,e,t)}),e}function jN(t){var e=Tr(this).mainData;return t==null||e==null?e:Tr(e).datas[t]}function ZN(){var t=Tr(this).mainData;return t==null?[{data:t}]:Me(Je(Tr(t).datas),function(e){return{type:e,data:Tr(t).datas[e]}})}function QN(t){return Tr(t).mainData===t}function jT(t,e,r){Tr(t).datas={},L(e,function(n,i){lg(n,i,t,r)})}function lg(t,e,r,n){Tr(r).datas[e]=t,Tr(t).mainData=r,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=jN,t.getLinkedDataAll=ZN}var JN=function(){function t(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,r,n){Ie(e)&&(n=r,r=e,e=null),e=e||{},ae(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,r,n);i==="postorder"&&r.call(n,this)},t.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>r&&(r=i.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(e);if(a)return a}},t.prototype.contains=function(e){if(e===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(e);if(a)return a}},t.prototype.getAncestors=function(e){for(var r=[],n=e?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},t.prototype.getAncestorsIndices=function(){for(var e=[],r=this;r;)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},t.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var r=e.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),eB=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,r,n){this.root.eachNode(e,r,n)},t.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)r[e.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,r,n){var i=new t(r),a=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,Z(h)?h.length:1),a.push(f);var d=new JN(Jt(f.name,""),i);c?tB(d,c):i.root=d,i._nodes.push(d);var v=f.children;if(v)for(var p=0;p<v.length;p++)s(v[p],d)}i.root.updateDepthAndHeight(0);var l=ig(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new js(l,r);return u.initData(a),n&&n(u),qT({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function tB(t,e){var r=e.children;t.parentNode!==e&&(r.push(t),t.parentNode=e)}function ug(t,e,r){if(t&&ke(e,t.type)>=0){var n=r.getData().tree.root,i=t.targetNode;if(ae(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function ZT(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function QT(t,e){var r=ZT(t);return ke(r,e)>=0}function JT(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var x0=["treemapZoomToNode","treemapRender","treemapMove"];function rB(t){for(var e=0;e<x0.length;e++)t.registerAction({type:x0[e],update:"updateView"},ut);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=ug(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=QT(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function nB(t){var e=t.getData(),r=e.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=aR(t.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var iB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};ex(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ge({itemStyle:o},this,n);a=r.levels=aB(a,n);var l=Me(a||[],function(c){return new Ge(c,s,n)},this),u=eB.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),p=v?l[v.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return sa("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=JT(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=me(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){nB(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(An);function ex(t){var e=0;L(t.children,function(n){ex(n);var i=n.value;Z(i)&&(i=i[0]),e+=i});var r=t.value;Z(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),Z(t.value)?t.value[0]=r:t.value=r}function aB(t,e){var r=vt(e.get("color")),n=vt(e.get(["aria","decal","decals"]));if(r){t=t||[];var i,a;L(t,function(s){var l=new Ge(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),t}}var oB=8,C0=8,Uh=5,sB=function(){function t(e){this.group=new ft,e.add(this.group)}return t.prototype.render=function(e,r,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(e,c,s,l,u,f,i),XP(o,c.pos,c.box)}},t.prototype._prepare=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=Jt(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+oB*2,r.emptyItemWidth);r.totalWidth+=s+C0,r.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,f=e.get(["breadcrumb","height"]),c=YP(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var g=d[p],m=g.node,_=g.width,y=g.text;h>c.width&&(h-=_-u,_=u,y=null);var b=new Qf({shape:{points:lB(l,0,_,f,p===d.length-1,p===0)},style:Ke(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Et({style:tn(a,{text:y})}),textConfig:{position:"inside"},z2:pl*1e4,onclick:Ze(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=tn(o,{text:y}),b.ensureState("emphasis").style=v,Lp(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),uB(b,e,m),l+=_+C0}},t.prototype.remove=function(){this.group.removeAll()},t}();function lB(t,e,r,n,i,a){var o=[[i?t:t-Uh,e],[t+r,e],[t+r,e+n],[i?t:t-Uh,e+n]];return!a&&o.splice(2,0,[t+r+Uh,e+n/2]),!i&&o.push([t,e+n/2]),o}function uB(t,e,r){Pe(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&JT(r,e)}}var fB=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function cB(){return new fB}var Av=ft,D0=Mt,I0=3,A0="label",M0="upperLabel",hB=pl*10,dB=pl*2,vB=pl*3,ki=uo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),E0=function(t){var e=ki(t);return e.stroke=e.fill=e.lineWidth=null,e},_f=at(),pB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=Qo(),r}return e.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(ke(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=ug(a,s,r),u=a&&a.type,f=r.layoutInfo,c=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(f),p=r.get("animation"),g=this._doRender(v,r,d);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,g,r,d):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},e.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new Av,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},e.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=Qo(),l=Qo(),u=this._storage,f=[];function c(_,y,b,w){return gB(n,l,u,i,s,f,_,y,b,w)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var h=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===d.width&&v.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function p(_,y,b,w,S){w?(y=_,L(_,function(x,D){!x.isRemoved()&&C(D,D)})):new wT(y,_,T,T).add(C).update(C).remove(Ze(C,null)).execute();function T(x){return x.getId()}function C(x,D){var A=x!=null?_[x]:null,M=D!=null?y[D]:null,R=c(A,M,b,S);R&&p(A&&A.viewChildren||[],M&&M.viewChildren||[],R,w,S+1)}}function g(_){var y=Qo();return _&&L(_,function(b,w){var S=y[w];L(b,function(T){T&&(S.push(T),_f(T).willDelete=!0)})}),y}function m(){L(h,function(_){L(_,function(y){y.parent&&y.parent.remove(y)})}),L(f,function(_){_.invisible=!0,_.dirty()})}},e.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Ie(o)?0:o)||0,u=(Ie(s)?null:s)||"cubicOut",f=cB();L(n.willDeleteEls,function(c,h){L(c,function(d,v){if(!d.invisible){var p=d.parent,g,m=_f(p);if(a&&a.direction==="drillDown")g=p===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,y=0;m.willDelete||(_=m.nodeWidth/2,y=m.nodeHeight/2),g=h==="nodeGroup"?{x:_,y,style:{opacity:0}}:{shape:{x:_,y,width:0,height:0},style:{opacity:0}}}g&&f.add(d,g,l,0,u)}})}),L(this._storage,function(c,h){L(c,function(d,v){var p=n.lastsForAnimation[h][v],g={};p&&(d instanceof ft?p.oldX!=null&&(g.x=d.x,g.y=d.y,d.x=p.oldX,d.y=p.oldY):(p.oldShape&&(g.shape=$({},d.shape),d.setShape(p.oldShape)),p.fadein?(d.setStyle("opacity",0),g.style={opacity:1}):d.style.opacity!==1&&(g.style={opacity:1})),f.add(d,g,l,0,u))})},this),this._state="animating",f.finished(De(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new NT(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",De(this._onPan,this)),n.on("zoom",De(this._onZoom,this)));var a=new Ae(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},e.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>I0||Math.abs(r.dy)>I0)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ae(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=a,u){var h=u.min||0,d=u.max||1/0;c=Math.max(Math.min(d,c),h)}var v=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Jn();Bs(g,g,[-n,-i]),n1(g,g,[v,v]),Bs(g,g,[n,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&iv(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new sB(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(QT(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Qo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,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)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(wn);function Qo(){return{nodeGroup:[],background:[],content:[]}}function gB(t,e,r,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),c=t.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var d=f.width,v=f.height,p=f.borderWidth,g=f.invisible,m=o.getRawIndex(),_=s&&s.getRawIndex(),y=o.viewChildren,b=f.upperHeight,w=y&&y.length,S=h.getModel("itemStyle"),T=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),x=h.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,A=zt("nodeGroup",Av);if(!A)return;if(l.add(A),A.x=f.x||0,A.y=f.y||0,A.markRedraw(),_f(A).nodeWidth=d,_f(A).nodeHeight=v,f.isAboveViewRoot)return A;var M=zt("background",D0,u,dB);M&&He(A,M,w&&f.upperLabelHeight);var R=h.getModel("emphasis"),k=R.get("focus"),H=R.get("blurScope"),N=R.get("disabled"),q=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(w)Gs(A)&&Ya(A,!1),M&&(Ya(M,!N),c.setItemGraphicEl(o.dataIndex,M),Jd(M,q,H));else{var U=zt("content",D0,u,vB);U&&Xe(A,U),M.disableMorphing=!0,M&&Gs(M)&&Ya(M,!1),Ya(A,!N),c.setItemGraphicEl(o.dataIndex,A);var ue=h.getShallow("cursor");ue&&U.attr("cursor",ue),Jd(A,q,H)}return A;function He(be,ne,ve){var K=Pe(ne);if(K.dataIndex=o.dataIndex,K.seriesIndex=t.seriesIndex,ne.setShape({x:0,y:0,width:d,height:v,r:D}),g)_e(ne);else{ne.invisible=!1;var J=o.getVisual("style"),I=J.stroke,E=E0(S);E.fill=I;var O=ki(T);O.fill=T.get("borderColor");var F=ki(C);F.fill=C.get("borderColor");var B=ki(x);if(B.fill=x.get("borderColor"),ve){var V=d-2*p;ct(ne,I,J.opacity,{x:p,y:0,width:V,height:b})}else ne.removeTextContent();ne.setStyle(E),ne.ensureState("emphasis").style=O,ne.ensureState("blur").style=F,ne.ensureState("select").style=B,qd(ne)}be.add(ne)}function Xe(be,ne){var ve=Pe(ne);ve.dataIndex=o.dataIndex,ve.seriesIndex=t.seriesIndex;var K=Math.max(d-2*p,0),J=Math.max(v-2*p,0);if(ne.culling=!0,ne.setShape({x:p,y:p,width:K,height:J,r:D}),g)_e(ne);else{ne.invisible=!1;var I=o.getVisual("style"),E=I.fill,O=E0(S);O.fill=E,O.decal=I.decal;var F=ki(T),B=ki(C),V=ki(x);ct(ne,E,I.opacity,null),ne.setStyle(O),ne.ensureState("emphasis").style=F,ne.ensureState("blur").style=B,ne.ensureState("select").style=V,qd(ne)}be.add(ne)}function _e(be){!be.invisible&&a.push(be)}function ct(be,ne,ve,K){var J=h.getModel(K?M0:A0),I=Jt(h.get("name"),null),E=J.getShallow("show");ic(be,gl(h,K?M0:A0),{defaultText:E?I:null,inheritColor:ne,defaultOpacity:ve,labelFetcher:t,labelDataIndex:o.dataIndex});var O=be.getTextContent();if(O){var F=O.style,B=pp(F.padding||0);K&&(be.setTextConfig({layoutRect:K}),O.disableLabelLayout=!0),O.beforeUpdate=function(){var Y=Math.max((K?K.width:be.shape.width)-B[1]-B[3],0),G=Math.max((K?K.height:be.shape.height)-B[0]-B[2],0);(F.width!==Y||F.height!==G)&&O.setStyle({width:Y,height:G})},F.truncateMinChar=2,F.lineOverflow="truncate",mt(F,K,f);var V=O.getState("emphasis");mt(V?V.style:null,K,f)}}function mt(be,ne,ve){var K=be?be.text:null;if(!ne&&ve.isLeafRoot&&K!=null){var J=t.get("drillDownIcon",!0);be.text=J?J+" "+K:K}}function zt(be,ne,ve,K){var J=_!=null&&r[be][_],I=i[be];return J?(r[be][_]=null,Lt(I,J)):g||(J=new ne,J instanceof To&&(J.z2=mB(ve,K)),$t(I,J)),e[be][m]=J}function Lt(be,ne){var ve=be[m]={};ne instanceof Av?(ve.oldX=ne.x,ve.oldY=ne.y):ve.oldShape=$({},ne.shape)}function $t(be,ne){var ve=be[m]={},K=o.parentNode,J=ne instanceof ft;if(K&&(!n||n.direction==="drillDown")){var I=0,E=0,O=i.background[K.getRawIndex()];!n&&O&&O.oldShape&&(I=O.oldShape.width,E=O.oldShape.height),J?(ve.oldX=0,ve.oldY=E):ve.oldShape={x:I,y:E,width:0,height:0}}ve.fadein=!J}}function mB(t,e){return t*hB+e}var yB="itemStyle",tx=at();const _B={seriesType:"treemap",reset:function(t){var e=t.getData().tree,r=e.root;r.isRemoved()||rx(r,{},t.getViewRoot().getAncestors(),t)}};function rx(t,e,r,n){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(yB),l=bB(s,e,n),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=L0(l),f=wB(c,h)),u.stroke=f;var d=t.viewChildren;if(!d||!d.length)h=L0(l),u.fill=h;else{var v=SB(t,i,a,s,l,d);L(d,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var m=TB(i,l,p,g,v,n);rx(p,m,r,n)}})}}}function bB(t,e,r){var n=$({},e),i=r.designatedVisualItemStyle;return L(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function L0(t){var e=Gh(t,"color");if(e){var r=Gh(t,"colorAlpha"),n=Gh(t,"colorSaturation");return n&&(e=ys(e,null,null,n)),r&&(e=g1(e,r)),e}}function wB(t,e){return e!=null?ys(e,null,null,t):null}function Gh(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function SB(t,e,r,n,i,a){if(!(!a||!a.length)){var o=Wh(e,"color")||i.color!=null&&i.color!=="none"&&(Wh(e,"colorAlpha")||Wh(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new sg(c);return tx(h).drColorMappingBy=f,h}}}function Wh(t,e){var r=t.get(e);return Z(r)&&r.length?{name:e,range:r}:null}function TB(t,e,r,n,i,a){var o=$({},e);if(i){var s=i.type,l=s==="color"&&tx(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Js=Math.max,bf=Math.min,P0=si,fg=L,nx=["itemStyle","borderWidth"],xB=["itemStyle","gapWidth"],CB=["upperLabel","show"],DB=["upperLabel","height"];const IB={seriesType:"treemap",reset:function(t,e,r,n){var i=r.getWidth(),a=r.getHeight(),o=t.option,s=oa(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ht(P0(s.width,l[0]),i),f=ht(P0(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=ug(n,h,t),v=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=t.getViewRoot(),g=ZT(p);if(c!=="treemapMove"){var m=c==="treemapZoomToNode"?RB(t,d,p,u,f):v?[v.width,v.height]:[u,f],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var y={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(b),ix(p,y,!1,0),b=p.getLayout(),fg(g,function(S,T){var C=(g[T+1]||p).getValue();S.setLayout($({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var w=t.getData().tree.root;w.setLayout(OB(s,v,d),!0),t.setLayoutInfo(s),ax(w,new Ae(-s.x,-s.y,i,a),g,p,0)}};function ix(t,e,r,n){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(nx),u=s.get(xB)/2,f=ox(s),c=Math.max(l,f),h=l-u,d=c-u;t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=Js(i-2*h,0),a=Js(a-h-d,0);var v=i*a,p=AB(t,s,v,e,r,n);if(p.length){var g={x:h,y:d,width:i,height:a},m=bf(i,a),_=1/0,y=[];y.area=0;for(var b=0,w=p.length;b<w;){var S=p[b];y.push(S),y.area+=S.getLayout().area;var T=PB(y,m,e.squareRatio);T<=_?(b++,_=T):(y.area-=y.pop().getLayout().area,R0(y,m,g,u,!1),m=bf(g.width,g.height),y.length=y.area=0,_=1/0)}if(y.length&&R0(y,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&v<C&&(r=!0)}for(var b=0,w=p.length;b<w;b++)ix(p[b],e,r,n+1)}}}function AB(t,e,r,n,i,a){var o=t.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return t.viewChildren=[];o=or(o,function(d){return!d.isRemoved()}),EB(o,s);var u=LB(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=MB(e,r,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*r;o[f].setLayout({area:h})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function MB(t,e,r,n,i){if(!n)return r;for(var a=t.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*e<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function EB(t,e){return e&&t.sort(function(r,n){var i=e==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?e==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),t}function LB(t,e,r){for(var n=0,i=0,a=e.length;i<a;i++)n+=e[i].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&r?(s=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],fg(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function PB(t,e,r){for(var n=0,i=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=t.area*t.area,u=e*e*r;return l?Js(u*n/l,l/(u*i)):1/0}function R0(t,e,r,n,i){var a=e===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],f=e?t.area/e:0;(i||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,h=t.length;c<h;c++){var d=t[c],v={},p=f?d.getLayout().area/f:0,g=v[l[o]]=Js(f-2*n,0),m=r[s[a]]+r[l[a]]-u,_=c===h-1||m<p?m:p,y=v[l[a]]=Js(_-2*n,0);v[s[o]]=r[s[o]]+bf(n,g/2),v[s[a]]=u+bf(n,y/2),u+=_,d.setLayout(v,!0)}r[s[o]]+=f,r[l[o]]-=f}function RB(t,e,r,n,i){var a=(e||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*t.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,c=s.children,h=0,d=c.length;h<d;h++)f+=c[h].getValue();var v=a.getValue();if(v===0)return o;u*=f/v;var p=s.getModel(),g=p.get(nx),m=Math.max(g,ox(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>Gm&&(u=Gm),a=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[n*_,i*_]}function OB(t,e,r){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function ax(t,e,r,n,i){var a=t.getLayout(),o=r[i],s=o&&o===t;if(!(o&&!s||i===r.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new Ae(e.x-a.x,e.y-a.y,e.width,e.height);fg(t.viewChildren||[],function(u){ax(u,l,r,n,i+1)})}}function ox(t){return t.get(CB)?t.get(DB):0}function sx(t){t.registerSeriesModel(iB),t.registerChartView(pB),t.registerVisual(_B),t.registerLayout(IB),rB(t)}function kB(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){et(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function NB(t){var e={};t.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){ae(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");$(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function lu(t){return t instanceof Array||(t=[t,t]),t}function BB(t){t.eachSeriesByType("graph",function(e){var r=e.getGraph(),n=e.getEdgeData(),i=lu(e.get("edgeSymbol")),a=lu(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=lu(s.getShallow("symbol",!0)),f=lu(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch($(h,c),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Mv="-->",cc=function(t){return t.get("autoCurveness")||null},lx=function(t,e){var r=cc(t),n=20,i=[];if(et(r))n=r;else if(Z(r)){t.__curvenessList=r;return}e>n&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=i},el=function(t,e,r){var n=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[r.uid,n,i].join(Mv)},ux=function(t){var e=t.split(Mv);return[e[0],e[2],e[1]].join(Mv)},FB=function(t,e){var r=el(t.node1,t.node2,e);return e.__edgeMap[r]},VB=function(t,e){var r=Ev(el(t.node1,t.node2,e),e),n=Ev(el(t.node2,t.node1,e),e);return r+n},Ev=function(t,e){var r=e.__edgeMap;return r[t]?r[t].length:0};function HB(t){cc(t)&&(t.__curvenessList=[],t.__edgeMap={},lx(t))}function zB(t,e,r,n){if(cc(r)){var i=el(t,e,r),a=r.__edgeMap,o=a[ux(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function cg(t,e,r,n){var i=cc(e),a=Z(i);if(!i)return null;var o=FB(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=VB(t,e);lx(e,u),t.lineStyle=t.lineStyle||{};var f=el(t.node1,t.node2,e),c=e.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var d=ux(f),v=Ev(d,e),p=c[s+v+h];return n?a?i&&i[0]===0?(v+h)%2?p:-p:((v%2?0:1)+h)%2?p:-p:(v+h)%2?p:-p:c[s+v+h]}function fx(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var r=t.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),hg(r,t)}}function hg(t,e){t.eachEdge(function(r,n){var i=Ki(r.getModel().get(["lineStyle","curveness"]),-cg(r,e,n,!0),0),a=_n(r.node1.getLayout()),o=_n(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function $B(t,e){t.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];L(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=a.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}hg(a.graph,r)}else(!n||n==="none")&&fx(r)})}function ls(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var r=t.option.nodeScaleRatio,n=e.scaleX,i=e.getZoom(),a=(i-1)*r+1;return a/n}function us(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var O0=Math.PI,Yh=[];function dg(t,e,r,n){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var h=i.pointToData(n),d=h[0],v=h[1],p=[d-l,v-u];So(p,p),yu(p,p,f),r.setLayout([l+p[0],u+p[1]],!0);var g=t.get(["circular","rotateLabel"]);cx(r,g,l,u)}UB[e](t,s,o,f,l,u,c),s.eachEdge(function(m,_){var y=Ki(m.getModel().get(["lineStyle","curveness"]),cg(m,t,_),0),b=_n(m.node1.getLayout()),w=_n(m.node2.getLayout()),S,T=(b[0]+w[0])/2,C=(b[1]+w[1])/2;+y&&(y*=3,S=[l*y+T*(1-y),u*y+C*(1-y)]),m.setLayout([b,w,S])})}}}var UB={value:function(t,e,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(t,e,r,n,i,a,o){var s=0;Yh.length=o;var l=ls(t);e.eachNode(function(c){var h=us(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=O0/2),Yh[c.dataIndex]=d,s+=d*2});var u=(2*O0-s)/o/2,f=0;e.eachNode(function(c){var h=u+Yh[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=h})}};function cx(t,e,r,n){var i=t.getGraphicEl();if(i){var a=t.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");$(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function GB(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&dg(e,"symbolSize")})}var Ra=Md;function WB(t,e,r){for(var n=t,i=e,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=ca(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=_n(c.p),c.edges=null}var h=r.friction==null?.6:r.friction,d=h,v,p;return{warmUp:function(){d=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(n,i);for(var m=[],_=n.length,y=0;y<i.length;y++){var b=i[y];if(!b.ignoreForceLayout){var w=b.n1,S=b.n2;Fi(m,S.p,w.p);var T=Ed(m)-b.d,C=S.w/(w.w+S.w);isNaN(C)&&(C=0),So(m,m),!w.fixed&&Ra(w.p,w.p,m,C*T*d),!S.fixed&&Ra(S.p,S.p,m,-(1-C)*T*d)}}for(var y=0;y<_;y++){var x=n[y];x.fixed||(Fi(m,l,x.p),Ra(x.p,x.p,m,u*d))}for(var y=0;y<_;y++)for(var w=n[y],D=y+1;D<_;D++){var S=n[D];Fi(m,S.p,w.p);var T=Ed(m);T===0&&(LA(m,Math.random()-.5,Math.random()-.5),T=1);var A=(w.rep+S.rep)/T/T;!w.fixed&&Ra(w.pp,w.pp,m,A),!S.fixed&&Ra(S.pp,S.pp,m,-A)}for(var M=[],y=0;y<_;y++){var x=n[y];x.fixed||(Fi(M,x.p,x.pp),Ra(x.p,x.p,M,d),Rt(x.pp,x.p))}d=d*.992;var R=d<.01;p&&p(n,i,R),g&&g(R)}}}function YB(t){t.eachSeriesByType("graph",function(e){var r=e.coordinateSystem;if(!(r&&r.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(y){var b=a.getId(y);a.setItemLayout(y,n[b]||[NaN,NaN])}):!l||l==="none"?fx(e):l==="circular"&&dg(e,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),d=Z(c)?c:[c,c],v=Z(h)?h:[h,h];v=[v[1],v[0]];var p=a.mapArray("value",function(y,b){var w=a.getItemLayout(b),S=aa(y,u,d);return isNaN(S)&&(S=(d[0]+d[1])/2),{w:S,rep:S,fixed:a.getItemModel(b).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),g=o.mapArray("value",function(y,b){var w=i.getEdgeByIndex(b),S=aa(y,f,v);isNaN(S)&&(S=(v[0]+v[1])/2);var T=w.getModel(),C=Ki(w.getModel().get(["lineStyle","curveness"]),-cg(w,e,b,!0),0);return{n1:p[w.node1.dataIndex],n2:p[w.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:T.get("ignoreForceLayout")}}),m=r.getBoundingRect(),_=WB(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(y,b){for(var w=0,S=y.length;w<S;w++)y[w].fixed&&Rt(y[w].p,i.getNodeByIndex(w).getLayout())}),_.afterStep(function(y,b,w){for(var S=0,T=y.length;S<T;S++)y[S].fixed||i.getNodeByIndex(S).setLayout(y[S].p),n[a.getId(S)]=y[S].p;for(var S=0,T=b.length;S<T;S++){var C=b[S],x=i.getEdgeByIndex(S),D=C.n1.p,A=C.n2.p,M=x.getLayout();M=M?M.slice():[],M[0]=M[0]||[],M[1]=M[1]||[],Rt(M[0],D),Rt(M[1],A),+C.curveness&&(M[2]=[(D[0]+A[0])/2-(D[1]-A[1])*C.curveness,(D[1]+A[1])/2-(A[0]-D[0])*C.curveness]),x.setLayout(M)}}),e.forceLayout=_,e.preservedPoints=n,_.step()}else e.forceLayout=null})}function XB(t,e,r){var n=$(t.getBoxLayoutParams(),{aspect:r});return oa(n,{width:e.getWidth(),height:e.getHeight()})}function KB(t,e){var r=[];return t.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var m=a.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];ME(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=XB(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],d=f.width,v=f.height,p=n.coordinateSystem=new kT;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,d,v),p.setCenter(n.get("center"),e),p.setZoom(n.get("zoom")),r.push(p)}}),r}var Xh=[],Kh=[],qh=[],Oa=Vt,jh=qi,k0=Math.abs;function N0(t,e,r){for(var n=t[0],i=t[1],a=t[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){Xh[0]=Oa(n[0],i[0],a[0],f),Xh[1]=Oa(n[1],i[1],a[1],f);var c=k0(jh(Xh,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var d=s+u;Kh[0]=Oa(n[0],i[0],a[0],s),Kh[1]=Oa(n[1],i[1],a[1],s),qh[0]=Oa(n[0],i[0],a[0],d),qh[1]=Oa(n[1],i[1],a[1],d);var c=jh(Kh,e)-l;if(k0(c)<.01)break;var v=jh(qh,e)-l;u/=2,c<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Zh(t,e){var r=[],n=Fs,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[_n(u[0]),_n(u[1])],u[2]&&u.__original.push(_n(u[2])));var h=u.__original;if(u[2]!=null){if(Rt(i[0],h[0]),Rt(i[1],h[2]),Rt(i[2],h[1]),f&&f!=="none"){var d=us(s.node1),v=N0(i,h[0],d*e);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(c&&c!=="none"){var d=us(s.node2),v=N0(i,h[1],d*e);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}Rt(u[0],i[0]),Rt(u[1],i[2]),Rt(u[2],i[1])}else{if(Rt(a[0],h[0]),Rt(a[1],h[1]),Fi(o,a[1],a[0]),So(o,o),f&&f!=="none"){var d=us(s.node1);Md(a[0],a[0],o,d*e)}if(c&&c!=="none"){var d=us(s.node2);Md(a[1],a[1],o,-d*e)}Rt(u[0],a[0]),Rt(u[1],a[1])}})}function B0(t){return t.type==="view"}var qB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var i=new EN,a=new ON,o=this.group;this._controller=new NT(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(B0(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):ui(u,f,r)}Zh(r.getGraph(),ls(r));var c=r.getData();s.updateData(c);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var p=r.get("layout");c.graph.eachNode(function(y){var b=y.dataIndex,w=y.getGraphicEl(),S=y.getModel();if(w){w.off("drag").off("dragend");var T=S.get("draggable");T&&w.on("drag",function(x){switch(p){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(b),c.setItemLayout(b,[w.x,w.y]);break;case"circular":c.setItemLayout(b,[w.x,w.y]),y.setLayout({fixed:!0},!0),dg(r,"symbolSize",y,[x.offsetX,x.offsetY]),a.updateLayout(r);break;case"none":default:c.setItemLayout(b,[w.x,w.y]),hg(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),w.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(Pe(w).focus=y.getAdjacentDataIndices())}}),c.graph.eachEdge(function(y){var b=y.getGraphicEl(),w=y.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(Pe(b).focus={edge:[y.dataIndex],node:[y.node1.dataIndex,y.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(y){cx(y,g,m,_)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!tN(u,i,r)}),!B0(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Qk(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Jk(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Zh(r.getGraph(),ls(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=ls(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(r){Zh(r.getGraph(),ls(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(wn);function ka(t){return"_EC_"+t}var jB=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(!n[ka(e)]){var i=new Ni(e,r);return i.hostGraph=this,this.nodes.push(i),n[ka(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[ka(e)]},t.prototype.addEdge=function(e,r,n){var i=this._nodesMap,a=this._edgesMap;if(et(e)&&(e=this.nodes[e]),et(r)&&(r=this.nodes[r]),e instanceof Ni||(e=i[ka(e)]),r instanceof Ni||(r=i[ka(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new hx(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof Ni&&(e=e.id),r instanceof Ni&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(r,n[a],a)},t.prototype.eachEdge=function(e,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(r,n[a],a)},t.prototype.breadthFirstTraverse=function(e,r,n,i){if(r instanceof Ni||(r=this._nodesMap[ka(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(i,c,l))return;s.push(c),c.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},t.prototype.clone=function(){for(var e=new t(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)e.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),Ni=function(){function t(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=r??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=me(),r=me(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,r.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:r.keys()}},t}(),hx=function(){function t(e,r,n){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=n??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=me(),r=me();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:r.keys()}},t}();function dx(t,e){return{getValue:function(r){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Fr(Ni,dx("hostGraph","data"));Fr(hx,dx("hostGraph","edgeData"));function ZB(t,e,r,n,i){for(var a=new jB(n),o=0;o<t.length;o++)a.addNode(si(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;a.addEdge(c,h,u)&&(l.push(f),s.push(si(Jt(f.id,null),c+" > "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=ik(t,r);else{var p=oc.get(d),g=p?p.dimensions||[]:[];ke(g,"value")<0&&g.concat(["value"]);var m=ig(t,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;v=new js(m,r),v.initData(t)}var _=new js(["value"],r);return _.initData(l,s),i&&i(v,_),qT({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var QB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new YN(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Wd(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){HB(this);var s=ZB(a,i,this,!0,l);return L(s.edges,function(u){zB(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var c=Ge.prototype.getModel;function h(v,p){var g=c.call(this,v,p);return g.resolveParentPath=d,g}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),sa("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=zS({series:this,dataIndex:r,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var r=Me(this.option.categories||[],function(i){return i.value!=null?i:$({value:0},i)}),n=new js(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(An),JB={type:"graphRoam",event:"graphRoam",update:"none"};function eF(t){t.registerChartView(qB),t.registerSeriesModel(QB),t.registerProcessor(kB),t.registerVisual(NB),t.registerVisual(BB),t.registerLayout($B),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,GB),t.registerLayout(YB),t.registerCoordinateSystem("graphView",{dimensions:kT.dimensions,create:KB}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ut),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ut),t.registerAction(JB,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=jk(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function F0(t,e,r){var n=bo.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var Qh=function(t){re(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||tf,typeof r=="string"?o=F0(r,n,i):se(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(e1(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=F0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ae(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var y=new Ae(0,0,0,0);y.copy(_),o.push(y)}else{for(var b=!1,w=1/0,S=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(_)){var x=new Ae(0,0,0,0);x.copy(C),x.union(_),o[T]=x,b=!0;break}else if(l){u.copy(_),u.union(C);var D=_.width*_.height,A=C.width*C.height,M=u.width*u.height,R=M-D-A;R<w&&(w=R,S=T)}}if(l&&(o[S].union(_),b=!0),!b){var y=new Ae(0,0,0,0);y.copy(_),o.push(y)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&sr||!d)?h.getPrevPaintRect():null;v&&f(v);var p=d&&(h.__dirty&sr||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var m=c+1;m<o.length;)o[c].intersect(o[m])?(g=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var d=this.domBack;function v(p,g,m,_){if(o.clearRect(p,g,m,_),n&&n!=="transparent"){var y=void 0;if(Uf(n)){var b=n.global||n.__width===m&&n.__height===_;y=b&&n.__canvasGradient||dv(o,n,{x:0,y:0,width:m,height:_}),n.__canvasGradient=y,n.__width=m,n.__height=_}else xA(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,y=vv(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=y||n,o.fillRect(p,g,m,_),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(d,p,g,m,_),o.restore())}!i||u?v(0,0,s,l):i.length&&L(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},e}(Vr),V0=1e5,Pi=314159,uu=.01,tF=.001;function rF(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function nF(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var iF=function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=$({},n||{}),this.dpr=n.devicePixelRatio||tf,this._singleCanvas=a,this.root=e;var o=e.style;o&&(e1(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var d=new Qh(f,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Pi]=d,d.zlevel=Pi,s.push(Pi),this._domRoot=e}else{this._width=tu(e,0,n),this._height=tu(e,1,n);var u=this._domRoot=nF(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(V0)),a||(a=n.ctx,a.save()),Ui(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(V0)},t.prototype.paintOne=function(e,r){tT(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;ju(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Pi).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,h=function(p){var g=a[p],m=g.ctx,_=o&&g.createRepaintRects(e,r,d._width,d._height),y=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,w=b&&Date.now(),S=g.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,_);else if(y===g.__startIndex){var T=e[y];(!T.incremental||!T.notClear||n)&&g.clear(!1,S,_)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=g.__startIndex);var C,x=function(R){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=y;C<g.__endIndex;C++){var H=e[C];if(H.__inHover&&(c=!0),i._doPaintEl(H,g,o,R,k,C===g.__endIndex-1),b){var N=Date.now()-w;if(N>15)break}}k.prevElClipPaths&&m.restore()};if(_)if(_.length===0)C=g.__endIndex;else for(var D=d.dpr,A=0;A<_.length;++A){var M=_[A];m.save(),m.beginPath(),m.rect(M.x*D,M.y*D,M.width*D,M.height*D),m.clip(),x(M),m.restore()}else m.save(),x(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},d=this,v=0;v<a.length;v++)h(v);return he.wxa&&L(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Ui(s,e,a,o),e.setPrevPaintRect(l))}else Ui(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Pi);var n=this._layers[e];return n||(n=new Qh("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Qe(n,this._layerConfig[e],!0):this._layerConfig[e-uu]&&Qe(n,this._layerConfig[e-uu],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&rF(r)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+tF,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?uu:0),this._needsManuallyCompositing),f.__builtin__||dp("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&sr&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Qe(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+uu){var o=this._layers[a];Qe(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(ke(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=tu(a,0,i),r=tu(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(Pi).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Pi].dom;var r=new Qh("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Ui(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function vx(t){t.registerPainter("canvas",iF)}const $n=["#2563EB","#059669","#CA8A04","#9333EA","#0D9488","#65A30D","#7C3AED","#EA580C","#0284C7","#16A34A","#4F46E5","#D97706","#047857","#1D4ED8","#A16207","#7E22CE","#0F766E","#4D7C0F","#6D28D9","#C2410C","#0369A1","#15803D","#4338CA","#B45309","#0E7490"];function aF(){return[{itemStyle:{gapWidth:10},upperLabel:{show:!1}},{itemStyle:{borderColor:"#d3d3d3",borderWidth:5,gapWidth:1}},{colorSaturation:[.35,.5],itemStyle:{borderWidth:5,gapWidth:1,borderColorSaturation:.6}}]}const oF=fe({__name:"TreeMapView",props:an({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options"),n=Kv("main"),i=AT(n,[GT,$T,WN,eF,vx,sx],o=>{o.on("contextmenu",s=>{s.event.event.preventDefault();const l=s.data,u=new Set;l.moduleIndex&&u.add(l.moduleIndex);function f(c){c.children.forEach(h=>f(h)),c.moduleIndex&&u.add(c.moduleIndex)}f(l),r.value={...r.value,hiddenModules:[...r.value.hiddenModules,...Array.from(u)]}}),o.setOption({color:$n,tooltip:{formatter(s){const l=s.value,u=s.treePathInfo,f=[];for(let g=1;g<u.length;g++)f.push(u[g].name);const c=[];c.push('<div class="tooltip-title">'+Bt(f.length===1?f:f.slice(1).join("/"))+"</div>",`${oA(r.value.metric)}: `+dS((l/1024).toFixed(2))+" KB");const h=f.slice(1).join("/"),d=e.stats.moduleFileNames.findIndex(g=>g===h),p=(d>=0?e.stats.importGraph.edges.filter(([g,m])=>m===d):[]).map(g=>e.stats.moduleFileNames[g[0]]);return p.length&&(c.push('<div class="mt-2">Imported by:</div>',"<ul>"),p.length>8?(c.push(...p.slice(0,7).map(g=>`<li>${g}</li>`)),c.push(`and ${p.length-8} more`)):c.push(...p.map(g=>`<li>${g}</li>`)),c.push("</ul>")),c.join("")}},series:[{name:"Chunks",type:"treemap",visibleMin:300,label:{show:!0,formatter:"{b}"},upperLabel:{show:!0,height:30},itemStyle:{borderColor:"#fff"},levels:aF(),data:a.value}]})}),a=ge(()=>{const o=[];for(const u of e.stats.chunks){if(r.value.hiddenChunks.includes(u.fileName))continue;const f={value:0,name:u.fileName,path:u.fileName,children:[]};o.push(f);for(const c of u.modules){const h=c.fileNameIndex;if(r.value.hiddenModules.includes(h))continue;const d=e.stats.moduleFileNames[c.fileNameIndex].split("/");let v=f;for(let p=0;p<d.length;p+=1){const g=v.children.find(m=>m.name===d[p]);if(g)v=g;else{const m={name:d[p],path:d[p],value:mn(c.fileNameIndex,e.stats,r.value.metric)??0,children:[],moduleIndex:h};v.children.push(m),v=m}}}}function s(u){for(const f of u.children)s(f);u.children.length&&(u.value=u.children.reduce((f,c)=>f+c.value,0))}o.forEach(s);function l(u){for(const f of u.children)l(f);u.children.length===1&&(u.path=`${u.path}/${u.children[0].path}`,u.name=`${u.name}/${u.children[0].name}`,u.children=u.children[0].children)}return r.value.compact&&o.forEach(l),o});return rt(a,()=>{i.value?.setOption({series:[{data:a.value}]})}),(o,s)=>(j(),je("div",{ref_key:"main",ref:n},null,512))}});function vg(t){return t?t.flatMap(e=>e.type===qe?vg(e.children):[e]):[]}const sF=fe({name:"PrimitiveSlot",inheritAttrs:!1,setup(t,{attrs:e,slots:r}){return()=>{if(!r.default)return null;const n=vg(r.default()),i=n.findIndex(l=>l.type!==tt);if(i===-1)return n;const a=n[i];delete a.props?.ref;const o=a.props?pt(e,a.props):e,s=Nr({...a,props:{}},o);return n.length===1?s:(n[i]=s,n)}}}),lF=["area","img","input"],Ht=fe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(t,{attrs:e,slots:r}){const n=t.asChild?"template":t.as;return typeof n=="string"&&lF.includes(n)?()=>to(n,e):n!=="template"?()=>to(t.as,e,{default:r.default}):()=>to(sF,e,{default:r.default})}}),uF=fe({__name:"VisuallyHidden",props:{feature:{default:"focusable"},asChild:{type:Boolean},as:{default:"span"}},setup(t){return(e,r)=>(j(),de(P(Ht),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:ie(()=>[Ee(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}});function px(t){return If()?(Fv(t),!0):!1}function fF(t){let e=!1,r;const n=Bv(!0);return(...i)=>(e||(r=n.run(()=>t(...i)),e=!0),r)}function cF(t){let e=0,r,n;const i=()=>{e-=1,n&&e<=0&&(n.stop(),r=void 0,n=void 0)};return(...a)=>(e+=1,n||(n=Bv(!0),r=n.run(()=>t(...a))),px(i),r)}const pa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hF=t=>typeof t<"u",dF=Object.prototype.toString,vF=t=>dF.call(t)==="[object Object]",H0=pF();function pF(){var t,e;return pa&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function gF(t){return gt()}function Jh(t){return Array.isArray(t)?t:[t]}const mF=At;function yF(t,e){gF()&&ol(t,e)}function _F(t,e,r){return rt(t,e,{...r,immediate:!0})}const pg=pa?window:void 0;function Co(t){var e;const r=At(t);return(e=r?.$el)!=null?e:r}function gg(...t){const e=[],r=()=>{e.forEach(s=>s()),e.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=ge(()=>{const s=Jh(At(t[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=_F(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>Co(u)))!=null?l:[pg].filter(u=>u!=null),Jh(At(i.value?t[1]:t[0])),Jh(P(i.value?t[2]:t[1])),At(i.value?t[3]:t[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=vF(f)?{...f}:f;e.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return px(r),o}function bF(){const t=il(!1),e=gt();return e&&nn(()=>{t.value=!0},e),t}function wF(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function SF(...t){let e,r,n={};t.length===3?(e=t[0],r=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],n=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:i=pg,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=n,l=wF(e);return gg(i,a,f=>{f.repeat&&At(s)||l(f)&&r(f)},o)}function TF(t){return JSON.parse(JSON.stringify(t))}function hc(t,e,r,n={}){var i,a,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:f=!1,defaultValue:c,shouldEmit:h}=n,d=gt(),v=r||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((o=(a=d?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(d?.proxy));let p=u;e||(e="modelValue"),p=p||`update:${e.toString()}`;const g=y=>s?typeof s=="function"?s(y):TF(y):y,m=()=>hF(t[e])?g(t[e]):c,_=y=>{h?h(y)&&v(p,y):v(p,y)};if(l){const y=m(),b=we(y);let w=!1;return rt(()=>t[e],S=>{w||(w=!0,b.value=g(S),Cr(()=>w=!1))}),rt(b,S=>{!w&&(S!==t[e]||f)&&_(S)},{deep:f}),b}else return ge({get(){return m()},set(y){_(y)}})}function Do(t,e){const r=typeof t=="string"&&!e?`${t}Context`:e,n=Symbol(r);return[o=>{const s=Yi(n,o);if(s||s===null)return s;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(Ff(n,o),o)]}function z0(t){return typeof t=="string"?`'${t}'`:new xF().serialize(t)}const xF=function(){class t{#e=new Map;compare(r,n){const i=typeof r,a=typeof n;return i==="string"&&a==="string"?r.localeCompare(n):i==="number"&&a==="number"?r-n:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(n,!0))}serialize(r,n){if(r===null)return"null";switch(typeof r){case"string":return n?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const n=Object.prototype.toString.call(r);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),r);const i=r.constructor,a=i===Object||i===void 0?"":i.name;if(a!==""&&globalThis[a]===i)return this.serializeBuiltInType(a,r);if(typeof r.toJSON=="function"){const o=r.toJSON();return a+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(a,Object.entries(r))}serializeBuiltInType(r,n){const i=this["$"+r];if(i)return i.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(r,n.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,n){const i=Array.from(n).sort((o,s)=>this.compare(o[0],s[0]));let a=`${r}{`;for(let o=0;o<i.length;o++){const[s,l]=i[o];a+=`${this.serialize(s,!0)}:${this.serialize(l)}`,o<i.length-1&&(a+=",")}return a+"}"}$object(r){let n=this.#e.get(r);return n===void 0&&(this.#e.set(r,`#${this.#e.size}`),n=this.serializeObject(r),this.#e.set(r,n)),n}$function(r){const n=Function.prototype.toString.call(r);return n.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(r){let n="[";for(let i=0;i<r.length;i++)n+=this.serialize(r[i]),i<r.length-1&&(n+=",");return n+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((n,i)=>this.compare(n,i)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(r){return`${e}(${r})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(r){return`${e}[${r.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(r){return`${e}[${r.join("n,")}${r.length>0?"n":""}]`};return t}();function wf(t,e){return t===e||z0(t)===z0(e)}function CF(t){return t==null}function DF(t,e){return CF(t)?!1:Array.isArray(t)?t.some(r=>wf(r,e)):wf(t,e)}function IF({type:t,defaultValue:e,modelValue:r}){const n=r||e;return r!==void 0||e!==void 0?Array.isArray(n)?"multiple":"single":t??"single"}function AF({type:t,defaultValue:e,modelValue:r}){return t||IF({type:t,defaultValue:e,modelValue:r})}function MF({type:t,defaultValue:e}){return e!==void 0?e:t==="single"?void 0:[]}function EF(t,e){const r=ge(()=>AF(t)),n=hc(t,"modelValue",e,{defaultValue:MF(t),passive:t.modelValue===void 0,deep:!0});function i(o){if(r.value==="single")n.value=wf(o,n.value)?void 0:o;else{const s=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(DF(s,o)){const l=s.findIndex(u=>wf(u,o));s.splice(l,1)}else s.push(o);n.value=s}}const a=ge(()=>r.value==="single");return{modelValue:n,changeModelValue:i,isSingle:a}}const[mg,LH]=Do("ConfigProvider");function LF(t){const e=mg({dir:we("ltr")});return ge(()=>t?.value||e.dir?.value||"ltr")}function it(){const t=gt(),e=we(),r=ge(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Co(e)),n=Object.assign({},t.exposed),i={};for(const o in t.props)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>t.props[o]});if(Object.keys(n).length>0)for(const o in n)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>n[o]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>t.vnode.el}),t.exposed=i;function a(o){e.value=o,o&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),t.exposed=i)}return{forwardRef:a,currentRef:e,currentElement:r}}const[dc,PF]=Do("AccordionRoot"),RF=fe({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{dir:i,disabled:a,unmountOnHide:o}=mo(r),s=LF(i),{modelValue:l,changeModelValue:u,isSingle:f}=EF(r,n),{forwardRef:c,currentElement:h}=it();return PF({disabled:a,direction:s,orientation:r.orientation,parentElement:h,isSingle:f,collapsible:r.collapsible,modelValue:l,changeModelValue:u,unmountOnHide:o}),(d,v)=>(j(),de(P(Ht),{ref:P(c),"as-child":d.asChild,as:d.as},{default:ie(()=>[Ee(d.$slots,"default",{modelValue:P(l)})]),_:3},8,["as-child","as"]))}}),[gx,OF]=Do("CollapsibleRoot"),kF=fe({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(t,{expose:e,emit:r}){const n=t,a=hc(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),{disabled:o,unmountOnHide:s}=mo(n);return OF({contentId:"",disabled:o,open:a,unmountOnHide:s,onOpenToggle:()=>{o.value||(a.value=!a.value)}}),e({open:a}),it(),(l,u)=>(j(),de(P(Ht),{as:l.as,"as-child":n.asChild,"data-state":P(a)?"open":"closed","data-disabled":P(o)?"":void 0},{default:ie(()=>[Ee(l.$slots,"default",{open:P(a)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),NF=["INPUT","TEXTAREA"];function BF(t,e,r,n={}){if(!e||n.enableIgnoredElement&&NF.includes(e.nodeName))return null;const{arrowKeyOptions:i="both",attributeName:a="[data-reka-collection-item]",itemsArray:o=[],loop:s=!0,dir:l="ltr",preventScroll:u=!0,focus:f=!1}=n,[c,h,d,v,p,g]=[t.key==="ArrowRight",t.key==="ArrowLeft",t.key==="ArrowUp",t.key==="ArrowDown",t.key==="Home",t.key==="End"],m=d||v,_=c||h;if(!p&&!g&&(!m&&!_||i==="vertical"&&_||i==="horizontal"&&m))return null;const y=r?Array.from(r.querySelectorAll(a)):o;if(!y.length)return null;u&&t.preventDefault();let b=null;return _||m?b=mx(y,e,{goForward:m?v:l==="ltr"?c:h,loop:s}):p?b=y.at(0)||null:g&&(b=y.at(-1)||null),f&&b?.focus(),b}function mx(t,e,r,n=t.length){if(--n===0)return null;const i=t.indexOf(e),a=r.goForward?i+1:i-1;if(!r.loop&&(a<0||a>=t.length))return null;const o=(a+t.length)%t.length,s=t[o];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?mx(t,s,r,n):s:null}const[yg,FF]=Do("AccordionItem"),VF=fe({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t,{expose:e}){const r=t,n=dc(),i=ge(()=>n.isSingle.value?r.value===n.modelValue.value:Array.isArray(n.modelValue.value)&&n.modelValue.value.includes(r.value)),a=ge(()=>n.disabled.value||r.disabled),o=ge(()=>a.value?"":void 0),s=ge(()=>i.value?"open":"closed");e({open:i,dataDisabled:o});const{currentRef:l,currentElement:u}=it();FF({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:"",currentRef:l,currentElement:u,value:ge(()=>r.value)});function f(c){const h=c.target;if(Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(p=>p===h)===-1)return null;BF(c,h,n.parentElement.value,{arrowKeyOptions:n.orientation,dir:n.direction.value,focus:!0})}return(c,h)=>(j(),de(P(kF),{"data-orientation":P(n).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:r.as,"as-child":r.asChild,"unmount-on-hide":P(n).unmountOnHide.value,onKeydown:sp(f,["up","down","left","right","home","end"])},{default:ie(()=>[Ee(c.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}});let HF=0;function tl(t,e="reka"){const r=mg({useId:void 0});return Object.hasOwn(eA,"useId")?`${e}-${Ob?.()}`:r.useId?`${e}-${r.useId()}`:`${e}-${++HF}`}function zF(t,e){const r=we(t);function n(a){return e[r.value][a]??r.value}return{state:r,dispatch:a=>{r.value=n(a)}}}function $F(t,e){const r=we({}),n=we("none"),i=we(t),a=t.value?"mounted":"unmounted";let o;const s=e.value?.ownerDocument.defaultView??pg,{state:l,dispatch:u}=zF(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=g=>{if(pa){const m=new CustomEvent(g,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(m)}};rt(t,async(g,m)=>{const _=m!==g;if(await Cr(),_){const y=n.value,b=fu(e.value);g?(u("MOUNT"),f("enter"),b==="none"&&f("after-enter")):b==="none"||b==="undefined"||r.value?.display==="none"?(u("UNMOUNT"),f("leave"),f("after-leave")):m&&y!==b?(u("ANIMATION_OUT"),f("leave")):(u("UNMOUNT"),f("after-leave"))}},{immediate:!0});const c=g=>{const m=fu(e.value),_=m.includes(g.animationName),y=l.value==="mounted"?"enter":"leave";if(g.target===e.value&&_&&(f(`after-${y}`),u("ANIMATION_END"),!i.value)){const b=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=s?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=b)})}g.target===e.value&&m==="none"&&u("ANIMATION_END")},h=g=>{g.target===e.value&&(n.value=fu(e.value))},d=rt(e,(g,m)=>{g?(r.value=getComputedStyle(g),g.addEventListener("animationstart",h),g.addEventListener("animationcancel",c),g.addEventListener("animationend",c)):(u("ANIMATION_END"),o!==void 0&&s?.clearTimeout(o),m?.removeEventListener("animationstart",h),m?.removeEventListener("animationcancel",c),m?.removeEventListener("animationend",c))},{immediate:!0}),v=rt(l,()=>{const g=fu(e.value);n.value=l.value==="mounted"?g:"none"});return fa(()=>{d(),v()}),{isPresent:ge(()=>["mounted","unmountSuspended"].includes(l.value))}}function fu(t){return t&&getComputedStyle(t).animationName||"none"}const _g=fe({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:r}){const{present:n,forceMount:i}=mo(t),a=we(),{isPresent:o}=$F(n,a);r({present:o});let s=e.default({present:o.value});s=vg(s||[]);const l=gt();if(s&&s?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
58
+ `:"<br/>",m=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,d,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],d,null,h)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Pe(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),d=this._renderMode,v=r.positionDefault,p=qo([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(f,c),_=new _h;m.marker=_.makeTooltipMarker("item",Ws(m.color),d);var y=jy(u.formatTooltip(f,!1,c)),b=p.get("order"),w=p.get("valueFormatter"),S=y.frag,T=S?t_(w?$({valueFormatter:w},S):S,_,d,b,a.get("useUTC"),p.get("textStyle")):y.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,T,m,C,r.offsetX,r.offsetY,r.position,r.target,_)}),i({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Pe(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(ae(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Se(l),l.content=Bt(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var d=r.positionDefault,v=qo(c,this._tooltipModel,d?{position:d}:null),p=v.get("content"),g=Math.random()+"",m=new _h;this._showOrMove(v,function(){var _=Se(v.get("formatterParams")||{});this._showTooltipContent(v,p,_,g,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var h=r.get("formatter");l=l||r.get("position");var d=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(h)if(ae(h)){var g=r.ecModel.get("useUTC"),m=Z(i)?i[0]:i,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=h,_&&(d=hS(m.axisValue,d,g)),d=pS(d,i,!0)}else if(Ie(h)){var y=De(function(b,w){b===this._ticket&&(c.setContent(w,f,r,p,l),this._updatePosition(r,l,o,s,c,i,u))},this);this._ticket=a,d=h(i,a,y)}else d=h;c.setContent(d,f,r,p,l),c.show(r,p),this._updatePosition(r,l,o,s,c,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Z(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var c=o.getSize(),h=r.get("align"),d=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ie(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),Z(n))i=ht(n[0],u),a=ht(n[1],f);else if(se(n)){var p=n;p.width=c[0],p.height=c[1];var g=oa(p,{width:u,height:f});i=g.x,a=g.y,h=null,d=null}else if(ae(n)&&l){var m=_N(n,v,c,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=mN(i,a,o,u,f,h?null:20,d?null:20);i=m[0],a=m[1]}if(h&&(i-=f0(h)?c[0]/2:h==="right"?c[0]:0),d&&(a-=f0(d)?c[1]/2:d==="bottom"?c[1]:0),FT(r)){var m=yN(i,a,o,u,f);i=m[0],a=m[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&L(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&L(u,function(h,d){var v=c[d]||{},p=h.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&p.length===g.length,o&&L(p,function(m,_){var y=g[_];o=o&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),a&&L(h.seriesDataIndices,function(m){var _=m.seriesIndex,y=n[_],b=a[_];y&&b&&b.data!==y.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){he.node||!n.getDom()||(fv(this,"_updatePosition"),this._tooltipContent.dispose(),bv("itemTooltip",n))},e.type="tooltip",e}(nn);function qo(t,e,r){var n=e.ecModel,i;r?(i=new Ge(r,n,n),i=new Ge(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Ge&&(o=o.get("tooltip",!0)),ae(o)&&(o={formatter:o}),o&&(i=new Ge(o,i,n)))}return i}function u0(t,e){return t.dispatchAction||De(e.dispatchAction,e)}function mN(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function yN(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function _N(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function f0(t){return t==="center"||t==="middle"}function bN(t,e,r){var n=Tp(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=vl(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=Pe(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function $T(t){ho(qk),t.registerComponentModel(nN),t.registerComponentView(gN),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ut),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ut)}var Qs=L,wN=se,yf=-1,sg=function(){function t(e){var r=e.mappingMethod,n=e.type,i=this.option=Se(e);this.type=n,this.mappingMethod=r,this._normalizeData=xN[r];var a=t.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(kh(i),SN(i)):r==="category"?i.categories?TN(i):kh(i,!0):(Br(r!=="linear"||i.dataExtent),kh(i))}return t.prototype.mapValueToVisual=function(e){var r=this._normalizeData(e);return this._normalizedToVisual(r,e)},t.prototype.getNormalizer=function(){return De(this._normalizeData,this)},t.listVisualTypes=function(){return Je(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,r,n){se(e)?L(e,r,n):r.call(n,e)},t.mapVisual=function(e,r,n){var i,a=Z(e)?[]:se(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var r={},n;return e&&Qs(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(r[a]=e[a],n=!0)}),n?r:null},t.prepareVisualTypes=function(e){if(Z(e))e=e.slice();else if(wN(e)){var r=[];Qs(e,function(n,i){r.push(i)}),e=r}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,r){return r==="color"?!!(e&&e.indexOf(r)===0):e===r},t.findPieceIndex=function(e,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===e||ae(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(ou(c[1],e,f[1]))return o}else if(f[1]===1/0){if(ou(c[0],f[0],e))return o}else if(ou(c[0],f[0],e)&&ou(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?r.length-1:e===-1/0?0:i;function h(d,v){var p=Math.abs(d-e);p<a&&(a=p,i=v)}},t.visualHandlers={color:{applyVisual:jo("color"),getColorMapper:function(){var e=this.option;return De(e.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),ss.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=Nc(r,e.parsedVisual,i),a?i:ri(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ri(Nc(e,this.option.parsedVisual),"rgba")},category:ss,piecewise:function(e,r){var n=Sv.call(this,r);return n==null&&(n=ri(Nc(e,this.option.parsedVisual),"rgba")),n},fixed:Oi}},colorHue:au(function(e,r){return ys(e,r)}),colorSaturation:au(function(e,r){return ys(e,null,r)}),colorLightness:au(function(e,r){return ys(e,null,null,r)}),colorAlpha:au(function(e,r){return g1(e,r)}),decal:{applyVisual:jo("decal"),_normalizedToVisual:{linear:null,category:ss,piecewise:null,fixed:null}},opacity:{applyVisual:jo("opacity"),_normalizedToVisual:wv([0,1])},liftZ:{applyVisual:jo("liftZ"),_normalizedToVisual:{linear:Oi,category:Oi,piecewise:Oi,fixed:Oi}},symbol:{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:c0,category:ss,piecewise:function(e,r){var n=Sv.call(this,r);return n==null&&(n=c0.call(this,e)),n},fixed:Oi}},symbolSize:{applyVisual:jo("symbolSize"),_normalizedToVisual:wv([0,1])}},t}();function SN(t){var e=t.pieceList;t.hasSpecialVisual=!1,L(e,function(r,n){r.originIndex=n,r.visual!=null&&(t.hasSpecialVisual=!0)})}function TN(t){var e=t.categories,r=t.categoryMap={},n=t.visual;if(Qs(e,function(o,s){r[o]=s}),!Z(n)){var i=[];se(n)?Qs(n,function(o,s){var l=r[s];i[l??yf]=o}):i[yf]=n,n=UT(t,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete r[e[a]],e.pop())}function kh(t,e){var r=t.visual,n=[];se(r)?Qs(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(t.type)&&(n[1]=n[0]),UT(t,n)}function au(t){return{applyVisual:function(e,r,n){var i=this.mapValueToVisual(e);n("color",t(r("color"),i))},_normalizedToVisual:wv([0,1])}}function c0(t){var e=this.option.visual;return e[Math.round(aa(t,[0,1],[0,e.length-1],!0))]||{}}function jo(t){return function(e,r,n){n(t,this.mapValueToVisual(e))}}function ss(t){var e=this.option.visual;return e[this.option.loop&&t!==yf?t%e.length:t]}function Oi(){return this.option.visual[0]}function wv(t){return{linear:function(e){return aa(e,t,this.option.visual,!0)},category:ss,piecewise:function(e,r){var n=Sv.call(this,r);return n==null&&(n=aa(e,t,this.option.visual,!0)),n},fixed:Oi}}function Sv(t){var e=this.option,r=e.pieceList;if(e.hasSpecialVisual){var n=sg.findPieceIndex(t,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function UT(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=Me(e,function(r){var n=Jr(r);return n||[0,0,0,1]})),e}var xN={linear:function(t){return aa(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,r=sg.findPieceIndex(t,e,!0);if(r!=null)return aa(r,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??yf},fixed:ut};function ou(t,e,r){return t?e<=r:e<r}var CN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(Be),DN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ye(r.get("textBaseline"),r.get("textVerticalAlign")),f=new Et({style:rn(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=r.get("subtext"),d=new Et({style:rn(s,{text:h,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);f.silent=!v&&!g,d.silent=!p&&!g,v&&f.on("click",function(){iv(v,"_"+r.get("target"))}),p&&d.on("click",function(){iv(p,"_"+r.get("subtarget"))}),Pe(f).eventData=Pe(d).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),h&&a.add(d);var m=a.getBoundingRect(),_=r.getBoxLayoutParams();_.width=m.width,_.height=m.height;var y=oa(_,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),a.x=y.x,a.y=y.y,a.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),d.setStyle(b),m=a.getBoundingRect();var w=y.margin,S=r.getItemStyle(["color","opacity"]);S.fill=r.get("backgroundColor");var T=new Mt({shape:{x:m.x-w[3],y:m.y-w[0],width:m.width+w[1]+w[3],height:m.height+w[0]+w[2],r:r.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e}(nn);function GT(t){t.registerComponentModel(CN),t.registerComponentView(DN)}function IN(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=co(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(co(t,e,r[o]));return a.join(" ")}}var AN=function(t){re(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=yl(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=MN,this._symbolType=r,this.add(s)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$s(this.childAt(0))},e.prototype.downplay=function(){Us(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(d):ui(h,d,s,n),eP(h)}if(this._updateCommon(r,n,l,i,a),u){var h=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Bp(h,d,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,c,h,d,v,p,g,m;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,c=a.selectItemStyle,h=a.focus,d=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,m=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var _=a&&a.itemModel?a.itemModel:r.getItemModel(n),y=_.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),c=_.getModel(["select","itemStyle"]).getItemStyle(),f=_.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),d=y.get("blurScope"),v=y.get("disabled"),p=gl(_),g=y.getShallow("scale"),m=_.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=uc(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),m&&s.attr("cursor",m);var S=r.getItemVisual(n,"style"),T=S.fill;if(s instanceof li){var C=s.style;s.useStyle($({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},S))}else s.__isEmptyBrush?s.useStyle($({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),D=this._z2;x!=null?D==null&&(this._z2=s.z2,s.z2+=x):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;ic(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:S.opacity});function M(H){return A?r.getName(H):IN(r,H)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var k=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;R.scaleX=this._sizeX*k,R.scaleY=this._sizeY*k,this.setSymbolScale(1),Lp(this,h,d,v)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Pe(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&sf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();sf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return Qp(r.getItemVisual(n,"symbolSize"))},e}(ft);function MN(t,e){this.parent.drift(t,e)}function Nh(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function h0(t){return t!=null&&!se(t)&&(t={isIgnore:t}),t||{}}function d0(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:gl(e),cursorStyle:e.get("cursor")}}var EN=function(){function t(e){this.group=new ft,this._SymbolCtor=e||AN}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=h0(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=d0(e),u={disableAnimation:s},f=r.getSymbolPoint||function(c){return e.getItemLayout(c)};a||n.removeAll(),e.diff(a).add(function(c){var h=f(c);if(Nh(e,h,c,r)){var d=new o(e,c,l,u);d.setPosition(h),e.setItemGraphicEl(c,d),n.add(d)}}).update(function(c,h){var d=a.getItemGraphicEl(h),v=f(c);if(!Nh(e,v,c,r)){n.remove(d);return}var p=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(e,c,l,u),d.setPosition(v);else{d.updateData(e,c,l,u);var m={x:v[0],y:v[1]};s?d.attr(m):ui(d,m,i)}n.add(d),e.setItemGraphicEl(c,d)}).remove(function(c){var h=a.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=d0(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=h0(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(Nh(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){rc(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t}(),v0=ha.prototype,Bh=Jf.prototype,WT=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){re(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(WT);function Fh(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var LN=function(t){re(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WT},e.prototype.buildPath=function(r,n){Fh(n)?v0.buildPath.call(this,r,n):Bh.buildPath.call(this,r,n)},e.prototype.pointAt=function(r){return Fh(this.shape)?v0.pointAt.call(this,r):Bh.pointAt.call(this,r)},e.prototype.tangentAt=function(r){var n=this.shape,i=Fh(n)?[n.x2-n.x1,n.y2-n.y1]:Bh.tangentAt.call(this,r);return So(i,i)},e}(Ye),Vh=["fromSymbol","toSymbol"];function p0(t){return"_"+t+"Type"}function g0(t,e,r){var n=e.getItemVisual(r,t);if(!n||n==="none")return n;var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Qp(i),u=uc(o||0,l);return n+l+u+(a||"")+(s||"")}function m0(t,e,r){var n=e.getItemVisual(r,t);if(!(!n||n==="none")){var i=e.getItemVisual(r,t+"Size"),a=e.getItemVisual(r,t+"Rotate"),o=e.getItemVisual(r,t+"Offset"),s=e.getItemVisual(r,t+"KeepAspect"),l=Qp(i),u=uc(o||0,l),f=yl(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=t,f}}function PN(t){var e=new LN({name:"line",subPixelOptimize:!0});return Tv(e.shape,t),e}function Tv(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var r=e[2];r?(t.cpx1=r[0],t.cpy1=r[1]):(t.cpx1=NaN,t.cpy1=NaN)}var RN=function(t){re(e,t);function e(r,n,i){var a=t.call(this)||this;return a._createLine(r,n,i),a}return e.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=PN(o);s.shape.percent=0,Bp(s,{shape:{percent:1}},a,n),this.add(s),L(Vh,function(l){var u=m0(l,r,n);this.add(u),this[p0(l)]=g0(l,r,n)},this),this._updateCommonStl(r,n,i)},e.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Tv(l.shape,s),ui(o,l,a,n),L(Vh,function(u){var f=g0(u,r,n),c=p0(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=m0(u,r,n);this.add(h)}this[c]=f},this),this._updateCommonStl(r,n,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,c=i&&i.emphasisDisabled,h=i&&i.focus,d=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),h=p.get("focus"),d=p.get("blurScope"),f=gl(v)}var g=r.getItemVisual(n,"style"),m=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,L(Vh,function(S){var T=this.childOfName(S);if(T){T.setColor(m),T.style.opacity=g.opacity;for(var C=0;C<tn.length;C++){var x=tn[C],D=o.getState(x);if(D){var A=D.style||{},M=T.ensureState(x),R=M.style||(M.style={});A.stroke!=null&&(R[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(R.opacity=A.opacity)}}T.markRedraw()}},this);var _=a.getRawValue(n);ic(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(S,T){return a.getFormattedLabel(S,T,r.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?C1(_):_)+""});var y=this.getTextContent();if(y){var b=f.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=b.get("position")||"middle";var w=b.get("distance");Z(w)||(w=[w,w]),y.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Lp(this,h,d,c)},e.prototype.highlight=function(){$s(this)},e.prototype.downplay=function(){Us(this)},e.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},e.prototype.setLinePoints=function(r){var n=this.childOfName("line");Tv(n.shape,r),n.dirty()},e.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=Fi([],c,f);So(h,h);function d(D,A){var M=D.__specifiedRotation;if(M==null){var R=l.tangentAt(A);D.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else D.attr("rotation",M)}if(n&&(n.setPosition(f),d(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(c),d(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,p=void 0,g=a.__labelDistance,m=g[0]*o,_=g[1]*o,y=u/2,b=l.tangentAt(y),w=[b[1],-b[0]],S=l.pointAt(y);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var T=b[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(b[1],b[0]);c[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var x=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-_,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=_,p="top";break;default:x=0,p="middle"}switch(a.__position){case"end":a.x=h[0]*m+c[0],a.y=h[1]*_+c[1],v=h[0]>.8?"left":h[0]<-.8?"right":"center",p=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":a.x=-h[0]*m+f[0],a.y=-h[1]*_+f[1],v=h[0]>.8?"right":h[0]<-.8?"left":"center",p=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=m*T+f[0],a.y=f[1]+x,v=b[0]<0?"right":"left",a.originX=-m*T,a.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=S[0],a.y=S[1]+x,v="center",a.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-m*T+c[0],a.y=c[1]+x,v=b[0]>=0?"right":"left",a.originX=m*T,a.originY=-x;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||v})}},e}(ft),ON=function(){function t(e){this.group=new ft,this._LineCtor=e||RN}return t.prototype.updateData=function(e){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=e,a||i.removeAll();var o=y0(e);e.diff(a).add(function(s){r._doAdd(e,s,o)}).update(function(s,l){r._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(r,n){r.updateLayout(e,n)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=y0(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r){this._progressiveEls=[];function n(s){!s.isGroup&&!kN(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=r.getItemLayout(i);if(Hh(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){rc(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,r,n){var i=e.getItemLayout(r);if(Hh(i)){var a=new this._LineCtor(e,r,n);e.setItemGraphicEl(r,a),this.group.add(a)}},t.prototype._doUpdate=function(e,r,n,i,a){var o=e.getItemGraphicEl(n);if(!Hh(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},t}();function kN(t){return t.animators&&t.animators.length>0}function y0(t){var e=t.hostModel,r=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:gl(e)}}function _0(t){return isNaN(t[0])||isNaN(t[1])}function Hh(t){return t&&!_0(t[0])&&!_0(t[1])}var NN=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},xv=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Z(n)&&L(n,function(a,o){ae(a)&&(a={type:a}),n[o]=Qe(a,NN(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&Sp(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=me(),s=Me(a,function(l){return(ae(l)||et(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ge(l,this,this.ecModel))},this);this._data=or(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;L(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ke(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(Be),Pa=Ze,Cv=L,su=ft,YT=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new su),this.group.add(this._selectorGroup=new su),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=r.getBoxLayoutParams(),c={width:i.getWidth(),height:i.getHeight()},h=r.get("padding"),d=oa(f,c,h),v=this.layoutInner(r,o,d,a,l,u),p=oa(Ke({width:v.width,height:v.height},f),c,h);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rN(v,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=me(),c=n.get("selectedMode"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Cv(n.getData(),function(d,v){var p=d.get("name");if(!this.newlineDisabled&&(p===""||p===`
59
+ `)){var g=new su;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!f.get(p))if(m){var _=m.getData(),y=_.getVisual("legendLineStyle")||{},b=_.getVisual("legendIcon"),w=_.getVisual("style"),S=this._createItem(m,p,v,d,n,r,y,w,b,c,a);S.on("click",Pa(b0,p,null,a,h)).on("mouseover",Pa(Dv,m.name,null,a,h)).on("mouseout",Pa(Iv,m.name,null,a,h)),i.ssr&&S.eachChild(function(T){var C=Pe(T);C.seriesIndex=m.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(T){if(!f.get(p)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(p))return;var x=C.indexOfName(p),D=C.getItemVisual(x,"style"),A=C.getItemVisual(x,"legendIcon"),M=Jr(D.fill);M&&M[3]===0&&(M[3]=.2,D=$($({},D),{fill:ri(M,"rgba")}));var R=this._createItem(T,p,v,d,n,r,{},D,A,c,a);R.on("click",Pa(b0,null,p,a,h)).on("mouseover",Pa(Dv,null,p,a,h)).on("mouseout",Pa(Iv,null,p,a,h)),i.ssr&&R.eachChild(function(k){var H=Pe(k);H.seriesIndex=T.seriesIndex,H.dataIndex=v,H.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Cv(r,function(u){var f=u.type,c=new Et({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(c);var h=n.getModel("selectorLabel"),d=n.getModel(["emphasis","selectorLabel"]);ic(c,{normal:h,emphasis:d},{defaultText:u.title}),Qd(c)})},e.prototype._createItem=function(r,n,i,a,o,s,l,u,f,c,h){var d=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),_=a.get("symbolKeepAspect"),y=a.get("icon");f=y||f||"roundRect";var b=BN(f,a,l,u,d,g,h),w=new su,S=a.getModel("textStyle");if(Ie(r.getLegendIcon)&&(!y||y==="inherit"))w.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:f,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:_}));else{var T=y==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;w.add(FN({itemWidth:v,itemHeight:p,icon:f,iconRotate:T,itemStyle:b.itemStyle,symbolKeepAspect:_}))}var C=s==="left"?v+5:-5,x=s,D=o.get("formatter"),A=n;ae(D)&&D?A=D.replace("{name}",n??""):Ie(D)&&(A=D(n));var M=g?S.getTextColor():a.get("inactiveColor");w.add(new Et({style:rn(S,{text:A,x:C,y:p/2,fill:M,align:x,verticalAlign:"middle"},{inheritColor:M})}));var R=new Mt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),k=a.getModel("tooltip");return k.get("show")&&tc({el:R,componentModel:o,itemName:n,itemTooltipOption:k.option}),w.add(R),w.eachChild(function(H){H.silent=!0}),R.silent=!c,this.getContentGroup().add(w),Qd(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xs(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){xs("horizontal",u,r.get("selectorItemGap",!0));var h=u.getBoundingRect(),d=[-h.x,-h.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",_=p===0?"y":"x";s==="end"?d[p]+=f[g]+v:c[p]+=h[g]+v,d[1-p]+=f[m]/2-h[m]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var y={x:0,y:0};return y[g]=f[g]+v+h[g],y[m]=Math.max(f[m],h[m]),y[_]=Math.min(0,h[_]+d[1-p]),y}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(nn);function BN(t,e,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),Cv(g,function(_,y){g[y]==="inherit"&&(g[y]=m[y])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=t.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:pv(c,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var h=e.getModel("lineStyle"),d=h.getLineStyle();if(s(d,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),d.stroke==="auto"&&(d.stroke=n.fill),!a){var v=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=h.get("inactiveColor"),d.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function FN(t){var e=t.icon||"roundRect",r=yl(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return r.setStyle(t.itemStyle),r.rotation=(t.iconRotate||0)*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function b0(t,e,r,n){Iv(t,e,r,n),r.dispatchAction({type:"legendToggleSelect",name:t??e}),Dv(t,e,r,n)}function XT(t){for(var e=t.getZr().storage.getDisplayList(),r,n=0,i=e.length;n<i&&!(r=e[n].states.emphasis);)n++;return r&&r.hoverLayer}function Dv(t,e,r,n){XT(r)||r.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:n})}function Iv(t,e,r,n){XT(r)||r.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:n})}function VN(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(r){for(var n=0;n<e.length;n++)if(!e[n].isSelected(r.name))return!1;return!0})}function Zo(t,e,r){var n=t==="allSelect"||t==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:e},function(s){n?s[t]():s[t](e.name),w0(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){L(i,function(l,u){s[l?"select":"unSelect"](u)}),w0(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function w0(t,e){var r=e||{};return L(t.getData(),function(n){var i=n.get("name");if(!(i===`
60
+ `||i==="")){var a=t.isSelected(i);ia(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function HN(t){t.registerAction("legendToggleSelect","legendselectchanged",Ze(Zo,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Ze(Zo,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Ze(Zo,"inverseSelect")),t.registerAction("legendSelect","legendselected",Ze(Zo,"select")),t.registerAction("legendUnSelect","legendunselected",Ze(Zo,"unSelect"))}function KT(t){t.registerComponentModel(xv),t.registerComponentView(YT),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,VN),t.registerSubTypeDefaulter("legend",function(){return"plain"}),HN(t)}var zN=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Wp(r);t.prototype.init.call(this,r,n,i),S0(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),S0(this,this.option,r)},e.type="legend.scroll",e.defaultOption=LP(xv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(xv);function S0(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,Ys(e,r,{type:"box",ignoreSize:!!i})}var T0=ft,zh=["width","height"],$h=["x","y"],$N=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new T0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new T0)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=Z(c)?c:[c,c];v("pagePrev",0);var d=n.getModel("pageTextStyle");f.add(new Et({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",_=zp(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:De(u._pageGo,u,m,n,a)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});_.name=p,f.add(_)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=zh[u],c=$h[u],h=zh[1-u],d=$h[1-u];o&&xs("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Se(i);o&&(m[f]=i[f]-p[f]-v);var _=this._layoutContentAndController(r,a,m,u,f,h,d,c);if(o){if(s==="end")g[u]+=_[f]+v;else{var y=p[f]+v;g[u]-=y,_[c]-=y}_[f]+=p[f]+v,g[1-u]+=_[d]+_[h]/2-p[h]/2,_[h]=Math.max(_[h],p[h]),_[d]=Math.min(_[d],p[d]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;xs(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),xs("horizontal",h,r.get("pageButtonItemGap",!0));var d=f.getBoundingRect(),v=h.getBoundingRect(),p=this._showController=d[o]>i[o],g=[-d.x,-d.y];n||(g[a]=f[u]);var m=[0,0],_=[-v.x,-v.y],y=ye(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?_[a]+=i[o]-v[o]:m[a]+=v[o]+y}_[1-a]+=d[s]/2-v[s]/2,f.setPosition(g),c.setPosition(m),h.setPosition(_);var w={x:0,y:0};if(w[o]=p?i[o]:d[o],w[s]=Math.max(d[s],v[s]),w[l]=Math.min(0,v[l]+_[1-a]),c.__rectSize=i[o],p){var S={x:0,y:0};S[o]=Math.max(i[o]-v[o]-y,0),S[s]=w[s],c.setClipPath(new Mt({shape:S})),c.__rectSize=S[o]}else h.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&ui(f,{x:T.contentPosition[0],y:T.contentPosition[1]},p?r:null),this._updatePageInfoView(r,T),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;L(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,d=i.childOfName(f);d&&(d.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),d.cursor=h?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",ae(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=zh[o],l=$h[o],u=this._findTargetItemIndex(n),f=i.children(),c=f[u],h=f.length,d=h?1:0,v={contentPosition:[i.x,i.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var p=b(c);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,_=p,y=null;g<=h;++g)y=b(f[g]),(!y&&_.e>m.s+a||y&&!w(y,m.s))&&(_.i>m.i?m=_:m=y,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),_=y;for(var g=u-1,m=p,_=p,y=null;g>=-1;--g)y=b(f[g]),(!y||!w(_,y.s))&&m.i<_.i&&(_=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=y;return v;function b(S){if(S){var T=S.getBoundingRect(),C=T[l]+S[l];return{s:C,e:C+T[s],i:S.__legendDataIndex}}}function w(S,T){return S.e>=T&&S.s<=T+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e}(YT);function UN(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function GN(t){ho(KT),t.registerComponentModel(zN),t.registerComponentView($N),UN(t)}function WN(t){ho(KT),ho(GN)}var YN=function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t}(),Tr=at();function qT(t){var e=t.mainData,r=t.datas;r||(r={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,jT(e,r,t),L(r,function(n){L(e.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,Ze(XN,t))})}),e.wrapMethod("cloneShallow",Ze(qN,t)),L(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,Ze(KN,t))}),Br(r[e.dataType]===e)}function XN(t,e){if(QN(this)){var r=$({},Tr(this).datas);r[this.dataType]=e,jT(e,r,t)}else lg(e,this.dataType,Tr(this).mainData,t);return e}function KN(t,e){return t.struct&&t.struct.update(),e}function qN(t,e){return L(Tr(e).datas,function(r,n){r!==e&&lg(r.cloneShallow(),n,e,t)}),e}function jN(t){var e=Tr(this).mainData;return t==null||e==null?e:Tr(e).datas[t]}function ZN(){var t=Tr(this).mainData;return t==null?[{data:t}]:Me(Je(Tr(t).datas),function(e){return{type:e,data:Tr(t).datas[e]}})}function QN(t){return Tr(t).mainData===t}function jT(t,e,r){Tr(t).datas={},L(e,function(n,i){lg(n,i,t,r)})}function lg(t,e,r,n){Tr(r).datas[e]=t,Tr(t).mainData=r,t.dataType=e,n.struct&&(t[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=t),t.getLinkedData=jN,t.getLinkedDataAll=ZN}var JN=function(){function t(e,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=r}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,r,n){Ie(e)&&(n=r,r=e,e=null),e=e||{},ae(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(e,r,n);i==="postorder"&&r.call(n,this)},t.prototype.updateDepthAndHeight=function(e){var r=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>r&&(r=i.height)}this.height=r+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(e);if(a)return a}},t.prototype.contains=function(e){if(e===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(e);if(a)return a}},t.prototype.getAncestors=function(e){for(var r=[],n=e?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},t.prototype.getAncestorsIndices=function(){for(var e=[],r=this;r;)e.push(r.dataIndex),r=r.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(r){e.push(r.dataIndex)}),e},t.prototype.getValue=function(e){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,r)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,r)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,r=0;r<e.length;++r)if(e[r]===this)return r;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var r=e.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),eB=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,r,n){this.root.eachNode(e,r,n)},t.prototype.getNodeByDataIndex=function(e){var r=this.data.getRawIndex(e);return this._nodes[r]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=e.count();n<i;n++)r[e.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,r,n){var i=new t(r),a=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,Z(h)?h.length:1),a.push(f);var d=new JN(Jt(f.name,""),i);c?tB(d,c):i.root=d,i._nodes.push(d);var v=f.children;if(v)for(var p=0;p<v.length;p++)s(v[p],d)}i.root.updateDepthAndHeight(0);var l=ig(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new js(l,r);return u.initData(a),n&&n(u),qT({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function tB(t,e){var r=e.children;t.parentNode!==e&&(r.push(t),t.parentNode=e)}function ug(t,e,r){if(t&&ke(e,t.type)>=0){var n=r.getData().tree.root,i=t.targetNode;if(ae(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function ZT(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function QT(t,e){var r=ZT(t);return ke(r,e)>=0}function JT(t,e){for(var r=[];t;){var n=t.dataIndex;r.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return r.reverse(),r}var x0=["treemapZoomToNode","treemapRender","treemapMove"];function rB(t){for(var e=0;e<x0.length;e++)t.registerAction({type:x0[e],update:"updateView"},ut);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=ug(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=QT(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function nB(t){var e=t.getData(),r=e.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=aR(t.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var iB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.preventUsingHoverLayer=!0,r}return e.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};ex(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ge({itemStyle:o},this,n);a=r.levels=aB(a,n);var l=Me(a||[],function(c){return new Ge(c,s,n)},this),u=eB.createTree(i,this,f);function f(c){c.wrapMethod("getItemModel",function(h,d){var v=u.getNodeByDataIndex(d),p=v?l[v.depth]:null;return h.parentModel=p||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return sa("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(r){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=JT(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,r)},e.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=me(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){nB(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(An);function ex(t){var e=0;L(t.children,function(n){ex(n);var i=n.value;Z(i)&&(i=i[0]),e+=i});var r=t.value;Z(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=e),r<0&&(r=0),Z(t.value)?t.value[0]=r:t.value=r}function aB(t,e){var r=vt(e.get("color")),n=vt(e.get(["aria","decal","decals"]));if(r){t=t||[];var i,a;L(t,function(s){var l=new Ge(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),t}}var oB=8,C0=8,Uh=5,sB=function(){function t(e){this.group=new ft,e.add(this.group)}return t.prototype.render=function(e,r,n,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(e,c,s,l,u,f,i),XP(o,c.pos,c.box)}},t.prototype._prepare=function(e,r,n){for(var i=e;i;i=i.parentNode){var a=Jt(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+oB*2,r.emptyItemWidth);r.totalWidth+=s+C0,r.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,f=e.get(["breadcrumb","height"]),c=YP(r.pos,r.box),h=r.totalWidth,d=r.renderList,v=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var g=d[p],m=g.node,_=g.width,y=g.text;h>c.width&&(h-=_-u,_=u,y=null);var b=new Qf({shape:{points:lB(l,0,_,f,p===d.length-1,p===0)},style:Ke(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Et({style:rn(a,{text:y})}),textConfig:{position:"inside"},z2:pl*1e4,onclick:Ze(s,m)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=rn(o,{text:y}),b.ensureState("emphasis").style=v,Lp(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),uB(b,e,m),l+=_+C0}},t.prototype.remove=function(){this.group.removeAll()},t}();function lB(t,e,r,n,i,a){var o=[[i?t:t-Uh,e],[t+r,e],[t+r,e+n],[i?t:t-Uh,e+n]];return!a&&o.splice(2,0,[t+r+Uh,e+n/2]),!i&&o.push([t,e+n/2]),o}function uB(t,e,r){Pe(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&JT(r,e)}}var fB=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,r,n,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:r,duration:n,delay:i,easing:a}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,r=this._storage.length,n=function(){r--,r<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function cB(){return new fB}var Av=ft,D0=Mt,I0=3,A0="label",M0="upperLabel",hB=pl*10,dB=pl*2,vB=pl*3,ki=uo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),E0=function(t){var e=ki(t);return e.stroke=e.fill=e.lineWidth=null,e},_f=at(),pB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r._state="ready",r._storage=Qo(),r}return e.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(ke(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=ug(a,s,r),u=a&&a.type,f=r.layoutInfo,c=!this._oldTree,h=this._storage,d=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(f),p=r.get("animation"),g=this._doRender(v,r,d);p&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,g,r,d):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},e.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new Av,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},e.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=Qo(),l=Qo(),u=this._storage,f=[];function c(_,y,b,w){return gB(n,l,u,i,s,f,_,y,b,w)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var h=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var d=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===d.width&&v.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:h,renderFinally:m};function p(_,y,b,w,S){w?(y=_,L(_,function(x,D){!x.isRemoved()&&C(D,D)})):new wT(y,_,T,T).add(C).update(C).remove(Ze(C,null)).execute();function T(x){return x.getId()}function C(x,D){var A=x!=null?_[x]:null,M=D!=null?y[D]:null,R=c(A,M,b,S);R&&p(A&&A.viewChildren||[],M&&M.viewChildren||[],R,w,S+1)}}function g(_){var y=Qo();return _&&L(_,function(b,w){var S=y[w];L(b,function(T){T&&(S.push(T),_f(T).willDelete=!0)})}),y}function m(){L(h,function(_){L(_,function(y){y.parent&&y.parent.remove(y)})}),L(f,function(_){_.invisible=!0,_.dirty()})}},e.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Ie(o)?0:o)||0,u=(Ie(s)?null:s)||"cubicOut",f=cB();L(n.willDeleteEls,function(c,h){L(c,function(d,v){if(!d.invisible){var p=d.parent,g,m=_f(p);if(a&&a.direction==="drillDown")g=p===a.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,y=0;m.willDelete||(_=m.nodeWidth/2,y=m.nodeHeight/2),g=h==="nodeGroup"?{x:_,y,style:{opacity:0}}:{shape:{x:_,y,width:0,height:0},style:{opacity:0}}}g&&f.add(d,g,l,0,u)}})}),L(this._storage,function(c,h){L(c,function(d,v){var p=n.lastsForAnimation[h][v],g={};p&&(d instanceof ft?p.oldX!=null&&(g.x=d.x,g.y=d.y,d.x=p.oldX,d.y=p.oldY):(p.oldShape&&(g.shape=$({},d.shape),d.setShape(p.oldShape)),p.fadein?(d.setStyle("opacity",0),g.style={opacity:1}):d.style.opacity!==1&&(g.style={opacity:1})),f.add(d,g,l,0,u))})},this),this._state="animating",f.finished(De(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new NT(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",De(this._onPan,this)),n.on("zoom",De(this._onZoom,this)));var a=new Ae(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},e.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},e.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>I0||Math.abs(r.dy)>I0)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Ae(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var c=f.zoom=f.zoom||1;if(c*=a,u){var h=u.min||0,d=u.max||1/0;c=Math.max(Math.min(d,c),h)}var v=c/f.zoom;f.zoom=c;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Jn();Bs(g,g,[-n,-i]),n1(g,g,[v,v]),Bs(g,g,[n,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&iv(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new sB(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(QT(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Qo(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},e.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,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)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Sn);function Qo(){return{nodeGroup:[],background:[],content:[]}}function gB(t,e,r,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),c=t.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var d=f.width,v=f.height,p=f.borderWidth,g=f.invisible,m=o.getRawIndex(),_=s&&s.getRawIndex(),y=o.viewChildren,b=f.upperHeight,w=y&&y.length,S=h.getModel("itemStyle"),T=h.getModel(["emphasis","itemStyle"]),C=h.getModel(["blur","itemStyle"]),x=h.getModel(["select","itemStyle"]),D=S.get("borderRadius")||0,A=zt("nodeGroup",Av);if(!A)return;if(l.add(A),A.x=f.x||0,A.y=f.y||0,A.markRedraw(),_f(A).nodeWidth=d,_f(A).nodeHeight=v,f.isAboveViewRoot)return A;var M=zt("background",D0,u,dB);M&&He(A,M,w&&f.upperLabelHeight);var R=h.getModel("emphasis"),k=R.get("focus"),H=R.get("blurScope"),N=R.get("disabled"),q=k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():k;if(w)Gs(A)&&Ya(A,!1),M&&(Ya(M,!N),c.setItemGraphicEl(o.dataIndex,M),Jd(M,q,H));else{var U=zt("content",D0,u,vB);U&&Xe(A,U),M.disableMorphing=!0,M&&Gs(M)&&Ya(M,!1),Ya(A,!N),c.setItemGraphicEl(o.dataIndex,A);var ue=h.getShallow("cursor");ue&&U.attr("cursor",ue),Jd(A,q,H)}return A;function He(be,ne,ve){var K=Pe(ne);if(K.dataIndex=o.dataIndex,K.seriesIndex=t.seriesIndex,ne.setShape({x:0,y:0,width:d,height:v,r:D}),g)_e(ne);else{ne.invisible=!1;var J=o.getVisual("style"),I=J.stroke,E=E0(S);E.fill=I;var O=ki(T);O.fill=T.get("borderColor");var F=ki(C);F.fill=C.get("borderColor");var B=ki(x);if(B.fill=x.get("borderColor"),ve){var V=d-2*p;ct(ne,I,J.opacity,{x:p,y:0,width:V,height:b})}else ne.removeTextContent();ne.setStyle(E),ne.ensureState("emphasis").style=O,ne.ensureState("blur").style=F,ne.ensureState("select").style=B,qd(ne)}be.add(ne)}function Xe(be,ne){var ve=Pe(ne);ve.dataIndex=o.dataIndex,ve.seriesIndex=t.seriesIndex;var K=Math.max(d-2*p,0),J=Math.max(v-2*p,0);if(ne.culling=!0,ne.setShape({x:p,y:p,width:K,height:J,r:D}),g)_e(ne);else{ne.invisible=!1;var I=o.getVisual("style"),E=I.fill,O=E0(S);O.fill=E,O.decal=I.decal;var F=ki(T),B=ki(C),V=ki(x);ct(ne,E,I.opacity,null),ne.setStyle(O),ne.ensureState("emphasis").style=F,ne.ensureState("blur").style=B,ne.ensureState("select").style=V,qd(ne)}be.add(ne)}function _e(be){!be.invisible&&a.push(be)}function ct(be,ne,ve,K){var J=h.getModel(K?M0:A0),I=Jt(h.get("name"),null),E=J.getShallow("show");ic(be,gl(h,K?M0:A0),{defaultText:E?I:null,inheritColor:ne,defaultOpacity:ve,labelFetcher:t,labelDataIndex:o.dataIndex});var O=be.getTextContent();if(O){var F=O.style,B=pp(F.padding||0);K&&(be.setTextConfig({layoutRect:K}),O.disableLabelLayout=!0),O.beforeUpdate=function(){var Y=Math.max((K?K.width:be.shape.width)-B[1]-B[3],0),G=Math.max((K?K.height:be.shape.height)-B[0]-B[2],0);(F.width!==Y||F.height!==G)&&O.setStyle({width:Y,height:G})},F.truncateMinChar=2,F.lineOverflow="truncate",mt(F,K,f);var V=O.getState("emphasis");mt(V?V.style:null,K,f)}}function mt(be,ne,ve){var K=be?be.text:null;if(!ne&&ve.isLeafRoot&&K!=null){var J=t.get("drillDownIcon",!0);be.text=J?J+" "+K:K}}function zt(be,ne,ve,K){var J=_!=null&&r[be][_],I=i[be];return J?(r[be][_]=null,Lt(I,J)):g||(J=new ne,J instanceof To&&(J.z2=mB(ve,K)),$t(I,J)),e[be][m]=J}function Lt(be,ne){var ve=be[m]={};ne instanceof Av?(ve.oldX=ne.x,ve.oldY=ne.y):ve.oldShape=$({},ne.shape)}function $t(be,ne){var ve=be[m]={},K=o.parentNode,J=ne instanceof ft;if(K&&(!n||n.direction==="drillDown")){var I=0,E=0,O=i.background[K.getRawIndex()];!n&&O&&O.oldShape&&(I=O.oldShape.width,E=O.oldShape.height),J?(ve.oldX=0,ve.oldY=E):ve.oldShape={x:I,y:E,width:0,height:0}}ve.fadein=!J}}function mB(t,e){return t*hB+e}var yB="itemStyle",tx=at();const _B={seriesType:"treemap",reset:function(t){var e=t.getData().tree,r=e.root;r.isRemoved()||rx(r,{},t.getViewRoot().getAncestors(),t)}};function rx(t,e,r,n){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(yB),l=bB(s,e,n),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=L0(l),f=wB(c,h)),u.stroke=f;var d=t.viewChildren;if(!d||!d.length)h=L0(l),u.fill=h;else{var v=SB(t,i,a,s,l,d);L(d,function(p,g){if(p.depth>=r.length||p===r[p.depth]){var m=TB(i,l,p,g,v,n);rx(p,m,r,n)}})}}}function bB(t,e,r){var n=$({},e),i=r.designatedVisualItemStyle;return L(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function L0(t){var e=Gh(t,"color");if(e){var r=Gh(t,"colorAlpha"),n=Gh(t,"colorSaturation");return n&&(e=ys(e,null,null,n)),r&&(e=g1(e,r)),e}}function wB(t,e){return e!=null?ys(e,null,null,t):null}function Gh(t,e){var r=t[e];if(r!=null&&r!=="none")return r}function SB(t,e,r,n,i,a){if(!(!a||!a.length)){var o=Wh(e,"color")||i.color!=null&&i.color!=="none"&&(Wh(e,"colorAlpha")||Wh(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new sg(c);return tx(h).drColorMappingBy=f,h}}}function Wh(t,e){var r=t.get(e);return Z(r)&&r.length?{name:e,range:r}:null}function TB(t,e,r,n,i,a){var o=$({},e);if(i){var s=i.type,l=s==="color"&&tx(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var Js=Math.max,bf=Math.min,P0=si,fg=L,nx=["itemStyle","borderWidth"],xB=["itemStyle","gapWidth"],CB=["upperLabel","show"],DB=["upperLabel","height"];const IB={seriesType:"treemap",reset:function(t,e,r,n){var i=r.getWidth(),a=r.getHeight(),o=t.option,s=oa(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=ht(P0(s.width,l[0]),i),f=ht(P0(s.height,l[1]),a),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],d=ug(n,h,t),v=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,p=t.getViewRoot(),g=ZT(p);if(c!=="treemapMove"){var m=c==="treemapZoomToNode"?RB(t,d,p,u,f):v?[v.width,v.height]:[u,f],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var y={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var b={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(b),ix(p,y,!1,0),b=p.getLayout(),fg(g,function(S,T){var C=(g[T+1]||p).getValue();S.setLayout($({dataExtent:[C,C],borderWidth:0,upperHeight:0},b))})}var w=t.getData().tree.root;w.setLayout(OB(s,v,d),!0),t.setLayoutInfo(s),ax(w,new Ae(-s.x,-s.y,i,a),g,p,0)}};function ix(t,e,r,n){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(nx),u=s.get(xB)/2,f=ox(s),c=Math.max(l,f),h=l-u,d=c-u;t.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),i=Js(i-2*h,0),a=Js(a-h-d,0);var v=i*a,p=AB(t,s,v,e,r,n);if(p.length){var g={x:h,y:d,width:i,height:a},m=bf(i,a),_=1/0,y=[];y.area=0;for(var b=0,w=p.length;b<w;){var S=p[b];y.push(S),y.area+=S.getLayout().area;var T=PB(y,m,e.squareRatio);T<=_?(b++,_=T):(y.area-=y.pop().getLayout().area,R0(y,m,g,u,!1),m=bf(g.width,g.height),y.length=y.area=0,_=1/0)}if(y.length&&R0(y,m,g,u,!0),!r){var C=s.get("childrenVisibleMin");C!=null&&v<C&&(r=!0)}for(var b=0,w=p.length;b<w;b++)ix(p[b],e,r,n+1)}}}function AB(t,e,r,n,i,a){var o=t.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return t.viewChildren=[];o=or(o,function(d){return!d.isRemoved()}),EB(o,s);var u=LB(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=MB(e,r,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*r;o[f].setLayout({area:h})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function MB(t,e,r,n,i){if(!n)return r;for(var a=t.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*e<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function EB(t,e){return e&&t.sort(function(r,n){var i=e==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?e==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),t}function LB(t,e,r){for(var n=0,i=0,a=e.length;i<a;i++)n+=e[i].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&r?(s=[e[e.length-1].getValue(),e[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],fg(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function PB(t,e,r){for(var n=0,i=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=t.area*t.area,u=e*e*r;return l?Js(u*n/l,l/(u*i)):1/0}function R0(t,e,r,n,i){var a=e===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],f=e?t.area/e:0;(i||f>r[l[o]])&&(f=r[l[o]]);for(var c=0,h=t.length;c<h;c++){var d=t[c],v={},p=f?d.getLayout().area/f:0,g=v[l[o]]=Js(f-2*n,0),m=r[s[a]]+r[l[a]]-u,_=c===h-1||m<p?m:p,y=v[l[a]]=Js(_-2*n,0);v[s[o]]=r[s[o]]+bf(n,g/2),v[s[a]]=u+bf(n,y/2),u+=_,d.setLayout(v,!0)}r[s[o]]+=f,r[l[o]]-=f}function RB(t,e,r,n,i){var a=(e||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*t.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,c=s.children,h=0,d=c.length;h<d;h++)f+=c[h].getValue();var v=a.getValue();if(v===0)return o;u*=f/v;var p=s.getModel(),g=p.get(nx),m=Math.max(g,ox(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>Gm&&(u=Gm),a=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[n*_,i*_]}function OB(t,e,r){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function ax(t,e,r,n,i){var a=t.getLayout(),o=r[i],s=o&&o===t;if(!(o&&!s||i===r.length&&t!==n)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new Ae(e.x-a.x,e.y-a.y,e.width,e.height);fg(t.viewChildren||[],function(u){ax(u,l,r,n,i+1)})}}function ox(t){return t.get(CB)?t.get(DB):0}function sx(t){t.registerSeriesModel(iB),t.registerChartView(pB),t.registerVisual(_B),t.registerLayout(IB),rB(t)}function kB(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){et(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function NB(t){var e={};t.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){ae(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),f=i.ensureUniqueItemVisual(o,"style");$(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)i.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function lu(t){return t instanceof Array||(t=[t,t]),t}function BB(t){t.eachSeriesByType("graph",function(e){var r=e.getGraph(),n=e.getEdgeData(),i=lu(e.get("edgeSymbol")),a=lu(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=lu(s.getShallow("symbol",!0)),f=lu(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch($(h,c),h.stroke){case"source":{var d=l.node1.getVisual("style");h.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");h.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var Mv="-->",cc=function(t){return t.get("autoCurveness")||null},lx=function(t,e){var r=cc(t),n=20,i=[];if(et(r))n=r;else if(Z(r)){t.__curvenessList=r;return}e>n&&(n=e);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=i},el=function(t,e,r){var n=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[r.uid,n,i].join(Mv)},ux=function(t){var e=t.split(Mv);return[e[0],e[2],e[1]].join(Mv)},FB=function(t,e){var r=el(t.node1,t.node2,e);return e.__edgeMap[r]},VB=function(t,e){var r=Ev(el(t.node1,t.node2,e),e),n=Ev(el(t.node2,t.node1,e),e);return r+n},Ev=function(t,e){var r=e.__edgeMap;return r[t]?r[t].length:0};function HB(t){cc(t)&&(t.__curvenessList=[],t.__edgeMap={},lx(t))}function zB(t,e,r,n){if(cc(r)){var i=el(t,e,r),a=r.__edgeMap,o=a[ux(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function cg(t,e,r,n){var i=cc(e),a=Z(i);if(!i)return null;var o=FB(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=VB(t,e);lx(e,u),t.lineStyle=t.lineStyle||{};var f=el(t.node1,t.node2,e),c=e.__curvenessList,h=a||u%2?0:1;if(o.isForward)return c[h+s];var d=ux(f),v=Ev(d,e),p=c[s+v+h];return n?a?i&&i[0]===0?(v+h)%2?p:-p:((v%2?0:1)+h)%2?p:-p:(v+h)%2?p:-p:c[s+v+h]}function fx(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var r=t.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),hg(r,t)}}function hg(t,e){t.eachEdge(function(r,n){var i=Ki(r.getModel().get(["lineStyle","curveness"]),-cg(r,e,n,!0),0),a=bn(r.node1.getLayout()),o=bn(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function $B(t,e){t.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];L(i.dimensions,function(h){o=o.concat(a.mapDimensionsAll(h))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=a.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}hg(a.graph,r)}else(!n||n==="none")&&fx(r)})}function ls(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var r=t.option.nodeScaleRatio,n=e.scaleX,i=e.getZoom(),a=(i-1)*r+1;return a/n}function us(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var O0=Math.PI,Yh=[];function dg(t,e,r,n){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,f=Math.min(a.width,a.height)/2,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(r){var h=i.pointToData(n),d=h[0],v=h[1],p=[d-l,v-u];So(p,p),yu(p,p,f),r.setLayout([l+p[0],u+p[1]],!0);var g=t.get(["circular","rotateLabel"]);cx(r,g,l,u)}UB[e](t,s,o,f,l,u,c),s.eachEdge(function(m,_){var y=Ki(m.getModel().get(["lineStyle","curveness"]),cg(m,t,_),0),b=bn(m.node1.getLayout()),w=bn(m.node2.getLayout()),S,T=(b[0]+w[0])/2,C=(b[1]+w[1])/2;+y&&(y*=3,S=[l*y+T*(1-y),u*y+C*(1-y)]),m.setLayout([b,w,S])})}}}var UB={value:function(t,e,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=h})},symbolSize:function(t,e,r,n,i,a,o){var s=0;Yh.length=o;var l=ls(t);e.eachNode(function(c){var h=us(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var d=Math.asin(h/2/n);isNaN(d)&&(d=O0/2),Yh[c.dataIndex]=d,s+=d*2});var u=(2*O0-s)/o/2,f=0;e.eachNode(function(c){var h=u+Yh[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+i,n*Math.sin(f)+a]),f+=h})}};function cx(t,e,r,n){var i=t.getGraphicEl();if(i){var a=t.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var f=l[0]<r;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");$(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function GB(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&dg(e,"symbolSize")})}var Ra=Md;function WB(t,e,r){for(var n=t,i=e,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=ca(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=bn(c.p),c.edges=null}var h=r.friction==null?.6:r.friction,d=h,v,p;return{warmUp:function(){d=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(n,i);for(var m=[],_=n.length,y=0;y<i.length;y++){var b=i[y];if(!b.ignoreForceLayout){var w=b.n1,S=b.n2;Fi(m,S.p,w.p);var T=Ed(m)-b.d,C=S.w/(w.w+S.w);isNaN(C)&&(C=0),So(m,m),!w.fixed&&Ra(w.p,w.p,m,C*T*d),!S.fixed&&Ra(S.p,S.p,m,-(1-C)*T*d)}}for(var y=0;y<_;y++){var x=n[y];x.fixed||(Fi(m,l,x.p),Ra(x.p,x.p,m,u*d))}for(var y=0;y<_;y++)for(var w=n[y],D=y+1;D<_;D++){var S=n[D];Fi(m,S.p,w.p);var T=Ed(m);T===0&&(LA(m,Math.random()-.5,Math.random()-.5),T=1);var A=(w.rep+S.rep)/T/T;!w.fixed&&Ra(w.pp,w.pp,m,A),!S.fixed&&Ra(S.pp,S.pp,m,-A)}for(var M=[],y=0;y<_;y++){var x=n[y];x.fixed||(Fi(M,x.p,x.pp),Ra(x.p,x.p,M,d),Rt(x.pp,x.p))}d=d*.992;var R=d<.01;p&&p(n,i,R),g&&g(R)}}}function YB(t){t.eachSeriesByType("graph",function(e){var r=e.coordinateSystem;if(!(r&&r.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},i=e.getGraph(),a=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(y){var b=a.getId(y);a.setItemLayout(y,n[b]||[NaN,NaN])}):!l||l==="none"?fx(e):l==="circular"&&dg(e,"value");var u=a.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),d=Z(c)?c:[c,c],v=Z(h)?h:[h,h];v=[v[1],v[0]];var p=a.mapArray("value",function(y,b){var w=a.getItemLayout(b),S=aa(y,u,d);return isNaN(S)&&(S=(d[0]+d[1])/2),{w:S,rep:S,fixed:a.getItemModel(b).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),g=o.mapArray("value",function(y,b){var w=i.getEdgeByIndex(b),S=aa(y,f,v);isNaN(S)&&(S=(v[0]+v[1])/2);var T=w.getModel(),C=Ki(w.getModel().get(["lineStyle","curveness"]),-cg(w,e,b,!0),0);return{n1:p[w.node1.dataIndex],n2:p[w.node2.dataIndex],d:S,curveness:C,ignoreForceLayout:T.get("ignoreForceLayout")}}),m=r.getBoundingRect(),_=WB(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(y,b){for(var w=0,S=y.length;w<S;w++)y[w].fixed&&Rt(y[w].p,i.getNodeByIndex(w).getLayout())}),_.afterStep(function(y,b,w){for(var S=0,T=y.length;S<T;S++)y[S].fixed||i.getNodeByIndex(S).setLayout(y[S].p),n[a.getId(S)]=y[S].p;for(var S=0,T=b.length;S<T;S++){var C=b[S],x=i.getEdgeByIndex(S),D=C.n1.p,A=C.n2.p,M=x.getLayout();M=M?M.slice():[],M[0]=M[0]||[],M[1]=M[1]||[],Rt(M[0],D),Rt(M[1],A),+C.curveness&&(M[2]=[(D[0]+A[0])/2-(D[1]-A[1])*C.curveness,(D[1]+A[1])/2-(A[0]-D[0])*C.curveness]),x.setLayout(M)}}),e.forceLayout=_,e.preservedPoints=n,_.step()}else e.forceLayout=null})}function XB(t,e,r){var n=$(t.getBoxLayoutParams(),{aspect:r});return oa(n,{width:e.getWidth(),height:e.getHeight()})}function KB(t,e){var r=[];return t.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(g){var m=a.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];ME(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=XB(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],d=f.width,v=f.height,p=n.coordinateSystem=new kT;p.zoomLimit=n.get("scaleLimit"),p.setBoundingRect(s[0],s[1],c,h),p.setViewRect(f.x,f.y,d,v),p.setCenter(n.get("center"),e),p.setZoom(n.get("zoom")),r.push(p)}}),r}var Xh=[],Kh=[],qh=[],Oa=Vt,jh=qi,k0=Math.abs;function N0(t,e,r){for(var n=t[0],i=t[1],a=t[2],o=1/0,s,l=r*r,u=.1,f=.1;f<=.9;f+=.1){Xh[0]=Oa(n[0],i[0],a[0],f),Xh[1]=Oa(n[1],i[1],a[1],f);var c=k0(jh(Xh,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var d=s+u;Kh[0]=Oa(n[0],i[0],a[0],s),Kh[1]=Oa(n[1],i[1],a[1],s),qh[0]=Oa(n[0],i[0],a[0],d),qh[1]=Oa(n[1],i[1],a[1],d);var c=jh(Kh,e)-l;if(k0(c)<.01)break;var v=jh(qh,e)-l;u/=2,c<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function Zh(t,e){var r=[],n=Fs,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[bn(u[0]),bn(u[1])],u[2]&&u.__original.push(bn(u[2])));var h=u.__original;if(u[2]!=null){if(Rt(i[0],h[0]),Rt(i[1],h[2]),Rt(i[2],h[1]),f&&f!=="none"){var d=us(s.node1),v=N0(i,h[0],d*e);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(c&&c!=="none"){var d=us(s.node2),v=N0(i,h[1],d*e);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}Rt(u[0],i[0]),Rt(u[1],i[2]),Rt(u[2],i[1])}else{if(Rt(a[0],h[0]),Rt(a[1],h[1]),Fi(o,a[1],a[0]),So(o,o),f&&f!=="none"){var d=us(s.node1);Md(a[0],a[0],o,d*e)}if(c&&c!=="none"){var d=us(s.node2);Md(a[1],a[1],o,-d*e)}Rt(u[0],a[0]),Rt(u[1],a[1])}})}function B0(t){return t.type==="view"}var qB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){var i=new EN,a=new ON,o=this.group;this._controller=new NT(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(B0(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):ui(u,f,r)}Zh(r.getGraph(),ls(r));var c=r.getData();s.updateData(c);var h=r.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var d=r.forceLayout,v=r.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,v);var p=r.get("layout");c.graph.eachNode(function(y){var b=y.dataIndex,w=y.getGraphicEl(),S=y.getModel();if(w){w.off("drag").off("dragend");var T=S.get("draggable");T&&w.on("drag",function(x){switch(p){case"force":d.warmUp(),!a._layouting&&a._startForceLayoutIteration(d,v),d.setFixed(b),c.setItemLayout(b,[w.x,w.y]);break;case"circular":c.setItemLayout(b,[w.x,w.y]),y.setLayout({fixed:!0},!0),dg(r,"symbolSize",y,[x.offsetX,x.offsetY]),a.updateLayout(r);break;case"none":default:c.setItemLayout(b,[w.x,w.y]),hg(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),w.setDraggable(T,!!S.get("cursor"));var C=S.get(["emphasis","focus"]);C==="adjacency"&&(Pe(w).focus=y.getAdjacentDataIndices())}}),c.graph.eachEdge(function(y){var b=y.getGraphicEl(),w=y.getModel().get(["emphasis","focus"]);b&&w==="adjacency"&&(Pe(b).focus={edge:[y.dataIndex],node:[y.node1.dataIndex,y.node2.dataIndex]})});var g=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(y){cx(y,g,m,_)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!tN(u,i,r)}),!B0(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){Qk(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Jk(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),Zh(r.getGraph(),ls(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=ls(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(r){Zh(r.getGraph(),ls(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Sn);function ka(t){return"_EC_"+t}var jB=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,r){e=e==null?""+r:""+e;var n=this._nodesMap;if(!n[ka(e)]){var i=new Ni(e,r);return i.hostGraph=this,this.nodes.push(i),n[ka(e)]=i,i}},t.prototype.getNodeByIndex=function(e){var r=this.data.getRawIndex(e);return this.nodes[r]},t.prototype.getNodeById=function(e){return this._nodesMap[ka(e)]},t.prototype.addEdge=function(e,r,n){var i=this._nodesMap,a=this._edgesMap;if(et(e)&&(e=this.nodes[e]),et(r)&&(r=this.nodes[r]),e instanceof Ni||(e=i[ka(e)]),r instanceof Ni||(r=i[ka(r)]),!(!e||!r)){var o=e.id+"-"+r.id,s=new hx(e,r,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),r.inEdges.push(s)),e.edges.push(s),e!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var r=this.edgeData.getRawIndex(e);return this.edges[r]},t.prototype.getEdge=function(e,r){e instanceof Ni&&(e=e.id),r instanceof Ni&&(r=r.id);var n=this._edgesMap;return this._directed?n[e+"-"+r]:n[e+"-"+r]||n[r+"-"+e]},t.prototype.eachNode=function(e,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&e.call(r,n[a],a)},t.prototype.eachEdge=function(e,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&e.call(r,n[a],a)},t.prototype.breadthFirstTraverse=function(e,r,n,i){if(r instanceof Ni||(r=this._nodesMap[ka(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(i,c,l))return;s.push(c),c.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)n[e.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},t.prototype.clone=function(){for(var e=new t(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)e.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),Ni=function(){function t(e,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=r??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=me(),r=me(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,r.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:r.keys()}},t}(),hx=function(){function t(e,r,n){this.dataIndex=-1,this.node1=e,this.node2=r,this.dataIndex=n??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=me(),r=me();e.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:r.keys()}},t}();function dx(t,e){return{getValue:function(r){var n=this[t][e];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[t][e].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Fr(Ni,dx("hostGraph","data"));Fr(hx,dx("hostGraph","edgeData"));function ZB(t,e,r,n,i){for(var a=new jB(n),o=0;o<t.length;o++)a.addNode(si(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;a.addEdge(c,h,u)&&(l.push(f),s.push(si(Jt(f.id,null),c+" > "+h)),u++)}var d=r.get("coordinateSystem"),v;if(d==="cartesian2d"||d==="polar")v=ik(t,r);else{var p=oc.get(d),g=p?p.dimensions||[]:[];ke(g,"value")<0&&g.concat(["value"]);var m=ig(t,{coordDimensions:g,encodeDefine:r.getEncode()}).dimensions;v=new js(m,r),v.initData(t)}var _=new js(["value"],r);return _.initData(l,s),i&&i(v,_),qT({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var QB=function(t){re(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new YN(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeOption=function(r){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(r){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Wd(r,"edgeLabel",["show"])},e.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){HB(this);var s=ZB(a,i,this,!0,l);return L(s.edges,function(u){zB(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var c=Ge.prototype.getModel;function h(v,p){var g=c.call(this,v,p);return g.resolveParentPath=d,g}f.wrapMethod("getItemModel",function(v){return v.resolveParentPath=d,v.getModel=h,v});function d(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),sa("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=zS({series:this,dataIndex:r,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var r=Me(this.option.categories||[],function(i){return i.value!=null?i:$({value:0},i)}),n=new js(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},e.prototype.setZoom=function(r){this.option.zoom=r},e.prototype.setCenter=function(r){this.option.center=r},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(An),JB={type:"graphRoam",event:"graphRoam",update:"none"};function eF(t){t.registerChartView(qB),t.registerSeriesModel(QB),t.registerProcessor(kB),t.registerVisual(NB),t.registerVisual(BB),t.registerLayout($B),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,GB),t.registerLayout(YB),t.registerCoordinateSystem("graphView",{dimensions:kT.dimensions,create:KB}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ut),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ut),t.registerAction(JB,function(e,r,n){r.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=jk(a,e,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function F0(t,e,r){var n=bo.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var Qh=function(t){re(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||tf,typeof r=="string"?o=F0(r,n,i):se(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(e1(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=F0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ae(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var y=new Ae(0,0,0,0);y.copy(_),o.push(y)}else{for(var b=!1,w=1/0,S=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(_)){var x=new Ae(0,0,0,0);x.copy(C),x.union(_),o[T]=x,b=!0;break}else if(l){u.copy(_),u.union(C);var D=_.width*_.height,A=C.width*C.height,M=u.width*u.height,R=M-D-A;R<w&&(w=R,S=T)}}if(l&&(o[S].union(_),b=!0),!b){var y=new Ae(0,0,0,0);y.copy(_),o.push(y)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=r[c];if(h){var d=h.shouldBePainted(i,a,!0,!0),v=h.__isRendered&&(h.__dirty&sr||!d)?h.getPrevPaintRect():null;v&&f(v);var p=d&&(h.__dirty&sr||!h.__isRendered)?h.getPaintRect():null;p&&f(p)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],d=h&&h.shouldBePainted(i,a,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){var v=h.getPrevPaintRect();v&&f(v)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var m=c+1;m<o.length;)o[c].intersect(o[m])?(g=!0,o[c].union(o[m]),o.splice(m,1)):m++;c++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/c,l/c));var d=this.domBack;function v(p,g,m,_){if(o.clearRect(p,g,m,_),n&&n!=="transparent"){var y=void 0;if(Uf(n)){var b=n.global||n.__width===m&&n.__height===_;y=b&&n.__canvasGradient||dv(o,n,{x:0,y:0,width:m,height:_}),n.__canvasGradient=y,n.__width=m,n.__height=_}else xA(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,y=vv(o,n,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));o.save(),o.fillStyle=y||n,o.fillRect(p,g,m,_),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(d,p,g,m,_),o.restore())}!i||u?v(0,0,s,l):i.length&&L(i,function(p){v(p.x*c,p.y*c,p.width*c,p.height*c)})},e}(Vr),V0=1e5,Pi=314159,uu=.01,tF=.001;function rF(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function nF(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var iF=function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=$({},n||{}),this.dpr=n.devicePixelRatio||tf,this._singleCanvas=a,this.root=e;var o=e.style;o&&(e1(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var d=new Qh(f,this,this.dpr);d.__builtin__=!0,d.initContext(),l[Pi]=d,d.zlevel=Pi,s.push(Pi),this._domRoot=e}else{this._width=tu(e,0,n),this._height=tu(e,1,n);var u=this._domRoot=nF(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(V0)),a||(a=n.ctx,a.save()),Ui(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(V0)},t.prototype.paintOne=function(e,r){tT(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;ju(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Pi).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,c=!1,h=function(p){var g=a[p],m=g.ctx,_=o&&g.createRepaintRects(e,r,d._width,d._height),y=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,w=b&&Date.now(),S=g.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,_);else if(y===g.__startIndex){var T=e[y];(!T.incremental||!T.notClear||n)&&g.clear(!1,S,_)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=g.__startIndex);var C,x=function(R){var k={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=y;C<g.__endIndex;C++){var H=e[C];if(H.__inHover&&(c=!0),i._doPaintEl(H,g,o,R,k,C===g.__endIndex-1),b){var N=Date.now()-w;if(N>15)break}}k.prevElClipPaths&&m.restore()};if(_)if(_.length===0)C=g.__endIndex;else for(var D=d.dpr,A=0;A<_.length;++A){var M=_[A];m.save(),m.beginPath(),m.rect(M.x*D,M.y*D,M.width*D,M.height*D),m.clip(),x(M),m.restore()}else m.save(),x(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},d=this,v=0;v<a.length;v++)h(v);return he.wxa&&L(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:c}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Ui(s,e,a,o),e.setPrevPaintRect(l))}else Ui(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Pi);var n=this._layers[e];return n||(n=new Qh("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?Qe(n,this._layerConfig[e],!0):this._layerConfig[e-uu]&&Qe(n,this._layerConfig[e-uu],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[e]&&rF(r)){if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function r(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+tF,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?uu:0),this._needsManuallyCompositing),f.__builtin__||dp("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&sr&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?Qe(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+uu){var o=this._layers[a];Qe(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(ke(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=tu(a,0,i),r=tu(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(Pi).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Pi].dom;var r=new Qh("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,i,a):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Ui(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function vx(t){t.registerPainter("canvas",iF)}const $n=["#2563EB","#059669","#CA8A04","#9333EA","#0D9488","#65A30D","#7C3AED","#EA580C","#0284C7","#16A34A","#4F46E5","#D97706","#047857","#1D4ED8","#A16207","#7E22CE","#0F766E","#4D7C0F","#6D28D9","#C2410C","#0369A1","#15803D","#4338CA","#B45309","#0E7490"];function aF(){return[{itemStyle:{gapWidth:10},upperLabel:{show:!1}},{itemStyle:{borderColor:"#d3d3d3",borderWidth:5,gapWidth:1}},{colorSaturation:[.35,.5],itemStyle:{borderWidth:5,gapWidth:1,borderColorSaturation:.6}}]}const oF=fe({__name:"TreeMapView",props:on({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options"),n=Kv("main"),i=AT(n,[GT,$T,WN,eF,vx,sx],o=>{o.on("contextmenu",s=>{s.event.event.preventDefault();const l=s.data,u=new Set;l.moduleIndex&&u.add(l.moduleIndex);function f(c){c.children.forEach(h=>f(h)),c.moduleIndex&&u.add(c.moduleIndex)}f(l),r.value={...r.value,hiddenModules:[...r.value.hiddenModules,...Array.from(u)]}}),o.setOption({color:$n,tooltip:{formatter(s){const l=s.value,u=s.treePathInfo,f=[];for(let g=1;g<u.length;g++)f.push(u[g].name);const c=[];c.push('<div class="tooltip-title">'+Bt(f.length===1?f:f.slice(1).join("/"))+"</div>",`${oA(r.value.metric)}: `+dS((l/1024).toFixed(2))+" KB");const h=f.slice(1).join("/"),d=e.stats.moduleFileNames.findIndex(g=>g===h),p=(d>=0?e.stats.importGraph.edges.filter(([g,m])=>m===d):[]).map(g=>e.stats.moduleFileNames[g[0]]);return p.length&&(c.push('<div class="mt-2">Imported by:</div>',"<ul>"),p.length>8?(c.push(...p.slice(0,7).map(g=>`<li>${g}</li>`)),c.push(`and ${p.length-8} more`)):c.push(...p.map(g=>`<li>${g}</li>`)),c.push("</ul>")),c.join("")}},series:[{name:"Chunks",type:"treemap",visibleMin:300,label:{show:!0,formatter:"{b}"},upperLabel:{show:!0,height:30},itemStyle:{borderColor:"#fff"},levels:aF(),data:a.value}]})}),a=ge(()=>{const o=[];for(const u of e.stats.chunks){if(r.value.hiddenChunks.includes(u.fileName))continue;const f={value:0,name:u.fileName,path:u.fileName,children:[]};o.push(f);for(const c of u.modules){const h=c.fileNameIndex;if(r.value.hiddenModules.includes(h))continue;const d=e.stats.moduleFileNames[c.fileNameIndex].split("/");let v=f;for(let p=0;p<d.length;p+=1){const g=v.children.find(m=>m.name===d[p]);if(g)v=g;else{const m={name:d[p],path:d[p],value:yn(c.fileNameIndex,e.stats,r.value.metric)??0,children:[],moduleIndex:h};v.children.push(m),v=m}}}}function s(u){for(const f of u.children)s(f);u.children.length&&(u.value=u.children.reduce((f,c)=>f+c.value,0))}o.forEach(s);function l(u){for(const f of u.children)l(f);u.children.length===1&&(u.path=`${u.path}/${u.children[0].path}`,u.name=`${u.name}/${u.children[0].name}`,u.children=u.children[0].children)}return r.value.compact&&o.forEach(l),o});return rt(a,()=>{i.value?.setOption({series:[{data:a.value}]})}),(o,s)=>(j(),je("div",{ref_key:"main",ref:n},null,512))}});function vg(t){return t?t.flatMap(e=>e.type===qe?vg(e.children):[e]):[]}const sF=fe({name:"PrimitiveSlot",inheritAttrs:!1,setup(t,{attrs:e,slots:r}){return()=>{if(!r.default)return null;const n=vg(r.default()),i=n.findIndex(l=>l.type!==tt);if(i===-1)return n;const a=n[i];delete a.props?.ref;const o=a.props?pt(e,a.props):e,s=Nr({...a,props:{}},o);return n.length===1?s:(n[i]=s,n)}}}),lF=["area","img","input"],Ht=fe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(t,{attrs:e,slots:r}){const n=t.asChild?"template":t.as;return typeof n=="string"&&lF.includes(n)?()=>to(n,e):n!=="template"?()=>to(t.as,e,{default:r.default}):()=>to(sF,e,{default:r.default})}}),uF=fe({__name:"VisuallyHidden",props:{feature:{default:"focusable"},asChild:{type:Boolean},as:{default:"span"}},setup(t){return(e,r)=>(j(),de(P(Ht),{as:e.as,"as-child":e.asChild,"aria-hidden":e.feature==="focusable"?"true":void 0,"data-hidden":e.feature==="fully-hidden"?"":void 0,tabindex:e.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal"}},{default:ie(()=>[Ee(e.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}});function px(t){return If()?(Fv(t),!0):!1}function fF(t){let e=!1,r;const n=Bv(!0);return(...i)=>(e||(r=n.run(()=>t(...i)),e=!0),r)}function cF(t){let e=0,r,n;const i=()=>{e-=1,n&&e<=0&&(n.stop(),r=void 0,n=void 0)};return(...a)=>(e+=1,n||(n=Bv(!0),r=n.run(()=>t(...a))),px(i),r)}const pa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hF=t=>typeof t<"u",dF=Object.prototype.toString,vF=t=>dF.call(t)==="[object Object]",H0=pF();function pF(){var t,e;return pa&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function gF(t){return gt()}function Jh(t){return Array.isArray(t)?t:[t]}const mF=At;function yF(t,e){gF()&&ol(t,e)}function _F(t,e,r){return rt(t,e,{...r,immediate:!0})}const pg=pa?window:void 0;function Co(t){var e;const r=At(t);return(e=r?.$el)!=null?e:r}function gg(...t){const e=[],r=()=>{e.forEach(s=>s()),e.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=ge(()=>{const s=Jh(At(t[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=_F(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>Co(u)))!=null?l:[pg].filter(u=>u!=null),Jh(At(i.value?t[1]:t[0])),Jh(P(i.value?t[2]:t[1])),At(i.value?t[3]:t[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=vF(f)?{...f}:f;e.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return px(r),o}function bF(){const t=il(!1),e=gt();return e&&an(()=>{t.value=!0},e),t}function wF(t){return typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>!0}function SF(...t){let e,r,n={};t.length===3?(e=t[0],r=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(e=!0,r=t[0],n=t[1]):(e=t[0],r=t[1]):(e=!0,r=t[0]);const{target:i=pg,eventName:a="keydown",passive:o=!1,dedupe:s=!1}=n,l=wF(e);return gg(i,a,f=>{f.repeat&&At(s)||l(f)&&r(f)},o)}function TF(t){return JSON.parse(JSON.stringify(t))}function hc(t,e,r,n={}){var i,a,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:f=!1,defaultValue:c,shouldEmit:h}=n,d=gt(),v=r||d?.emit||((i=d?.$emit)==null?void 0:i.bind(d))||((o=(a=d?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(d?.proxy));let p=u;e||(e="modelValue"),p=p||`update:${e.toString()}`;const g=y=>s?typeof s=="function"?s(y):TF(y):y,m=()=>hF(t[e])?g(t[e]):c,_=y=>{h?h(y)&&v(p,y):v(p,y)};if(l){const y=m(),b=we(y);let w=!1;return rt(()=>t[e],S=>{w||(w=!0,b.value=g(S),Cr(()=>w=!1))}),rt(b,S=>{!w&&(S!==t[e]||f)&&_(S)},{deep:f}),b}else return ge({get(){return m()},set(y){_(y)}})}function Do(t,e){const r=typeof t=="string"&&!e?`${t}Context`:e,n=Symbol(r);return[o=>{const s=Yi(n,o);if(s||s===null)return s;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(Ff(n,o),o)]}function z0(t){return typeof t=="string"?`'${t}'`:new xF().serialize(t)}const xF=function(){class t{#e=new Map;compare(r,n){const i=typeof r,a=typeof n;return i==="string"&&a==="string"?r.localeCompare(n):i==="number"&&a==="number"?r-n:String.prototype.localeCompare.call(this.serialize(r,!0),this.serialize(n,!0))}serialize(r,n){if(r===null)return"null";switch(typeof r){case"string":return n?r:`'${r}'`;case"bigint":return`${r}n`;case"object":return this.$object(r);case"function":return this.$function(r)}return String(r)}serializeObject(r){const n=Object.prototype.toString.call(r);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),r);const i=r.constructor,a=i===Object||i===void 0?"":i.name;if(a!==""&&globalThis[a]===i)return this.serializeBuiltInType(a,r);if(typeof r.toJSON=="function"){const o=r.toJSON();return a+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(a,Object.entries(r))}serializeBuiltInType(r,n){const i=this["$"+r];if(i)return i.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(r,n.entries());throw new Error(`Cannot serialize ${r}`)}serializeObjectEntries(r,n){const i=Array.from(n).sort((o,s)=>this.compare(o[0],s[0]));let a=`${r}{`;for(let o=0;o<i.length;o++){const[s,l]=i[o];a+=`${this.serialize(s,!0)}:${this.serialize(l)}`,o<i.length-1&&(a+=",")}return a+"}"}$object(r){let n=this.#e.get(r);return n===void 0&&(this.#e.set(r,`#${this.#e.size}`),n=this.serializeObject(r),this.#e.set(r,n)),n}$function(r){const n=Function.prototype.toString.call(r);return n.slice(-15)==="[native code] }"?`${r.name||""}()[native]`:`${r.name}(${r.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(r){let n="[";for(let i=0;i<r.length;i++)n+=this.serialize(r[i]),i<r.length-1&&(n+=",");return n+"]"}$Date(r){try{return`Date(${r.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(r){return`ArrayBuffer[${new Uint8Array(r).join(",")}]`}$Set(r){return`Set${this.$Array(Array.from(r).sort((n,i)=>this.compare(n,i)))}`}$Map(r){return this.serializeObjectEntries("Map",r.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(r){return`${e}(${r})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(r){return`${e}[${r.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(r){return`${e}[${r.join("n,")}${r.length>0?"n":""}]`};return t}();function wf(t,e){return t===e||z0(t)===z0(e)}function CF(t){return t==null}function DF(t,e){return CF(t)?!1:Array.isArray(t)?t.some(r=>wf(r,e)):wf(t,e)}function IF({type:t,defaultValue:e,modelValue:r}){const n=r||e;return r!==void 0||e!==void 0?Array.isArray(n)?"multiple":"single":t??"single"}function AF({type:t,defaultValue:e,modelValue:r}){return t||IF({type:t,defaultValue:e,modelValue:r})}function MF({type:t,defaultValue:e}){return e!==void 0?e:t==="single"?void 0:[]}function EF(t,e){const r=ge(()=>AF(t)),n=hc(t,"modelValue",e,{defaultValue:MF(t),passive:t.modelValue===void 0,deep:!0});function i(o){if(r.value==="single")n.value=wf(o,n.value)?void 0:o;else{const s=Array.isArray(n.value)?[...n.value||[]]:[n.value].filter(Boolean);if(DF(s,o)){const l=s.findIndex(u=>wf(u,o));s.splice(l,1)}else s.push(o);n.value=s}}const a=ge(()=>r.value==="single");return{modelValue:n,changeModelValue:i,isSingle:a}}const[mg,EH]=Do("ConfigProvider");function LF(t){const e=mg({dir:we("ltr")});return ge(()=>t?.value||e.dir?.value||"ltr")}function it(){const t=gt(),e=we(),r=ge(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Co(e)),n=Object.assign({},t.exposed),i={};for(const o in t.props)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>t.props[o]});if(Object.keys(n).length>0)for(const o in n)Object.defineProperty(i,o,{enumerable:!0,configurable:!0,get:()=>n[o]});Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>t.vnode.el}),t.exposed=i;function a(o){e.value=o,o&&(Object.defineProperty(i,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),t.exposed=i)}return{forwardRef:a,currentRef:e,currentElement:r}}const[dc,PF]=Do("AccordionRoot"),RF=fe({__name:"AccordionRoot",props:{collapsible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dir:{},orientation:{default:"vertical"},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},type:{},modelValue:{},defaultValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{dir:i,disabled:a,unmountOnHide:o}=mo(r),s=LF(i),{modelValue:l,changeModelValue:u,isSingle:f}=EF(r,n),{forwardRef:c,currentElement:h}=it();return PF({disabled:a,direction:s,orientation:r.orientation,parentElement:h,isSingle:f,collapsible:r.collapsible,modelValue:l,changeModelValue:u,unmountOnHide:o}),(d,v)=>(j(),de(P(Ht),{ref:P(c),"as-child":d.asChild,as:d.as},{default:ie(()=>[Ee(d.$slots,"default",{modelValue:P(l)})]),_:3},8,["as-child","as"]))}}),[gx,OF]=Do("CollapsibleRoot"),kF=fe({__name:"CollapsibleRoot",props:{defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},disabled:{type:Boolean},unmountOnHide:{type:Boolean,default:!0},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(t,{expose:e,emit:r}){const n=t,a=hc(n,"open",r,{defaultValue:n.defaultOpen,passive:n.open===void 0}),{disabled:o,unmountOnHide:s}=mo(n);return OF({contentId:"",disabled:o,open:a,unmountOnHide:s,onOpenToggle:()=>{o.value||(a.value=!a.value)}}),e({open:a}),it(),(l,u)=>(j(),de(P(Ht),{as:l.as,"as-child":n.asChild,"data-state":P(a)?"open":"closed","data-disabled":P(o)?"":void 0},{default:ie(()=>[Ee(l.$slots,"default",{open:P(a)})]),_:3},8,["as","as-child","data-state","data-disabled"]))}}),NF=["INPUT","TEXTAREA"];function BF(t,e,r,n={}){if(!e||n.enableIgnoredElement&&NF.includes(e.nodeName))return null;const{arrowKeyOptions:i="both",attributeName:a="[data-reka-collection-item]",itemsArray:o=[],loop:s=!0,dir:l="ltr",preventScroll:u=!0,focus:f=!1}=n,[c,h,d,v,p,g]=[t.key==="ArrowRight",t.key==="ArrowLeft",t.key==="ArrowUp",t.key==="ArrowDown",t.key==="Home",t.key==="End"],m=d||v,_=c||h;if(!p&&!g&&(!m&&!_||i==="vertical"&&_||i==="horizontal"&&m))return null;const y=r?Array.from(r.querySelectorAll(a)):o;if(!y.length)return null;u&&t.preventDefault();let b=null;return _||m?b=mx(y,e,{goForward:m?v:l==="ltr"?c:h,loop:s}):p?b=y.at(0)||null:g&&(b=y.at(-1)||null),f&&b?.focus(),b}function mx(t,e,r,n=t.length){if(--n===0)return null;const i=t.indexOf(e),a=r.goForward?i+1:i-1;if(!r.loop&&(a<0||a>=t.length))return null;const o=(a+t.length)%t.length,s=t[o];return s?s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false"?mx(t,s,r,n):s:null}const[yg,FF]=Do("AccordionItem"),VF=fe({__name:"AccordionItem",props:{disabled:{type:Boolean},value:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t,{expose:e}){const r=t,n=dc(),i=ge(()=>n.isSingle.value?r.value===n.modelValue.value:Array.isArray(n.modelValue.value)&&n.modelValue.value.includes(r.value)),a=ge(()=>n.disabled.value||r.disabled),o=ge(()=>a.value?"":void 0),s=ge(()=>i.value?"open":"closed");e({open:i,dataDisabled:o});const{currentRef:l,currentElement:u}=it();FF({open:i,dataState:s,disabled:a,dataDisabled:o,triggerId:"",currentRef:l,currentElement:u,value:ge(()=>r.value)});function f(c){const h=c.target;if(Array.from(n.parentElement.value?.querySelectorAll("[data-reka-collection-item]")??[]).findIndex(p=>p===h)===-1)return null;BF(c,h,n.parentElement.value,{arrowKeyOptions:n.orientation,dir:n.direction.value,focus:!0})}return(c,h)=>(j(),de(P(kF),{"data-orientation":P(n).orientation,"data-disabled":o.value,"data-state":s.value,disabled:a.value,open:i.value,as:r.as,"as-child":r.asChild,"unmount-on-hide":P(n).unmountOnHide.value,onKeydown:sp(f,["up","down","left","right","home","end"])},{default:ie(()=>[Ee(c.$slots,"default",{open:i.value})]),_:3},8,["data-orientation","data-disabled","data-state","disabled","open","as","as-child","unmount-on-hide"]))}});let HF=0;function tl(t,e="reka"){const r=mg({useId:void 0});return Object.hasOwn(eA,"useId")?`${e}-${Ob?.()}`:r.useId?`${e}-${r.useId()}`:`${e}-${++HF}`}function zF(t,e){const r=we(t);function n(a){return e[r.value][a]??r.value}return{state:r,dispatch:a=>{r.value=n(a)}}}function $F(t,e){const r=we({}),n=we("none"),i=we(t),a=t.value?"mounted":"unmounted";let o;const s=e.value?.ownerDocument.defaultView??pg,{state:l,dispatch:u}=zF(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),f=g=>{if(pa){const m=new CustomEvent(g,{bubbles:!1,cancelable:!1});e.value?.dispatchEvent(m)}};rt(t,async(g,m)=>{const _=m!==g;if(await Cr(),_){const y=n.value,b=fu(e.value);g?(u("MOUNT"),f("enter"),b==="none"&&f("after-enter")):b==="none"||b==="undefined"||r.value?.display==="none"?(u("UNMOUNT"),f("leave"),f("after-leave")):m&&y!==b?(u("ANIMATION_OUT"),f("leave")):(u("UNMOUNT"),f("after-leave"))}},{immediate:!0});const c=g=>{const m=fu(e.value),_=m.includes(g.animationName),y=l.value==="mounted"?"enter":"leave";if(g.target===e.value&&_&&(f(`after-${y}`),u("ANIMATION_END"),!i.value)){const b=e.value.style.animationFillMode;e.value.style.animationFillMode="forwards",o=s?.setTimeout(()=>{e.value?.style.animationFillMode==="forwards"&&(e.value.style.animationFillMode=b)})}g.target===e.value&&m==="none"&&u("ANIMATION_END")},h=g=>{g.target===e.value&&(n.value=fu(e.value))},d=rt(e,(g,m)=>{g?(r.value=getComputedStyle(g),g.addEventListener("animationstart",h),g.addEventListener("animationcancel",c),g.addEventListener("animationend",c)):(u("ANIMATION_END"),o!==void 0&&s?.clearTimeout(o),m?.removeEventListener("animationstart",h),m?.removeEventListener("animationcancel",c),m?.removeEventListener("animationend",c))},{immediate:!0}),v=rt(l,()=>{const g=fu(e.value);n.value=l.value==="mounted"?g:"none"});return fa(()=>{d(),v()}),{isPresent:ge(()=>["mounted","unmountSuspended"].includes(l.value))}}function fu(t){return t&&getComputedStyle(t).animationName||"none"}const _g=fe({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(t,{slots:e,expose:r}){const{present:n,forceMount:i}=mo(t),a=we(),{isPresent:o}=$F(n,a);r({present:o});let s=e.default({present:o.value});s=vg(s||[]);const l=gt();if(s&&s?.length>1){const u=l?.parent?.type.name?`<${l.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(f=>` - ${f}`).join(`
61
61
  `)].join(`
62
- `))}return()=>i.value||n.value||o.value?to(e.default({present:o.value})[0],{ref:u=>{const f=Co(u);return typeof f?.hasAttribute>"u"||(f?.hasAttribute("data-reka-popper-content-wrapper")?a.value=f.firstElementChild:a.value=f),f}}):null}}),UF=fe({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["contentFound"],setup(t,{emit:e}){const r=t,n=e,i=gx();i.contentId||=tl(void 0,"reka-collapsible-content");const a=we(),{forwardRef:o,currentElement:s}=it(),l=we(0),u=we(0),f=ge(()=>i.open.value),c=we(f.value),h=we();rt(()=>[f.value,a.value?.present],async()=>{await Cr();const v=s.value;if(!v)return;h.value=h.value||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const p=v.getBoundingClientRect();u.value=p.height,l.value=p.width,c.value||(v.style.transitionDuration=h.value.transitionDuration,v.style.animationName=h.value.animationName)},{immediate:!0});const d=ge(()=>c.value&&i.open.value);return nn(()=>{requestAnimationFrame(()=>{c.value=!1})}),gg(s,"beforematch",v=>{requestAnimationFrame(()=>{i.onOpenToggle(),n("contentFound")})}),(v,p)=>(j(),de(P(_g),{ref_key:"presentRef",ref:a,present:v.forceMount||P(i).open.value,"force-mount":!0},{default:ie(({present:g})=>[ee(P(Ht),pt(v.$attrs,{id:P(i).contentId,ref:P(o),"as-child":r.asChild,as:v.as,hidden:g?void 0:P(i).unmountOnHide.value?"":"until-found","data-state":d.value?void 0:P(i).open.value?"open":"closed","data-disabled":P(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${u.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:ie(()=>[!P(i).unmountOnHide.value||g?Ee(v.$slots,"default",{key:0}):Qr("",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),GF=fe({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const e=t,r=dc(),n=yg();return it(),(i,a)=>(j(),de(P(UF),{role:"region","as-child":e.asChild,as:i.as,"force-mount":e.forceMount,"aria-labelledby":P(n).triggerId,"data-state":P(n).dataState.value,"data-disabled":P(n).dataDisabled.value,"data-orientation":P(r).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:a[0]||(a[0]=o=>P(r).changeModelValue(P(n).value.value))},{default:ie(()=>[Ee(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),WF=fe({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(t){const e=t,r=dc(),n=yg();return it(),(i,a)=>(j(),de(P(Ht),{as:e.as,"as-child":e.asChild,"data-orientation":P(r).orientation,"data-state":P(n).dataState.value,"data-disabled":P(n).dataDisabled.value},{default:ie(()=>[Ee(i.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),YF=fe({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t;it();const r=gx();return(n,i)=>(j(),de(P(Ht),{type:n.as==="button"?"button":void 0,as:n.as,"as-child":e.asChild,"aria-controls":P(r).contentId,"aria-expanded":P(r).open.value,"data-state":P(r).open.value?"open":"closed","data-disabled":P(r).disabled?.value?"":void 0,disabled:P(r).disabled?.value,onClick:P(r).onOpenToggle},{default:ie(()=>[Ee(n.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),XF=fe({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(t){const e=t,r=dc(),n=yg();n.triggerId||=tl(void 0,"reka-accordion-trigger");function i(){const a=r.isSingle.value&&n.open.value&&!r.collapsible;n.disabled.value||a||r.changeModelValue(n.value.value)}return(a,o)=>(j(),de(P(YF),{id:P(n).triggerId,ref:P(n).currentRef,"data-reka-collection-item":"",as:e.as,"as-child":e.asChild,"aria-disabled":P(n).disabled.value||void 0,"aria-expanded":P(n).open.value||!1,"data-disabled":P(n).dataDisabled.value,"data-orientation":P(r).orientation,"data-state":P(n).dataState.value,disabled:P(n).disabled.value,onClick:i},{default:ie(()=>[Ee(a.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[sn,KF]=Do("DialogRoot"),qF=fe({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(t,{emit:e}){const r=t,i=hc(r,"open",e,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=we(),o=we(),{modal:s}=mo(r);return KF({open:i,modal:s,openModal:()=>{i.value=!0},onOpenChange:l=>{i.value=l},onOpenToggle:()=>{i.value=!i.value},contentId:"",titleId:"",descriptionId:"",triggerElement:a,contentElement:o}),(l,u)=>Ee(l.$slots,"default",{open:P(i),close:()=>i.value=!1})}}),jF=fe({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t;it();const r=sn();return(n,i)=>(j(),de(P(Ht),pt(e,{type:n.as==="button"?"button":void 0,onClick:i[0]||(i[0]=a=>P(r).onOpenChange(!1))}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["type"]))}});function bg(t){const e=gt(),r=e?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),r?.forEach(i=>{n[ja(dt(i))]=(...a)=>t(i,...a)}),n}function ii(){let t=document.activeElement;if(t==null)return null;for(;t!=null&&t.shadowRoot!=null&&t.shadowRoot.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ZF(t){return t?"open":"closed"}const QF=fF(()=>we([]));function JF(){const t=QF();return{add(e){const r=t.value[0];e!==r&&r?.pause(),t.value=$0(t.value,e),t.value.unshift(e)},remove(e){t.value=$0(t.value,e),t.value[0]?.resume()}}}function $0(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function eV(t){return t.filter(e=>e.tagName!=="A")}const ed="focusScope.autoFocusOnMount",td="focusScope.autoFocusOnUnmount",U0={bubbles:!1,cancelable:!0};function tV(t,{select:e=!1}={}){const r=ii();for(const n of t)if(Un(n,{select:e}),ii()!==r)return!0}function rV(t){const e=yx(t),r=G0(e,t),n=G0(e.reverse(),t);return[r,n]}function yx(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function G0(t,e){for(const r of t)if(!nV(r,{upTo:e}))return r}function nV(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function iV(t){return t instanceof HTMLInputElement&&"select"in t}function Un(t,{select:e=!1}={}){if(t&&t.focus){const r=ii();t.focus({preventScroll:!0}),t!==r&&iV(t)&&e&&t.select()}}const aV=fe({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(t,{emit:e}){const r=t,n=e,{currentRef:i,currentElement:a}=it(),o=we(null),s=JF(),l=go({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});ea(f=>{if(!pa)return;const c=a.value;if(!r.trapped)return;function h(g){if(l.paused||!c)return;const m=g.target;c.contains(m)?o.value=m:Un(o.value,{select:!0})}function d(g){if(l.paused||!c)return;const m=g.relatedTarget;m!==null&&(c.contains(m)||Un(o.value,{select:!0}))}function v(g){c.contains(o.value)||Un(c)}document.addEventListener("focusin",h),document.addEventListener("focusout",d);const p=new MutationObserver(v);c&&p.observe(c,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",d),p.disconnect()})}),ea(async f=>{const c=a.value;if(await Cr(),!c)return;s.add(l);const h=ii();if(!c.contains(h)){const v=new CustomEvent(ed,U0);c.addEventListener(ed,p=>n("mountAutoFocus",p)),c.dispatchEvent(v),v.defaultPrevented||(tV(eV(yx(c)),{select:!0}),ii()===h&&Un(c))}f(()=>{c.removeEventListener(ed,g=>n("mountAutoFocus",g));const v=new CustomEvent(td,U0),p=g=>{n("unmountAutoFocus",g)};c.addEventListener(td,p),c.dispatchEvent(v),setTimeout(()=>{v.defaultPrevented||Un(h??document.body,{select:!0}),c.removeEventListener(td,p),s.remove(l)},0)})});function u(f){if(!r.loop&&!r.trapped||l.paused)return;const c=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,h=ii();if(c&&h){const d=f.currentTarget,[v,p]=rV(d);v&&p?!f.shiftKey&&h===p?(f.preventDefault(),r.loop&&Un(v,{select:!0})):f.shiftKey&&h===v&&(f.preventDefault(),r.loop&&Un(p,{select:!0})):h===d&&f.preventDefault()}}return(f,c)=>(j(),de(P(Ht),{ref_key:"currentRef",ref:i,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:u},{default:ie(()=>[Ee(f.$slots,"default")]),_:3},8,["as-child","as"]))}});function _x(t,e,r){const n=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),n.dispatchEvent(i)}const oV="dismissableLayer.pointerDownOutside",sV="dismissableLayer.focusOutside";function bx(t,e){const r=e.closest("[data-dismissable-layer]"),n=t.dataset.dismissableLayer===""?t:t.querySelector("[data-dismissable-layer]"),i=Array.from(t.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||i.indexOf(n)<i.indexOf(r)))}function lV(t,e,r=!0){const n=e?.value?.ownerDocument??globalThis?.document,i=we(!1),a=we(()=>{});return ea(o=>{if(!pa||!At(r))return;const s=async u=>{const f=u.target;if(!(!e?.value||!f)){if(bx(e.value,f)){i.value=!1;return}if(u.target&&!i.value){let c=function(){_x(oV,t,h)};const h={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",a.value),a.value=c,n.addEventListener("click",a.value,{once:!0})):c()}else n.removeEventListener("click",a.value);i.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",s),n.removeEventListener("click",a.value)})}),{onPointerDownCapture:()=>{At(r)&&(i.value=!0)}}}function uV(t,e,r=!0){const n=e?.value?.ownerDocument??globalThis?.document,i=we(!1);return ea(a=>{if(!pa||!At(r))return;const o=async s=>{if(!e?.value)return;await Cr(),await Cr();const l=s.target;!e.value||!l||bx(e.value,l)||s.target&&!i.value&&_x(sV,t,{originalEvent:s})};n.addEventListener("focusin",o),a(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{At(r)&&(i.value=!0)},onBlurCapture:()=>{At(r)&&(i.value=!1)}}}const cn=go({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fV=fe({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(t,{emit:e}){const r=t,n=e,{forwardRef:i,currentElement:a}=it(),o=ge(()=>a.value?.ownerDocument??globalThis.document),s=ge(()=>cn.layersRoot),l=ge(()=>a.value?Array.from(s.value).indexOf(a.value):-1),u=ge(()=>cn.layersWithOutsidePointerEventsDisabled.size>0),f=ge(()=>{const v=Array.from(s.value),[p]=[...cn.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(p);return l.value>=g}),c=lV(async v=>{const p=[...cn.branches].some(g=>g?.contains(v.target));!f.value||p||(n("pointerDownOutside",v),n("interactOutside",v),await Cr(),v.defaultPrevented||n("dismiss"))},a),h=uV(v=>{[...cn.branches].some(g=>g?.contains(v.target))||(n("focusOutside",v),n("interactOutside",v),v.defaultPrevented||n("dismiss"))},a);SF("Escape",v=>{l.value===s.value.size-1&&(n("escapeKeyDown",v),v.defaultPrevented||n("dismiss"))});let d;return ea(v=>{a.value&&(r.disableOutsidePointerEvents&&(cn.layersWithOutsidePointerEventsDisabled.size===0&&(d=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),cn.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),v(()=>{r.disableOutsidePointerEvents&&cn.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=d)}))}),ea(v=>{v(()=>{a.value&&(s.value.delete(a.value),cn.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(v,p)=>(j(),de(P(Ht),{ref:P(i),"as-child":v.asChild,as:v.as,"data-dismissable-layer":"",style:po({pointerEvents:u.value?f.value?"auto":"none":void 0}),onFocusCapture:P(h).onFocusCapture,onBlurCapture:P(h).onBlurCapture,onPointerdownCapture:P(c).onPointerDownCapture},{default:ie(()=>[Ee(v.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Sx=fe({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=sn(),{forwardRef:a,currentElement:o}=it();return i.titleId||=tl(void 0,"reka-dialog-title"),i.descriptionId||=tl(void 0,"reka-dialog-description"),nn(()=>{i.contentElement=o,ii()!==document.body&&(i.triggerElement.value=ii())}),(s,l)=>(j(),de(P(aV),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>n("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>n("closeAutoFocus",u))},{default:ie(()=>[ee(P(fV),pt({id:P(i).contentId,ref:P(a),as:s.as,"as-child":s.asChild,"disable-outside-pointer-events":s.disableOutsidePointerEvents,role:"dialog","aria-describedby":P(i).descriptionId,"aria-labelledby":P(i).titleId,"data-state":P(ZF)(P(i).open.value)},s.$attrs,{onDismiss:l[0]||(l[0]=u=>P(i).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>n("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>n("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>n("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>n("pointerDownOutside",u))}),{default:ie(()=>[Ee(s.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}});var cV=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Na=new WeakMap,cu=new WeakMap,hu={},rd=0,Tx=function(t){return t&&(t.host||Tx(t.parentNode))},hV=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=Tx(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},dV=function(t,e,r,n){var i=hV(e,Array.isArray(t)?t:[t]);hu[r]||(hu[r]=new WeakMap);var a=hu[r],o=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))f(h);else try{var d=h.getAttribute(n),v=d!==null&&d!=="false",p=(Na.get(h)||0)+1,g=(a.get(h)||0)+1;Na.set(h,p),a.set(h,g),o.push(h),p===1&&v&&cu.set(h,!0),g===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(e),s.clear(),rd++,function(){o.forEach(function(c){var h=Na.get(c)-1,d=a.get(c)-1;Na.set(c,h),a.set(c,d),h||(cu.has(c)||c.removeAttribute(n),cu.delete(c)),d||c.removeAttribute(r)}),rd--,rd||(Na=new WeakMap,Na=new WeakMap,cu=new WeakMap,hu={})}},vV=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=cV(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),dV(n,i,r,"aria-hidden")):function(){return null}};function pV(t){let e;rt(()=>Co(t),r=>{r?e=vV(r):e&&e()}),fa(()=>{e&&e()})}const gV=fe({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=sn(),a=bg(n),{forwardRef:o,currentElement:s}=it();return pV(s),(l,u)=>(j(),de(Sx,pt({...r,...P(a)},{ref:P(o),"trap-focus":P(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=f=>{f.defaultPrevented||(f.preventDefault(),P(i).triggerElement.value?.focus())}),onPointerDownOutside:u[1]||(u[1]=f=>{const c=f.detail.originalEvent,h=c.button===0&&c.ctrlKey===!0;(c.button===2||h)&&f.preventDefault()}),onFocusOutside:u[2]||(u[2]=f=>{f.preventDefault()})}),{default:ie(()=>[Ee(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),mV=fe({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,i=bg(e);it();const a=sn(),o=we(!1),s=we(!1);return(l,u)=>(j(),de(Sx,pt({...r,...P(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=f=>{f.defaultPrevented||(o.value||P(a).triggerElement.value?.focus(),f.preventDefault()),o.value=!1,s.value=!1}),onInteractOutside:u[1]||(u[1]=f=>{f.defaultPrevented||(o.value=!0,f.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const c=f.target;P(a).triggerElement.value?.contains(c)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&s.value&&f.preventDefault()})}),{default:ie(()=>[Ee(l.$slots,"default")]),_:3},16))}}),yV=fe({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=sn(),a=bg(n),{forwardRef:o}=it();return(s,l)=>(j(),de(P(_g),{present:s.forceMount||P(i).open.value},{default:ie(()=>[P(i).modal.value?(j(),de(gV,pt({key:0,ref:P(o)},{...r,...P(a),...s.$attrs}),{default:ie(()=>[Ee(s.$slots,"default")]),_:3},16)):(j(),de(mV,pt({key:1,ref:P(o)},{...r,...P(a),...s.$attrs}),{default:ie(()=>[Ee(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),_V=fe({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(t){const e=t;it();const r=sn();return(n,i)=>(j(),de(P(Ht),pt(e,{id:P(r).descriptionId}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["id"]))}});function nd(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Lv(t,e,r=".",n){if(!nd(e))return Lv(t,{},r,n);const i=Object.assign({},e);for(const a in t){if(a==="__proto__"||a==="constructor")continue;const o=t[a];o!=null&&(n&&n(i,a,o,r)||(Array.isArray(o)&&Array.isArray(i[a])?i[a]=[...o,...i[a]]:nd(o)&&nd(i[a])?i[a]=Lv(o,i[a],(r?`${r}.`:"")+a.toString(),n):i[a]=o))}return i}function bV(t){return(...e)=>e.reduce((r,n)=>Lv(r,n,"",t),{})}const wV=bV(),SV=cF(()=>{const t=we(new Map),e=we(),r=ge(()=>{for(const o of t.value.values())if(o)return!0;return!1}),n=mg({scrollBody:we(!0)});let i=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=e.value??"",H0&&i?.(),e.value=void 0};return rt(r,(o,s)=>{if(!pa)return;if(!o){s&&a();return}e.value===void 0&&(e.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},f=n.scrollBody?.value?typeof n.scrollBody.value=="object"?wV({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof f.padding=="number"?`${f.padding}px`:String(f.padding),document.body.style.marginRight=typeof f.margin=="number"?`${f.margin}px`:String(f.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),H0&&(i=gg(document,"touchmove",c=>xV(c),{passive:!1})),Cr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),t});function TV(t){const e=Math.random().toString(36).substring(2,7),r=SV();r.value.set(e,t);const n=ge({get:()=>r.value.get(e)??!1,set:i=>r.value.set(e,i)});return yF(()=>{r.value.delete(e)}),n}function xx(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const r=t.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:xx(r)}}function xV(t){const e=t||window.event,r=e.target;return r instanceof Element&&xx(r)?!1:e.touches.length>1?!0:(e.preventDefault&&e.cancelable&&e.preventDefault(),!1)}const CV=fe({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(t){const e=sn();return TV(!0),it(),(r,n)=>(j(),de(P(Ht),{as:r.as,"as-child":r.asChild,"data-state":P(e).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:ie(()=>[Ee(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),DV=fe({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const e=sn(),{forwardRef:r}=it();return(n,i)=>P(e)?.modal.value?(j(),de(P(_g),{key:0,present:n.forceMount||P(e).open.value},{default:ie(()=>[ee(CV,pt(n.$attrs,{ref:P(r),as:n.as,"as-child":n.asChild}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Qr("",!0)}}),IV=fe({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(t){const e=bF();return(r,n)=>P(e)||r.forceMount?(j(),de(Ab,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[Ee(r.$slots,"default")],8,["to","disabled","defer"])):Qr("",!0)}}),AV=fe({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(t){const e=t,r=sn();return it(),(n,i)=>(j(),de(P(Ht),pt(e,{id:P(r).titleId}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["id"]))}}),MV=fe({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t,r=sn(),{forwardRef:n,currentElement:i}=it();return r.contentId||=tl(void 0,"reka-dialog-content"),nn(()=>{r.triggerElement.value=i.value}),(a,o)=>(j(),de(P(Ht),pt(e,{ref:P(n),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":P(r).open.value||!1,"aria-controls":P(r).open.value?P(r).contentId:void 0,"data-state":P(r).open.value?"open":"closed",onClick:P(r).onOpenToggle}),{default:ie(()=>[Ee(a.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}});function EV(){const t=we(),e=ge(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:Co(t));return{primitiveElement:t,currentElement:e}}function LV(t){return ge(()=>mF(t)?!!Co(t)?.closest("form"):!0)}const W0=fe({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(t){const e=t,{primitiveElement:r,currentElement:n}=EV(),i=ge(()=>e.checked??e.value);return rt(i,(a,o)=>{if(!n.value)return;const s=n.value,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(f&&a!==o){const c=new Event("input",{bubbles:!0}),h=new Event("change",{bubbles:!0});f.call(s,a),s.dispatchEvent(c),s.dispatchEvent(h)}}),(a,o)=>(j(),de(uF,pt({ref_key:"primitiveElement",ref:r},{...e,...a.$attrs},{as:"input"}),null,16))}}),PV=fe({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(t){const e=t,r=ge(()=>typeof e.value=="object"&&Array.isArray(e.value)&&e.value.length===0&&e.required),n=ge(()=>typeof e.value=="string"||typeof e.value=="number"||typeof e.value=="boolean"?[{name:e.name,value:e.value}]:typeof e.value=="object"&&Array.isArray(e.value)?e.value.flatMap((i,a)=>typeof i=="object"?Object.entries(i).map(([o,s])=>({name:`[${e.name}][${a}][${o}]`,value:s})):{name:`[${e.name}][${a}]`,value:i}):e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)?Object.entries(e.value).map(([i,a])=>({name:`[${e.name}][${i}]`,value:a})):[]);return(i,a)=>r.value?(j(),de(W0,pt({key:i.name},{...e,...i.$attrs},{name:i.name,value:i.value}),null,16,["name","value"])):(j(!0),je(qe,{key:1},_o(n.value,o=>(j(),de(W0,pt({key:o.name,ref_for:!0},{...e,...i.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))}}),RV=fe({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(t){const e=t;return(r,n)=>(j(),de(P(IV),q0(np(e)),{default:ie(()=>[Ee(r.$slots,"default")]),_:3},16))}}),[OV,kV]=Do("SwitchRoot"),NV=fe({__name:"SwitchRoot",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"},name:{},required:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{disabled:i}=mo(r),a=hc(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function o(){i.value||(a.value=!a.value)}const{forwardRef:s,currentElement:l}=it(),u=LV(l),f=ge(()=>r.id&&l.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0);return kV({modelValue:a,toggleCheck:o,disabled:i}),(c,h)=>(j(),de(P(Ht),pt(c.$attrs,{id:c.id,ref:P(s),role:"switch",type:c.as==="button"?"button":void 0,value:c.value,"aria-label":c.$attrs["aria-label"]||f.value,"aria-checked":P(a),"aria-required":c.required,"data-state":P(a)?"checked":"unchecked","data-disabled":P(i)?"":void 0,"as-child":c.asChild,as:c.as,disabled:P(i),onClick:o,onKeydown:sp(Hw(o,["prevent"]),["enter"])}),{default:ie(()=>[Ee(c.$slots,"default",{modelValue:P(a)}),P(u)&&c.name?(j(),de(P(PV),{key:0,type:"checkbox",name:c.name,disabled:P(i),required:c.required,value:c.value,checked:!!P(a)},null,8,["name","disabled","required","value","checked"])):Qr("",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),BV=fe({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(t){const e=OV();return it(),(r,n)=>(j(),de(P(Ht),{"data-state":P(e).modelValue?.value?"checked":"unchecked","data-disabled":P(e).disabled.value?"":void 0,"as-child":r.asChild,as:r.as},{default:ie(()=>[Ee(r.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),FV=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},VV={},HV={type:"button",class:"px-2 py-1 bg-blue-700 c-white rounded-md border border-solid border-blue-700 text-sm cursor-pointer flex items-center gap-1 justify-center"};function zV(t,e){return j(),je("button",HV,[Ee(t.$slots,"default")])}const wg=FV(VV,[["render",zV]]),Cx=fe({__name:"BaseSwitch",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue");return(r,n)=>(j(),de(P(NV),{id:"airplane-mode",modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i),class:"w-[32px] h-[20px] shadow-sm flex data-[state=unchecked]:bg-stone-300 data-[state=checked]:bg-blue-700 border border-stone-300 data-[state=checked]:border-blue-700 rounded-full relative"},{default:ie(()=>[ee(P(BV),{class:"w-3.5 h-3.5 my-auto bg-white rounded-full transition-transform translate-x-0.5 will-change-transform data-[state=checked]:translate-x-full"})]),_:1},8,["modelValue"]))}});function $V(t){return If()?(Fv(t),!0):!1}const UV=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const GV=Object.prototype.toString,WV=t=>GV.call(t)==="[object Object]";function id(t){return Array.isArray(t)?t:[t]}function YV(t,e,r){return rt(t,e,{...r,immediate:!0})}const XV=UV?window:void 0;function KV(t){var e;const r=At(t);return(e=r?.$el)!=null?e:r}function qV(...t){const e=[],r=()=>{e.forEach(s=>s()),e.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=ge(()=>{const s=id(At(t[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=YV(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>KV(u)))!=null?l:[XV].filter(u=>u!=null),id(At(i.value?t[1]:t[0])),id(P(i.value?t[2]:t[1])),At(i.value?t[3]:t[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=WV(f)?{...f}:f;e.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return $V(r),o}const Dx=Symbol("nested"),vc=fe({__name:"OptionItem",props:{title:{}},setup(t){const e=Yi(Dx,!1);return(r,n)=>(j(),je("div",{class:Sn(["c-slate-800 flex justify-between p-2",{"border-b border-solid border-gray-300":!P(e)}])},[br(Ct(r.title)+" ",1),Ee(r.$slots,"default")],2))}}),jV=["value","step"],du=fe({__name:"NumberOption",props:an({title:{},step:{},fixed:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue"),r=t;function n(){e.value+=r.step??1}function i(){e.value-=r.step??1}const a=we(!1);return qV("wheel",o=>{a.value&&(o.deltaY<0?n():i())},{passive:!1}),(o,s)=>(j(),de(vc,{title:o.title},{default:ie(()=>[pe("div",{class:"flex items-stretch border-1 border-solid border-gray-300 rounded",onMouseenter:s[1]||(s[1]=l=>a.value=!0),onMouseleave:s[2]||(s[2]=l=>a.value=!1)},[pe("button",{onClick:i,class:"border-r border-solid border-gray-300 w-[24px] flex items-center justify-center"},s[3]||(s[3]=[pe("span",{class:"i-mdi:minus block"},null,-1)])),pe("input",{class:"max-w-[70px] appearance-none text-center focus:outline-none",value:e.value.toFixed(r.fixed??0),onUpdate:s[0]||(s[0]=l=>e.value=Number.parseFloat(l.target.value)),step:o.step},null,40,jV),pe("button",{onClick:n,class:"border-l border-solid border-gray-300 w-[24px] flex items-center justify-center"},s[4]||(s[4]=[pe("span",{class:"i-mdi:plus block"},null,-1)]))],32)]),_:1},8,["title"]))}}),ZV=["value"],QV=fe({__name:"DropdownOption",props:an({options:{},title:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue");return(r,n)=>(j(),de(vc,{title:r.title},{default:ie(()=>[Of(pe("select",{"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i),class:"bg-transparent border-px border-solid border-blue-400 rounded capitalize focus:outline-none"},[(j(!0),je(qe,null,_o(r.options,i=>(j(),je("option",{key:i,value:i,class:"capitalize"},Ct(i),9,ZV))),128))],512),[[ul,e.value]])]),_:1},8,["title"]))}}),Sg=fe({__name:"OptionGroup",props:{title:{}},setup(t){return Ff(Dx,!0),(e,r)=>(j(),de(P(RF),{type:"single",collapsible:!0},{default:ie(()=>[ee(P(VF),{value:"1"},{default:ie(()=>[ee(P(WF),null,{default:ie(()=>[ee(P(XF),{class:"flex justify-between p-2 c-slate-800 hover:bg-gray-200 group w-full items-center border-b border-solid border-gray-300"},{default:ie(()=>[pe("div",null,Ct(e.title),1),r[0]||(r[0]=pe("span",{class:"i-mdi:chevron-down group-data-[state=open]:rotate-180"},null,-1))]),_:1,__:[0]})]),_:1}),ee(P(GF),{class:"border-b border-solid border-gray-300"},{default:ie(()=>[Ee(e.$slots,"default")]),_:3})]),_:3})]),_:3}))}}),Y0=[lr.Rendered,lr.Minified,lr.Compressed],Ix=fe({__name:"MetricOption",props:an({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,r=Dr(t,"modelValue"),n=lp(e.stats).sort((i,a)=>Y0.indexOf(i)-Y0.indexOf(a));return(i,a)=>(j(),de(P(QV),{title:"Stats",options:P(n),modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=o=>r.value=o)},null,8,["options","modelValue"]))}}),JV={class:"flex justify-between p-1"},eH={class:"max-h-400px overflow-auto p-1"},tH=["onClick","title"],rH=["checked","onChange"],nH={class:"flex-grow-1 flex-shrink-1 min-w-0 truncate"},iH={class:"ml-auto whitespace-nowrap"},Ax=fe({__name:"ModuleFilter",props:an({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options");function n(u,f){f?r.value={...r.value,hiddenModules:r.value.hiddenModules.filter(c=>c!==u.fileNameIndex)}:r.value={...r.value,hiddenModules:[...r.value.hiddenModules,u.fileNameIndex]}}function i(){r.value.hiddenModules.length===0?r.value={...r.value,hiddenModules:a.value.map(u=>u.fileNameIndex)}:r.value={...r.value,hiddenModules:[]}}const a=ge(()=>{const u=[];for(const f of e.stats.chunks)for(const c of f.modules)u.push({...c,fileName:e.stats.moduleFileNames[c.fileNameIndex]});return u}),o=we(""),s=ge(()=>o.value==="size-asc"?a.value.sort((u,f)=>(mn(u.fileName,e.stats,r.value.metric)??0)-(mn(f.fileName,e.stats,r.value.metric)??0)):o.value==="size-desc"?a.value.sort((u,f)=>(mn(f.fileName,e.stats,r.value.metric)??0)-(mn(u.fileName,e.stats,r.value.metric)??0)):o.value==="name-asc"?a.value.sort((u,f)=>u.fileName.localeCompare(f.fileName)):o.value==="name-desc"?a.value.sort((u,f)=>f.fileName.localeCompare(u.fileName)):a.value),l=ge(()=>{let u=0;for(const f of e.stats.chunks)u+=f.modules.length;return u});return(u,f)=>(j(),de(P(Sg),{title:`Visible modules (${l.value-r.value.hiddenModules.length}/${l.value})`},{default:ie(()=>[pe("div",JV,[ee(P(wg),{onClick:i},{default:ie(()=>f[1]||(f[1]=[br("Toggle all")])),_:1,__:[1]}),pe("label",null,[f[3]||(f[3]=br(" Sort by ")),Of(pe("select",{"onUpdate:modelValue":f[0]||(f[0]=c=>o.value=c)},f[2]||(f[2]=[pe("option",{value:""},"-",-1),pe("option",{value:"name-asc"},"Name asc",-1),pe("option",{value:"name-desc"},"Name desc",-1),pe("option",{value:"size-asc"},"Size asc",-1),pe("option",{value:"size-desc"},"Size desc",-1)]),512),[[ul,o.value]])])]),pe("div",eH,[(j(!0),je(qe,null,_o(s.value,c=>(j(),je("div",{class:"flex gap-1 cursor-pointer hover:bg-gray-300",onClick:h=>n(c,r.value.hiddenModules.includes(c.fileNameIndex)),title:c.fileName,key:c.fileNameIndex},[pe("input",{type:"checkbox",checked:!r.value.hiddenModules.includes(c.fileNameIndex),onChange:h=>n(c,h.target.checked)},null,40,rH),pe("div",nH,Ct(c.fileName),1),pe("div",iH,Ct(P(up)(P(mn)(c.fileNameIndex,e.stats,r.value.metric)??0)),1)],8,tH))),128))])]),_:1},8,["title"]))}}),aH={class:"flex justify-between p-1"},oH={class:"max-h-400px overflow-auto p-1"},sH=["onClick","title"],lH=["checked","onChange"],uH={class:"flex-grow-1 flex-shrink-1 min-w-0 truncate"},fH={class:"ml-auto whitespace-nowrap"},cH=fe({__name:"ChunkFilter",props:an({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options");function n(l,u){u?r.value={...r.value,hiddenChunks:r.value.hiddenChunks.filter(f=>f!==l.fileName)}:r.value={...r.value,hiddenChunks:[...r.value.hiddenChunks,l.fileName]}}function i(){r.value.hiddenChunks.length===0?r.value={...r.value,hiddenChunks:e.stats.chunks.map(l=>l.fileName)}:r.value={...r.value,hiddenChunks:[]}}function a(l){return l.modules.reduce((u,f)=>u+f.renderedLength,0)}const o=we(""),s=ge(()=>o.value==="size-asc"?e.stats.chunks.sort((l,u)=>a(l)-a(u)):o.value==="size-desc"?e.stats.chunks.sort((l,u)=>a(u)-a(l)):o.value==="name-asc"?e.stats.chunks.sort((l,u)=>l.fileName.localeCompare(u.fileName)):o.value==="name-desc"?e.stats.chunks.sort((l,u)=>u.fileName.localeCompare(l.fileName)):e.stats.chunks);return(l,u)=>(j(),je("div",null,[pe("div",aH,[ee(P(wg),{onClick:i},{default:ie(()=>u[1]||(u[1]=[br("Toggle all")])),_:1,__:[1]}),pe("label",null,[u[3]||(u[3]=br(" Sort by ")),Of(pe("select",{"onUpdate:modelValue":u[0]||(u[0]=f=>o.value=f)},u[2]||(u[2]=[mw('<option value="">-</option><option value="name-asc">Name asc</option><option value="name-desc">Name desc</option><option value="size-asc">Size asc</option><option value="size-desc">Size desc</option>',5)]),512),[[ul,o.value]])])]),pe("div",oH,[(j(!0),je(qe,null,_o(s.value,f=>(j(),je("div",{class:"flex gap-1 cursor-pointer hover:bg-gray-300",onClick:c=>n(f,r.value.hiddenChunks.includes(f.fileName)),key:f.fileName,title:f.fileName},[pe("input",{type:"checkbox",checked:!r.value.hiddenChunks.includes(f.fileName),onChange:c=>n(f,c.target.checked)},null,40,lH),pe("div",uH,Ct(f.fileName),1),pe("div",fH,Ct(P(up)(a(f))),1)],8,sH))),128))])]))}}),hH=fe({__name:"TreeMapViewOptions",props:an({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue"),r=ge({get:()=>e.value.compact,set:i=>e.value={...e.value,compact:i}}),n=Ri(e,"metric");return(i,a)=>(j(),je("div",null,[ee(P(Ix),{stats:i.stats,modelValue:P(n),"onUpdate:modelValue":a[0]||(a[0]=o=>Ue(n)?n.value=o:null)},null,8,["stats","modelValue"]),ee(P(vc),{title:"Compact"},{default:ie(()=>[ee(P(Cx),{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=o=>r.value=o)},null,8,["modelValue"])]),_:1}),ee(P(Sg),{title:`Visible chunks (${i.stats.chunks.length-e.value.hiddenChunks.length}/${i.stats.chunks.length})`},{default:ie(()=>[ee(cH,{options:e.value,"onUpdate:options":a[2]||(a[2]=o=>e.value=o),stats:i.stats},null,8,["options","stats"])]),_:1},8,["title"]),ee(P(Ax),{options:e.value,"onUpdate:options":a[3]||(a[3]=o=>e.value=o),stats:i.stats},null,8,["options","stats"])]))}}),dH=t=>({metric:lp(t)[0],compact:!0,hiddenModules:[],hiddenChunks:[]}),X0={ViewComponent:oF,OptionsComponent:hH,optionsFactory:t=>dH(t)};function vH(t,e,r){return Math.min(Math.max(t,e),r)}const pH=[void 0,"arrow"],gH="#e7000b",mH=fe({__name:"GraphView",props:an({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options"),n=Kv("main"),i=AT(n,[GT,$T,sx,vx],u=>{u.on("contextmenu",f=>{f.event.event.preventDefault(),r.value={...r.value,hiddenModules:[...r.value.hiddenModules,f.data.id]}}),u.setOption({color:$n,title:{text:"Module Import Graph"},animationDurationUpdate:1500,animationEasingUpdate:"quinticInOut",series:[{type:"graph",layout:"force",force:{friction:r.value.forceFriction,repulsion:r.value.forceRepulsion,edgeLength:r.value.forceEdgeLength,gravity:r.value.forceGravity},emphasis:{focus:"adjacency",label:{position:"right",show:!0}},label:{show:!1,formatter(f){const c=f.data.name;return`${c}
63
- ${up(mn(c,e.stats,r.value.metric)??0)}`}},roam:!0,lineStyle:{width:.5,opacity:.7}}]}),u.setOption(l.value)});rt(r,(u,f)=>{i.value&&(u.forceEdgeLength===f.forceEdgeLength&&u.forceFriction===f.forceFriction&&u.forceEdgeLength===f.forceEdgeLength&&u.forceGravity===f.forceGravity||i.value.setOption({series:[{force:{friction:u.forceFriction,repulsion:u.forceRepulsion,edgeLength:u.forceEdgeLength,gravity:u.forceGravity}}]}))});const a=ge(()=>r.value.metric),o=ge(u=>{if(u?.length!==r.value.hiddenModules.length)return r.value.hiddenModules;for(let f=0;f<u.length;f++)if(u[f]!==r.value.hiddenModules[f])return r.value.hiddenModules;return u}),s=ge(()=>r.value.compact),l=ge(u=>{let{edges:f}=e.stats.importGraph,c=e.stats.moduleFileNames;if(s.value){const p=aA(c,f,e.stats,a.value);f=p.edges,c=p.nodes}if(o.value.length){const p=Kw(c,f,o.value);f=p.edges,c=p.nodes}const h=new Set;for(const p of c){const g=Cd(p);g&&h.add(g)}const d=Array.from(h),v={src:!0};if(u===void 0)for(const p of d)v[p]=!1;return{legend:{data:[{name:"src",itemStyle:{color:$n[0]}},...d.map((p,g)=>({name:p,itemStyle:{color:$n[g+1]}}))],selected:v,top:20,icon:"circle"},series:[{categories:[{name:"src",itemStyle:{color:$n[0]}},...d.map((p,g)=>({name:p,itemStyle:{color:$n[g+1]}}))],edges:f.map(p=>({source:p[0],target:p[1],symbol:pH})),data:c.map((p,g)=>{const m=!f.some(([b,w])=>w===g),_=mn(p,e.stats,a.value)??0,y=d.findIndex(b=>b===Cd(p))+1;return{category:y,id:g,name:p,symbolSize:vH(_/1024,12,75),itemStyle:{borderColor:_===0?$n[y%$n.length]:void 0,color:m?gH:_===0?"#ffffff":void 0},emphasis:{label:{show:!0}}}})}]}});return rt(l,u=>{i.value?.setOption(u)}),(u,f)=>(j(),je("div",{ref_key:"main",ref:n},null,512))}}),yH=fe({__name:"GraphViewOptions",props:an({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue"),r=Ri(e,"forceRepulsion"),n=Ri(e,"forceEdgeLength"),i=Ri(e,"forceFriction"),a=Ri(e,"forceGravity"),o=Ri(e,"compact"),s=Ri(e,"metric");return(l,u)=>(j(),je("div",null,[ee(P(Ix),{stats:l.stats,modelValue:P(s),"onUpdate:modelValue":u[0]||(u[0]=f=>Ue(s)?s.value=f:null)},null,8,["stats","modelValue"]),ee(P(vc),{title:"Compact"},{default:ie(()=>[ee(P(Cx),{modelValue:P(o),"onUpdate:modelValue":u[1]||(u[1]=f=>Ue(o)?o.value=f:null)},null,8,["modelValue"])]),_:1}),ee(P(Ax),{options:e.value,"onUpdate:options":u[2]||(u[2]=f=>e.value=f),stats:l.stats},null,8,["options","stats"]),ee(P(Sg),{title:"Force layout"},{default:ie(()=>[ee(P(du),{title:"Repulsion",modelValue:P(r),"onUpdate:modelValue":u[3]||(u[3]=f=>Ue(r)?r.value=f:null)},null,8,["modelValue"]),ee(P(du),{title:"Edge length",modelValue:P(n),"onUpdate:modelValue":u[4]||(u[4]=f=>Ue(n)?n.value=f:null)},null,8,["modelValue"]),ee(P(du),{title:"Friction",modelValue:P(i),"onUpdate:modelValue":u[5]||(u[5]=f=>Ue(i)?i.value=f:null),step:.01,fixed:2},null,8,["modelValue"]),ee(P(du),{title:"Gravity",modelValue:P(a),"onUpdate:modelValue":u[6]||(u[6]=f=>Ue(a)?a.value=f:null),step:.01,fixed:2},null,8,["modelValue"])]),_:1})]))}});function _H(t){return{metric:lp(t)[0],forceRepulsion:50,forceGravity:.1,forceEdgeLength:30,forceFriction:.6,compact:!1,hiddenModules:[]}}const bH={ViewComponent:mH,OptionsComponent:yH,optionsFactory:t=>_H(t)};function wH(t){const e=t.chunks.length;let r=0,n=0;for(const o of t.chunks){r+=o.modules.length;for(const s of o.modules)s.virtual&&(n+=1)}const i=new Map;for(const o of t.moduleFileNames){const s=Cd(o);if(!s)continue;const l=o.lastIndexOf(`node_modules/${s}`),u=i.get(s);u?u.indices.includes(l)||u.indices.push(l):i.set(s,{indices:[l]})}const a=[];for(const[o,s]of i)s.indices.length>1&&a.push({name:o,count:s.indices.length});return{numberOfModules:r,numberOfVirtualModules:n,numberOfChunks:e,numberOfDependencies:i.size,duplicatedDependencies:a,hasWarnings:a.length>0}}const SH={key:0,class:"i-mdi:warning-outline"},TH={key:1,class:"i-mdi:info"},xH={class:"flex items-center gap-1"},CH={key:0,class:"i-mdi:alert-circle-outline c-yellow-500"},DH={key:0},IH=fe({__name:"OverviewModal",props:{stats:{}},setup(t){const r=wH(t.stats);return(n,i)=>(j(),de(P(qF),null,{default:ie(()=>[ee(P(MV),{"as-child":""},{default:ie(()=>[ee(P(wg),{class:Sn(n.$attrs.class)},{default:ie(()=>[P(r).hasWarnings?(j(),je("span",SH)):(j(),je("span",TH)),i[0]||(i[0]=br(" Report "))]),_:1,__:[0]},8,["class"]),Ee(n.$slots,"default")]),_:3}),ee(P(RV),null,{default:ie(()=>[ee(P(DV),{class:"fixed inset-0 z-30 bg-gray-200 opacity-75"}),ee(P(yV),{class:"fixed top-[50%] left-[50%] max-h-[85vh] w-[90vw] max-w-[450px] translate-x-[-50%] translate-y-[-50%] bg-white rounded z-30"},{default:ie(()=>[ee(P(AV),{class:"py-2 px-4 flex justify-center"},{default:ie(()=>i[1]||(i[1]=[br("Report")])),_:1,__:[1]}),ee(P(_V),{class:"px-4 py-2"},{default:ie(()=>[pe("div",null,"Number of chunks: "+Ct(P(r).numberOfChunks),1),pe("div",null," Number of modules: "+Ct(P(r).numberOfModules)+" ("+Ct(P(r).numberOfVirtualModules)+" virtual) ",1),pe("div",null,"Number of dependencies: "+Ct(P(r).numberOfDependencies),1),pe("div",xH,[P(r).numberOfDependencies>0?(j(),je("div",CH)):Qr("",!0),br(" Duplicated dependencies: "+Ct(P(r).duplicatedDependencies.length),1)]),P(r).duplicatedDependencies.length>0?(j(),je("ul",DH,[(j(!0),je(qe,null,_o(P(r).duplicatedDependencies,a=>(j(),je("li",{key:a.name,class:"flex items-center gap-1"},[i[2]||(i[2]=pe("div",{class:"i-mdi:alert-circle-outline c-yellow-500"},null,-1)),br(" "+Ct(a.name)+" - "+Ct(a.count)+" versions ",1)]))),128))])):Qr("",!0)]),_:1}),ee(P(jF),{class:"absolute top-3 right-2"},{default:ie(()=>i[3]||(i[3]=[pe("div",{class:"i-mdi:close"},null,-1)])),_:1,__:[3]})]),_:1})]),_:1})]),_:3}))}}),AH={class:"w-screen h-screen flex bg-gray-200"},MH={class:"w-1/3 max-w-[350px] bg-white rounded-lg m-5 p-2 flex flex-col"},EH=fe({__name:"App",setup(t){const e=il();fetch("stats.json").then(a=>a.json()).then(a=>{e.value=a});const r=we("treemap"),n=we();rt(e,()=>{n.value=i.value.optionsFactory(e.value)});const i=ge(()=>r.value==="treemap"?X0:r.value==="graph"?bH:X0);return rt(i,a=>{n.value=a.optionsFactory(e.value)}),(a,o)=>(j(),je("div",AH,[pe("div",MH,[ee(iA,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s)},null,8,["modelValue"]),e.value&&n.value?(j(),de(P(i).OptionsComponent,{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=s=>n.value=s),stats:e.value},null,8,["modelValue","stats"])):Qr("",!0),e.value?(j(),de(P(IH),{key:1,stats:e.value,class:"mt-auto"},null,8,["stats"])):Qr("",!0)]),e.value?(j(),de(P(i).ViewComponent,{key:0,stats:e.value,options:n.value,"onUpdate:options":o[2]||(o[2]=s=>n.value=s),class:"flex-grow-1 flex-shrink-1"},null,8,["stats","options"])):Qr("",!0)]))}});qu(EH).mount("#app");
62
+ `))}return()=>i.value||n.value||o.value?to(e.default({present:o.value})[0],{ref:u=>{const f=Co(u);return typeof f?.hasAttribute>"u"||(f?.hasAttribute("data-reka-popper-content-wrapper")?a.value=f.firstElementChild:a.value=f),f}}):null}}),UF=fe({inheritAttrs:!1,__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["contentFound"],setup(t,{emit:e}){const r=t,n=e,i=gx();i.contentId||=tl(void 0,"reka-collapsible-content");const a=we(),{forwardRef:o,currentElement:s}=it(),l=we(0),u=we(0),f=ge(()=>i.open.value),c=we(f.value),h=we();rt(()=>[f.value,a.value?.present],async()=>{await Cr();const v=s.value;if(!v)return;h.value=h.value||{transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const p=v.getBoundingClientRect();u.value=p.height,l.value=p.width,c.value||(v.style.transitionDuration=h.value.transitionDuration,v.style.animationName=h.value.animationName)},{immediate:!0});const d=ge(()=>c.value&&i.open.value);return an(()=>{requestAnimationFrame(()=>{c.value=!1})}),gg(s,"beforematch",v=>{requestAnimationFrame(()=>{i.onOpenToggle(),n("contentFound")})}),(v,p)=>(j(),de(P(_g),{ref_key:"presentRef",ref:a,present:v.forceMount||P(i).open.value,"force-mount":!0},{default:ie(({present:g})=>[ee(P(Ht),pt(v.$attrs,{id:P(i).contentId,ref:P(o),"as-child":r.asChild,as:v.as,hidden:g?void 0:P(i).unmountOnHide.value?"":"until-found","data-state":d.value?void 0:P(i).open.value?"open":"closed","data-disabled":P(i).disabled?.value?"":void 0,style:{"--reka-collapsible-content-height":`${u.value}px`,"--reka-collapsible-content-width":`${l.value}px`}}),{default:ie(()=>[!P(i).unmountOnHide.value||g?Ee(v.$slots,"default",{key:0}):Qr("",!0)]),_:2},1040,["id","as-child","as","hidden","data-state","data-disabled","style"])]),_:3},8,["present"]))}}),GF=fe({__name:"AccordionContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const e=t,r=dc(),n=yg();return it(),(i,a)=>(j(),de(P(UF),{role:"region","as-child":e.asChild,as:i.as,"force-mount":e.forceMount,"aria-labelledby":P(n).triggerId,"data-state":P(n).dataState.value,"data-disabled":P(n).dataDisabled.value,"data-orientation":P(r).orientation,style:{"--reka-accordion-content-width":"var(--reka-collapsible-content-width)","--reka-accordion-content-height":"var(--reka-collapsible-content-height)"},onContentFound:a[0]||(a[0]=o=>P(r).changeModelValue(P(n).value.value))},{default:ie(()=>[Ee(i.$slots,"default")]),_:3},8,["as-child","as","force-mount","aria-labelledby","data-state","data-disabled","data-orientation"]))}}),WF=fe({__name:"AccordionHeader",props:{asChild:{type:Boolean},as:{default:"h3"}},setup(t){const e=t,r=dc(),n=yg();return it(),(i,a)=>(j(),de(P(Ht),{as:e.as,"as-child":e.asChild,"data-orientation":P(r).orientation,"data-state":P(n).dataState.value,"data-disabled":P(n).dataDisabled.value},{default:ie(()=>[Ee(i.$slots,"default")]),_:3},8,["as","as-child","data-orientation","data-state","data-disabled"]))}}),YF=fe({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t;it();const r=gx();return(n,i)=>(j(),de(P(Ht),{type:n.as==="button"?"button":void 0,as:n.as,"as-child":e.asChild,"aria-controls":P(r).contentId,"aria-expanded":P(r).open.value,"data-state":P(r).open.value?"open":"closed","data-disabled":P(r).disabled?.value?"":void 0,disabled:P(r).disabled?.value,onClick:P(r).onOpenToggle},{default:ie(()=>[Ee(n.$slots,"default")]),_:3},8,["type","as","as-child","aria-controls","aria-expanded","data-state","data-disabled","disabled","onClick"]))}}),XF=fe({__name:"AccordionTrigger",props:{asChild:{type:Boolean},as:{}},setup(t){const e=t,r=dc(),n=yg();n.triggerId||=tl(void 0,"reka-accordion-trigger");function i(){const a=r.isSingle.value&&n.open.value&&!r.collapsible;n.disabled.value||a||r.changeModelValue(n.value.value)}return(a,o)=>(j(),de(P(YF),{id:P(n).triggerId,ref:P(n).currentRef,"data-reka-collection-item":"",as:e.as,"as-child":e.asChild,"aria-disabled":P(n).disabled.value||void 0,"aria-expanded":P(n).open.value||!1,"data-disabled":P(n).dataDisabled.value,"data-orientation":P(r).orientation,"data-state":P(n).dataState.value,disabled:P(n).disabled.value,onClick:i},{default:ie(()=>[Ee(a.$slots,"default")]),_:3},8,["id","as","as-child","aria-disabled","aria-expanded","data-disabled","data-orientation","data-state","disabled"]))}}),[ln,KF]=Do("DialogRoot"),qF=fe({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},emits:["update:open"],setup(t,{emit:e}){const r=t,i=hc(r,"open",e,{defaultValue:r.defaultOpen,passive:r.open===void 0}),a=we(),o=we(),{modal:s}=mo(r);return KF({open:i,modal:s,openModal:()=>{i.value=!0},onOpenChange:l=>{i.value=l},onOpenToggle:()=>{i.value=!i.value},contentId:"",titleId:"",descriptionId:"",triggerElement:a,contentElement:o}),(l,u)=>Ee(l.$slots,"default",{open:P(i),close:()=>i.value=!1})}}),jF=fe({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t;it();const r=ln();return(n,i)=>(j(),de(P(Ht),pt(e,{type:n.as==="button"?"button":void 0,onClick:i[0]||(i[0]=a=>P(r).onOpenChange(!1))}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["type"]))}});function bg(t){const e=gt(),r=e?.type.emits,n={};return r?.length||console.warn(`No emitted event found. Please check component: ${e?.type.__name}`),r?.forEach(i=>{n[ja(dt(i))]=(...a)=>t(i,...a)}),n}function ii(){let t=document.activeElement;if(t==null)return null;for(;t!=null&&t.shadowRoot!=null&&t.shadowRoot.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ZF(t){return t?"open":"closed"}const QF=fF(()=>we([]));function JF(){const t=QF();return{add(e){const r=t.value[0];e!==r&&r?.pause(),t.value=$0(t.value,e),t.value.unshift(e)},remove(e){t.value=$0(t.value,e),t.value[0]?.resume()}}}function $0(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function eV(t){return t.filter(e=>e.tagName!=="A")}const ed="focusScope.autoFocusOnMount",td="focusScope.autoFocusOnUnmount",U0={bubbles:!1,cancelable:!0};function tV(t,{select:e=!1}={}){const r=ii();for(const n of t)if(Un(n,{select:e}),ii()!==r)return!0}function rV(t){const e=yx(t),r=G0(e,t),n=G0(e.reverse(),t);return[r,n]}function yx(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function G0(t,e){for(const r of t)if(!nV(r,{upTo:e}))return r}function nV(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function iV(t){return t instanceof HTMLInputElement&&"select"in t}function Un(t,{select:e=!1}={}){if(t&&t.focus){const r=ii();t.focus({preventScroll:!0}),t!==r&&iV(t)&&e&&t.select()}}const aV=fe({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(t,{emit:e}){const r=t,n=e,{currentRef:i,currentElement:a}=it(),o=we(null),s=JF(),l=go({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});ea(f=>{if(!pa)return;const c=a.value;if(!r.trapped)return;function h(g){if(l.paused||!c)return;const m=g.target;c.contains(m)?o.value=m:Un(o.value,{select:!0})}function d(g){if(l.paused||!c)return;const m=g.relatedTarget;m!==null&&(c.contains(m)||Un(o.value,{select:!0}))}function v(g){c.contains(o.value)||Un(c)}document.addEventListener("focusin",h),document.addEventListener("focusout",d);const p=new MutationObserver(v);c&&p.observe(c,{childList:!0,subtree:!0}),f(()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",d),p.disconnect()})}),ea(async f=>{const c=a.value;if(await Cr(),!c)return;s.add(l);const h=ii();if(!c.contains(h)){const v=new CustomEvent(ed,U0);c.addEventListener(ed,p=>n("mountAutoFocus",p)),c.dispatchEvent(v),v.defaultPrevented||(tV(eV(yx(c)),{select:!0}),ii()===h&&Un(c))}f(()=>{c.removeEventListener(ed,g=>n("mountAutoFocus",g));const v=new CustomEvent(td,U0),p=g=>{n("unmountAutoFocus",g)};c.addEventListener(td,p),c.dispatchEvent(v),setTimeout(()=>{v.defaultPrevented||Un(h??document.body,{select:!0}),c.removeEventListener(td,p),s.remove(l)},0)})});function u(f){if(!r.loop&&!r.trapped||l.paused)return;const c=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,h=ii();if(c&&h){const d=f.currentTarget,[v,p]=rV(d);v&&p?!f.shiftKey&&h===p?(f.preventDefault(),r.loop&&Un(v,{select:!0})):f.shiftKey&&h===v&&(f.preventDefault(),r.loop&&Un(p,{select:!0})):h===d&&f.preventDefault()}}return(f,c)=>(j(),de(P(Ht),{ref_key:"currentRef",ref:i,tabindex:"-1","as-child":f.asChild,as:f.as,onKeydown:u},{default:ie(()=>[Ee(f.$slots,"default")]),_:3},8,["as-child","as"]))}});function _x(t,e,r){const n=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),n.dispatchEvent(i)}const oV="dismissableLayer.pointerDownOutside",sV="dismissableLayer.focusOutside";function bx(t,e){const r=e.closest("[data-dismissable-layer]"),n=t.dataset.dismissableLayer===""?t:t.querySelector("[data-dismissable-layer]"),i=Array.from(t.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(r&&(n===r||i.indexOf(n)<i.indexOf(r)))}function lV(t,e,r=!0){const n=e?.value?.ownerDocument??globalThis?.document,i=we(!1),a=we(()=>{});return ea(o=>{if(!pa||!At(r))return;const s=async u=>{const f=u.target;if(!(!e?.value||!f)){if(bx(e.value,f)){i.value=!1;return}if(u.target&&!i.value){let c=function(){_x(oV,t,h)};const h={originalEvent:u};u.pointerType==="touch"?(n.removeEventListener("click",a.value),a.value=c,n.addEventListener("click",a.value,{once:!0})):c()}else n.removeEventListener("click",a.value);i.value=!1}},l=window.setTimeout(()=>{n.addEventListener("pointerdown",s)},0);o(()=>{window.clearTimeout(l),n.removeEventListener("pointerdown",s),n.removeEventListener("click",a.value)})}),{onPointerDownCapture:()=>{At(r)&&(i.value=!0)}}}function uV(t,e,r=!0){const n=e?.value?.ownerDocument??globalThis?.document,i=we(!1);return ea(a=>{if(!pa||!At(r))return;const o=async s=>{if(!e?.value)return;await Cr(),await Cr();const l=s.target;!e.value||!l||bx(e.value,l)||s.target&&!i.value&&_x(sV,t,{originalEvent:s})};n.addEventListener("focusin",o),a(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{At(r)&&(i.value=!0)},onBlurCapture:()=>{At(r)&&(i.value=!1)}}}const hn=go({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fV=fe({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(t,{emit:e}){const r=t,n=e,{forwardRef:i,currentElement:a}=it(),o=ge(()=>a.value?.ownerDocument??globalThis.document),s=ge(()=>hn.layersRoot),l=ge(()=>a.value?Array.from(s.value).indexOf(a.value):-1),u=ge(()=>hn.layersWithOutsidePointerEventsDisabled.size>0),f=ge(()=>{const v=Array.from(s.value),[p]=[...hn.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(p);return l.value>=g}),c=lV(async v=>{const p=[...hn.branches].some(g=>g?.contains(v.target));!f.value||p||(n("pointerDownOutside",v),n("interactOutside",v),await Cr(),v.defaultPrevented||n("dismiss"))},a),h=uV(v=>{[...hn.branches].some(g=>g?.contains(v.target))||(n("focusOutside",v),n("interactOutside",v),v.defaultPrevented||n("dismiss"))},a);SF("Escape",v=>{l.value===s.value.size-1&&(n("escapeKeyDown",v),v.defaultPrevented||n("dismiss"))});let d;return ea(v=>{a.value&&(r.disableOutsidePointerEvents&&(hn.layersWithOutsidePointerEventsDisabled.size===0&&(d=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),hn.layersWithOutsidePointerEventsDisabled.add(a.value)),s.value.add(a.value),v(()=>{r.disableOutsidePointerEvents&&hn.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=d)}))}),ea(v=>{v(()=>{a.value&&(s.value.delete(a.value),hn.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(v,p)=>(j(),de(P(Ht),{ref:P(i),"as-child":v.asChild,as:v.as,"data-dismissable-layer":"",style:po({pointerEvents:u.value?f.value?"auto":"none":void 0}),onFocusCapture:P(h).onFocusCapture,onBlurCapture:P(h).onBlurCapture,onPointerdownCapture:P(c).onPointerDownCapture},{default:ie(()=>[Ee(v.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Sx=fe({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=ln(),{forwardRef:a,currentElement:o}=it();return i.titleId||=tl(void 0,"reka-dialog-title"),i.descriptionId||=tl(void 0,"reka-dialog-description"),an(()=>{i.contentElement=o,ii()!==document.body&&(i.triggerElement.value=ii())}),(s,l)=>(j(),de(P(aV),{"as-child":"",loop:"",trapped:r.trapFocus,onMountAutoFocus:l[5]||(l[5]=u=>n("openAutoFocus",u)),onUnmountAutoFocus:l[6]||(l[6]=u=>n("closeAutoFocus",u))},{default:ie(()=>[ee(P(fV),pt({id:P(i).contentId,ref:P(a),as:s.as,"as-child":s.asChild,"disable-outside-pointer-events":s.disableOutsidePointerEvents,role:"dialog","aria-describedby":P(i).descriptionId,"aria-labelledby":P(i).titleId,"data-state":P(ZF)(P(i).open.value)},s.$attrs,{onDismiss:l[0]||(l[0]=u=>P(i).onOpenChange(!1)),onEscapeKeyDown:l[1]||(l[1]=u=>n("escapeKeyDown",u)),onFocusOutside:l[2]||(l[2]=u=>n("focusOutside",u)),onInteractOutside:l[3]||(l[3]=u=>n("interactOutside",u)),onPointerDownOutside:l[4]||(l[4]=u=>n("pointerDownOutside",u))}),{default:ie(()=>[Ee(s.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}});var cV=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Na=new WeakMap,cu=new WeakMap,hu={},rd=0,Tx=function(t){return t&&(t.host||Tx(t.parentNode))},hV=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=Tx(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},dV=function(t,e,r,n){var i=hV(e,Array.isArray(t)?t:[t]);hu[r]||(hu[r]=new WeakMap);var a=hu[r],o=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))f(h);else try{var d=h.getAttribute(n),v=d!==null&&d!=="false",p=(Na.get(h)||0)+1,g=(a.get(h)||0)+1;Na.set(h,p),a.set(h,g),o.push(h),p===1&&v&&cu.set(h,!0),g===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return f(e),s.clear(),rd++,function(){o.forEach(function(c){var h=Na.get(c)-1,d=a.get(c)-1;Na.set(c,h),a.set(c,d),h||(cu.has(c)||c.removeAttribute(n),cu.delete(c)),d||c.removeAttribute(r)}),rd--,rd||(Na=new WeakMap,Na=new WeakMap,cu=new WeakMap,hu={})}},vV=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=cV(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),dV(n,i,r,"aria-hidden")):function(){return null}};function pV(t){let e;rt(()=>Co(t),r=>{r?e=vV(r):e&&e()}),fa(()=>{e&&e()})}const gV=fe({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=ln(),a=bg(n),{forwardRef:o,currentElement:s}=it();return pV(s),(l,u)=>(j(),de(Sx,pt({...r,...P(a)},{ref:P(o),"trap-focus":P(i).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=f=>{f.defaultPrevented||(f.preventDefault(),P(i).triggerElement.value?.focus())}),onPointerDownOutside:u[1]||(u[1]=f=>{const c=f.detail.originalEvent,h=c.button===0&&c.ctrlKey===!0;(c.button===2||h)&&f.preventDefault()}),onFocusOutside:u[2]||(u[2]=f=>{f.preventDefault()})}),{default:ie(()=>[Ee(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),mV=fe({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,i=bg(e);it();const a=ln(),o=we(!1),s=we(!1);return(l,u)=>(j(),de(Sx,pt({...r,...P(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:u[0]||(u[0]=f=>{f.defaultPrevented||(o.value||P(a).triggerElement.value?.focus(),f.preventDefault()),o.value=!1,s.value=!1}),onInteractOutside:u[1]||(u[1]=f=>{f.defaultPrevented||(o.value=!0,f.detail.originalEvent.type==="pointerdown"&&(s.value=!0));const c=f.target;P(a).triggerElement.value?.contains(c)&&f.preventDefault(),f.detail.originalEvent.type==="focusin"&&s.value&&f.preventDefault()})}),{default:ie(()=>[Ee(l.$slots,"default")]),_:3},16))}}),yV=fe({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(t,{emit:e}){const r=t,n=e,i=ln(),a=bg(n),{forwardRef:o}=it();return(s,l)=>(j(),de(P(_g),{present:s.forceMount||P(i).open.value},{default:ie(()=>[P(i).modal.value?(j(),de(gV,pt({key:0,ref:P(o)},{...r,...P(a),...s.$attrs}),{default:ie(()=>[Ee(s.$slots,"default")]),_:3},16)):(j(),de(mV,pt({key:1,ref:P(o)},{...r,...P(a),...s.$attrs}),{default:ie(()=>[Ee(s.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),_V=fe({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(t){const e=t;it();const r=ln();return(n,i)=>(j(),de(P(Ht),pt(e,{id:P(r).descriptionId}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["id"]))}});function nd(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function Lv(t,e,r=".",n){if(!nd(e))return Lv(t,{},r,n);const i=Object.assign({},e);for(const a in t){if(a==="__proto__"||a==="constructor")continue;const o=t[a];o!=null&&(n&&n(i,a,o,r)||(Array.isArray(o)&&Array.isArray(i[a])?i[a]=[...o,...i[a]]:nd(o)&&nd(i[a])?i[a]=Lv(o,i[a],(r?`${r}.`:"")+a.toString(),n):i[a]=o))}return i}function bV(t){return(...e)=>e.reduce((r,n)=>Lv(r,n,"",t),{})}const wV=bV(),SV=cF(()=>{const t=we(new Map),e=we(),r=ge(()=>{for(const o of t.value.values())if(o)return!0;return!1}),n=mg({scrollBody:we(!0)});let i=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=e.value??"",H0&&i?.(),e.value=void 0};return rt(r,(o,s)=>{if(!pa)return;if(!o){s&&a();return}e.value===void 0&&(e.value=document.body.style.overflow);const l=window.innerWidth-document.documentElement.clientWidth,u={padding:l,margin:0},f=n.scrollBody?.value?typeof n.scrollBody.value=="object"?wV({padding:n.scrollBody.value.padding===!0?l:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?l:n.scrollBody.value.margin},u):u:{padding:0,margin:0};l>0&&(document.body.style.paddingRight=typeof f.padding=="number"?`${f.padding}px`:String(f.padding),document.body.style.marginRight=typeof f.margin=="number"?`${f.margin}px`:String(f.margin),document.documentElement.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),H0&&(i=gg(document,"touchmove",c=>xV(c),{passive:!1})),Cr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),t});function TV(t){const e=Math.random().toString(36).substring(2,7),r=SV();r.value.set(e,t);const n=ge({get:()=>r.value.get(e)??!1,set:i=>r.value.set(e,i)});return yF(()=>{r.value.delete(e)}),n}function xx(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const r=t.parentNode;return!(r instanceof Element)||r.tagName==="BODY"?!1:xx(r)}}function xV(t){const e=t||window.event,r=e.target;return r instanceof Element&&xx(r)?!1:e.touches.length>1?!0:(e.preventDefault&&e.cancelable&&e.preventDefault(),!1)}const CV=fe({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(t){const e=ln();return TV(!0),it(),(r,n)=>(j(),de(P(Ht),{as:r.as,"as-child":r.asChild,"data-state":P(e).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:ie(()=>[Ee(r.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),DV=fe({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(t){const e=ln(),{forwardRef:r}=it();return(n,i)=>P(e)?.modal.value?(j(),de(P(_g),{key:0,present:n.forceMount||P(e).open.value},{default:ie(()=>[ee(CV,pt(n.$attrs,{ref:P(r),as:n.as,"as-child":n.asChild}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):Qr("",!0)}}),IV=fe({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(t){const e=bF();return(r,n)=>P(e)||r.forceMount?(j(),de(Ab,{key:0,to:r.to,disabled:r.disabled,defer:r.defer},[Ee(r.$slots,"default")],8,["to","disabled","defer"])):Qr("",!0)}}),AV=fe({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(t){const e=t,r=ln();return it(),(n,i)=>(j(),de(P(Ht),pt(e,{id:P(r).titleId}),{default:ie(()=>[Ee(n.$slots,"default")]),_:3},16,["id"]))}}),MV=fe({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{default:"button"}},setup(t){const e=t,r=ln(),{forwardRef:n,currentElement:i}=it();return r.contentId||=tl(void 0,"reka-dialog-content"),an(()=>{r.triggerElement.value=i.value}),(a,o)=>(j(),de(P(Ht),pt(e,{ref:P(n),type:a.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":P(r).open.value||!1,"aria-controls":P(r).open.value?P(r).contentId:void 0,"data-state":P(r).open.value?"open":"closed",onClick:P(r).onOpenToggle}),{default:ie(()=>[Ee(a.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","onClick"]))}});function EV(){const t=we(),e=ge(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:Co(t));return{primitiveElement:t,currentElement:e}}function LV(t){return ge(()=>mF(t)?!!Co(t)?.closest("form"):!0)}const W0=fe({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(t){const e=t,{primitiveElement:r,currentElement:n}=EV(),i=ge(()=>e.checked??e.value);return rt(i,(a,o)=>{if(!n.value)return;const s=n.value,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(f&&a!==o){const c=new Event("input",{bubbles:!0}),h=new Event("change",{bubbles:!0});f.call(s,a),s.dispatchEvent(c),s.dispatchEvent(h)}}),(a,o)=>(j(),de(uF,pt({ref_key:"primitiveElement",ref:r},{...e,...a.$attrs},{as:"input"}),null,16))}}),PV=fe({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{},value:{},checked:{type:Boolean,default:void 0},required:{type:Boolean},disabled:{type:Boolean},feature:{default:"fully-hidden"}},setup(t){const e=t,r=ge(()=>typeof e.value=="object"&&Array.isArray(e.value)&&e.value.length===0&&e.required),n=ge(()=>typeof e.value=="string"||typeof e.value=="number"||typeof e.value=="boolean"?[{name:e.name,value:e.value}]:typeof e.value=="object"&&Array.isArray(e.value)?e.value.flatMap((i,a)=>typeof i=="object"?Object.entries(i).map(([o,s])=>({name:`[${e.name}][${a}][${o}]`,value:s})):{name:`[${e.name}][${a}]`,value:i}):e.value!==null&&typeof e.value=="object"&&!Array.isArray(e.value)?Object.entries(e.value).map(([i,a])=>({name:`[${e.name}][${i}]`,value:a})):[]);return(i,a)=>r.value?(j(),de(W0,pt({key:i.name},{...e,...i.$attrs},{name:i.name,value:i.value}),null,16,["name","value"])):(j(!0),je(qe,{key:1},_o(n.value,o=>(j(),de(W0,pt({key:o.name,ref_for:!0},{...e,...i.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))}}),RV=fe({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},defer:{type:Boolean},forceMount:{type:Boolean}},setup(t){const e=t;return(r,n)=>(j(),de(P(IV),q0(np(e)),{default:ie(()=>[Ee(r.$slots,"default")]),_:3},16))}}),[OV,kV]=Do("SwitchRoot"),NV=fe({__name:"SwitchRoot",props:{defaultValue:{type:Boolean},modelValue:{type:[Boolean,null],default:void 0},disabled:{type:Boolean},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"},name:{},required:{type:Boolean}},emits:["update:modelValue"],setup(t,{emit:e}){const r=t,n=e,{disabled:i}=mo(r),a=hc(r,"modelValue",n,{defaultValue:r.defaultValue,passive:r.modelValue===void 0});function o(){i.value||(a.value=!a.value)}const{forwardRef:s,currentElement:l}=it(),u=LV(l),f=ge(()=>r.id&&l.value?document.querySelector(`[for="${r.id}"]`)?.innerText:void 0);return kV({modelValue:a,toggleCheck:o,disabled:i}),(c,h)=>(j(),de(P(Ht),pt(c.$attrs,{id:c.id,ref:P(s),role:"switch",type:c.as==="button"?"button":void 0,value:c.value,"aria-label":c.$attrs["aria-label"]||f.value,"aria-checked":P(a),"aria-required":c.required,"data-state":P(a)?"checked":"unchecked","data-disabled":P(i)?"":void 0,"as-child":c.asChild,as:c.as,disabled:P(i),onClick:o,onKeydown:sp(Hw(o,["prevent"]),["enter"])}),{default:ie(()=>[Ee(c.$slots,"default",{modelValue:P(a)}),P(u)&&c.name?(j(),de(P(PV),{key:0,type:"checkbox",name:c.name,disabled:P(i),required:c.required,value:c.value,checked:!!P(a)},null,8,["name","disabled","required","value","checked"])):Qr("",!0)]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]))}}),BV=fe({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(t){const e=OV();return it(),(r,n)=>(j(),de(P(Ht),{"data-state":P(e).modelValue?.value?"checked":"unchecked","data-disabled":P(e).disabled.value?"":void 0,"as-child":r.asChild,as:r.as},{default:ie(()=>[Ee(r.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"]))}}),FV=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},VV={},HV={type:"button",class:"px-2 py-1 bg-blue-700 c-white rounded-md border border-solid border-blue-700 text-sm cursor-pointer flex items-center gap-1 justify-center"};function zV(t,e){return j(),je("button",HV,[Ee(t.$slots,"default")])}const wg=FV(VV,[["render",zV]]),Cx=fe({__name:"BaseSwitch",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue");return(r,n)=>(j(),de(P(NV),{id:"airplane-mode",modelValue:e.value,"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i),class:"w-[32px] h-[20px] shadow-sm flex data-[state=unchecked]:bg-stone-300 data-[state=checked]:bg-blue-700 border border-stone-300 data-[state=checked]:border-blue-700 rounded-full relative"},{default:ie(()=>[ee(P(BV),{class:"w-3.5 h-3.5 my-auto bg-white rounded-full transition-transform translate-x-0.5 will-change-transform data-[state=checked]:translate-x-full"})]),_:1},8,["modelValue"]))}});function $V(t){return If()?(Fv(t),!0):!1}const UV=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const GV=Object.prototype.toString,WV=t=>GV.call(t)==="[object Object]";function id(t){return Array.isArray(t)?t:[t]}function YV(t,e,r){return rt(t,e,{...r,immediate:!0})}const XV=UV?window:void 0;function KV(t){var e;const r=At(t);return(e=r?.$el)!=null?e:r}function qV(...t){const e=[],r=()=>{e.forEach(s=>s()),e.length=0},n=(s,l,u,f)=>(s.addEventListener(l,u,f),()=>s.removeEventListener(l,u,f)),i=ge(()=>{const s=id(At(t[0])).filter(l=>l!=null);return s.every(l=>typeof l!="string")?s:void 0}),a=YV(()=>{var s,l;return[(l=(s=i.value)==null?void 0:s.map(u=>KV(u)))!=null?l:[XV].filter(u=>u!=null),id(At(i.value?t[1]:t[0])),id(P(i.value?t[2]:t[1])),At(i.value?t[3]:t[2])]},([s,l,u,f])=>{if(r(),!s?.length||!l?.length||!u?.length)return;const c=WV(f)?{...f}:f;e.push(...s.flatMap(h=>l.flatMap(d=>u.map(v=>n(h,d,v,c)))))},{flush:"post"}),o=()=>{a(),r()};return $V(r),o}const Dx=Symbol("nested"),vc=fe({__name:"OptionItem",props:{title:{}},setup(t){const e=Yi(Dx,!1);return(r,n)=>(j(),je("div",{class:en(["c-slate-800 flex justify-between p-2",{"border-b border-solid border-gray-300":!P(e)}])},[br(Ct(r.title)+" ",1),Ee(r.$slots,"default")],2))}}),jV=["value","step"],du=fe({__name:"NumberOption",props:on({title:{},step:{},fixed:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue"),r=t;function n(){e.value+=r.step??1}function i(){e.value-=r.step??1}const a=we(!1);return qV("wheel",o=>{a.value&&(o.deltaY<0?n():i())},{passive:!1}),(o,s)=>(j(),de(vc,{title:o.title},{default:ie(()=>[pe("div",{class:"flex items-stretch border-1 border-solid border-gray-300 rounded",onMouseenter:s[1]||(s[1]=l=>a.value=!0),onMouseleave:s[2]||(s[2]=l=>a.value=!1)},[pe("button",{onClick:i,class:"border-r border-solid border-gray-300 w-[24px] flex items-center justify-center"},s[3]||(s[3]=[pe("span",{class:"i-mdi:minus block"},null,-1)])),pe("input",{class:"max-w-[70px] appearance-none text-center focus:outline-none",value:e.value.toFixed(r.fixed??0),onUpdate:s[0]||(s[0]=l=>e.value=Number.parseFloat(l.target.value)),step:o.step},null,40,jV),pe("button",{onClick:n,class:"border-l border-solid border-gray-300 w-[24px] flex items-center justify-center"},s[4]||(s[4]=[pe("span",{class:"i-mdi:plus block"},null,-1)]))],32)]),_:1},8,["title"]))}}),ZV=["value"],QV=fe({__name:"DropdownOption",props:on({options:{},title:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue");return(r,n)=>(j(),de(vc,{title:r.title},{default:ie(()=>[Of(pe("select",{"onUpdate:modelValue":n[0]||(n[0]=i=>e.value=i),class:"bg-transparent border-px border-solid border-blue-400 rounded capitalize focus:outline-none"},[(j(!0),je(qe,null,_o(r.options,i=>(j(),je("option",{key:i,value:i,class:"capitalize"},Ct(i),9,ZV))),128))],512),[[ul,e.value]])]),_:1},8,["title"]))}}),Sg=fe({__name:"OptionGroup",props:{title:{}},setup(t){return Ff(Dx,!0),(e,r)=>(j(),de(P(RF),{type:"single",collapsible:!0},{default:ie(()=>[ee(P(VF),{value:"1"},{default:ie(()=>[ee(P(WF),null,{default:ie(()=>[ee(P(XF),{class:"flex justify-between p-2 c-slate-800 hover:bg-gray-200 group w-full items-center border-b border-solid border-gray-300"},{default:ie(()=>[pe("div",null,Ct(e.title),1),r[0]||(r[0]=pe("span",{class:"i-mdi:chevron-down group-data-[state=open]:rotate-180"},null,-1))]),_:1,__:[0]})]),_:1}),ee(P(GF),{class:"border-b border-solid border-gray-300"},{default:ie(()=>[Ee(e.$slots,"default")]),_:3})]),_:3})]),_:3}))}}),Y0=[lr.Rendered,lr.Minified,lr.Compressed],Ix=fe({__name:"MetricOption",props:on({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,r=Dr(t,"modelValue"),n=lp(e.stats).sort((i,a)=>Y0.indexOf(i)-Y0.indexOf(a));return(i,a)=>(j(),de(P(QV),{title:"Stats",options:P(n),modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=o=>r.value=o)},null,8,["options","modelValue"]))}}),JV={class:"flex justify-between p-1"},eH={class:"max-h-400px overflow-auto p-1"},tH=["onClick","title"],rH=["checked","onChange"],nH={class:"flex-grow-1 flex-shrink-1 min-w-0 truncate"},iH={class:"ml-auto whitespace-nowrap"},Ax=fe({__name:"ModuleFilter",props:on({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options");function n(u,f){f?r.value={...r.value,hiddenModules:r.value.hiddenModules.filter(c=>c!==u.fileNameIndex)}:r.value={...r.value,hiddenModules:[...r.value.hiddenModules,u.fileNameIndex]}}function i(){r.value.hiddenModules.length===0?r.value={...r.value,hiddenModules:a.value.map(u=>u.fileNameIndex)}:r.value={...r.value,hiddenModules:[]}}const a=ge(()=>{const u=[];for(const f of e.stats.chunks)for(const c of f.modules)u.push({...c,fileName:e.stats.moduleFileNames[c.fileNameIndex]});return u}),o=we(""),s=ge(()=>o.value==="size-asc"?a.value.sort((u,f)=>(yn(u.fileName,e.stats,r.value.metric)??0)-(yn(f.fileName,e.stats,r.value.metric)??0)):o.value==="size-desc"?a.value.sort((u,f)=>(yn(f.fileName,e.stats,r.value.metric)??0)-(yn(u.fileName,e.stats,r.value.metric)??0)):o.value==="name-asc"?a.value.sort((u,f)=>u.fileName.localeCompare(f.fileName)):o.value==="name-desc"?a.value.sort((u,f)=>f.fileName.localeCompare(u.fileName)):a.value),l=ge(()=>{let u=0;for(const f of e.stats.chunks)u+=f.modules.length;return u});return(u,f)=>(j(),de(P(Sg),{title:`Visible modules (${l.value-r.value.hiddenModules.length}/${l.value})`},{default:ie(()=>[pe("div",JV,[ee(P(wg),{onClick:i},{default:ie(()=>f[1]||(f[1]=[br("Toggle all")])),_:1,__:[1]}),pe("label",null,[f[3]||(f[3]=br(" Sort by ")),Of(pe("select",{"onUpdate:modelValue":f[0]||(f[0]=c=>o.value=c)},f[2]||(f[2]=[pe("option",{value:""},"-",-1),pe("option",{value:"name-asc"},"Name asc",-1),pe("option",{value:"name-desc"},"Name desc",-1),pe("option",{value:"size-asc"},"Size asc",-1),pe("option",{value:"size-desc"},"Size desc",-1)]),512),[[ul,o.value]])])]),pe("div",eH,[(j(!0),je(qe,null,_o(s.value,c=>(j(),je("div",{class:"flex gap-1 cursor-pointer hover:bg-gray-300",onClick:h=>n(c,r.value.hiddenModules.includes(c.fileNameIndex)),title:c.fileName,key:c.fileNameIndex},[pe("input",{type:"checkbox",checked:!r.value.hiddenModules.includes(c.fileNameIndex),onChange:h=>n(c,h.target.checked)},null,40,rH),pe("div",nH,Ct(c.fileName),1),pe("div",iH,Ct(P(up)(P(yn)(c.fileNameIndex,e.stats,r.value.metric)??0)),1)],8,tH))),128))])]),_:1},8,["title"]))}}),aH={class:"flex justify-between p-1"},oH={class:"max-h-400px overflow-auto p-1"},sH=["onClick","title"],lH=["checked","onChange"],uH={class:"flex-grow-1 flex-shrink-1 min-w-0 truncate"},fH={class:"ml-auto whitespace-nowrap"},cH=fe({__name:"ChunkFilter",props:on({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options");function n(l,u){u?r.value={...r.value,hiddenChunks:r.value.hiddenChunks.filter(f=>f!==l.fileName)}:r.value={...r.value,hiddenChunks:[...r.value.hiddenChunks,l.fileName]}}function i(){r.value.hiddenChunks.length===0?r.value={...r.value,hiddenChunks:e.stats.chunks.map(l=>l.fileName)}:r.value={...r.value,hiddenChunks:[]}}function a(l){return l.modules.reduce((u,f)=>u+f.renderedLength,0)}const o=we(""),s=ge(()=>o.value==="size-asc"?e.stats.chunks.sort((l,u)=>a(l)-a(u)):o.value==="size-desc"?e.stats.chunks.sort((l,u)=>a(u)-a(l)):o.value==="name-asc"?e.stats.chunks.sort((l,u)=>l.fileName.localeCompare(u.fileName)):o.value==="name-desc"?e.stats.chunks.sort((l,u)=>u.fileName.localeCompare(l.fileName)):e.stats.chunks);return(l,u)=>(j(),je("div",null,[pe("div",aH,[ee(P(wg),{onClick:i},{default:ie(()=>u[1]||(u[1]=[br("Toggle all")])),_:1,__:[1]}),pe("label",null,[u[3]||(u[3]=br(" Sort by ")),Of(pe("select",{"onUpdate:modelValue":u[0]||(u[0]=f=>o.value=f)},u[2]||(u[2]=[mw('<option value="">-</option><option value="name-asc">Name asc</option><option value="name-desc">Name desc</option><option value="size-asc">Size asc</option><option value="size-desc">Size desc</option>',5)]),512),[[ul,o.value]])])]),pe("div",oH,[(j(!0),je(qe,null,_o(s.value,f=>(j(),je("div",{class:"flex gap-1 cursor-pointer hover:bg-gray-300",onClick:c=>n(f,r.value.hiddenChunks.includes(f.fileName)),key:f.fileName,title:f.fileName},[pe("input",{type:"checkbox",checked:!r.value.hiddenChunks.includes(f.fileName),onChange:c=>n(f,c.target.checked)},null,40,lH),pe("div",uH,Ct(f.fileName),1),pe("div",fH,Ct(P(up)(a(f))),1)],8,sH))),128))])]))}}),hH=fe({__name:"TreeMapViewOptions",props:on({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue"),r=ge({get:()=>e.value.compact,set:i=>e.value={...e.value,compact:i}}),n=Ri(e,"metric");return(i,a)=>(j(),je("div",null,[ee(P(Ix),{stats:i.stats,modelValue:P(n),"onUpdate:modelValue":a[0]||(a[0]=o=>Ue(n)?n.value=o:null)},null,8,["stats","modelValue"]),ee(P(vc),{title:"Compact"},{default:ie(()=>[ee(P(Cx),{modelValue:r.value,"onUpdate:modelValue":a[1]||(a[1]=o=>r.value=o)},null,8,["modelValue"])]),_:1}),ee(P(Sg),{title:`Visible chunks (${i.stats.chunks.length-e.value.hiddenChunks.length}/${i.stats.chunks.length})`},{default:ie(()=>[ee(cH,{options:e.value,"onUpdate:options":a[2]||(a[2]=o=>e.value=o),stats:i.stats},null,8,["options","stats"])]),_:1},8,["title"]),ee(P(Ax),{options:e.value,"onUpdate:options":a[3]||(a[3]=o=>e.value=o),stats:i.stats},null,8,["options","stats"])]))}}),dH=t=>({metric:lp(t)[0],compact:!0,hiddenModules:[],hiddenChunks:[]}),X0={ViewComponent:oF,OptionsComponent:hH,optionsFactory:t=>dH(t)};function vH(t,e,r){return Math.min(Math.max(t,e),r)}const pH=[void 0,"arrow"],gH="#e7000b",mH=fe({__name:"GraphView",props:on({stats:{}},{options:{required:!0},optionsModifiers:{}}),emits:["update:options"],setup(t){const e=t,r=Dr(t,"options"),n=Kv("main"),i=AT(n,[GT,$T,sx,vx],u=>{u.on("contextmenu",f=>{f.event.event.preventDefault(),r.value={...r.value,hiddenModules:[...r.value.hiddenModules,f.data.id]}}),u.setOption({color:$n,title:{text:"Module Import Graph"},animationDurationUpdate:1500,animationEasingUpdate:"quinticInOut",series:[{type:"graph",layout:"force",force:{friction:r.value.forceFriction,repulsion:r.value.forceRepulsion,edgeLength:r.value.forceEdgeLength,gravity:r.value.forceGravity},emphasis:{focus:"adjacency",label:{position:"right",show:!0}},label:{show:!1,formatter(f){const c=f.data.name;return`${c}
63
+ ${up(yn(c,e.stats,r.value.metric)??0)}`}},roam:!0,lineStyle:{width:.5,opacity:.7}}]}),u.setOption(l.value)});rt(r,(u,f)=>{i.value&&(u.forceEdgeLength===f.forceEdgeLength&&u.forceFriction===f.forceFriction&&u.forceEdgeLength===f.forceEdgeLength&&u.forceGravity===f.forceGravity||i.value.setOption({series:[{force:{friction:u.forceFriction,repulsion:u.forceRepulsion,edgeLength:u.forceEdgeLength,gravity:u.forceGravity}}]}))});const a=ge(()=>r.value.metric),o=ge(u=>{if(u?.length!==r.value.hiddenModules.length)return r.value.hiddenModules;for(let f=0;f<u.length;f++)if(u[f]!==r.value.hiddenModules[f])return r.value.hiddenModules;return u}),s=ge(()=>r.value.compact),l=ge(u=>{let{edges:f}=e.stats.importGraph,c=e.stats.moduleFileNames;if(s.value){const p=aA(c,f,e.stats,a.value);f=p.edges,c=p.nodes}if(o.value.length){const p=Kw(c,f,o.value);f=p.edges,c=p.nodes}const h=new Set;for(const p of c){const g=Cd(p);g&&h.add(g)}const d=Array.from(h),v={src:!0};if(u===void 0)for(const p of d)v[p]=!1;return{legend:{data:[{name:"src",itemStyle:{color:$n[0]}},...d.map((p,g)=>({name:p,itemStyle:{color:$n[g+1]}}))],selected:v,top:20,icon:"circle"},series:[{categories:[{name:"src",itemStyle:{color:$n[0]}},...d.map((p,g)=>({name:p,itemStyle:{color:$n[g+1]}}))],edges:f.map(p=>({source:p[0],target:p[1],symbol:pH})),data:c.map((p,g)=>{const m=!f.some(([b,w])=>w===g),_=yn(p,e.stats,a.value)??0,y=d.findIndex(b=>b===Cd(p))+1;return{category:y,id:g,name:p,symbolSize:vH(_/1024,12,75),itemStyle:{borderColor:_===0?$n[y%$n.length]:void 0,color:m?gH:_===0?"#ffffff":void 0},emphasis:{label:{show:!0}}}})}]}});return rt(l,u=>{i.value?.setOption(u)}),(u,f)=>(j(),je("div",{ref_key:"main",ref:n},null,512))}}),yH=fe({__name:"GraphViewOptions",props:on({stats:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=Dr(t,"modelValue"),r=Ri(e,"forceRepulsion"),n=Ri(e,"forceEdgeLength"),i=Ri(e,"forceFriction"),a=Ri(e,"forceGravity"),o=Ri(e,"compact"),s=Ri(e,"metric");return(l,u)=>(j(),je("div",null,[ee(P(Ix),{stats:l.stats,modelValue:P(s),"onUpdate:modelValue":u[0]||(u[0]=f=>Ue(s)?s.value=f:null)},null,8,["stats","modelValue"]),ee(P(vc),{title:"Compact"},{default:ie(()=>[ee(P(Cx),{modelValue:P(o),"onUpdate:modelValue":u[1]||(u[1]=f=>Ue(o)?o.value=f:null)},null,8,["modelValue"])]),_:1}),ee(P(Ax),{options:e.value,"onUpdate:options":u[2]||(u[2]=f=>e.value=f),stats:l.stats},null,8,["options","stats"]),ee(P(Sg),{title:"Force layout"},{default:ie(()=>[ee(P(du),{title:"Repulsion",modelValue:P(r),"onUpdate:modelValue":u[3]||(u[3]=f=>Ue(r)?r.value=f:null)},null,8,["modelValue"]),ee(P(du),{title:"Edge length",modelValue:P(n),"onUpdate:modelValue":u[4]||(u[4]=f=>Ue(n)?n.value=f:null)},null,8,["modelValue"]),ee(P(du),{title:"Friction",modelValue:P(i),"onUpdate:modelValue":u[5]||(u[5]=f=>Ue(i)?i.value=f:null),step:.01,fixed:2},null,8,["modelValue"]),ee(P(du),{title:"Gravity",modelValue:P(a),"onUpdate:modelValue":u[6]||(u[6]=f=>Ue(a)?a.value=f:null),step:.01,fixed:2},null,8,["modelValue"])]),_:1})]))}});function _H(t){return{metric:lp(t)[0],forceRepulsion:50,forceGravity:.1,forceEdgeLength:30,forceFriction:.6,compact:!1,hiddenModules:[]}}const bH={ViewComponent:mH,OptionsComponent:yH,optionsFactory:t=>_H(t)};function wH(t){const e=t.chunks.length;let r=0,n=0;for(const o of t.chunks){r+=o.modules.length;for(const s of o.modules)s.virtual&&(n+=1)}const i=new Map;for(const o of t.moduleFileNames){const s=Cd(o);if(!s)continue;const l=o.lastIndexOf(`node_modules/${s}`),u=i.get(s);u?u.indices.includes(l)||u.indices.push(l):i.set(s,{indices:[l]})}const a=[];for(const[o,s]of i)s.indices.length>1&&a.push({name:o,count:s.indices.length});return{numberOfModules:r,numberOfVirtualModules:n,numberOfChunks:e,numberOfDependencies:i.size,duplicatedDependencies:a,hasWarnings:a.length>0}}const SH={key:0,class:"i-mdi:warning-outline"},TH={key:1,class:"i-mdi:info"},xH={class:"flex items-center gap-1"},CH={key:0},DH=fe({__name:"OverviewModal",props:{stats:{}},setup(t){const r=wH(t.stats);return(n,i)=>(j(),de(P(qF),null,{default:ie(()=>[ee(P(MV),{"as-child":""},{default:ie(()=>[ee(P(wg),{class:en(n.$attrs.class)},{default:ie(()=>[P(r).hasWarnings?(j(),je("span",SH)):(j(),je("span",TH)),i[0]||(i[0]=br(" Report "))]),_:1,__:[0]},8,["class"]),Ee(n.$slots,"default")]),_:3}),ee(P(RV),null,{default:ie(()=>[ee(P(DV),{class:"fixed inset-0 z-30 bg-gray-200 opacity-75"}),ee(P(yV),{class:"fixed top-[50%] left-[50%] max-h-[85vh] w-[90vw] max-w-[450px] translate-x-[-50%] translate-y-[-50%] bg-white rounded z-30"},{default:ie(()=>[ee(P(AV),{class:"py-2 px-4 flex justify-center"},{default:ie(()=>i[1]||(i[1]=[br("Report")])),_:1,__:[1]}),ee(P(_V),{class:"px-4 py-2"},{default:ie(()=>[pe("div",null,"Number of chunks: "+Ct(P(r).numberOfChunks),1),pe("div",null," Number of modules: "+Ct(P(r).numberOfModules)+" ("+Ct(P(r).numberOfVirtualModules)+" virtual) ",1),pe("div",null,"Number of dependencies: "+Ct(P(r).numberOfDependencies),1),pe("div",xH,[P(r).numberOfDependencies>0?(j(),je("div",{key:0,class:en(["i-mdi:alert-circle-outline",P(r).duplicatedDependencies.length>0?"c-yellow-500":""])},null,2)):Qr("",!0),br(" Duplicated dependencies: "+Ct(P(r).duplicatedDependencies.length),1)]),P(r).duplicatedDependencies.length>0?(j(),je("ul",CH,[(j(!0),je(qe,null,_o(P(r).duplicatedDependencies,a=>(j(),je("li",{key:a.name,class:"flex items-center gap-1"},[i[2]||(i[2]=pe("div",{class:"i-mdi:alert-circle-outline c-yellow-500"},null,-1)),br(" "+Ct(a.name)+" - "+Ct(a.count)+" versions ",1)]))),128))])):Qr("",!0)]),_:1}),ee(P(jF),{class:"absolute top-3 right-2"},{default:ie(()=>i[3]||(i[3]=[pe("div",{class:"i-mdi:close"},null,-1)])),_:1,__:[3]})]),_:1})]),_:1})]),_:3}))}}),IH={class:"w-screen h-screen flex bg-gray-200"},AH={class:"w-1/3 max-w-[350px] bg-white rounded-lg m-5 p-2 flex flex-col"},MH=fe({__name:"App",setup(t){const e=il();fetch("stats.json").then(a=>a.json()).then(a=>{e.value=a});const r=we("treemap"),n=we();rt(e,()=>{n.value=i.value.optionsFactory(e.value)});const i=ge(()=>r.value==="treemap"?X0:r.value==="graph"?bH:X0);return rt(i,a=>{n.value=a.optionsFactory(e.value)}),(a,o)=>(j(),je("div",IH,[pe("div",AH,[ee(iA,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s)},null,8,["modelValue"]),e.value&&n.value?(j(),de(P(i).OptionsComponent,{key:0,modelValue:n.value,"onUpdate:modelValue":o[1]||(o[1]=s=>n.value=s),stats:e.value},null,8,["modelValue","stats"])):Qr("",!0),e.value?(j(),de(P(DH),{key:1,stats:e.value,class:"mt-auto"},null,8,["stats"])):Qr("",!0)]),e.value?(j(),de(P(i).ViewComponent,{key:0,stats:e.value,options:n.value,"onUpdate:options":o[2]||(o[2]=s=>n.value=s),class:"flex-grow-1 flex-shrink-1"},null,8,["stats","options"])):Qr("",!0)]))}});qu(MH).mount("#app");