frp/assets/frps/static/index-b8250b3f.js
2023-02-22 14:15:21 +08:00

75 lines
846 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var KL=Object.defineProperty;var XL=(e,t,r)=>t in e?KL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ZL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $t=(e,t,r)=>(XL(e,typeof t!="symbol"?t+"":t,r),r);var Kte=ZL((kr,Nr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function Cm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.length;i++)r[n[i]]=!0;return t?i=>!!r[i.toLowerCase()]:i=>!!r[i]}function St(e){if(be(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=ze(n)?tD(n):St(n);if(i)for(const a in i)t[a]=i[a]}return t}else{if(ze(e))return e;if(Ke(e))return e}}const QL=/;(?![^(]*\))/g,JL=/:([^]+)/,eD=/\/\*.*?\*\//gs;function tD(e){const t={};return e.replace(eD,"").split(QL).forEach(r=>{if(r){const n=r.split(JL);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function le(e){let t="";if(ze(e))t=e;else if(be(e))for(let r=0;r<e.length;r++){const n=le(e[r]);n&&(t+=n+" ")}else if(Ke(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const rD="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",nD=Cm(rD);function lC(e){return!!e||e===""}function iD(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&n<e.length;n++)r=Md(e[n],t[n]);return r}function Md(e,t){if(e===t)return!0;let r=V0(e),n=V0(t);if(r||n)return r&&n?e.getTime()===t.getTime():!1;if(r=eu(e),n=eu(t),r||n)return e===t;if(r=be(e),n=be(t),r||n)return r&&n?iD(e,t):!1;if(r=Ke(e),n=Ke(t),r||n){if(!r||!n)return!1;const i=Object.keys(e).length,a=Object.keys(t).length;if(i!==a)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Md(e[o],t[o]))return!1}}return String(e)===String(t)}function uC(e,t){return e.findIndex(r=>Md(r,t))}const Me=e=>ze(e)?e:e==null?"":be(e)||Ke(e)&&(e.toString===fC||!Le(e.toString))?JSON.stringify(e,cC,2):String(e),cC=(e,t)=>t&&t.__v_isRef?cC(e,t.value):is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:Ed(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!be(t)&&!dC(t)?String(t):t,mt={},ns=[],ur=()=>{},aD=()=>!1,oD=/^on[^a-z]/,Ad=e=>oD.test(e),Tm=e=>e.startsWith("onUpdate:"),Xt=Object.assign,Mm=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},sD=Object.prototype.hasOwnProperty,Ve=(e,t)=>sD.call(e,t),be=Array.isArray,is=e=>Ru(e)==="[object Map]",Ed=e=>Ru(e)==="[object Set]",V0=e=>Ru(e)==="[object Date]",Le=e=>typeof e=="function",ze=e=>typeof e=="string",eu=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",Hf=e=>Ke(e)&&Le(e.then)&&Le(e.catch),fC=Object.prototype.toString,Ru=e=>fC.call(e),lD=e=>Ru(e).slice(8,-1),dC=e=>Ru(e)==="[object Object]",Am=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ff=Cm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},uD=/-(\w)/g,An=Pd(e=>e.replace(uD,(t,r)=>r?r.toUpperCase():"")),cD=/\B([A-Z])/g,wo=Pd(e=>e.replace(cD,"-$1").toLowerCase()),Ld=Pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),df=Pd(e=>e?`on${Ld(e)}`:""),tu=(e,t)=>!Object.is(e,t),hf=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},zf=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Em=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let G0;const fD=()=>G0||(G0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ir;class dD{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Ir;try{return Ir=this,t()}finally{Ir=r}}}on(){Ir=this}off(){Ir=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}}}function hD(e,t=Ir){t&&t.active&&t.effects.push(e)}function vD(){return Ir}function pD(e){Ir&&Ir.cleanups.push(e)}const Pm=e=>{const t=new Set(e);return t.w=0,t.n=0,t},hC=e=>(e.w&Qi)>0,vC=e=>(e.n&Qi)>0,gD=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Qi},mD=e=>{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n<t.length;n++){const i=t[n];hC(i)&&!vC(i)?i.delete(e):t[r++]=i,i.w&=~Qi,i.n&=~Qi}t.length=r}},_p=new WeakMap;let yl=0,Qi=1;const bp=30;let bn;const ro=Symbol(""),wp=Symbol("");class Lm{constructor(t,r=null,n){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,hD(this,n)}run(){if(!this.active)return this.fn();let t=bn,r=qi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=bn,bn=this,qi=!0,Qi=1<<++yl,yl<=bp?gD(this):U0(this),this.fn()}finally{yl<=bp&&mD(this),Qi=1<<--yl,bn=this.parent,qi=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){bn===this?this.deferStop=!0:this.active&&(U0(this),this.onStop&&this.onStop(),this.active=!1)}}function U0(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}let qi=!0;const pC=[];function Os(){pC.push(qi),qi=!1}function Rs(){const e=pC.pop();qi=e===void 0?!0:e}function Hr(e,t,r){if(qi&&bn){let n=_p.get(e);n||_p.set(e,n=new Map);let i=n.get(r);i||n.set(r,i=Pm()),gC(i)}}function gC(e,t){let r=!1;yl<=bp?vC(e)||(e.n|=Qi,r=!hC(e)):r=!e.has(bn),r&&(e.add(bn),bn.deps.push(e))}function pi(e,t,r,n,i,a){const o=_p.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(r==="length"&&be(e)){const l=Em(n);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":be(e)?Am(r)&&s.push(o.get("length")):(s.push(o.get(ro)),is(e)&&s.push(o.get(wp)));break;case"delete":be(e)||(s.push(o.get(ro)),is(e)&&s.push(o.get(wp)));break;case"set":is(e)&&s.push(o.get(ro));break}if(s.length===1)s[0]&&Sp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Sp(Pm(l))}}function Sp(e,t){const r=be(e)?e:[...e];for(const n of r)n.computed&&j0(n);for(const n of r)n.computed||j0(n)}function j0(e,t){(e!==bn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const yD=Cm("__proto__,__v_isRef,__isVue"),mC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(eu)),_D=Dm(),bD=Dm(!1,!0),wD=Dm(!0),Y0=SD();function SD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Je(this);for(let a=0,o=this.length;a<o;a++)Hr(n,"get",a+"");const i=n[t](...r);return i===-1||i===!1?n[t](...r.map(Je)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Os();const n=Je(this)[t].apply(this,r);return Rs(),n}}),e}function Dm(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?FD:SC:t?wC:bC).get(n))return n;const o=be(n);if(!e&&o&&Ve(Y0,i))return Reflect.get(Y0,i,a);const s=Reflect.get(n,i,a);return(eu(i)?mC.has(i):yD(i))||(e||Hr(n,"get",i),t)?s:xt(s)?o&&Am(i)?s:s.value:Ke(s)?e?ku(s):fn(s):s}}const xD=yC(),CD=yC(!0);function yC(e=!1){return function(r,n,i,a){let o=r[n];if(vs(o)&&xt(o)&&!xt(i))return!1;if(!e&&(!Wf(i)&&!vs(i)&&(o=Je(o),i=Je(i)),!be(r)&&xt(o)&&!xt(i)))return o.value=i,!0;const s=be(r)&&Am(n)?Number(n)<r.length:Ve(r,n),l=Reflect.set(r,n,i,a);return r===Je(a)&&(s?tu(i,o)&&pi(r,"set",n,i):pi(r,"add",n,i)),l}}function TD(e,t){const r=Ve(e,t);e[t];const n=Reflect.deleteProperty(e,t);return n&&r&&pi(e,"delete",t,void 0),n}function MD(e,t){const r=Reflect.has(e,t);return(!eu(t)||!mC.has(t))&&Hr(e,"has",t),r}function AD(e){return Hr(e,"iterate",be(e)?"length":ro),Reflect.ownKeys(e)}const _C={get:_D,set:xD,deleteProperty:TD,has:MD,ownKeys:AD},ED={get:wD,set(e,t){return!0},deleteProperty(e,t){return!0}},PD=Xt({},_C,{get:bD,set:CD}),Im=e=>e,Dd=e=>Reflect.getPrototypeOf(e);function ic(e,t,r=!1,n=!1){e=e.__v_raw;const i=Je(e),a=Je(t);r||(t!==a&&Hr(i,"get",t),Hr(i,"get",a));const{has:o}=Dd(i),s=n?Im:r?km:ru;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function ac(e,t=!1){const r=this.__v_raw,n=Je(r),i=Je(e);return t||(e!==i&&Hr(n,"has",e),Hr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function oc(e,t=!1){return e=e.__v_raw,!t&&Hr(Je(e),"iterate",ro),Reflect.get(e,"size",e)}function q0(e){e=Je(e);const t=Je(this);return Dd(t).has.call(t,e)||(t.add(e),pi(t,"add",e,e)),this}function K0(e,t){t=Je(t);const r=Je(this),{has:n,get:i}=Dd(r);let a=n.call(r,e);a||(e=Je(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?tu(t,o)&&pi(r,"set",e,t):pi(r,"add",e,t),this}function X0(e){const t=Je(this),{has:r,get:n}=Dd(t);let i=r.call(t,e);i||(e=Je(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&pi(t,"delete",e,void 0),a}function Z0(){const e=Je(this),t=e.size!==0,r=e.clear();return t&&pi(e,"clear",void 0,void 0),r}function sc(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Je(o),l=t?Im:e?km:ru;return!e&&Hr(s,"iterate",ro),o.forEach((u,c)=>n.call(i,l(u),l(c),a))}}function lc(e,t,r){return function(...n){const i=this.__v_raw,a=Je(i),o=is(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?Im:t?km:ru;return!t&&Hr(a,"iterate",l?wp:ro),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Ai(e){return function(...t){return e==="delete"?!1:this}}function LD(){const e={get(a){return ic(this,a)},get size(){return oc(this)},has:ac,add:q0,set:K0,delete:X0,clear:Z0,forEach:sc(!1,!1)},t={get(a){return ic(this,a,!1,!0)},get size(){return oc(this)},has:ac,add:q0,set:K0,delete:X0,clear:Z0,forEach:sc(!1,!0)},r={get(a){return ic(this,a,!0)},get size(){return oc(this,!0)},has(a){return ac.call(this,a,!0)},add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear"),forEach:sc(!0,!1)},n={get(a){return ic(this,a,!0,!0)},get size(){return oc(this,!0)},has(a){return ac.call(this,a,!0)},add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear"),forEach:sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=lc(a,!1,!1),r[a]=lc(a,!0,!1),t[a]=lc(a,!1,!0),n[a]=lc(a,!0,!0)}),[e,r,t,n]}const[DD,ID,OD,RD]=LD();function Om(e,t){const r=t?e?RD:OD:e?ID:DD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ve(r,i)&&i in n?r:n,i,a)}const kD={get:Om(!1,!1)},ND={get:Om(!1,!0)},BD={get:Om(!0,!1)},bC=new WeakMap,wC=new WeakMap,SC=new WeakMap,FD=new WeakMap;function $D(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function HD(e){return e.__v_skip||!Object.isExtensible(e)?0:$D(lD(e))}function fn(e){return vs(e)?e:Rm(e,!1,_C,kD,bC)}function xC(e){return Rm(e,!1,PD,ND,wC)}function ku(e){return Rm(e,!0,ED,BD,SC)}function Rm(e,t,r,n,i){if(!Ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=HD(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function as(e){return vs(e)?as(e.__v_raw):!!(e&&e.__v_isReactive)}function vs(e){return!!(e&&e.__v_isReadonly)}function Wf(e){return!!(e&&e.__v_isShallow)}function CC(e){return as(e)||vs(e)}function Je(e){const t=e&&e.__v_raw;return t?Je(t):e}function TC(e){return zf(e,"__v_skip",!0),e}const ru=e=>Ke(e)?fn(e):e,km=e=>Ke(e)?ku(e):e;function MC(e){qi&&bn&&(e=Je(e),gC(e.dep||(e.dep=Pm())))}function AC(e,t){e=Je(e),e.dep&&Sp(e.dep)}function xt(e){return!!(e&&e.__v_isRef===!0)}function H(e){return PC(e,!1)}function EC(e){return PC(e,!0)}function PC(e,t){return xt(e)?e:new zD(e,t)}class zD{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Je(t),this._value=r?t:ru(t)}get value(){return MC(this),this._value}set value(t){const r=this.__v_isShallow||Wf(t)||vs(t);t=r?t:Je(t),tu(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:ru(t),AC(this))}}function P(e){return xt(e)?e.value:e}const WD={get:(e,t,r)=>P(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return xt(i)&&!xt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function LC(e){return as(e)?e:new Proxy(e,WD)}function Id(e){const t=be(e)?new Array(e.length):{};for(const r in e)t[r]=Tn(e,r);return t}class VD{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Tn(e,t,r){const n=e[t];return xt(n)?n:new VD(e,t,r)}var DC;class GD{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[DC]=!1,this._dirty=!0,this.effect=new Lm(t,()=>{this._dirty||(this._dirty=!0,AC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Je(this);return MC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}DC="__v_isReadonly";function UD(e,t,r=!1){let n,i;const a=Le(e);return a?(n=e,i=ur):(n=e.get,i=e.set),new GD(n,i,a||!i,r)}function jD(e,...t){}function Ki(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Od(a,t,r)}return i}function rn(e,t,r,n){if(Le(e)){const a=Ki(e,t,r,n);return a&&Hf(a)&&a.catch(o=>{Od(o,t,r)}),a}const i=[];for(let a=0;a<e.length;a++)i.push(rn(e[a],t,r,n));return i}function Od(e,t,r,n=!0){const i=t?t.vnode:null;if(t){let a=t.parent;const o=t.proxy,s=r;for(;a;){const u=a.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}a=a.parent}const l=t.appContext.config.errorHandler;if(l){Ki(l,null,10,[e,o,s]);return}}YD(e,r,i,n)}function YD(e,t,r,n=!0){console.error(e)}let nu=!1,xp=!1;const tr=[];let $n=0;const os=[];let ui=null,Va=0;const IC=Promise.resolve();let Nm=null;function Rt(e){const t=Nm||IC;return e?t.then(this?e.bind(this):e):t}function qD(e){let t=$n+1,r=tr.length;for(;t<r;){const n=t+r>>>1;iu(tr[n])<e?t=n+1:r=n}return t}function Bm(e){(!tr.length||!tr.includes(e,nu&&e.allowRecurse?$n+1:$n))&&(e.id==null?tr.push(e):tr.splice(qD(e.id),0,e),OC())}function OC(){!nu&&!xp&&(xp=!0,Nm=IC.then(kC))}function KD(e){const t=tr.indexOf(e);t>$n&&tr.splice(t,1)}function XD(e){be(e)?os.push(...e):(!ui||!ui.includes(e,e.allowRecurse?Va+1:Va))&&os.push(e),OC()}function Q0(e,t=nu?$n+1:0){for(;t<tr.length;t++){const r=tr[t];r&&r.pre&&(tr.splice(t,1),t--,r())}}function RC(e){if(os.length){const t=[...new Set(os)];if(os.length=0,ui){ui.push(...t);return}for(ui=t,ui.sort((r,n)=>iu(r)-iu(n)),Va=0;Va<ui.length;Va++)ui[Va]();ui=null,Va=0}}const iu=e=>e.id==null?1/0:e.id,ZD=(e,t)=>{const r=iu(e)-iu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function kC(e){xp=!1,nu=!0,tr.sort(ZD);const t=ur;try{for($n=0;$n<tr.length;$n++){const r=tr[$n];r&&r.active!==!1&&Ki(r,null,14)}}finally{$n=0,tr.length=0,RC(),nu=!1,Nm=null,(tr.length||os.length)&&kC()}}function QD(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||mt;let i=r;const a=t.startsWith("update:"),o=a&&t.slice(7);if(o&&o in n){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=n[c]||mt;d&&(i=r.map(h=>ze(h)?h.trim():h)),f&&(i=r.map(Em))}let s,l=n[s=df(t)]||n[s=df(An(t))];!l&&a&&(l=n[s=df(wo(t))]),l&&rn(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,rn(u,e,6,i)}}function NC(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Le(e)){const l=u=>{const c=NC(u,t,!0);c&&(s=!0,Xt(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Ke(e)&&n.set(e,null),null):(be(a)?a.forEach(l=>o[l]=null):Xt(o,a),Ke(e)&&n.set(e,o),o)}function Rd(e,t){return!e||!Ad(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,wo(t))||Ve(e,t))}let jt=null,BC=null;function Vf(e){const t=jt;return jt=e,BC=e&&e.type.__scopeId||null,t}function Z(e,t=jt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&c_(-1);const a=Vf(t);let o;try{o=e(...i)}finally{Vf(a),n._d&&c_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ah(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e;let g,m;const y=Vf(e);try{if(r.shapeFlag&4){const b=i||n;g=Fn(c.call(b,b,f,a,h,d,v)),m=l}else{const b=t;g=Fn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:JD(l)}}catch(b){Ll.length=0,Od(b,e,1),g=ee(Sr)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:S}=_;b.length&&S&7&&(o&&b.some(Tm)&&(m=eI(m,o)),_=gi(_,m))}return r.dirs&&(_=gi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,Vf(y),g}const JD=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ad(r))&&((t||(t={}))[r]=e[r]);return t},eI=(e,t)=>{const r={};for(const n in e)(!Tm(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function tI(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?J0(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==n[d]&&!Rd(u,d))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:n===o?!1:n?o?J0(n,o,u):!0:!!o;return!1}function J0(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const a=n[i];if(t[a]!==e[a]&&!Rd(r,a))return!0}return!1}function rI({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const nI=e=>e.__isSuspense;function iI(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):XD(e)}function Tt(e,t){if(zt){let r=zt.provides;const n=zt.parent&&zt.parent.provides;n===r&&(r=zt.provides=Object.create(n)),r[e]=t}}function Oe(e,t,r=!1){const n=zt||jt;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&Le(t)?t.call(n.proxy):t}}function no(e,t){return Fm(e,null,t)}const uc={};function xe(e,t,r){return Fm(e,t,r)}function Fm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=mt){const s=zt;let l,u=!1,c=!1;if(xt(e)?(l=()=>e.value,u=Wf(e)):as(e)?(l=()=>e,n=!0):be(e)?(c=!0,u=e.some(_=>as(_)||Wf(_)),l=()=>e.map(_=>{if(xt(_))return _.value;if(as(_))return Ka(_);if(Le(_))return Ki(_,s,2)})):Le(e)?t?l=()=>Ki(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),rn(e,s,3,[d])}:l=ur,t&&n){const _=l;l=()=>Ka(_())}let f,d=_=>{f=m.onStop=()=>{Ki(_,s,4)}},h;if(ou)if(d=ur,t?r&&rn(t,s,3,[l(),c?[]:void 0,d]):l(),i==="sync"){const _=XI();h=_.__watcherHandles||(_.__watcherHandles=[])}else return ur;let v=c?new Array(e.length).fill(uc):uc;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(c?_.some((b,S)=>tu(b,v[S])):tu(_,v)))&&(f&&f(),rn(t,s,3,[_,v===uc?void 0:c&&v[0]===uc?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>yr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>Bm(p));const m=new Lm(l,g);t?r?p():v=m.run():i==="post"?yr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&Mm(s.scope.effects,m)};return h&&h.push(y),y}function aI(e,t,r){const n=this.proxy,i=ze(e)?e.includes(".")?FC(n,e):()=>n[e]:e.bind(n,n);let a;Le(t)?a=t:(a=t.handler,r=t);const o=zt;ps(this);const s=Fm(i,a.bind(n),r);return o?ps(o):io(),s}function FC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}function Ka(e,t){if(!Ke(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),xt(e))Ka(e.value,t);else if(be(e))for(let r=0;r<e.length;r++)Ka(e[r],t);else if(Ed(e)||is(e))e.forEach(r=>{Ka(r,t)});else if(dC(e))for(const r in e)Ka(e[r],t);return e}function oI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),nr(()=>{e.isUnmounting=!0}),e}const Vr=[Function,Array],sI={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vr,onEnter:Vr,onAfterEnter:Vr,onEnterCancelled:Vr,onBeforeLeave:Vr,onLeave:Vr,onAfterLeave:Vr,onLeaveCancelled:Vr,onBeforeAppear:Vr,onAppear:Vr,onAfterAppear:Vr,onAppearCancelled:Vr},setup(e,{slots:t}){const r=dt(),n=oI();let i;return()=>{const a=t.default&&zC(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==Sr){o=p;break}}const s=Je(e),{mode:l}=s;if(n.isLeaving)return Eh(o);const u=e_(o);if(!u)return Eh(o);const c=Cp(u,s,n,r);Tp(u,c);const f=r.subTree,d=f&&e_(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,h=!0)}if(d&&d.type!==Sr&&(!Ga(u,d)||h)){const p=Cp(d,s,n,r);if(Tp(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Eh(o);l==="in-out"&&u.type!==Sr&&(p.delayLeave=(g,m,y)=>{const _=HC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},$C=sI;function HC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Cp(e,t,r,n){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:y}=t,_=String(e.key),b=HC(r,e),S=(C,T)=>{C&&rn(C,n,9,T)},w=(C,T)=>{const E=T[1];S(C,T),be(C)?C.every(A=>A.length<=1)&&E():C.length<=1&&E()},x={mode:a,persisted:o,beforeEnter(C){let T=s;if(!r.isMounted)if(i)T=p||s;else return;C._leaveCb&&C._leaveCb(!0);const E=b[_];E&&Ga(e,E)&&E.el._leaveCb&&E.el._leaveCb(),S(T,[C])},enter(C){let T=l,E=u,A=c;if(!r.isMounted)if(i)T=g||l,E=m||u,A=y||c;else return;let M=!1;const D=C._enterCb=R=>{M||(M=!0,R?S(A,[C]):S(E,[C]),x.delayedLeave&&x.delayedLeave(),C._enterCb=void 0)};T?w(T,[C,D]):D()},leave(C,T){const E=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return T();S(f,[C]);let A=!1;const M=C._leaveCb=D=>{A||(A=!0,T(),D?S(v,[C]):S(h,[C]),C._leaveCb=void 0,b[E]===e&&delete b[E])};b[E]=e,d?w(d,[C,M]):M()},clone(C){return Cp(C,t,r,n)}};return x}function Eh(e){if(kd(e))return e=gi(e),e.children=null,e}function e_(e){return kd(e)?e.children?e.children[0]:void 0:e}function Tp(e,t){e.shapeFlag&6&&e.component?Tp(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zC(e,t=!1,r){let n=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=r==null?o.key:String(r)+String(o.key!=null?o.key:a);o.type===yt?(o.patchFlag&128&&i++,n=n.concat(zC(o.children,t,s))):(t||o.type!==Sr)&&n.push(s!=null?gi(o,{key:s}):o)}if(i>1)for(let a=0;a<n.length;a++)n[a].patchFlag=-2;return n}function ce(e){return Le(e)?{setup:e,name:e.name}:e}const Al=e=>!!e.type.__asyncLoader,kd=e=>e.type.__isKeepAlive;function lI(e,t){VC(e,"a",t)}function WC(e,t){VC(e,"da",t)}function VC(e,t,r=zt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Nd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)kd(i.parent.vnode)&&uI(n,t,r,i),i=i.parent}}function uI(e,t,r,n){const i=Nd(t,e,n,!0);Nu(()=>{Mm(n[t],i)},r)}function Nd(e,t,r=zt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Os(),ps(r);const s=rn(t,r,e,o);return io(),Rs(),s});return n?i.unshift(a):i.push(a),a}}const Si=e=>(t,r=zt)=>(!ou||e==="sp")&&Nd(e,(...n)=>t(...n),r),Bd=Si("bm"),Mt=Si("m"),cI=Si("bu"),Fd=Si("u"),nr=Si("bum"),Nu=Si("um"),fI=Si("sp"),dI=Si("rtg"),hI=Si("rtc");function vI(e,t=zt){Nd("ec",e,t)}function qt(e,t){const r=jt;if(r===null)return e;const n=Hd(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[o,s,l,u=mt]=t[a];o&&(Le(o)&&(o={mounted:o,updated:o}),o.deep&&Ka(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function fa(e,t,r,n){const i=e.dirs,a=t&&t.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&&(Os(),rn(l,r,8,[e.el,s,e,t]),Rs())}}const $m="components",pI="directives";function _r(e,t){return zm($m,e,!0,t)||e}const GC=Symbol();function nn(e){return ze(e)?zm($m,e,!1)||e:e||GC}function Hm(e){return zm(pI,e)}function zm(e,t,r=!0,n=!1){const i=jt||zt;if(i){const a=i.type;if(e===$m){const s=jI(a,!1);if(s&&(s===t||s===An(t)||s===Ld(An(t))))return a}const o=t_(i[e]||a[e],t)||t_(i.appContext[e],t);return!o&&n?a:o}}function t_(e,t){return e&&(e[t]||e[An(t)]||e[Ld(An(t))])}function r_(e,t,r,n){let i;const a=r&&r[n];if(be(e)||ze(e)){i=new Array(e.length);for(let o=0,s=e.length;o<s;o++)i[o]=t(e[o],o,void 0,a&&a[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,a&&a[o])}else if(Ke(e))if(e[Symbol.iterator])i=Array.from(e,(o,s)=>t(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];i[s]=t(e[u],u,s,a&&a[s])}}else i=[];return r&&(r[n]=i),i}function Fe(e,t,r={},n,i){if(jt.isCE||jt.parent&&Al(jt.parent)&&jt.parent.isCE)return t!=="default"&&(r.name=t),ee("slot",r,n&&n());let a=e[t];a&&a._c&&(a._d=!1),U();const o=a&&UC(a(r)),s=me(yt,{key:r.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&e._===1?64:-2);return!i&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),a&&a._c&&(a._d=!0),s}function UC(e){return e.some(t=>Ji(t)?!(t.type===Sr||t.type===yt&&!UC(t.children)):!0)?e:null}function gI(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:df(n)]=e[n];return r}const Mp=e=>e?rT(e)?Hd(e)||e.proxy:Mp(e.parent):null,El=Xt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mp(e.parent),$root:e=>Mp(e.root),$emit:e=>e.emit,$options:e=>Wm(e),$forceUpdate:e=>e.f||(e.f=()=>Bm(e.update)),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>aI.bind(e)}),Ph=(e,t)=>e!==mt&&!e.__isScriptSetup&&Ve(e,t),mI={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Ph(n,t))return o[t]=1,n[t];if(i!==mt&&Ve(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Ve(u,t))return o[t]=3,a[t];if(r!==mt&&Ve(r,t))return o[t]=4,r[t];Ap&&(o[t]=0)}}const c=El[t];let f,d;if(c)return t==="$attrs"&&Hr(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==mt&&Ve(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,Ve(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Ph(i,t)?(i[t]=r,!0):n!==mt&&Ve(n,t)?(n[t]=r,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==mt&&Ve(e,o)||Ph(t,o)||(s=a[0])&&Ve(s,o)||Ve(n,o)||Ve(El,o)||Ve(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ve(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let Ap=!0;function yI(e){const t=Wm(e),r=e.proxy,n=e.ctx;Ap=!1,t.beforeCreate&&n_(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:y,destroyed:_,unmounted:b,render:S,renderTracked:w,renderTriggered:x,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:A,components:M,directives:D,filters:R}=t;if(u&&_I(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const K in o){const B=o[K];Le(B)&&(n[K]=B.bind(r))}if(i){const K=i.call(r,r);Ke(K)&&(e.data=fn(K))}if(Ap=!0,a)for(const K in a){const B=a[K],N=Le(B)?B.bind(r,r):Le(B.get)?B.get.bind(r,r):ur,j=!Le(B)&&Le(B.set)?B.set.bind(r):ur,re=$({get:N,set:j});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>re.value,set:oe=>re.value=oe})}if(s)for(const K in s)jC(s[K],n,r,K);if(l){const K=Le(l)?l.call(r):l;Reflect.ownKeys(K).forEach(B=>{Tt(B,K[B])})}c&&n_(c,e,"c");function F(K,B){be(B)?B.forEach(N=>K(N.bind(r))):B&&K(B.bind(r))}if(F(Bd,f),F(Mt,d),F(cI,h),F(Fd,v),F(lI,p),F(WC,g),F(vI,C),F(hI,w),F(dI,x),F(nr,y),F(Nu,b),F(fI,T),be(E))if(E.length){const K=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(K,B,{get:()=>r[B],set:N=>r[B]=N})})}else e.exposed||(e.exposed={});S&&e.render===ur&&(e.render=S),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),D&&(e.directives=D)}function _I(e,t,r=ur,n=!1){be(e)&&(e=Ep(e));for(const i in e){const a=e[i];let o;Ke(a)?"default"in a?o=Oe(a.from||i,a.default,!0):o=Oe(a.from||i):o=Oe(a),xt(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function n_(e,t,r){rn(be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function jC(e,t,r,n){const i=n.includes(".")?FC(r,n):()=>r[n];if(ze(e)){const a=t[e];Le(a)&&xe(i,a)}else if(Le(e))xe(i,e.bind(r));else if(Ke(e))if(be(e))e.forEach(a=>jC(a,t,r,n));else{const a=Le(e.handler)?e.handler.bind(r):t[e.handler];Le(a)&&xe(i,a,e)}}function Wm(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Gf(l,u,o,!0)),Gf(l,t,o)),Ke(t)&&a.set(t,l),l}function Gf(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Gf(e,a,r,!0),i&&i.forEach(o=>Gf(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=bI[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const bI={data:i_,props:Ha,emits:Ha,methods:Ha,computed:Ha,beforeCreate:ir,created:ir,beforeMount:ir,mounted:ir,beforeUpdate:ir,updated:ir,beforeDestroy:ir,beforeUnmount:ir,destroyed:ir,unmounted:ir,activated:ir,deactivated:ir,errorCaptured:ir,serverPrefetch:ir,components:Ha,directives:Ha,watch:SI,provide:i_,inject:wI};function i_(e,t){return t?e?function(){return Xt(Le(e)?e.call(this,this):e,Le(t)?t.call(this,this):t)}:t:e}function wI(e,t){return Ha(Ep(e),Ep(t))}function Ep(e){if(be(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function ir(e,t){return e?[...new Set([].concat(e,t))]:t}function Ha(e,t){return e?Xt(Xt(Object.create(null),e),t):t}function SI(e,t){if(!e)return t;if(!t)return e;const r=Xt(Object.create(null),e);for(const n in t)r[n]=ir(e[n],t[n]);return r}function xI(e,t,r,n=!1){const i={},a={};zf(a,$d,1),e.propsDefaults=Object.create(null),YC(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:xC(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function CI(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=Je(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Rd(e.emitsOptions,d))continue;const h=t[d];if(l)if(Ve(a,d))h!==a[d]&&(a[d]=h,u=!0);else{const v=An(d);i[v]=Pp(l,s,v,h,e,!1)}else h!==a[d]&&(a[d]=h,u=!0)}}}else{YC(e,t,i,a)&&(u=!0);let c;for(const f in s)(!t||!Ve(t,f)&&((c=wo(f))===f||!Ve(t,c)))&&(l?r&&(r[f]!==void 0||r[c]!==void 0)&&(i[f]=Pp(l,s,f,void 0,e,!0)):delete i[f]);if(a!==s)for(const f in a)(!t||!Ve(t,f))&&(delete a[f],u=!0)}u&&pi(e,"set","$attrs")}function YC(e,t,r,n){const[i,a]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(ff(l))continue;const u=t[l];let c;i&&Ve(i,c=An(l))?!a||!a.includes(c)?r[c]=u:(s||(s={}))[c]=u:Rd(e.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,o=!0)}if(a){const l=Je(r),u=s||mt;for(let c=0;c<a.length;c++){const f=a[c];r[f]=Pp(i,l,f,u[f],e,!Ve(u,f))}}return o}function Pp(e,t,r,n,i,a){const o=e[r];if(o!=null){const s=Ve(o,"default");if(s&&n===void 0){const l=o.default;if(o.type!==Function&&Le(l)){const{propsDefaults:u}=i;r in u?n=u[r]:(ps(i),n=u[r]=l.call(null,t),io())}else n=l}o[0]&&(a&&!s?n=!1:o[1]&&(n===""||n===wo(r))&&(n=!0))}return n}function qC(e,t,r=!1){const n=t.propsCache,i=n.get(e);if(i)return i;const a=e.props,o={},s=[];let l=!1;if(!Le(e)){const c=f=>{l=!0;const[d,h]=qC(f,t,!0);Xt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Ke(e)&&n.set(e,ns),ns;if(be(a))for(let c=0;c<a.length;c++){const f=An(a[c]);a_(f)&&(o[f]=mt)}else if(a)for(const c in a){const f=An(c);if(a_(f)){const d=a[c],h=o[f]=be(d)||Le(d)?{type:d}:Object.assign({},d);if(h){const v=l_(Boolean,h.type),p=l_(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||Ve(h,"default"))&&s.push(f)}}}const u=[o,s];return Ke(e)&&n.set(e,u),u}function a_(e){return e[0]!=="$"}function o_(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function s_(e,t){return o_(e)===o_(t)}function l_(e,t){return be(t)?t.findIndex(r=>s_(r,e)):Le(t)&&s_(t,e)?0:-1}const KC=e=>e[0]==="_"||e==="$stable",Vm=e=>be(e)?e.map(Fn):[Fn(e)],TI=(e,t,r)=>{if(t._n)return t;const n=Z((...i)=>Vm(t(...i)),r);return n._c=!1,n},XC=(e,t,r)=>{const n=e._ctx;for(const i in e){if(KC(i))continue;const a=e[i];if(Le(a))t[i]=TI(i,a,n);else if(a!=null){const o=Vm(a);t[i]=()=>o}}},ZC=(e,t)=>{const r=Vm(t);e.slots.default=()=>r},MI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Je(t),zf(t,"_",r)):XC(t,e.slots={})}else e.slots={},t&&ZC(e,t);zf(e.slots,$d,1)},AI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=mt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Xt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,XC(t,i)),o=t}else t&&(ZC(e,t),o={default:1});if(a)for(const s in i)!KC(s)&&!(s in o)&&delete i[s]};function QC(){return{app:null,config:{isNativeTag:aD,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 EI=0;function PI(e,t){return function(n,i=null){Le(n)||(n=Object.assign({},n)),i!=null&&!Ke(i)&&(i=null);const a=QC(),o=new Set;let s=!1;const l=a.app={_uid:EI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:ZI,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&Le(u.install)?(o.add(u),u.install(l,...c)):Le(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,f){if(!s){const d=ee(n,i);return d.appContext=a,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,Hd(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l}};return l}}function Lp(e,t,r,n,i=!1){if(be(e)){e.forEach((d,h)=>Lp(d,t&&(be(t)?t[h]:t),r,n,i));return}if(Al(n)&&!i)return;const a=n.shapeFlag&4?Hd(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===mt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(ze(u)?(c[u]=null,Ve(f,u)&&(f[u]=null)):xt(u)&&(u.value=null)),Le(l))Ki(l,s,12,[o,c]);else{const d=ze(l),h=xt(l);if(d||h){const v=()=>{if(e.f){const p=d?Ve(f,l)?f[l]:c[l]:l.value;i?be(p)&&Mm(p,a):be(p)?p.includes(a)||p.push(a):d?(c[l]=[a],Ve(f,l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,Ve(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,yr(v,r)):v()}}}const yr=iI;function LI(e){return DI(e)}function DI(e,t){const r=fD();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ur,insertStaticContent:v}=e,p=(L,I,z,G=null,q=null,ne=null,de=!1,te=null,ie=!!I.dynamicChildren)=>{if(L===I)return;L&&!Ga(L,I)&&(G=W(L),oe(L,q,ne,!0),L=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:X,ref:we,shapeFlag:ve}=I;switch(X){case ks:g(L,I,z,G);break;case Sr:m(L,I,z,G);break;case Lh:L==null&&y(I,z,G,de);break;case yt:M(L,I,z,G,q,ne,de,te,ie);break;default:ve&1?S(L,I,z,G,q,ne,de,te,ie):ve&6?D(L,I,z,G,q,ne,de,te,ie):(ve&64||ve&128)&&X.process(L,I,z,G,q,ne,de,te,ie,ue)}we!=null&&q&&Lp(we,L&&L.ref,ne,I||L,!I)},g=(L,I,z,G)=>{if(L==null)n(I.el=s(I.children),z,G);else{const q=I.el=L.el;I.children!==L.children&&u(q,I.children)}},m=(L,I,z,G)=>{L==null?n(I.el=l(I.children||""),z,G):I.el=L.el},y=(L,I,z,G)=>{[L.el,L.anchor]=v(L.children,I,z,G,L.el,L.anchor)},_=({el:L,anchor:I},z,G)=>{let q;for(;L&&L!==I;)q=d(L),n(L,z,G),L=q;n(I,z,G)},b=({el:L,anchor:I})=>{let z;for(;L&&L!==I;)z=d(L),i(L),L=z;i(I)},S=(L,I,z,G,q,ne,de,te,ie)=>{de=de||I.type==="svg",L==null?w(I,z,G,q,ne,de,te,ie):T(L,I,q,ne,de,te,ie)},w=(L,I,z,G,q,ne,de,te)=>{let ie,X;const{type:we,props:ve,shapeFlag:Se,transition:Ie,dirs:$e}=L;if(ie=L.el=o(L.type,ne,ve&&ve.is,ve),Se&8?c(ie,L.children):Se&16&&C(L.children,ie,null,G,q,ne&&we!=="foreignObject",de,te),$e&&fa(L,null,G,"created"),ve){for(const et in ve)et!=="value"&&!ff(et)&&a(ie,et,null,ve[et],ne,L.children,G,q,J);"value"in ve&&a(ie,"value",null,ve.value),(X=ve.onVnodeBeforeMount)&&On(X,G,L)}x(ie,L,L.scopeId,de,G),$e&&fa(L,null,G,"beforeMount");const nt=(!q||q&&!q.pendingBranch)&&Ie&&!Ie.persisted;nt&&Ie.beforeEnter(ie),n(ie,I,z),((X=ve&&ve.onVnodeMounted)||nt||$e)&&yr(()=>{X&&On(X,G,L),nt&&Ie.enter(ie),$e&&fa(L,null,G,"mounted")},q)},x=(L,I,z,G,q)=>{if(z&&h(L,z),G)for(let ne=0;ne<G.length;ne++)h(L,G[ne]);if(q){let ne=q.subTree;if(I===ne){const de=q.vnode;x(L,de,de.scopeId,de.slotScopeIds,q.parent)}}},C=(L,I,z,G,q,ne,de,te,ie=0)=>{for(let X=ie;X<L.length;X++){const we=L[X]=te?zi(L[X]):Fn(L[X]);p(null,we,I,z,G,q,ne,de,te)}},T=(L,I,z,G,q,ne,de)=>{const te=I.el=L.el;let{patchFlag:ie,dynamicChildren:X,dirs:we}=I;ie|=L.patchFlag&16;const ve=L.props||mt,Se=I.props||mt;let Ie;z&&da(z,!1),(Ie=Se.onVnodeBeforeUpdate)&&On(Ie,z,I,L),we&&fa(I,L,z,"beforeUpdate"),z&&da(z,!0);const $e=q&&I.type!=="foreignObject";if(X?E(L.dynamicChildren,X,te,z,G,$e,ne):de||B(L,I,te,null,z,G,$e,ne,!1),ie>0){if(ie&16)A(te,I,ve,Se,z,G,q);else if(ie&2&&ve.class!==Se.class&&a(te,"class",null,Se.class,q),ie&4&&a(te,"style",ve.style,Se.style,q),ie&8){const nt=I.dynamicProps;for(let et=0;et<nt.length;et++){const fe=nt[et],Te=ve[fe],He=Se[fe];(He!==Te||fe==="value")&&a(te,fe,Te,He,q,L.children,z,G,J)}}ie&1&&L.children!==I.children&&c(te,I.children)}else!de&&X==null&&A(te,I,ve,Se,z,G,q);((Ie=Se.onVnodeUpdated)||we)&&yr(()=>{Ie&&On(Ie,z,I,L),we&&fa(I,L,z,"updated")},G)},E=(L,I,z,G,q,ne,de)=>{for(let te=0;te<I.length;te++){const ie=L[te],X=I[te],we=ie.el&&(ie.type===yt||!Ga(ie,X)||ie.shapeFlag&70)?f(ie.el):z;p(ie,X,we,null,G,q,ne,de,!0)}},A=(L,I,z,G,q,ne,de)=>{if(z!==G){if(z!==mt)for(const te in z)!ff(te)&&!(te in G)&&a(L,te,z[te],null,de,I.children,q,ne,J);for(const te in G){if(ff(te))continue;const ie=G[te],X=z[te];ie!==X&&te!=="value"&&a(L,te,X,ie,de,I.children,q,ne,J)}"value"in G&&a(L,"value",z.value,G.value)}},M=(L,I,z,G,q,ne,de,te,ie)=>{const X=I.el=L?L.el:s(""),we=I.anchor=L?L.anchor:s("");let{patchFlag:ve,dynamicChildren:Se,slotScopeIds:Ie}=I;Ie&&(te=te?te.concat(Ie):Ie),L==null?(n(X,z,G),n(we,z,G),C(I.children,z,we,q,ne,de,te,ie)):ve>0&&ve&64&&Se&&L.dynamicChildren?(E(L.dynamicChildren,Se,z,q,ne,de,te),(I.key!=null||q&&I===q.subTree)&&Gm(L,I,!0)):B(L,I,z,we,q,ne,de,te,ie)},D=(L,I,z,G,q,ne,de,te,ie)=>{I.slotScopeIds=te,L==null?I.shapeFlag&512?q.ctx.activate(I,z,G,de,ie):R(I,z,G,q,ne,de,ie):k(L,I,ie)},R=(L,I,z,G,q,ne,de)=>{const te=L.component=WI(L,G,q);if(kd(L)&&(te.ctx.renderer=ue),VI(te),te.asyncDep){if(q&&q.registerDep(te,F),!L.el){const ie=te.subTree=ee(Sr);m(null,ie,I,z)}return}F(te,L,I,z,q,ne,de)},k=(L,I,z)=>{const G=I.component=L.component;if(tI(L,I,z))if(G.asyncDep&&!G.asyncResolved){K(G,I,z);return}else G.next=I,KD(G.update),G.update();else I.el=L.el,G.vnode=I},F=(L,I,z,G,q,ne,de)=>{const te=()=>{if(L.isMounted){let{next:we,bu:ve,u:Se,parent:Ie,vnode:$e}=L,nt=we,et;da(L,!1),we?(we.el=$e.el,K(L,we,de)):we=$e,ve&&hf(ve),(et=we.props&&we.props.onVnodeBeforeUpdate)&&On(et,Ie,we,$e),da(L,!0);const fe=Ah(L),Te=L.subTree;L.subTree=fe,p(Te,fe,f(Te.el),W(Te),L,q,ne),we.el=fe.el,nt===null&&rI(L,fe.el),Se&&yr(Se,q),(et=we.props&&we.props.onVnodeUpdated)&&yr(()=>On(et,Ie,we,$e),q)}else{let we;const{el:ve,props:Se}=I,{bm:Ie,m:$e,parent:nt}=L,et=Al(I);if(da(L,!1),Ie&&hf(Ie),!et&&(we=Se&&Se.onVnodeBeforeMount)&&On(we,nt,I),da(L,!0),ve&&Q){const fe=()=>{L.subTree=Ah(L),Q(ve,L.subTree,L,q,null)};et?I.type.__asyncLoader().then(()=>!L.isUnmounted&&fe()):fe()}else{const fe=L.subTree=Ah(L);p(null,fe,z,G,L,q,ne),I.el=fe.el}if($e&&yr($e,q),!et&&(we=Se&&Se.onVnodeMounted)){const fe=I;yr(()=>On(we,nt,fe),q)}(I.shapeFlag&256||nt&&Al(nt.vnode)&&nt.vnode.shapeFlag&256)&&L.a&&yr(L.a,q),L.isMounted=!0,I=z=G=null}},ie=L.effect=new Lm(te,()=>Bm(X),L.scope),X=L.update=()=>ie.run();X.id=L.uid,da(L,!0),X()},K=(L,I,z)=>{I.component=L;const G=L.vnode.props;L.vnode=I,L.next=null,CI(L,I.props,G,z),AI(L,I.children,z),Os(),Q0(),Rs()},B=(L,I,z,G,q,ne,de,te,ie=!1)=>{const X=L&&L.children,we=L?L.shapeFlag:0,ve=I.children,{patchFlag:Se,shapeFlag:Ie}=I;if(Se>0){if(Se&128){j(X,ve,z,G,q,ne,de,te,ie);return}else if(Se&256){N(X,ve,z,G,q,ne,de,te,ie);return}}Ie&8?(we&16&&J(X,q,ne),ve!==X&&c(z,ve)):we&16?Ie&16?j(X,ve,z,G,q,ne,de,te,ie):J(X,q,ne,!0):(we&8&&c(z,""),Ie&16&&C(ve,z,G,q,ne,de,te,ie))},N=(L,I,z,G,q,ne,de,te,ie)=>{L=L||ns,I=I||ns;const X=L.length,we=I.length,ve=Math.min(X,we);let Se;for(Se=0;Se<ve;Se++){const Ie=I[Se]=ie?zi(I[Se]):Fn(I[Se]);p(L[Se],Ie,z,null,q,ne,de,te,ie)}X>we?J(L,q,ne,!0,!1,ve):C(I,z,G,q,ne,de,te,ie,ve)},j=(L,I,z,G,q,ne,de,te,ie)=>{let X=0;const we=I.length;let ve=L.length-1,Se=we-1;for(;X<=ve&&X<=Se;){const Ie=L[X],$e=I[X]=ie?zi(I[X]):Fn(I[X]);if(Ga(Ie,$e))p(Ie,$e,z,null,q,ne,de,te,ie);else break;X++}for(;X<=ve&&X<=Se;){const Ie=L[ve],$e=I[Se]=ie?zi(I[Se]):Fn(I[Se]);if(Ga(Ie,$e))p(Ie,$e,z,null,q,ne,de,te,ie);else break;ve--,Se--}if(X>ve){if(X<=Se){const Ie=Se+1,$e=Ie<we?I[Ie].el:G;for(;X<=Se;)p(null,I[X]=ie?zi(I[X]):Fn(I[X]),z,$e,q,ne,de,te,ie),X++}}else if(X>Se)for(;X<=ve;)oe(L[X],q,ne,!0),X++;else{const Ie=X,$e=X,nt=new Map;for(X=$e;X<=Se;X++){const ht=I[X]=ie?zi(I[X]):Fn(I[X]);ht.key!=null&&nt.set(ht.key,X)}let et,fe=0;const Te=Se-$e+1;let He=!1,We=0;const Ze=new Array(Te);for(X=0;X<Te;X++)Ze[X]=0;for(X=Ie;X<=ve;X++){const ht=L[X];if(fe>=Te){oe(ht,q,ne,!0);continue}let Wt;if(ht.key!=null)Wt=nt.get(ht.key);else for(et=$e;et<=Se;et++)if(Ze[et-$e]===0&&Ga(ht,I[et])){Wt=et;break}Wt===void 0?oe(ht,q,ne,!0):(Ze[Wt-$e]=X+1,Wt>=We?We=Wt:He=!0,p(ht,I[Wt],z,null,q,ne,de,te,ie),fe++)}const kt=He?II(Ze):ns;for(et=kt.length-1,X=Te-1;X>=0;X--){const ht=$e+X,Wt=I[ht],Wr=ht+1<we?I[ht+1].el:G;Ze[X]===0?p(null,Wt,z,Wr,q,ne,de,te,ie):He&&(et<0||X!==kt[et]?re(Wt,z,Wr,2):et--)}}},re=(L,I,z,G,q=null)=>{const{el:ne,type:de,transition:te,children:ie,shapeFlag:X}=L;if(X&6){re(L.component.subTree,I,z,G);return}if(X&128){L.suspense.move(I,z,G);return}if(X&64){de.move(L,I,z,ue);return}if(de===yt){n(ne,I,z);for(let ve=0;ve<ie.length;ve++)re(ie[ve],I,z,G);n(L.anchor,I,z);return}if(de===Lh){_(L,I,z);return}if(G!==2&&X&1&&te)if(G===0)te.beforeEnter(ne),n(ne,I,z),yr(()=>te.enter(ne),q);else{const{leave:ve,delayLeave:Se,afterLeave:Ie}=te,$e=()=>n(ne,I,z),nt=()=>{ve(ne,()=>{$e(),Ie&&Ie()})};Se?Se(ne,$e,nt):nt()}else n(ne,I,z)},oe=(L,I,z,G=!1,q=!1)=>{const{type:ne,props:de,ref:te,children:ie,dynamicChildren:X,shapeFlag:we,patchFlag:ve,dirs:Se}=L;if(te!=null&&Lp(te,null,z,L,!0),we&256){I.ctx.deactivate(L);return}const Ie=we&1&&Se,$e=!Al(L);let nt;if($e&&(nt=de&&de.onVnodeBeforeUnmount)&&On(nt,I,L),we&6)V(L.component,z,G);else{if(we&128){L.suspense.unmount(z,G);return}Ie&&fa(L,null,I,"beforeUnmount"),we&64?L.type.remove(L,I,z,q,ue,G):X&&(ne!==yt||ve>0&&ve&64)?J(X,I,z,!1,!0):(ne===yt&&ve&384||!q&&we&16)&&J(ie,I,z),G&&_e(L)}($e&&(nt=de&&de.onVnodeUnmounted)||Ie)&&yr(()=>{nt&&On(nt,I,L),Ie&&fa(L,null,I,"unmounted")},z)},_e=L=>{const{type:I,el:z,anchor:G,transition:q}=L;if(I===yt){Ee(z,G);return}if(I===Lh){b(L);return}const ne=()=>{i(z),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(L.shapeFlag&1&&q&&!q.persisted){const{leave:de,delayLeave:te}=q,ie=()=>de(z,ne);te?te(L.el,ne,ie):ie()}else ne()},Ee=(L,I)=>{let z;for(;L!==I;)z=d(L),i(L),L=z;i(I)},V=(L,I,z)=>{const{bum:G,scope:q,update:ne,subTree:de,um:te}=L;G&&hf(G),q.stop(),ne&&(ne.active=!1,oe(de,L,I,z)),te&&yr(te,I),yr(()=>{L.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},J=(L,I,z,G=!1,q=!1,ne=0)=>{for(let de=ne;de<L.length;de++)oe(L[de],I,z,G,q)},W=L=>L.shapeFlag&6?W(L.component.subTree):L.shapeFlag&128?L.suspense.next():d(L.anchor||L.el),Y=(L,I,z)=>{L==null?I._vnode&&oe(I._vnode,null,null,!0):p(I._vnode||null,L,I,null,null,null,z),Q0(),RC(),I._vnode=L},ue={p,um:oe,m:re,r:_e,mt:R,mc:C,pc:B,pbc:E,n:W,o:e};let he,Q;return t&&([he,Q]=t(ue)),{render:Y,hydrate:he,createApp:PI(Y,he)}}function da({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Gm(e,t,r=!1){const n=e.children,i=t.children;if(be(n)&&be(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]=zi(i[a]),s.el=o.el),r||Gm(o,s)),s.type===ks&&(s.el=o.el)}}function II(e){const t=e.slice(),r=[0];let n,i,a,o,s;const l=e.length;for(n=0;n<l;n++){const u=e[n];if(u!==0){if(i=r[r.length-1],e[i]<u){t[n]=i,r.push(n);continue}for(a=0,o=r.length-1;a<o;)s=a+o>>1,e[r[s]]<u?a=s+1:o=s;u<e[r[a]]&&(a>0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const OI=e=>e.__isTeleport,Pl=e=>e&&(e.disabled||e.disabled===""),u_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Dp=(e,t)=>{const r=e&&e.to;return ze(r)?t?t(r):null:r},RI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Pl(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const S=t.el=p(""),w=t.anchor=p("");h(S,r,n),h(w,r,n);const x=t.target=Dp(t.props,v),C=t.targetAnchor=p("");x&&(h(C,x),o=o||u_(x));const T=(E,A)=>{y&16&&c(_,E,A,i,a,o,s,l)};m?T(r,w):x&&T(x,C)}else{t.el=e.el;const S=t.anchor=e.anchor,w=t.target=e.target,x=t.targetAnchor=e.targetAnchor,C=Pl(e.props),T=C?r:w,E=C?S:x;if(o=o||u_(w),b?(d(e.dynamicChildren,b,T,i,a,o,s),Gm(e,t,!0)):l||f(e,t,T,E,i,a,o,s,!1),m)C||cc(t,r,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Dp(t.props,v);A&&cc(t,A,null,u,0)}else C&&cc(t,w,x,u,1)}JC(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!Pl(d))&&(a(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];i(v,t,r,!0,!!v.dynamicChildren)}},move:cc,hydrate:kI};function cc(e,t,r,{o:{insert:n},m:i},a=2){a===0&&n(e.targetAnchor,t,r);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=a===2;if(f&&n(o,t,r),(!f||Pl(c))&&l&16)for(let d=0;d<u.length;d++)i(u[d],t,r,2);f&&n(s,t,r)}function kI(e,t,r,n,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=Dp(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Pl(t.props))t.anchor=u(o(e),t,s(e),r,n,i,a),t.targetAnchor=f;else{t.anchor=o(e);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){t.targetAnchor=d,c._lpa=t.targetAnchor&&o(t.targetAnchor);break}u(f,t,c,r,n,i,a)}JC(t)}return t.anchor&&o(t.anchor)}const NI=RI;function JC(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const yt=Symbol(void 0),ks=Symbol(void 0),Sr=Symbol(void 0),Lh=Symbol(void 0),Ll=[];let wn=null;function U(e=!1){Ll.push(wn=e?null:[])}function BI(){Ll.pop(),wn=Ll[Ll.length-1]||null}let au=1;function c_(e){au+=e}function eT(e){return e.dynamicChildren=au>0?wn||ns:null,BI(),au>0&&wn&&wn.push(e),e}function ye(e,t,r,n,i,a){return eT(ae(e,t,r,n,i,a,!0))}function me(e,t,r,n,i){return eT(ee(e,t,r,n,i,!0))}function Ji(e){return e?e.__v_isVNode===!0:!1}function Ga(e,t){return e.type===t.type&&e.key===t.key}const $d="__vInternal",tT=({key:e})=>e??null,vf=({ref:e,ref_key:t,ref_for:r})=>e!=null?ze(e)||xt(e)||Le(e)?{i:jt,r:e,k:t,f:!!r}:e:null;function ae(e,t=null,r=null,n=0,i=null,a=e===yt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tT(t),ref:t&&vf(t),scopeId:BC,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:jt};return s?(Um(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ze(r)?8:16),au>0&&!o&&wn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wn.push(l),l}const ee=FI;function FI(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===GC)&&(e=Sr),Ji(e)){const s=gi(e,t,!0);return r&&Um(s,r),au>0&&!a&&wn&&(s.shapeFlag&6?wn[wn.indexOf(e)]=s:wn.push(s)),s.patchFlag|=-2,s}if(YI(e)&&(e=e.__vccOpts),t){t=$I(t);let{class:s,style:l}=t;s&&!ze(s)&&(t.class=le(s)),Ke(l)&&(CC(l)&&!be(l)&&(l=Xt({},l)),t.style=St(l))}const o=ze(e)?1:nI(e)?128:OI(e)?64:Ke(e)?4:Le(e)?2:0;return ae(e,t,r,n,i,o,a,!0)}function $I(e){return e?CC(e)||$d in e?Xt({},e):e:null}function gi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?So(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&tT(s),ref:t&&t.ref?r&&i?be(i)?i.concat(vf(t)):[i,vf(t)]:vf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gi(e.ssContent),ssFallback:e.ssFallback&&gi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Nt(e=" ",t=0){return ee(ks,null,e,t)}function ke(e="",t=!1){return t?(U(),me(Sr,null,e)):ee(Sr,null,e)}function Fn(e){return e==null||typeof e=="boolean"?ee(Sr):be(e)?ee(yt,null,e.slice()):typeof e=="object"?zi(e):ee(ks,null,String(e))}function zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gi(e)}function Um(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(be(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Um(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!($d in t)?t._ctx=jt:i===3&&jt&&(jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Le(t)?(t={default:t,_ctx:jt},r=32):(t=String(t),n&64?(r=16,t=[Nt(t)]):r=8);e.children=t,e.shapeFlag|=r}function So(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=le([t.class,n.class]));else if(i==="style")t.style=St([t.style,n.style]);else if(Ad(i)){const a=t[i],o=n[i];o&&a!==o&&!(be(a)&&a.includes(o))&&(t[i]=a?[].concat(a,o):o)}else i!==""&&(t[i]=n[i])}return t}function On(e,t,r,n=null){rn(e,t,7,[r,n])}const HI=QC();let zI=0;function WI(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||HI,a={uid:zI++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new dD(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:qC(n,i),emitsOptions:NC(n,i),emit:null,emitted:null,propsDefaults:mt,inheritAttrs:n.inheritAttrs,ctx:mt,data:mt,props:mt,attrs:mt,slots:mt,refs:mt,setupState:mt,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=t?t.root:a,a.emit=QD.bind(null,a),e.ce&&e.ce(a),a}let zt=null;const dt=()=>zt||jt,ps=e=>{zt=e,e.scope.on()},io=()=>{zt&&zt.scope.off(),zt=null};function rT(e){return e.vnode.shapeFlag&4}let ou=!1;function VI(e,t=!1){ou=t;const{props:r,children:n}=e.vnode,i=rT(e);xI(e,r,i,t),MI(e,n);const a=i?GI(e,t):void 0;return ou=!1,a}function GI(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=TC(new Proxy(e.ctx,mI));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?iT(e):null;ps(e),Os();const a=Ki(n,e,0,[e.props,i]);if(Rs(),io(),Hf(a)){if(a.then(io,io),t)return a.then(o=>{f_(e,o,t)}).catch(o=>{Od(o,e,0)});e.asyncDep=a}else f_(e,a,t)}else nT(e,t)}function f_(e,t,r){Le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=LC(t)),nT(e,r)}let d_;function nT(e,t,r){const n=e.type;if(!e.render){if(!t&&d_&&!n.render){const i=n.template||Wm(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Xt(Xt({isCustomElement:a,delimiters:s},o),l);n.render=d_(i,u)}}e.render=n.render||ur}ps(e),Os(),yI(e),Rs(),io()}function UI(e){return new Proxy(e.attrs,{get(t,r){return Hr(e,"get","$attrs"),t[r]}})}function iT(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=UI(e))},slots:e.slots,emit:e.emit,expose:t}}function Hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(LC(TC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in El)return El[r](e)},has(t,r){return r in t||r in El}}))}function jI(e,t=!0){return Le(e)?e.displayName||e.name:e.name||t&&e.__name}function YI(e){return Le(e)&&"__vccOpts"in e}const $=(e,t)=>UD(e,t,ou);function zd(){return qI().slots}function qI(){const e=dt();return e.setupContext||(e.setupContext=iT(e))}function Ce(e,t,r){const n=arguments.length;return n===2?Ke(t)&&!be(t)?Ji(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ji(r)&&(r=[r]),ee(e,t,r))}const KI=Symbol(""),XI=()=>Oe(KI),ZI="3.2.45",QI="http://www.w3.org/2000/svg",Ua=typeof document<"u"?document:null,h_=Ua&&Ua.createElement("template"),JI={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Ua.createElementNS(QI,e):Ua.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ua.createTextNode(e),createComment:e=>Ua.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ua.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{h_.innerHTML=n?`<svg>${e}</svg>`:e;const s=h_.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function eO(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function tO(e,t,r){const n=e.style,i=ze(r);if(r&&!i){for(const a in r)Ip(n,a,r[a]);if(t&&!ze(t))for(const a in t)r[a]==null&&Ip(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const v_=/\s*!important$/;function Ip(e,t,r){if(be(r))r.forEach(n=>Ip(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=rO(e,t);v_.test(r)?e.setProperty(wo(n),r.replace(v_,""),"important"):e[n]=r}}const p_=["Webkit","Moz","ms"],Dh={};function rO(e,t){const r=Dh[t];if(r)return r;let n=An(t);if(n!=="filter"&&n in e)return Dh[t]=n;n=Ld(n);for(let i=0;i<p_.length;i++){const a=p_[i]+n;if(a in e)return Dh[t]=a}return t}const g_="http://www.w3.org/1999/xlink";function nO(e,t,r,n,i){if(n&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(g_,t.slice(6,t.length)):e.setAttributeNS(g_,t,r);else{const a=nD(t);r==null||a&&!lC(r)?e.removeAttribute(t):e.setAttribute(t,a?"":r)}}function iO(e,t,r,n,i,a,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,a),e[t]=r??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=r;const l=r??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),r==null&&e.removeAttribute(t);return}let s=!1;if(r===""||r==null){const l=typeof e[t];l==="boolean"?r=lC(r):r==null&&l==="string"?(r="",s=!0):l==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(t)}function aT(e,t,r,n){e.addEventListener(t,r,n)}function aO(e,t,r,n){e.removeEventListener(t,r,n)}function oO(e,t,r,n,i=null){const a=e._vei||(e._vei={}),o=a[t];if(n&&o)o.value=n;else{const[s,l]=sO(t);if(n){const u=a[t]=cO(n,i);aT(e,s,u,l)}else o&&(aO(e,s,o,l),a[t]=void 0)}}const m_=/(?:Once|Passive|Capture)$/;function sO(e){let t;if(m_.test(e)){t={};let n;for(;n=e.match(m_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wo(e.slice(2)),t]}let Ih=0;const lO=Promise.resolve(),uO=()=>Ih||(lO.then(()=>Ih=0),Ih=Date.now());function cO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rn(fO(n,r.value),t,5,[n])};return r.value=e,r.attached=uO(),r}function fO(e,t){if(be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const y_=/^on[a-z]/,dO=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?eO(e,n,i):t==="style"?tO(e,r,n):Ad(t)?Tm(t)||oO(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hO(e,t,n,i))?iO(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),nO(e,t,n,i))};function hO(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&y_.test(t)&&Le(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||y_.test(t)&&ze(r)?!1:t in e}const Ei="transition",js="animation",Qn=(e,{slots:t})=>Ce($C,vO(e),t);Qn.displayName="Transition";const oT={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};Qn.props=Xt({},$C.props,oT);const ha=(e,t=[])=>{be(e)?e.forEach(r=>r(...t)):e&&e(...t)},__=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function vO(e){const t={};for(const M in e)M in oT||(t[M]=e[M]);if(e.css===!1)return t;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:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=pO(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:S,onBeforeAppear:w=m,onAppear:x=y,onAppearCancelled:C=_}=t,T=(M,D,R)=>{va(M,D?c:s),va(M,D?u:o),R&&R()},E=(M,D)=>{M._isLeaving=!1,va(M,f),va(M,h),va(M,d),D&&D()},A=M=>(D,R)=>{const k=M?x:y,F=()=>T(D,M,R);ha(k,[D,F]),b_(()=>{va(D,M?l:a),Pi(D,M?c:s),__(k)||w_(D,n,p,F)})};return Xt(t,{onBeforeEnter(M){ha(m,[M]),Pi(M,a),Pi(M,o)},onBeforeAppear(M){ha(w,[M]),Pi(M,l),Pi(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,D){M._isLeaving=!0;const R=()=>E(M,D);Pi(M,f),yO(),Pi(M,d),b_(()=>{M._isLeaving&&(va(M,f),Pi(M,h),__(b)||w_(M,n,g,R))}),ha(b,[M,R])},onEnterCancelled(M){T(M,!1),ha(_,[M])},onAppearCancelled(M){T(M,!0),ha(C,[M])},onLeaveCancelled(M){E(M),ha(S,[M])}})}function pO(e){if(e==null)return null;if(Ke(e))return[Oh(e.enter),Oh(e.leave)];{const t=Oh(e);return[t,t]}}function Oh(e){return Em(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function va(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function b_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gO=0;function w_(e,t,r,n){const i=e._endId=++gO,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=mO(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function mO(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Ei}Delay`),a=n(`${Ei}Duration`),o=S_(i,a),s=n(`${js}Delay`),l=n(`${js}Duration`),u=S_(s,l);let c=null,f=0,d=0;t===Ei?o>0&&(c=Ei,f=o,d=a.length):t===js?u>0&&(c=js,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Ei:js:null,d=c?c===Ei?a.length:l.length:0);const h=c===Ei&&/\b(transform|all)(,|$)/.test(n(`${Ei}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function S_(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>x_(r)+x_(e[n])))}function x_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function yO(){return document.body.offsetHeight}const C_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?r=>hf(t,r):t},Uf={deep:!0,created(e,t,r){e._assign=C_(r),aT(e,"change",()=>{const n=e._modelValue,i=_O(e),a=e.checked,o=e._assign;if(be(n)){const s=uC(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(Ed(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(sT(e,a))})},mounted:T_,beforeUpdate(e,t,r){e._assign=C_(r),T_(e,t,r)}};function T_(e,{value:t,oldValue:r},n){e._modelValue=t,be(t)?e.checked=uC(t,n.props.value)>-1:Ed(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Md(t,sT(e,!0)))}function _O(e){return"_value"in e?e._value:e.value}function sT(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const bO=["ctrl","shift","alt","meta"],wO={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bO.some(r=>e[`${r}Key`]&&!t.includes(r))},jf=(e,t)=>(r,...n)=>{for(let i=0;i<t.length;i++){const a=wO[t[i]];if(a&&a(r,t))return}return e(r,...n)},SO={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},xO=(e,t)=>r=>{if(!("key"in r))return;const n=wo(r.key);if(t.some(i=>i===n||SO[i]===n))return e(r)},mi={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ys(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ys(e,!0),n.enter(e)):n.leave(e,()=>{Ys(e,!1)}):Ys(e,t))},beforeUnmount(e,{value:t}){Ys(e,t)}};function Ys(e,t){e.style.display=t?e._vod:"none"}const CO=Xt({patchProp:dO},JI);let M_;function lT(){return M_||(M_=LI(CO))}const A_=(...e)=>{lT().render(...e)},TO=(...e)=>{const t=lT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=MO(n);if(!i)return;const a=t._component;!Le(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function MO(e){return ze(e)?document.querySelector(e):e}var AO=typeof global=="object"&&global&&global.Object===Object&&global;const uT=AO;var EO=typeof self=="object"&&self&&self.Object===Object&&self,PO=uT||EO||Function("return this")();const Pn=PO;var LO=Pn.Symbol;const sn=LO;var cT=Object.prototype,DO=cT.hasOwnProperty,IO=cT.toString,qs=sn?sn.toStringTag:void 0;function OO(e){var t=DO.call(e,qs),r=e[qs];try{e[qs]=void 0;var n=!0}catch{}var i=IO.call(e);return n&&(t?e[qs]=r:delete e[qs]),i}var RO=Object.prototype,kO=RO.toString;function NO(e){return kO.call(e)}var BO="[object Null]",FO="[object Undefined]",E_=sn?sn.toStringTag:void 0;function xo(e){return e==null?e===void 0?FO:BO:E_&&E_ in Object(e)?OO(e):NO(e)}function Kn(e){return e!=null&&typeof e=="object"}var $O="[object Symbol]";function Wd(e){return typeof e=="symbol"||Kn(e)&&xo(e)==$O}function fT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var HO=Array.isArray;const fr=HO;var zO=1/0,P_=sn?sn.prototype:void 0,L_=P_?P_.toString:void 0;function dT(e){if(typeof e=="string")return e;if(fr(e))return fT(e,dT)+"";if(Wd(e))return L_?L_.call(e):"";var t=e+"";return t=="0"&&1/e==-zO?"-0":t}var WO=/\s/;function VO(e){for(var t=e.length;t--&&WO.test(e.charAt(t)););return t}var GO=/^\s+/;function UO(e){return e&&e.slice(0,VO(e)+1).replace(GO,"")}function Mr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var D_=0/0,jO=/^[-+]0x[0-9a-f]+$/i,YO=/^0b[01]+$/i,qO=/^0o[0-7]+$/i,KO=parseInt;function I_(e){if(typeof e=="number")return e;if(Wd(e))return D_;if(Mr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Mr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=UO(e);var r=YO.test(e);return r||qO.test(e)?KO(e.slice(2),r?2:8):jO.test(e)?D_:+e}function jm(e){return e}var XO="[object AsyncFunction]",ZO="[object Function]",QO="[object GeneratorFunction]",JO="[object Proxy]";function Ym(e){if(!Mr(e))return!1;var t=xo(e);return t==ZO||t==QO||t==XO||t==JO}var eR=Pn["__core-js_shared__"];const Rh=eR;var O_=function(){var e=/[^.]+$/.exec(Rh&&Rh.keys&&Rh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tR(e){return!!O_&&O_ in e}var rR=Function.prototype,nR=rR.toString;function Co(e){if(e!=null){try{return nR.call(e)}catch{}try{return e+""}catch{}}return""}var iR=/[\\^$.*+?()[\]{}|]/g,aR=/^\[object .+?Constructor\]$/,oR=Function.prototype,sR=Object.prototype,lR=oR.toString,uR=sR.hasOwnProperty,cR=RegExp("^"+lR.call(uR).replace(iR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fR(e){if(!Mr(e)||tR(e))return!1;var t=Ym(e)?cR:aR;return t.test(Co(e))}function dR(e,t){return e==null?void 0:e[t]}function To(e,t){var r=dR(e,t);return fR(r)?r:void 0}var hR=To(Pn,"WeakMap");const Op=hR;var R_=Object.create,vR=function(){function e(){}return function(t){if(!Mr(t))return{};if(R_)return R_(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const pR=vR;function gR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function hT(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var mR=800,yR=16,_R=Date.now;function bR(e){var t=0,r=0;return function(){var n=_R(),i=yR-(n-r);if(r=n,i>0){if(++t>=mR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wR(e){return function(){return e}}var SR=function(){try{var e=To(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Yf=SR;var xR=Yf?function(e,t){return Yf(e,"toString",{configurable:!0,enumerable:!1,value:wR(t),writable:!0})}:jm;const CR=xR;var TR=bR(CR);const vT=TR;function MR(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var AR=9007199254740991,ER=/^(?:0|[1-9]\d*)$/;function Vd(e,t){var r=typeof e;return t=t??AR,!!t&&(r=="number"||r!="symbol"&&ER.test(e))&&e>-1&&e%1==0&&e<t}function qm(e,t,r){t=="__proto__"&&Yf?Yf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Bu(e,t){return e===t||e!==e&&t!==t}var PR=Object.prototype,LR=PR.hasOwnProperty;function Km(e,t,r){var n=e[t];(!(LR.call(e,t)&&Bu(n,r))||r===void 0&&!(t in e))&&qm(e,t,r)}function Fu(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),i?qm(r,s,l):Km(r,s,l)}return r}var k_=Math.max;function pT(e,t,r){return t=k_(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=k_(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),gR(e,this,s)}}function DR(e,t){return vT(pT(e,t,jm),e+"")}var IR=9007199254740991;function Xm(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=IR}function Ns(e){return e!=null&&Xm(e.length)&&!Ym(e)}function OR(e,t,r){if(!Mr(r))return!1;var n=typeof t;return(n=="number"?Ns(r)&&Vd(t,r.length):n=="string"&&t in r)?Bu(r[t],e):!1}function RR(e){return DR(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&OR(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var s=r[n];s&&e(t,s,n,a)}return t})}var kR=Object.prototype;function Zm(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||kR;return e===r}function NR(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var BR="[object Arguments]";function N_(e){return Kn(e)&&xo(e)==BR}var gT=Object.prototype,FR=gT.hasOwnProperty,$R=gT.propertyIsEnumerable,HR=N_(function(){return arguments}())?N_:function(e){return Kn(e)&&FR.call(e,"callee")&&!$R.call(e,"callee")};const su=HR;function zR(){return!1}var mT=typeof kr=="object"&&kr&&!kr.nodeType&&kr,B_=mT&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,WR=B_&&B_.exports===mT,F_=WR?Pn.Buffer:void 0,VR=F_?F_.isBuffer:void 0,GR=VR||zR;const lu=GR;var UR="[object Arguments]",jR="[object Array]",YR="[object Boolean]",qR="[object Date]",KR="[object Error]",XR="[object Function]",ZR="[object Map]",QR="[object Number]",JR="[object Object]",ek="[object RegExp]",tk="[object Set]",rk="[object String]",nk="[object WeakMap]",ik="[object ArrayBuffer]",ak="[object DataView]",ok="[object Float32Array]",sk="[object Float64Array]",lk="[object Int8Array]",uk="[object Int16Array]",ck="[object Int32Array]",fk="[object Uint8Array]",dk="[object Uint8ClampedArray]",hk="[object Uint16Array]",vk="[object Uint32Array]",gt={};gt[ok]=gt[sk]=gt[lk]=gt[uk]=gt[ck]=gt[fk]=gt[dk]=gt[hk]=gt[vk]=!0;gt[UR]=gt[jR]=gt[ik]=gt[YR]=gt[ak]=gt[qR]=gt[KR]=gt[XR]=gt[ZR]=gt[QR]=gt[JR]=gt[ek]=gt[tk]=gt[rk]=gt[nk]=!1;function pk(e){return Kn(e)&&Xm(e.length)&&!!gt[xo(e)]}function Qm(e){return function(t){return e(t)}}var yT=typeof kr=="object"&&kr&&!kr.nodeType&&kr,Dl=yT&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,gk=Dl&&Dl.exports===yT,kh=gk&&uT.process,mk=function(){try{var e=Dl&&Dl.require&&Dl.require("util").types;return e||kh&&kh.binding&&kh.binding("util")}catch{}}();const gs=mk;var $_=gs&&gs.isTypedArray,yk=$_?Qm($_):pk;const Jm=yk;var _k=Object.prototype,bk=_k.hasOwnProperty;function _T(e,t){var r=fr(e),n=!r&&su(e),i=!r&&!n&&lu(e),a=!r&&!n&&!i&&Jm(e),o=r||n||i||a,s=o?NR(e.length,String):[],l=s.length;for(var u in e)(t||bk.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Vd(u,l)))&&s.push(u);return s}function bT(e,t){return function(r){return e(t(r))}}var wk=bT(Object.keys,Object);const Sk=wk;var xk=Object.prototype,Ck=xk.hasOwnProperty;function Tk(e){if(!Zm(e))return Sk(e);var t=[];for(var r in Object(e))Ck.call(e,r)&&r!="constructor"&&t.push(r);return t}function $u(e){return Ns(e)?_T(e):Tk(e)}function Mk(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Ak=Object.prototype,Ek=Ak.hasOwnProperty;function Pk(e){if(!Mr(e))return Mk(e);var t=Zm(e),r=[];for(var n in e)n=="constructor"&&(t||!Ek.call(e,n))||r.push(n);return r}function Hu(e){return Ns(e)?_T(e,!0):Pk(e)}var Lk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dk=/^\w*$/;function ey(e,t){if(fr(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Wd(e)?!0:Dk.test(e)||!Lk.test(e)||t!=null&&e in Object(t)}var Ik=To(Object,"create");const uu=Ik;function Ok(){this.__data__=uu?uu(null):{},this.size=0}function Rk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var kk="__lodash_hash_undefined__",Nk=Object.prototype,Bk=Nk.hasOwnProperty;function Fk(e){var t=this.__data__;if(uu){var r=t[e];return r===kk?void 0:r}return Bk.call(t,e)?t[e]:void 0}var $k=Object.prototype,Hk=$k.hasOwnProperty;function zk(e){var t=this.__data__;return uu?t[e]!==void 0:Hk.call(t,e)}var Wk="__lodash_hash_undefined__";function Vk(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=uu&&t===void 0?Wk:t,this}function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fo.prototype.clear=Ok;fo.prototype.delete=Rk;fo.prototype.get=Fk;fo.prototype.has=zk;fo.prototype.set=Vk;function Gk(){this.__data__=[],this.size=0}function Gd(e,t){for(var r=e.length;r--;)if(Bu(e[r][0],t))return r;return-1}var Uk=Array.prototype,jk=Uk.splice;function Yk(e){var t=this.__data__,r=Gd(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():jk.call(t,r,1),--this.size,!0}function qk(e){var t=this.__data__,r=Gd(t,e);return r<0?void 0:t[r][1]}function Kk(e){return Gd(this.__data__,e)>-1}function Xk(e,t){var r=this.__data__,n=Gd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xi.prototype.clear=Gk;xi.prototype.delete=Yk;xi.prototype.get=qk;xi.prototype.has=Kk;xi.prototype.set=Xk;var Zk=To(Pn,"Map");const cu=Zk;function Qk(){this.size=0,this.__data__={hash:new fo,map:new(cu||xi),string:new fo}}function Jk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ud(e,t){var r=e.__data__;return Jk(t)?r[typeof t=="string"?"string":"hash"]:r.map}function eN(e){var t=Ud(this,e).delete(e);return this.size-=t?1:0,t}function tN(e){return Ud(this,e).get(e)}function rN(e){return Ud(this,e).has(e)}function nN(e,t){var r=Ud(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ci.prototype.clear=Qk;Ci.prototype.delete=eN;Ci.prototype.get=tN;Ci.prototype.has=rN;Ci.prototype.set=nN;var iN="Expected a function";function ty(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(iN);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(ty.Cache||Ci),r}ty.Cache=Ci;var aN=500;function oN(e){var t=ty(e,function(n){return r.size===aN&&r.clear(),n}),r=t.cache;return t}var sN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lN=/\\(\\)?/g,uN=oN(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(sN,function(r,n,i,a){t.push(i?a.replace(lN,"$1"):n||r)}),t});const cN=uN;function fN(e){return e==null?"":dT(e)}function jd(e,t){return fr(e)?e:ey(e,t)?[e]:cN(fN(e))}var dN=1/0;function zu(e){if(typeof e=="string"||Wd(e))return e;var t=e+"";return t=="0"&&1/e==-dN?"-0":t}function ry(e,t){t=jd(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[zu(t[r++])];return r&&r==n?e:void 0}function fu(e,t,r){var n=e==null?void 0:ry(e,t);return n===void 0?r:n}function ny(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var H_=sn?sn.isConcatSpreadable:void 0;function hN(e){return fr(e)||su(e)||!!(H_&&e&&e[H_])}function iy(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=hN),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?iy(s,t-1,r,n,i):ny(i,s):n||(i[i.length]=s)}return i}function vN(e){var t=e==null?0:e.length;return t?iy(e,1):[]}function pN(e){return vT(pT(e,void 0,vN),e+"")}var gN=bT(Object.getPrototypeOf,Object);const ay=gN;var mN="[object Object]",yN=Function.prototype,_N=Object.prototype,wT=yN.toString,bN=_N.hasOwnProperty,wN=wT.call(Object);function SN(e){if(!Kn(e)||xo(e)!=mN)return!1;var t=ay(e);if(t===null)return!0;var r=bN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wT.call(r)==wN}function Rp(){if(!arguments.length)return[];var e=arguments[0];return fr(e)?e:[e]}function xN(){this.__data__=new xi,this.size=0}function CN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function TN(e){return this.__data__.get(e)}function MN(e){return this.__data__.has(e)}var AN=200;function EN(e,t){var r=this.__data__;if(r instanceof xi){var n=r.__data__;if(!cu||n.length<AN-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ci(n)}return r.set(e,t),this.size=r.size,this}function Mn(e){var t=this.__data__=new xi(e);this.size=t.size}Mn.prototype.clear=xN;Mn.prototype.delete=CN;Mn.prototype.get=TN;Mn.prototype.has=MN;Mn.prototype.set=EN;function PN(e,t){return e&&Fu(t,$u(t),e)}function LN(e,t){return e&&Fu(t,Hu(t),e)}var ST=typeof kr=="object"&&kr&&!kr.nodeType&&kr,z_=ST&&typeof Nr=="object"&&Nr&&!Nr.nodeType&&Nr,DN=z_&&z_.exports===ST,W_=DN?Pn.Buffer:void 0,V_=W_?W_.allocUnsafe:void 0;function xT(e,t){if(t)return e.slice();var r=e.length,n=V_?V_(r):new e.constructor(r);return e.copy(n),n}function IN(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function CT(){return[]}var ON=Object.prototype,RN=ON.propertyIsEnumerable,G_=Object.getOwnPropertySymbols,kN=G_?function(e){return e==null?[]:(e=Object(e),IN(G_(e),function(t){return RN.call(e,t)}))}:CT;const oy=kN;function NN(e,t){return Fu(e,oy(e),t)}var BN=Object.getOwnPropertySymbols,FN=BN?function(e){for(var t=[];e;)ny(t,oy(e)),e=ay(e);return t}:CT;const TT=FN;function $N(e,t){return Fu(e,TT(e),t)}function MT(e,t,r){var n=t(e);return fr(e)?n:ny(n,r(e))}function kp(e){return MT(e,$u,oy)}function HN(e){return MT(e,Hu,TT)}var zN=To(Pn,"DataView");const Np=zN;var WN=To(Pn,"Promise");const Bp=WN;var VN=To(Pn,"Set");const Fp=VN;var U_="[object Map]",GN="[object Object]",j_="[object Promise]",Y_="[object Set]",q_="[object WeakMap]",K_="[object DataView]",UN=Co(Np),jN=Co(cu),YN=Co(Bp),qN=Co(Fp),KN=Co(Op),za=xo;(Np&&za(new Np(new ArrayBuffer(1)))!=K_||cu&&za(new cu)!=U_||Bp&&za(Bp.resolve())!=j_||Fp&&za(new Fp)!=Y_||Op&&za(new Op)!=q_)&&(za=function(e){var t=xo(e),r=t==GN?e.constructor:void 0,n=r?Co(r):"";if(n)switch(n){case UN:return K_;case jN:return U_;case YN:return j_;case qN:return Y_;case KN:return q_}return t});const du=za;var XN=Object.prototype,ZN=XN.hasOwnProperty;function QN(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&ZN.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var JN=Pn.Uint8Array;const qf=JN;function sy(e){var t=new e.constructor(e.byteLength);return new qf(t).set(new qf(e)),t}function eB(e,t){var r=t?sy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var tB=/\w*$/;function rB(e){var t=new e.constructor(e.source,tB.exec(e));return t.lastIndex=e.lastIndex,t}var X_=sn?sn.prototype:void 0,Z_=X_?X_.valueOf:void 0;function nB(e){return Z_?Object(Z_.call(e)):{}}function AT(e,t){var r=t?sy(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var iB="[object Boolean]",aB="[object Date]",oB="[object Map]",sB="[object Number]",lB="[object RegExp]",uB="[object Set]",cB="[object String]",fB="[object Symbol]",dB="[object ArrayBuffer]",hB="[object DataView]",vB="[object Float32Array]",pB="[object Float64Array]",gB="[object Int8Array]",mB="[object Int16Array]",yB="[object Int32Array]",_B="[object Uint8Array]",bB="[object Uint8ClampedArray]",wB="[object Uint16Array]",SB="[object Uint32Array]";function xB(e,t,r){var n=e.constructor;switch(t){case dB:return sy(e);case iB:case aB:return new n(+e);case hB:return eB(e,r);case vB:case pB:case gB:case mB:case yB:case _B:case bB:case wB:case SB:return AT(e,r);case oB:return new n;case sB:case cB:return new n(e);case lB:return rB(e);case uB:return new n;case fB:return nB(e)}}function ET(e){return typeof e.constructor=="function"&&!Zm(e)?pR(ay(e)):{}}var CB="[object Map]";function TB(e){return Kn(e)&&du(e)==CB}var Q_=gs&&gs.isMap,MB=Q_?Qm(Q_):TB;const AB=MB;var EB="[object Set]";function PB(e){return Kn(e)&&du(e)==EB}var J_=gs&&gs.isSet,LB=J_?Qm(J_):PB;const DB=LB;var IB=1,OB=2,RB=4,PT="[object Arguments]",kB="[object Array]",NB="[object Boolean]",BB="[object Date]",FB="[object Error]",LT="[object Function]",$B="[object GeneratorFunction]",HB="[object Map]",zB="[object Number]",DT="[object Object]",WB="[object RegExp]",VB="[object Set]",GB="[object String]",UB="[object Symbol]",jB="[object WeakMap]",YB="[object ArrayBuffer]",qB="[object DataView]",KB="[object Float32Array]",XB="[object Float64Array]",ZB="[object Int8Array]",QB="[object Int16Array]",JB="[object Int32Array]",eF="[object Uint8Array]",tF="[object Uint8ClampedArray]",rF="[object Uint16Array]",nF="[object Uint32Array]",vt={};vt[PT]=vt[kB]=vt[YB]=vt[qB]=vt[NB]=vt[BB]=vt[KB]=vt[XB]=vt[ZB]=vt[QB]=vt[JB]=vt[HB]=vt[zB]=vt[DT]=vt[WB]=vt[VB]=vt[GB]=vt[UB]=vt[eF]=vt[tF]=vt[rF]=vt[nF]=!0;vt[FB]=vt[LT]=vt[jB]=!1;function pf(e,t,r,n,i,a){var o,s=t&IB,l=t&OB,u=t&RB;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!Mr(e))return e;var c=fr(e);if(c){if(o=QN(e),!s)return hT(e,o)}else{var f=du(e),d=f==LT||f==$B;if(lu(e))return xT(e,s);if(f==DT||f==PT||d&&!i){if(o=l||d?{}:ET(e),!s)return l?$N(e,LN(o,e)):NN(e,PN(o,e))}else{if(!vt[f])return i?e:{};o=xB(e,f,s)}}a||(a=new Mn);var h=a.get(e);if(h)return h;a.set(e,o),DB(e)?e.forEach(function(g){o.add(pf(g,t,r,g,e,a))}):AB(e)&&e.forEach(function(g,m){o.set(m,pf(g,t,r,m,e,a))});var v=u?l?HN:kp:l?Hu:$u,p=c?void 0:v(e);return MR(p||e,function(g,m){p&&(m=g,g=e[m]),Km(o,m,pf(g,t,r,m,e,a))}),o}var iF=4;function eb(e){return pf(e,iF)}var aF="__lodash_hash_undefined__";function oF(e){return this.__data__.set(e,aF),this}function sF(e){return this.__data__.has(e)}function Kf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ci;++t<r;)this.add(e[t])}Kf.prototype.add=Kf.prototype.push=oF;Kf.prototype.has=sF;function lF(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function uF(e,t){return e.has(t)}var cF=1,fF=2;function IT(e,t,r,n,i,a){var o=r&cF,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&fF?new Kf:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var v=e[f],p=t[f];if(n)var g=o?n(p,v,f,t,e,a):n(v,p,f,e,t,a);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!lF(t,function(m,y){if(!uF(h,y)&&(v===m||i(v,m,r,n,a)))return h.push(y)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}function dF(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function hF(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var vF=1,pF=2,gF="[object Boolean]",mF="[object Date]",yF="[object Error]",_F="[object Map]",bF="[object Number]",wF="[object RegExp]",SF="[object Set]",xF="[object String]",CF="[object Symbol]",TF="[object ArrayBuffer]",MF="[object DataView]",tb=sn?sn.prototype:void 0,Nh=tb?tb.valueOf:void 0;function AF(e,t,r,n,i,a,o){switch(r){case MF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TF:return!(e.byteLength!=t.byteLength||!a(new qf(e),new qf(t)));case gF:case mF:case bF:return Bu(+e,+t);case yF:return e.name==t.name&&e.message==t.message;case wF:case xF:return e==t+"";case _F:var s=dF;case SF:var l=n&vF;if(s||(s=hF),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=pF,o.set(e,t);var c=IT(s(e),s(t),n,i,a,o);return o.delete(e),c;case CF:if(Nh)return Nh.call(e)==Nh.call(t)}return!1}var EF=1,PF=Object.prototype,LF=PF.hasOwnProperty;function DF(e,t,r,n,i,a){var o=r&EF,s=kp(e),l=s.length,u=kp(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:LF.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],y=t[d];if(n)var _=o?n(y,m,d,t,e,a):n(m,y,d,e,t,a);if(!(_===void 0?m===y||i(m,y,r,n,a):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var b=e.constructor,S=t.constructor;b!=S&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof S=="function"&&S instanceof S)&&(p=!1)}return a.delete(e),a.delete(t),p}var IF=1,rb="[object Arguments]",nb="[object Array]",fc="[object Object]",OF=Object.prototype,ib=OF.hasOwnProperty;function RF(e,t,r,n,i,a){var o=fr(e),s=fr(t),l=o?nb:du(e),u=s?nb:du(t);l=l==rb?fc:l,u=u==rb?fc:u;var c=l==fc,f=u==fc,d=l==u;if(d&&lu(e)){if(!lu(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Mn),o||Jm(e)?IT(e,t,r,n,i,a):AF(e,t,l,r,n,i,a);if(!(r&IF)){var h=c&&ib.call(e,"__wrapped__"),v=f&&ib.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return a||(a=new Mn),i(p,g,r,n,a)}}return d?(a||(a=new Mn),DF(e,t,r,n,i,a)):!1}function Yd(e,t,r,n,i){return e===t?!0:e==null||t==null||!Kn(e)&&!Kn(t)?e!==e&&t!==t:RF(e,t,r,n,Yd,i)}var kF=1,NF=2;function BF(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Mn;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?Yd(c,u,kF|NF,n,f):d))return!1}}return!0}function OT(e){return e===e&&!Mr(e)}function FF(e){for(var t=$u(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,OT(i)]}return t}function RT(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function $F(e){var t=FF(e);return t.length==1&&t[0][2]?RT(t[0][0],t[0][1]):function(r){return r===e||BF(r,e,t)}}function HF(e,t){return e!=null&&t in Object(e)}function zF(e,t,r){t=jd(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=zu(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&Xm(i)&&Vd(o,i)&&(fr(e)||su(e)))}function kT(e,t){return e!=null&&zF(e,t,HF)}var WF=1,VF=2;function GF(e,t){return ey(e)&&OT(t)?RT(zu(e),t):function(r){var n=fu(r,e);return n===void 0&&n===t?kT(r,e):Yd(t,n,WF|VF)}}function UF(e){return function(t){return t==null?void 0:t[e]}}function jF(e){return function(t){return ry(t,e)}}function YF(e){return ey(e)?UF(zu(e)):jF(e)}function qF(e){return typeof e=="function"?e:e==null?jm:typeof e=="object"?fr(e)?GF(e[0],e[1]):$F(e):YF(e)}function KF(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var XF=KF();const NT=XF;function ZF(e,t){return e&&NT(e,t,$u)}function QF(e,t){return function(r,n){if(r==null)return r;if(!Ns(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var JF=QF(ZF);const e$=JF;var t$=function(){return Pn.Date.now()};const Bh=t$;var r$="Expected a function",n$=Math.max,i$=Math.min;function Xf(e,t,r){var n,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(r$);t=I_(t)||0,Mr(r)&&(c=!!r.leading,f="maxWait"in r,a=f?n$(I_(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(w){var x=n,C=i;return n=i=void 0,u=w,o=e.apply(C,x),o}function v(w){return u=w,s=setTimeout(m,t),c?h(w):o}function p(w){var x=w-l,C=w-u,T=t-x;return f?i$(T,a-C):T}function g(w){var x=w-l,C=w-u;return l===void 0||x>=t||x<0||f&&C>=a}function m(){var w=Bh();if(g(w))return y(w);s=setTimeout(m,p(w))}function y(w){return s=void 0,d&&n?h(w):(n=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function b(){return s===void 0?o:y(Bh())}function S(){var w=Bh(),x=g(w);if(n=arguments,i=this,l=w,x){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return S.cancel=_,S.flush=b,S}function $p(e,t,r){(r!==void 0&&!Bu(e[t],r)||r===void 0&&!(t in e))&&qm(e,t,r)}function a$(e){return Kn(e)&&Ns(e)}function Hp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function o$(e){return Fu(e,Hu(e))}function s$(e,t,r,n,i,a,o){var s=Hp(e,r),l=Hp(t,r),u=o.get(l);if(u){$p(e,r,u);return}var c=a?a(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=fr(l),h=!d&&lu(l),v=!d&&!h&&Jm(l);c=l,d||h||v?fr(s)?c=s:a$(s)?c=hT(s):h?(f=!1,c=xT(l,!0)):v?(f=!1,c=AT(l,!0)):c=[]:SN(l)||su(l)?(c=s,su(s)?c=o$(s):(!Mr(s)||Ym(s))&&(c=ET(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),$p(e,r,c)}function BT(e,t,r,n,i){e!==t&&NT(t,function(a,o){if(i||(i=new Mn),Mr(a))s$(e,t,o,r,BT,n,i);else{var s=n?n(Hp(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),$p(e,o,s)}},Hu)}function l$(e,t){var r=-1,n=Ns(e)?Array(e.length):[];return e$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function u$(e,t){var r=fr(e)?fT:l$;return r(e,qF(t))}function c$(e,t){return iy(u$(e,t),1)}function f$(e){for(var t=-1,r=e==null?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}function d$(e,t){return Yd(e,t)}function ly(e){return e==null}var h$=RR(function(e,t,r){BT(e,t,r)});const FT=h$;function $T(e,t,r,n){if(!Mr(e))return e;t=jd(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=zu(t[i]),u=r;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var c=s[l];u=n?n(c,l,s):void 0,u===void 0&&(u=Mr(c)?c:Vd(t[i+1])?[]:{})}Km(s,l,u),s=s[l]}return e}function v$(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=ry(e,o);r(s,o)&&$T(a,jd(o,e),s)}return a}function p$(e,t){return v$(e,t,function(r,n){return kT(e,n)})}var g$=pN(function(e,t){return e==null?{}:p$(e,t)});const m$=g$;function y$(e,t,r){return e==null?e:$T(e,t,r)}const gf=function(e,t,...r){let n;t.includes("mouse")||t.includes("click")?n="MouseEvents":t.includes("key")?n="KeyboardEvent":n="HTMLEvents";const i=document.createEvent(n);return i.initEvent(t,...r),e.dispatchEvent(i),e},ci=(e,t,{checkForDefaultPrevented:r=!0}={})=>i=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var ab;const Ot=typeof window<"u",Br=e=>typeof e=="boolean",_$=e=>typeof e=="function",Yt=e=>typeof e=="number",b$=e=>typeof e=="string",zp=()=>{};Ot&&((ab=window==null?void 0:window.navigator)!=null&&ab.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ho(e){return typeof e=="function"?e():P(e)}function HT(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}const zT=e=>e();function w$(e,t={}){let r,n,i=zp;const a=s=>{clearTimeout(s),i(),i=zp};return s=>{const l=ho(e),u=ho(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((c,f)=>{i=t.rejectOnCancel?f:c,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,c(s())},l)})}}function S$(e=zT){const t=H(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:ku(t),pause:r,resume:n,eventFilter:i}}function x$(e){return e}function Wu(e){return vD()?(pD(e),!0):!1}function C$(e,t=200,r={}){return HT(w$(t,r),e)}function T$(e,t=200,r={}){const n=H(e.value),i=C$(()=>{n.value=e.value},t,r);return xe(e,()=>i()),n}function M$(e){return typeof e=="function"?$(e):H(e)}function WT(e,t=!0){dt()?Mt(e):t?e():Rt(e)}function Wp(e,t,r={}){const{immediate:n=!0}=r,i=H(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function l(...u){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...u)},ho(t))}return n&&(i.value=!0,Ot&&l()),Wu(s),{isPending:ku(i),start:l,stop:s}}function A$(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=xt(e),a=H(e);function o(s){if(arguments.length)return a.value=s,a.value;{const l=ho(r);return a.value=a.value===l?ho(n):l,a.value}}return i?o:[a,o]}var ob=Object.getOwnPropertySymbols,E$=Object.prototype.hasOwnProperty,P$=Object.prototype.propertyIsEnumerable,L$=(e,t)=>{var r={};for(var n in e)E$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ob)for(var n of ob(e))t.indexOf(n)<0&&P$.call(e,n)&&(r[n]=e[n]);return r};function D$(e,t,r={}){const n=r,{eventFilter:i=zT}=n,a=L$(n,["eventFilter"]);return xe(e,HT(i,t),a)}var I$=Object.defineProperty,O$=Object.defineProperties,R$=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertySymbols,VT=Object.prototype.hasOwnProperty,GT=Object.prototype.propertyIsEnumerable,sb=(e,t,r)=>t in e?I$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k$=(e,t)=>{for(var r in t||(t={}))VT.call(t,r)&&sb(e,r,t[r]);if(Zf)for(var r of Zf(t))GT.call(t,r)&&sb(e,r,t[r]);return e},N$=(e,t)=>O$(e,R$(t)),B$=(e,t)=>{var r={};for(var n in e)VT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Zf)for(var n of Zf(e))t.indexOf(n)<0&&GT.call(e,n)&&(r[n]=e[n]);return r};function F$(e,t,r={}){const n=r,{eventFilter:i}=n,a=B$(n,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=S$(i);return{stop:D$(e,t,N$(k$({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Vi(e){var t;const r=ho(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ea=Ot?window:void 0;function Sn(...e){let t,r,n,i;if(b$(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ea):[t,r,n,i]=e,!t)return zp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,d)=>(c.addEventListener(f,d,i),()=>c.removeEventListener(f,d,i)),l=xe(()=>Vi(t),c=>{o(),c&&a.push(...r.flatMap(f=>n.map(d=>s(c,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Wu(u),u}function $$(e,t,r={}){const{window:n=ea,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=h=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===h.target||h.composedPath().includes(p));{const p=Vi(v);return p&&(h.target===p||h.composedPath().includes(p))}}),c=h=>{n.clearTimeout(l);const v=Vi(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},f=[Sn(n,"click",c,{passive:!0,capture:a}),Sn(n,"pointerdown",h=>{const v=Vi(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),Sn(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>c(h),50)}},{passive:!0}),o&&Sn(n,"blur",h=>{var v;const p=Vi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}function UT(e,t=!1){const r=H(),n=()=>r.value=Boolean(e());return n(),WT(n,t),r}function H$(e,t={}){const{window:r=ea}=t,n=UT(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=H(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{n.value&&(o(),i=r.matchMedia(M$(e).value),a.value=i.matches,"addEventListener"in i?i.addEventListener("change",s):i.addListener(s))};return no(s),Wu(()=>o()),a}const Vp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gp="__vueuse_ssr_handlers__";Vp[Gp]=Vp[Gp]||{};const z$=Vp[Gp];function jT(e,t){return z$[e]||t}function W$(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var V$=Object.defineProperty,lb=Object.getOwnPropertySymbols,G$=Object.prototype.hasOwnProperty,U$=Object.prototype.propertyIsEnumerable,ub=(e,t,r)=>t in e?V$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cb=(e,t)=>{for(var r in t||(t={}))G$.call(t,r)&&ub(e,r,t[r]);if(lb)for(var r of lb(t))U$.call(t,r)&&ub(e,r,t[r]);return e};const j$={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Y$(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=ea,eventFilter:d,onError:h=x=>{console.error(x)}}=n,v=(c?EC:H)(t);if(!r)try{r=jT("getDefaultStorage",()=>{var x;return(x=ea)==null?void 0:x.localStorage})()}catch(x){h(x)}if(!r)return v;const p=ho(t),g=W$(p),m=(i=n.serializer)!=null?i:j$[g],{pause:y,resume:_}=F$(v,()=>b(v.value),{flush:a,deep:o,eventFilter:d});return f&&s&&Sn(f,"storage",w),w(),v;function b(x){try{if(x==null)r.removeItem(e);else{const C=m.write(x),T=r.getItem(e);T!==C&&(r.setItem(e,C),f&&(f==null||f.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:T,newValue:C,storageArea:r}))))}}catch(C){h(C)}}function S(x){const C=x?x.newValue:r.getItem(e);if(C==null)return l&&p!==null&&r.setItem(e,m.write(p)),p;if(!x&&u){const T=m.read(C);return _$(u)?u(T,p):g==="object"&&!Array.isArray(T)?cb(cb({},p),T):T}else return typeof C!="string"?C:m.read(C)}function w(x){if(!(x&&x.storageArea!==r)){if(x&&x.key==null){v.value=p;return}if(!(x&&x.key!==e)){y();try{v.value=S(x)}catch(C){h(C)}finally{x?Rt(_):_()}}}}}function YT(e){return H$("(prefers-color-scheme: dark)",e)}var q$=Object.defineProperty,fb=Object.getOwnPropertySymbols,K$=Object.prototype.hasOwnProperty,X$=Object.prototype.propertyIsEnumerable,db=(e,t,r)=>t in e?q$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z$=(e,t)=>{for(var r in t||(t={}))K$.call(t,r)&&db(e,r,t[r]);if(fb)for(var r of fb(t))X$.call(t,r)&&db(e,r,t[r]);return e};function Q$(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=ea,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u}=e,c=Z$({auto:"",light:"light",dark:"dark"},e.modes||{}),f=YT({window:i}),d=$(()=>f.value?"dark":"light"),h=l||(o==null?H(n):Y$(o,n,a,{window:i,listenToStorageChanges:s})),v=$({get(){return h.value==="auto"&&!u?d.value:h.value},set(y){h.value=y}}),p=jT("updateHTMLAttrs",(y,_,b)=>{const S=i==null?void 0:i.document.querySelector(y);if(S)if(_==="class"){const w=b.split(/\s/g);Object.values(c).flatMap(x=>(x||"").split(/\s/g)).filter(Boolean).forEach(x=>{w.includes(x)?S.classList.add(x):S.classList.remove(x)})}else S.setAttribute(_,b)});function g(y){var _;const b=y==="auto"?d.value:y;p(t,r,(_=c[b])!=null?_:b)}function m(y){e.onChanged?e.onChanged(y,g):g(y)}return xe(v,m,{flush:"post",immediate:!0}),u&&xe(d,()=>m(v.value),{flush:"post"}),WT(()=>m(v.value)),v}var J$=Object.defineProperty,e5=Object.defineProperties,t5=Object.getOwnPropertyDescriptors,hb=Object.getOwnPropertySymbols,r5=Object.prototype.hasOwnProperty,n5=Object.prototype.propertyIsEnumerable,vb=(e,t,r)=>t in e?J$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i5=(e,t)=>{for(var r in t||(t={}))r5.call(t,r)&&vb(e,r,t[r]);if(hb)for(var r of hb(t))n5.call(t,r)&&vb(e,r,t[r]);return e},a5=(e,t)=>e5(e,t5(t));function o5(e={}){const{valueDark:t="dark",valueLight:r="",window:n=ea}=e,i=Q$(a5(i5({},e),{onChanged:(s,l)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,s==="dark"):l(s)},modes:{dark:t,light:r}})),a=YT({window:n});return $({get(){return i.value==="dark"},set(s){s===a.value?i.value="auto":i.value=s?"dark":"light"}})}var pb=Object.getOwnPropertySymbols,s5=Object.prototype.hasOwnProperty,l5=Object.prototype.propertyIsEnumerable,u5=(e,t)=>{var r={};for(var n in e)s5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pb)for(var n of pb(e))t.indexOf(n)<0&&l5.call(e,n)&&(r[n]=e[n]);return r};function ms(e,t,r={}){const n=r,{window:i=ea}=n,a=u5(n,["window"]);let o;const s=UT(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=xe(()=>Vi(e),f=>{l(),s.value&&i&&f&&(o=new ResizeObserver(t),o.observe(f,a))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Wu(c),{isSupported:s,stop:c}}var gb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(gb||(gb={}));var c5=Object.defineProperty,mb=Object.getOwnPropertySymbols,f5=Object.prototype.hasOwnProperty,d5=Object.prototype.propertyIsEnumerable,yb=(e,t,r)=>t in e?c5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h5=(e,t)=>{for(var r in t||(t={}))f5.call(t,r)&&yb(e,r,t[r]);if(mb)for(var r of mb(t))d5.call(t,r)&&yb(e,r,t[r]);return e};const v5={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};h5({linear:x$},v5);const Qf=e=>e===void 0,ys=e=>typeof Element>"u"?!1:e instanceof Element,p5=e=>ze(e)?!Number.isNaN(Number(e)):!1,_b=e=>Object.keys(e),mf=(e,t,r)=>({get value(){return fu(e,t,r)},set value(n){y$(e,t,n)}});class g5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ta(e,t){throw new g5(`[${e}] ${t}`)}const qT=(e="")=>e.split(" ").filter(t=>!!t.trim()),Il=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Zo=(e,t)=>{!e||!t.trim()||e.classList.add(...qT(t))},ss=(e,t)=>{!e||!t.trim()||e.classList.remove(...qT(t))},bb=(e,t)=>{var r;if(!Ot||!e||!t)return"";let n=An(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const a=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return a?a[n]:""}catch{return e.style[n]}};function vo(e,t="px"){if(!e)return"";if(Yt(e)||p5(e))return`${e}${t}`;if(ze(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Jn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},m5={name:"ArrowDown"},y5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_5=ae("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),b5=[_5];function w5(e,t,r,n,i,a){return U(),ye("svg",y5,b5)}var KT=Jn(m5,[["render",w5],["__file","arrow-down.vue"]]),S5={name:"ArrowRight"},x5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},C5=ae("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),T5=[C5];function M5(e,t,r,n,i,a){return U(),ye("svg",x5,T5)}var uy=Jn(S5,[["render",M5],["__file","arrow-right.vue"]]),A5={name:"ArrowUp"},E5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P5=ae("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),L5=[P5];function D5(e,t,r,n,i,a){return U(),ye("svg",E5,L5)}var I5=Jn(A5,[["render",D5],["__file","arrow-up.vue"]]),O5={name:"CircleCloseFilled"},R5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},k5=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),N5=[k5];function B5(e,t,r,n,i,a){return U(),ye("svg",R5,N5)}var XT=Jn(O5,[["render",B5],["__file","circle-close-filled.vue"]]),F5={name:"Close"},$5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},H5=ae("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),z5=[H5];function W5(e,t,r,n,i,a){return U(),ye("svg",$5,z5)}var Up=Jn(F5,[["render",W5],["__file","close.vue"]]),V5={name:"InfoFilled"},G5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},U5=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),j5=[U5];function Y5(e,t,r,n,i,a){return U(),ye("svg",G5,j5)}var ZT=Jn(V5,[["render",Y5],["__file","info-filled.vue"]]),q5={name:"Loading"},K5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X5=ae("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),Z5=[X5];function Q5(e,t,r,n,i,a){return U(),ye("svg",K5,Z5)}var cy=Jn(q5,[["render",Q5],["__file","loading.vue"]]),J5={name:"More"},e3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},t3=ae("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),r3=[t3];function n3(e,t,r,n,i,a){return U(),ye("svg",e3,r3)}var i3=Jn(J5,[["render",n3],["__file","more.vue"]]),a3={name:"SuccessFilled"},o3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s3=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),l3=[s3];function u3(e,t,r,n,i,a){return U(),ye("svg",o3,l3)}var QT=Jn(a3,[["render",u3],["__file","success-filled.vue"]]),c3={name:"WarningFilled"},f3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d3=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),h3=[d3];function v3(e,t,r,n,i,a){return U(),ye("svg",f3,h3)}var JT=Jn(c3,[["render",v3],["__file","warning-filled.vue"]]);const eM="__epPropKey",Pe=e=>e,p3=e=>Ke(e)&&!!e[eM],qd=(e,t)=>{if(!Ke(e)||p3(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let c=!1,f=[];if(r&&(f=Array.from(r),Ve(e,"default")&&f.push(i),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");jD(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[eM]:!0};return Ve(e,"default")&&(l.default=i),l},rt=e=>f$(Object.entries(e).map(([t,r])=>[t,qd(r,t)])),Wn=Pe([String,Object,Function]),g3={Close:Up,SuccessFilled:QT,InfoFilled:ZT,WarningFilled:JT,CircleCloseFilled:XT},wb={success:QT,warning:JT,error:XT,info:ZT},hr=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},m3=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),y3=(e,t)=>(e.install=r=>{r.directive(t,e)},e),la=e=>(e.install=ur,e),Lt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},po="update:modelValue",jp="change",Yp="input",Vu=["","default","small","large"],_3=e=>["",...Vu].includes(e),yf=e=>{const t=be(e)?e:[e],r=[];return t.forEach(n=>{var i;be(n)?r.push(...yf(n)):Ji(n)&&be(n.children)?r.push(...yf(n.children)):(r.push(n),Ji(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...yf(n.component.subTree)))}),r},ja=e=>e,tM=Symbol("buttonGroupContextKey"),Bs=Symbol("checkboxGroupContextKey"),rM=Symbol(),Fs=Symbol("formContextKey"),go=Symbol("formItemContextKey"),nM=Symbol("rowContextKey"),iM=Symbol("scrollbarContextKey"),fy=Symbol("popper"),aM=Symbol("popperContent"),dy=Symbol("elTooltip"),oM=e=>{const t=dt();return $(()=>{var r,n;return(n=((r=t.proxy)==null?void 0:r.$props)[e])!=null?n:void 0})},Jf=H();function ua(e,t=void 0){const r=dt()?Oe(rM,Jf):Jf;return e?$(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}const b3=(e,t,r=!1)=>{var n;const i=!!dt(),a=i?ua():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Tt:void 0;if(!o)return;const s=$(()=>{const l=P(e);return a!=null&&a.value?w3(a.value,l):l});return o(rM,s),(r||!Jf.value)&&(Jf.value=s.value),s},w3=(e,t)=>{var r;const n=[...new Set([..._b(e),..._b(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},Kd=qd({type:String,values:Vu,required:!1}),ra=(e,t={})=>{const r=H(void 0),n=t.prop?r:oM("size"),i=t.global?r:ua("size"),a=t.form?{size:void 0}:Oe(Fs,void 0),o=t.formItem?{size:void 0}:Oe(go,void 0);return $(()=>n.value||P(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},Xd=e=>{const t=oM("disabled"),r=Oe(Fs,void 0);return $(()=>t.value||P(e)||(r==null?void 0:r.disabled)||!1)},sM=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{xe(()=>P(o),s=>{},{immediate:!0})},hy="el",S3="is-",pa=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},Be=e=>{const t=ua("namespace",hy);return{namespace:t,b:(v="")=>pa(t.value,e,v,"",""),e:v=>v?pa(t.value,e,"",v,""):"",m:v=>v?pa(t.value,e,"","",v):"",be:(v,p)=>v&&p?pa(t.value,e,v,p,""):"",em:(v,p)=>v&&p?pa(t.value,e,"",v,p):"",bm:(v,p)=>v&&p?pa(t.value,e,v,"",p):"",bem:(v,p,g)=>v&&p&&g?pa(t.value,e,v,p,g):"",is:(v,...p)=>{const g=p.length>=1?p[0]:!0;return v&&g?`${S3}${v}`:""},cssVar:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${g}`]=v[g]);return p},cssVarName:v=>`--${t.value}-${v}`,cssVarBlock:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${e}-${g}`]=v[g]);return p},cssVarBlockName:v=>`--${t.value}-${e}-${v}`}},Sb={prefix:Math.floor(Math.random()*1e4),current:0},x3=Symbol("elIdInjection"),lM=()=>dt()?Oe(x3,Sb):Sb,vy=e=>{const t=lM(),r=ua("namespace",hy);return $(()=>P(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Gu=()=>{const e=Oe(Fs,void 0),t=Oe(go,void 0);return{form:e,formItem:t}},py=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=H(!1)),n||(n=H(!1));const i=H();let a;const o=$(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Mt(()=>{a=xe([Tn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:vy().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),Nu(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}};var C3={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const T3=e=>(t,r)=>M3(t,r,P(e)),M3=(e,t,r)=>fu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),A3=e=>{const t=$(()=>P(e).name),r=xt(e)?e:H(e);return{lang:t,locale:r,t:T3(e)}},uM=()=>{const e=ua("locale");return A3($(()=>e.value||C3))},E3=qd({type:Pe(Boolean),default:null}),P3=qd({type:Pe(Function)}),L3=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:E3,[r]:P3};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=dt(),{emit:h}=d,v=d.props,p=$(()=>Le(v[r])),g=$(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),Le(c)&&c(x))},y=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),Le(f)&&f(x))},_=x=>{if(v.disabled===!0||Le(u)&&!u())return;const C=p.value&&Ot;C&&h(t,!0),(g.value||!C)&&m(x)},b=x=>{if(v.disabled===!0||!Ot)return;const C=p.value&&Ot;C&&h(t,!1),(g.value||!C)&&y(x)},S=x=>{Br(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():y()))},w=()=>{o.value?b():_()};return xe(()=>v[e],S),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),Mt(()=>{S(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};var xr="top",ln="bottom",un="right",Cr="left",gy="auto",Uu=[xr,ln,un,Cr],_s="start",hu="end",D3="clippingParents",cM="viewport",Ks="popper",I3="reference",xb=Uu.reduce(function(e,t){return e.concat([t+"-"+_s,t+"-"+hu])},[]),my=[].concat(Uu,[gy]).reduce(function(e,t){return e.concat([t,t+"-"+_s,t+"-"+hu])},[]),O3="beforeRead",R3="read",k3="afterRead",N3="beforeMain",B3="main",F3="afterMain",$3="beforeWrite",H3="write",z3="afterWrite",W3=[O3,R3,k3,N3,B3,F3,$3,H3,z3];function Xn(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bs(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yy(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function V3(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!an(a)||!Xn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function G3(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!an(i)||!Xn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var fM={name:"applyStyles",enabled:!0,phase:"write",fn:V3,effect:G3,requires:["computeStyles"]};function Yn(e){return e.split("-")[0]}var ao=Math.max,ed=Math.min,ws=Math.round;function Ss(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(an(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ws(r.width)/o||1),a>0&&(i=ws(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function _y(e){var t=Ss(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function dM(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yi(e){return Ln(e).getComputedStyle(e)}function U3(e){return["table","td","th"].indexOf(Xn(e))>=0}function ca(e){return((bs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return Xn(e)==="html"?e:e.assignedSlot||e.parentNode||(yy(e)?e.host:null)||ca(e)}function Cb(e){return!an(e)||yi(e).position==="fixed"?null:e.offsetParent}function j3(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&an(e)){var n=yi(e);if(n.position==="fixed")return null}var i=Zd(e);for(yy(i)&&(i=i.host);an(i)&&["html","body"].indexOf(Xn(i))<0;){var a=yi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function ju(e){for(var t=Ln(e),r=Cb(e);r&&U3(r)&&yi(r).position==="static";)r=Cb(r);return r&&(Xn(r)==="html"||Xn(r)==="body"&&yi(r).position==="static")?t:r||j3(e)||t}function by(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ol(e,t,r){return ao(e,ed(t,r))}function Y3(e,t,r){var n=Ol(e,t,r);return n>r?r:n}function hM(){return{top:0,right:0,bottom:0,left:0}}function vM(e){return Object.assign({},hM(),e)}function pM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var q3=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vM(typeof e!="number"?e:pM(e,Uu))};function K3(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Yn(r.placement),l=by(s),u=[Cr,un].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=q3(i.padding,r),d=_y(a),h=l==="y"?xr:Cr,v=l==="y"?ln:un,p=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=ju(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=f[h],S=y-d[c]-f[v],w=y/2-d[c]/2+_,x=Ol(b,w,S),C=l;r.modifiersData[n]=(t={},t[C]=x,t.centerOffset=x-w,t)}}function X3(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!dM(t.elements.popper,i)||(t.elements.arrow=i))}var Z3={name:"arrow",enabled:!0,phase:"main",fn:K3,effect:X3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xs(e){return e.split("-")[1]}var Q3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J3(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ws(t*i)/i||0,y:ws(r*i)/i||0}}function Tb(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),_=Cr,b=xr,S=window;if(u){var w=ju(r),x="clientHeight",C="clientWidth";if(w===Ln(r)&&(w=ca(r),yi(w).position!=="static"&&s==="absolute"&&(x="scrollHeight",C="scrollWidth")),w=w,i===xr||(i===Cr||i===un)&&a===hu){b=ln;var T=f&&w===S&&S.visualViewport?S.visualViewport.height:w[x];p-=T-n.height,p*=l?1:-1}if(i===Cr||(i===xr||i===ln)&&a===hu){_=un;var E=f&&w===S&&S.visualViewport?S.visualViewport.width:w[C];h-=E-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&Q3),M=c===!0?J3({x:h,y:p}):{x:h,y:p};if(h=M.x,p=M.y,l){var D;return Object.assign({},A,(D={},D[b]=y?"0":"",D[_]=m?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},A,(t={},t[b]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function e4(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Yn(t.placement),variation:xs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Tb(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tb(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var gM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:e4,data:{}},dc={passive:!0};function t4(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,dc)}),s&&l.addEventListener("resize",r.update,dc),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,dc)}),s&&l.removeEventListener("resize",r.update,dc)}}var mM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:t4,data:{}},r4={left:"right",right:"left",bottom:"top",top:"bottom"};function _f(e){return e.replace(/left|right|bottom|top/g,function(t){return r4[t]})}var n4={start:"end",end:"start"};function Mb(e){return e.replace(/start|end/g,function(t){return n4[t]})}function wy(e){var t=Ln(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sy(e){return Ss(ca(e)).left+wy(e).scrollLeft}function i4(e){var t=Ln(e),r=ca(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,o=0,s=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:i,height:a,x:o+Sy(e),y:s}}function a4(e){var t,r=ca(e),n=wy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ao(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ao(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Sy(e),l=-n.scrollTop;return yi(i||r).direction==="rtl"&&(s+=ao(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function xy(e){var t=yi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function yM(e){return["html","body","#document"].indexOf(Xn(e))>=0?e.ownerDocument.body:an(e)&&xy(e)?e:yM(Zd(e))}function Rl(e,t){var r;t===void 0&&(t=[]);var n=yM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Ln(n),o=i?[a].concat(a.visualViewport||[],xy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Rl(Zd(o)))}function qp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function o4(e){var t=Ss(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ab(e,t){return t===cM?qp(i4(e)):bs(t)?o4(t):qp(a4(ca(e)))}function s4(e){var t=Rl(Zd(e)),r=["absolute","fixed"].indexOf(yi(e).position)>=0,n=r&&an(e)?ju(e):e;return bs(n)?t.filter(function(i){return bs(i)&&dM(i,n)&&Xn(i)!=="body"}):[]}function l4(e,t,r){var n=t==="clippingParents"?s4(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=Ab(e,l);return s.top=ao(u.top,s.top),s.right=ed(u.right,s.right),s.bottom=ed(u.bottom,s.bottom),s.left=ao(u.left,s.left),s},Ab(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function _M(e){var t=e.reference,r=e.element,n=e.placement,i=n?Yn(n):null,a=n?xs(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case xr:l={x:o,y:t.y-r.height};break;case ln:l={x:o,y:t.y+t.height};break;case un:l={x:t.x+t.width,y:s};break;case Cr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?by(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case _s:l[u]=l[u]-(t[c]/2-r[c]/2);break;case hu:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function vu(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.boundary,o=a===void 0?D3:a,s=r.rootBoundary,l=s===void 0?cM:s,u=r.elementContext,c=u===void 0?Ks:u,f=r.altBoundary,d=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,p=vM(typeof v!="number"?v:pM(v,Uu)),g=c===Ks?I3:Ks,m=e.rects.popper,y=e.elements[d?g:c],_=l4(bs(y)?y:y.contextElement||ca(e.elements.popper),o,l),b=Ss(e.elements.reference),S=_M({reference:b,element:m,strategy:"absolute",placement:i}),w=qp(Object.assign({},m,S)),x=c===Ks?w:b,C={top:_.top-x.top+p.top,bottom:x.bottom-_.bottom+p.bottom,left:_.left-x.left+p.left,right:x.right-_.right+p.right},T=e.modifiersData.offset;if(c===Ks&&T){var E=T[i];Object.keys(C).forEach(function(A){var M=[un,ln].indexOf(A)>=0?1:-1,D=[xr,ln].indexOf(A)>=0?"y":"x";C[A]+=E[D]*M})}return C}function u4(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?my:l,c=xs(n),f=c?s?xb:xb.filter(function(v){return xs(v)===c}):Uu,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=vu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[Yn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function c4(e){if(Yn(e)===gy)return[];var t=_f(e);return[Mb(e),t,Mb(t)]}function f4(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=Yn(g),y=m===g,_=l||(y||!v?[_f(g)]:c4(g)),b=[g].concat(_).reduce(function(Ee,V){return Ee.concat(Yn(V)===gy?u4(t,{placement:V,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),S=t.rects.reference,w=t.rects.popper,x=new Map,C=!0,T=b[0],E=0;E<b.length;E++){var A=b[E],M=Yn(A),D=xs(A)===_s,R=[xr,ln].indexOf(M)>=0,k=R?"width":"height",F=vu(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),K=R?D?un:Cr:D?ln:xr;S[k]>w[k]&&(K=_f(K));var B=_f(K),N=[];if(a&&N.push(F[M]<=0),s&&N.push(F[K]<=0,F[B]<=0),N.every(function(Ee){return Ee})){T=A,C=!1;break}x.set(A,N)}if(C)for(var j=v?3:1,re=function(Ee){var V=b.find(function(J){var W=x.get(J);if(W)return W.slice(0,Ee).every(function(Y){return Y})});if(V)return T=V,"break"},oe=j;oe>0;oe--){var _e=re(oe);if(_e==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}var d4={name:"flip",enabled:!0,phase:"main",fn:f4,requiresIfExists:["offset"],data:{_skip:!1}};function Eb(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pb(e){return[xr,un,ln,Cr].some(function(t){return e[t]>=0})}function h4(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=vu(t,{elementContext:"reference"}),s=vu(t,{altBoundary:!0}),l=Eb(o,n),u=Eb(s,i,a),c=Pb(l),f=Pb(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var v4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:h4};function p4(e,t,r){var n=Yn(e),i=[Cr,xr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Cr,un].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function g4(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=my.reduce(function(c,f){return c[f]=p4(f,t.rects,a),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}var m4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:g4};function y4(e){var t=e.state,r=e.name;t.modifiersData[r]=_M({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var bM={name:"popperOffsets",enabled:!0,phase:"read",fn:y4,data:{}};function _4(e){return e==="x"?"y":"x"}function b4(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=vu(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Yn(t.placement),y=xs(t.placement),_=!y,b=by(m),S=_4(b),w=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(a){var D,R=b==="y"?xr:Cr,k=b==="y"?ln:un,F=b==="y"?"height":"width",K=w[b],B=K+g[R],N=K-g[k],j=h?-C[F]/2:0,re=y===_s?x[F]:C[F],oe=y===_s?-C[F]:-x[F],_e=t.elements.arrow,Ee=h&&_e?_y(_e):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hM(),J=V[R],W=V[k],Y=Ol(0,x[F],Ee[F]),ue=_?x[F]/2-j-Y-J-E.mainAxis:re-Y-J-E.mainAxis,he=_?-x[F]/2+j+Y+W+E.mainAxis:oe+Y+W+E.mainAxis,Q=t.elements.arrow&&ju(t.elements.arrow),L=Q?b==="y"?Q.clientTop||0:Q.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=K+ue-I-L,G=K+he-I,q=Ol(h?ed(B,z):B,K,h?ao(N,G):N);w[b]=q,M[b]=q-K}if(s){var ne,de=b==="x"?xr:Cr,te=b==="x"?ln:un,ie=w[S],X=S==="y"?"height":"width",we=ie+g[de],ve=ie-g[te],Se=[xr,Cr].indexOf(m)!==-1,Ie=(ne=A==null?void 0:A[S])!=null?ne:0,$e=Se?we:ie-x[X]-C[X]-Ie+E.altAxis,nt=Se?ie+x[X]+C[X]-Ie-E.altAxis:ve,et=h&&Se?Y3($e,ie,nt):Ol(h?$e:we,ie,h?nt:ve);w[S]=et,M[S]=et-ie}t.modifiersData[n]=M}}var w4={name:"preventOverflow",enabled:!0,phase:"main",fn:b4,requiresIfExists:["offset"]};function S4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function x4(e){return e===Ln(e)||!an(e)?wy(e):S4(e)}function C4(e){var t=e.getBoundingClientRect(),r=ws(t.width)/e.offsetWidth||1,n=ws(t.height)/e.offsetHeight||1;return r!==1||n!==1}function T4(e,t,r){r===void 0&&(r=!1);var n=an(t),i=an(t)&&C4(t),a=ca(t),o=Ss(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Xn(t)!=="body"||xy(a))&&(s=x4(t)),an(t)?(l=Ss(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Sy(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function M4(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function A4(e){var t=M4(e);return W3.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function E4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function P4(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Lb={placement:"bottom",modifiers:[],strategy:"absolute"};function Db(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Cy(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?Lb:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lb,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},a,u.options,g),u.scrollParents={reference:bs(o)?Rl(o):o.contextElement?Rl(o.contextElement):[],popper:Rl(s)};var m=A4(P4([].concat(n,u.options.modifiers)));return u.orderedModifiers=m.filter(function(y){return y.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,m=p.popper;if(Db(g,m)){u.rects={reference:T4(g,ju(m),u.options.strategy==="fixed"),popper:_y(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var _=u.orderedModifiers[y],b=_.fn,S=_.options,w=S===void 0?{}:S,x=_.name;typeof b=="function"&&(u=b({state:u,options:w,name:x,instance:d})||u)}}}},update:E4(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!Db(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,y=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var b=_({state:u,name:g,instance:d,options:y}),S=function(){};c.push(b||S)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}Cy();var L4=[mM,bM,gM,fM];Cy({defaultModifiers:L4});var D4=[mM,bM,gM,fM,m4,d4,w4,Z3,v4],wM=Cy({defaultModifiers:D4});function I4(){let e;const t=(n,i)=>{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return Wu(()=>r()),{registerTimeout:t,cancelTimeout:r}}let Yo=[];const Ib=e=>{const t=e;t.key===Lt.esc&&Yo.forEach(r=>r(t))},O4=e=>{Mt(()=>{Yo.length===0&&document.addEventListener("keydown",Ib),Ot&&Yo.push(e)}),nr(()=>{Yo=Yo.filter(t=>t!==e),Yo.length===0&&Ot&&document.removeEventListener("keydown",Ib)})};let Ob;const SM=()=>{const e=ua("namespace",hy),t=lM(),r=$(()=>`${e.value}-popper-container-${t.prefix}`),n=$(()=>`#${r.value}`);return{id:r,selector:n}},R4=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},k4=()=>{Bd(()=>{if(!Ot)return;const{id:e,selector:t}=SM();!Ob&&!document.body.querySelector(t.value)&&(Ob=R4(e.value))})},N4=rt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),xM=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:i}=I4();return{onOpen:s=>{i(()=>{r(s)},P(e))},onClose:s=>{i(()=>{n(s)},P(t))}}},CM=Symbol("elForwardRef"),B4=e=>{Tt(CM,{setForwardRef:r=>{e.value=r}})},F4=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Rb=H(0),Ty=()=>{const e=ua("zIndex",2e3),t=$(()=>e.value+Rb.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Rb.value++,t.value)}};var Xe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const $4=rt({size:{type:Pe([Number,String])},color:{type:String}}),H4=ce({name:"ElIcon",inheritAttrs:!1}),z4=ce({...H4,props:$4,setup(e){const t=e,r=Be("icon"),n=$(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:Qf(i)?void 0:vo(i),"--color":a}});return(i,a)=>(U(),ye("i",So({class:P(r).b(),style:P(n)},i.$attrs),[Fe(i.$slots,"default")],16))}});var W4=Xe(z4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const lr=hr(W4),Qo=4,V4={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},G4=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),U4=rt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),j4="Thumb",Y4=ce({__name:"thumb",props:U4,setup(e){const t=e,r=Oe(iM),n=Be("scrollbar");r||ta(j4,"can not inject scrollbar context");const i=H(),a=H(),o=H({}),s=H(!1);let l=!1,u=!1,c=Ot?document.onselectstart:null;const f=$(()=>V4[t.vertical?"vertical":"horizontal"]),d=$(()=>G4({size:t.size,move:t.move,bar:f.value})),h=$(()=>i.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.value.offset]),v=w=>{var x;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(w);const C=w.currentTarget;C&&(o.value[f.value.axis]=C[f.value.offset]-(w[f.value.client]-C.getBoundingClientRect()[f.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const x=Math.abs(w.target.getBoundingClientRect()[f.value.direction]-w[f.value.client]),C=a.value[f.value.offset]/2,T=(x-C)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=T*r.wrapElement[f.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const C=(i.value.getBoundingClientRect()[f.value.direction]-w[f.value.client])*-1,T=a.value[f.value.offset]-x,E=(C-T)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=E*r.wrapElement[f.value.scrollSize]/100},y=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),S(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};nr(()=>{S(),document.removeEventListener("mouseup",y)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Sn(Tn(r,"scrollbarElement"),"mousemove",_),Sn(Tn(r,"scrollbarElement"),"mouseleave",b),(w,x)=>(U(),me(Qn,{name:P(n).b("fade"),persisted:""},{default:Z(()=>[qt(ae("div",{ref_key:"instance",ref:i,class:le([P(n).e("bar"),P(n).is(P(f).key)]),onMousedown:p},[ae("div",{ref_key:"thumb",ref:a,class:le(P(n).e("thumb")),style:St(P(d)),onMousedown:v},null,38)],34),[[mi,w.always||s.value]])]),_:1},8,["name"]))}});var kb=Xe(Y4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const q4=rt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),K4=ce({__name:"bar",props:q4,setup(e,{expose:t}){const r=e,n=H(0),i=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Qo,l=o.offsetWidth-Qo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(U(),ye(yt,null,[ee(kb,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),ee(kb,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var X4=Xe(K4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Z4=rt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Pe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),Q4={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Yt)},J4="ElScrollbar",eH=ce({name:J4}),tH=ce({...eH,props:Z4,emits:Q4,setup(e,{expose:t,emit:r}){const n=e,i=Be("scrollbar");let a,o;const s=H(),l=H(),u=H(),c=H("0"),f=H("0"),d=H(),h=H(1),v=H(1),p=$(()=>{const x={};return n.height&&(x.height=vo(n.height)),n.maxHeight&&(x.maxHeight=vo(n.maxHeight)),[n.wrapStyle,x]}),g=$(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=$(()=>[i.e("view"),n.viewClass]),y=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,C){Ke(x)?l.value.scrollTo(x):Yt(x)&&Yt(C)&&l.value.scrollTo(x,C)}const b=x=>{Yt(x)&&(l.value.scrollTop=x)},S=x=>{Yt(x)&&(l.value.scrollLeft=x)},w=()=>{if(!l.value)return;const x=l.value.offsetHeight-Qo,C=l.value.offsetWidth-Qo,T=x**2/l.value.scrollHeight,E=C**2/l.value.scrollWidth,A=Math.max(T,n.minSize),M=Math.max(E,n.minSize);h.value=T/(x-T)/(A/(x-A)),v.value=E/(C-E)/(M/(C-M)),f.value=A+Qo<x?`${A}px`:"",c.value=M+Qo<C?`${M}px`:""};return xe(()=>n.noresize,x=>{x?(a==null||a(),o==null||o()):({stop:a}=ms(u,w),o=Sn("resize",w))},{immediate:!0}),xe(()=>[n.maxHeight,n.height],()=>{n.native||Rt(()=>{var x;w(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),Tt(iM,fn({scrollbarElement:s,wrapElement:l})),Mt(()=>{n.native||Rt(()=>{w()})}),Fd(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:S,handleScroll:y}),(x,C)=>(U(),ye("div",{ref_key:"scrollbarRef",ref:s,class:le(P(i).b())},[ae("div",{ref_key:"wrapRef",ref:l,class:le(P(g)),style:St(P(p)),onScroll:y},[(U(),me(nn(x.tag),{ref_key:"resizeRef",ref:u,class:le(P(m)),style:St(x.viewStyle)},{default:Z(()=>[Fe(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?ke("v-if",!0):(U(),me(X4,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:x.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var rH=Xe(tH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const TM=hr(rH),nH=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],MM=rt({role:{type:String,values:nH,default:"tooltip"}}),iH=ce({name:"ElPopperRoot",inheritAttrs:!1}),aH=ce({...iH,props:MM,setup(e,{expose:t}){const r=e,n=H(),i=H(),a=H(),o=H(),s=$(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Tt(fy,l),(u,c)=>Fe(u.$slots,"default")}});var oH=Xe(aH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const AM=rt({arrowOffset:{type:Number,default:5}}),sH=ce({name:"ElPopperArrow",inheritAttrs:!1}),lH=ce({...sH,props:AM,setup(e,{expose:t}){const r=e,n=Be("popper"),{arrowOffset:i,arrowRef:a}=Oe(aM,void 0);return xe(()=>r.arrowOffset,o=>{i.value=o}),nr(()=>{a.value=void 0}),t({arrowRef:a}),(o,s)=>(U(),ye("span",{ref_key:"arrowRef",ref:a,class:le(P(n).e("arrow")),"data-popper-arrow":""},null,2))}});var uH=Xe(lH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const cH="ElOnlyChild",fH=ce({name:cH,setup(e,{slots:t,attrs:r}){var n;const i=Oe(CM),a=F4((n=i==null?void 0:i.setForwardRef)!=null?n:ur);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=EM(s);return l?qt(gi(l,r),[[a]]):null}}});function EM(e){if(!e)return null;const t=e;for(const r of t){if(Ke(r))switch(r.type){case Sr:continue;case ks:case"svg":return Nb(r);case yt:return EM(r.children);default:return r}return Nb(r)}return null}function Nb(e){const t=Be("only-child");return ee("span",{class:t.e("content")},[e])}const PM=rt({virtualRef:{type:Pe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Pe(Function)},onMouseleave:{type:Pe(Function)},onClick:{type:Pe(Function)},onKeydown:{type:Pe(Function)},onFocus:{type:Pe(Function)},onBlur:{type:Pe(Function)},onContextmenu:{type:Pe(Function)},id:String,open:Boolean}),dH=ce({name:"ElPopperTrigger",inheritAttrs:!1}),hH=ce({...dH,props:PM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Oe(fy,void 0);B4(i);const a=$(()=>s.value?r.id:void 0),o=$(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=$(()=>{if(n&&n.value!=="tooltip")return n.value}),l=$(()=>s.value?`${r.open}`:void 0);let u;return Mt(()=>{xe(()=>r.virtualRef,c=>{c&&(i.value=Vi(c))},{immediate:!0}),xe(i,(c,f)=>{u==null||u(),u=void 0,ys(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=xe([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{ly(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ys(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),nr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(c,f)=>c.virtualTriggering?ke("v-if",!0):(U(),me(P(fH),So({key:0},c.$attrs,{"aria-controls":P(a),"aria-describedby":P(o),"aria-expanded":P(l),"aria-haspopup":P(s)}),{default:Z(()=>[Fe(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var vH=Xe(hH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Fh="focus-trap.focus-after-trapped",$h="focus-trap.focus-after-released",pH="focus-trap.focusout-prevented",Bb={cancelable:!0,bubbles:!1},gH={cancelable:!0,bubbles:!1},Fb="focusAfterTrapped",$b="focusAfterReleased",mH=Symbol("elFocusTrap"),My=H(),Qd=H(0),Ay=H(0);let hc=0;const LM=e=>{const t=[],r=document.createTreeWalker(e,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||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},Hb=(e,t)=>{for(const r of e)if(!yH(r,t))return r},yH=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_H=e=>{const t=LM(e),r=Hb(t,e),n=Hb(t.reverse(),e);return[r,n]},bH=e=>e instanceof HTMLInputElement&&"select"in e,Bi=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Ay.value=window.performance.now(),e!==r&&bH(e)&&t&&e.select()}};function zb(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const wH=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=zb(e,n),e.unshift(n)},remove:n=>{var i,a;e=zb(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},SH=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Bi(n,t),document.activeElement!==r)return},Wb=wH(),xH=()=>Qd.value>Ay.value,vc=()=>{My.value="pointer",Qd.value=window.performance.now()},Vb=()=>{My.value="keyboard",Qd.value=window.performance.now()},CH=()=>(Mt(()=>{hc===0&&(document.addEventListener("mousedown",vc),document.addEventListener("touchstart",vc),document.addEventListener("keydown",Vb)),hc++}),nr(()=>{hc--,hc<=0&&(document.removeEventListener("mousedown",vc),document.removeEventListener("touchstart",vc),document.removeEventListener("keydown",Vb))}),{focusReason:My,lastUserFocusTimestamp:Qd,lastAutomatedFocusTimestamp:Ay}),pc=e=>new CustomEvent(pH,{...gH,detail:e}),TH=ce({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Fb,$b,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=H();let n,i;const{focusReason:a}=CH();O4(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:S}=e,w=p===Lt.tab&&!g&&!m&&!y,x=document.activeElement;if(w&&x){const C=_,[T,E]=_H(C);if(T&&E){if(!b&&x===E){const M=pc({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),S&&Bi(T,!0))}else if(b&&[T,C].includes(x)){const M=pc({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),S&&Bi(E,!0))}}else if(x===C){const M=pc({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||v.preventDefault()}}};Tt(mH,{focusTrapRef:r,onKeydown:s}),xe(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),xe([r],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(Fb,v)},u=v=>t($b,v),c=v=>{const p=P(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=g:Bi(i,!0))},f=v=>{const p=P(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!ly(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=pc({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||Bi(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Rt();const v=P(r);if(v){Wb.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Fh,Bb);v.addEventListener(Fh,l),v.dispatchEvent(m),m.defaultPrevented||Rt(()=>{let y=e.focusStartEl;ze(y)||(Bi(y),document.activeElement!==y&&(y="first")),y==="first"&&SH(LM(v),!0),(document.activeElement===p||y==="container")&&Bi(v)})}}}function h(){const v=P(r);if(v){v.removeEventListener(Fh,l);const p=new CustomEvent($h,{...Bb,detail:{focusReason:a.value}});v.addEventListener($h,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!xH())&&Bi(n??document.body),v.removeEventListener($h,l),Wb.remove(o)}}return Mt(()=>{e.trapped&&d(),xe(()=>e.trapped,v=>{v?d():h()})}),nr(()=>{e.trapped&&h()}),{onKeydown:s}}});function MH(e,t,r,n,i,a){return Fe(e.$slots,"default",{handleKeydown:e.onKeydown})}var AH=Xe(TH,[["render",MH],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const EH=["fixed","absolute"],PH=rt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:my,default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},strategy:{type:String,values:EH,default:"absolute"}}),DM=rt({...PH,id:String,style:{type:Pe([String,Array,Object])},className:{type:Pe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Pe([String,Array,Object])},popperStyle:{type:Pe([String,Array,Object])},referenceEl:{type:Pe(Object)},triggerTargetEl:{type:Pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),LH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Gb=(e,t)=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:IH(e)};return OH(a,t),RH(a,i==null?void 0:i.modifiers),a},DH=e=>{if(Ot)return Vi(e)};function IH(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function OH(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r??5}})}function RH(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const kH=ce({name:"ElPopperContent"}),NH=ce({...kH,props:DM,emits:LH,setup(e,{expose:t,emit:r}){const n=e,{popperInstanceRef:i,contentRef:a,triggerRef:o,role:s}=Oe(fy,void 0),l=Oe(go,void 0),{nextZIndex:u}=Ty(),c=Be("popper"),f=H(),d=H("first"),h=H(),v=H();Tt(aM,{arrowRef:h,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&Tt(go,{...l,addInputId:ur,removeInputId:ur});const p=H(n.zIndex||u()),g=H(!1);let m;const y=$(()=>DH(n.referenceEl)||P(o)),_=$(()=>[{zIndex:P(p)},n.popperStyle]),b=$(()=>[c.b(),c.is("pure",n.pure),c.is(n.effect),n.popperClass]),S=$(()=>s&&s.value==="dialog"?"false":void 0),w=({referenceEl:R,popperContentEl:k,arrowEl:F})=>{const K=Gb(n,{arrowEl:F,arrowOffset:P(v)});return wM(R,k,K)},x=(R=!0)=>{var k;(k=P(i))==null||k.update(),R&&(p.value=n.zIndex||u())},C=()=>{var R,k;const F={name:"eventListeners",enabled:n.visible};(k=(R=P(i))==null?void 0:R.setOptions)==null||k.call(R,K=>({...K,modifiers:[...K.modifiers||[],F]})),x(!1),n.visible&&n.focusOnShow?g.value=!0:n.visible===!1&&(g.value=!1)},T=()=>{r("focus")},E=R=>{var k;((k=R.detail)==null?void 0:k.focusReason)!=="pointer"&&(d.value="first",r("blur"))},A=R=>{n.visible&&!g.value&&(R.target&&(d.value=R.target),g.value=!0)},M=R=>{n.trapping||(R.detail.focusReason==="pointer"&&R.preventDefault(),g.value=!1)},D=()=>{g.value=!1,r("close")};return Mt(()=>{let R;xe(y,k=>{var F;R==null||R();const K=P(i);if((F=K==null?void 0:K.destroy)==null||F.call(K),k){const B=P(f);a.value=B,i.value=w({referenceEl:k,popperContentEl:B,arrowEl:P(h)}),R=xe(()=>k.getBoundingClientRect(),()=>x(),{immediate:!0})}else i.value=void 0},{immediate:!0}),xe(()=>n.triggerTargetEl,(k,F)=>{m==null||m(),m=void 0;const K=P(k||f.value),B=P(F||f.value);ys(K)&&(m=xe([s,()=>n.ariaLabel,S,()=>n.id],N=>{["role","aria-label","aria-modal","id"].forEach((j,re)=>{ly(N[re])?K.removeAttribute(j):K.setAttribute(j,N[re])})},{immediate:!0})),B!==K&&ys(B)&&["role","aria-label","aria-modal","id"].forEach(N=>{B.removeAttribute(N)})},{immediate:!0}),xe(()=>n.visible,C,{immediate:!0}),xe(()=>Gb(n,{arrowEl:P(h),arrowOffset:P(v)}),k=>{var F;return(F=i.value)==null?void 0:F.setOptions(k)})}),nr(()=>{m==null||m(),m=void 0}),t({popperContentRef:f,popperInstanceRef:i,updatePopper:x,contentStyle:_}),(R,k)=>(U(),ye("div",{ref_key:"popperContentRef",ref:f,style:St(P(_)),class:le(P(b)),tabindex:"-1",onMouseenter:k[0]||(k[0]=F=>R.$emit("mouseenter",F)),onMouseleave:k[1]||(k[1]=F=>R.$emit("mouseleave",F))},[ee(P(AH),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":f.value,"focus-start-el":d.value,onFocusAfterTrapped:T,onFocusAfterReleased:E,onFocusin:A,onFocusoutPrevented:M,onReleaseRequested:D},{default:Z(()=>[Fe(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var BH=Xe(NH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const FH=hr(oH),$H=Be("tooltip"),Kr=rt({...N4,...DM,appendTo:{type:Pe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Pe(Boolean),default:null},transition:{type:String,default:`${$H.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),pu=rt({...PM,disabled:Boolean,trigger:{type:Pe([String,Array]),default:"hover"},triggerKeys:{type:Pe(Array),default:()=>[Lt.enter,Lt.space]}}),{useModelToggleProps:HH,useModelToggleEmits:zH,useModelToggle:WH}=L3("visible"),VH=rt({...MM,...HH,...Kr,...pu,...AM,showArrow:{type:Boolean,default:!0}}),GH=[...zH,"before-show","before-hide","show","hide","open","close"],UH=(e,t)=>be(e)?e.includes(t):e===t,Lo=(e,t,r)=>n=>{UH(P(e),t)&&r(n)},jH=ce({name:"ElTooltipTrigger"}),YH=ce({...jH,props:pu,setup(e,{expose:t}){const r=e,n=Be("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Oe(dy,void 0),c=H(null),f=()=>{if(P(i)||r.disabled)return!0},d=Tn(r,"trigger"),h=ci(f,Lo(d,"hover",s)),v=ci(f,Lo(d,"hover",l)),p=ci(f,Lo(d,"click",b=>{b.button===0&&u(b)})),g=ci(f,Lo(d,"focus",s)),m=ci(f,Lo(d,"focus",l)),y=ci(f,Lo(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=ci(f,b=>{const{code:S}=b;r.triggerKeys.includes(S)&&(b.preventDefault(),u(b))});return t({triggerRef:c}),(b,S)=>(U(),me(P(vH),{id:P(a),"virtual-ref":b.virtualRef,open:P(o),"virtual-triggering":b.virtualTriggering,class:le(P(n).e("trigger")),onBlur:P(m),onClick:P(p),onContextmenu:P(y),onFocus:P(g),onMouseenter:P(h),onMouseleave:P(v),onKeydown:P(_)},{default:Z(()=>[Fe(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var qH=Xe(YH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const KH=ce({name:"ElTooltipContent",inheritAttrs:!1}),XH=ce({...KH,props:Kr,setup(e,{expose:t}){const r=e,{selector:n}=SM(),i=H(null),a=H(!1),{controlled:o,id:s,open:l,trigger:u,onClose:c,onOpen:f,onShow:d,onHide:h,onBeforeShow:v,onBeforeHide:p}=Oe(dy,void 0),g=$(()=>r.persistent);nr(()=>{a.value=!0});const m=$(()=>P(g)?!0:P(l)),y=$(()=>r.disabled?!1:P(l)),_=$(()=>r.appendTo||n.value),b=$(()=>{var k;return(k=r.style)!=null?k:{}}),S=$(()=>!P(l)),w=()=>{h()},x=()=>{if(P(o))return!0},C=ci(x,()=>{r.enterable&&P(u)==="hover"&&f()}),T=ci(x,()=>{P(u)==="hover"&&c()}),E=()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k),v==null||v()},A=()=>{p==null||p()},M=()=>{d(),R=$$($(()=>{var k;return(k=i.value)==null?void 0:k.popperContentRef}),()=>{if(P(o))return;P(u)!=="hover"&&c()})},D=()=>{r.virtualTriggering||c()};let R;return xe(()=>P(l),k=>{k||R==null||R()},{flush:"post"}),xe(()=>r.content,()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k)}),t({contentRef:i}),(k,F)=>(U(),me(NI,{disabled:!k.teleported,to:P(_)},[ee(Qn,{name:k.transition,onAfterLeave:w,onBeforeEnter:E,onAfterEnter:M,onBeforeLeave:A},{default:Z(()=>[P(m)?qt((U(),me(P(BH),So({key:0,id:P(s),ref_key:"contentRef",ref:i},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":P(S),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,P(b)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:P(y),"z-index":k.zIndex,onMouseenter:P(C),onMouseleave:P(T),onBlur:D,onClose:P(c)}),{default:Z(()=>[a.value?ke("v-if",!0):Fe(k.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[mi,P(y)]]):ke("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ZH=Xe(XH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const QH=["innerHTML"],JH={key:1},ez=ce({name:"ElTooltip"}),tz=ce({...ez,props:VH,emits:GH,setup(e,{expose:t,emit:r}){const n=e;k4();const i=vy(),a=H(),o=H(),s=()=>{var m;const y=P(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:c,hide:f,hasUpdateHandler:d}=WH({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=xM({showAfter:Tn(n,"showAfter"),hideAfter:Tn(n,"hideAfter"),open:c,close:f}),p=$(()=>Br(n.visible)&&!d.value);Tt(dy,{controlled:p,id:i,open:ku(l),trigger:Tn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{P(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),xe(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=()=>{var m,y;const _=(y=(m=o.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return _&&_.contains(document.activeElement)};return WC(()=>l.value&&f()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,y)=>(U(),me(P(FH),{ref_key:"popperRef",ref:a,role:m.role},{default:Z(()=>[ee(qH,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:Z(()=>[m.$slots.default?Fe(m.$slots,"default",{key:0}):ke("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ee(ZH,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:Z(()=>[Fe(m.$slots,"content",{},()=>[m.rawContent?(U(),ye("span",{key:0,innerHTML:m.content},null,8,QH)):(U(),ye("span",JH,Me(m.content),1))]),m.showArrow?(U(),me(P(uH),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):ke("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var rz=Xe(tz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Yu=hr(rz),nz=rt({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),iz=["textContent"],az=ce({name:"ElBadge"}),oz=ce({...az,props:nz,setup(e,{expose:t}){const r=e,n=Be("badge"),i=$(()=>r.isDot?"":Yt(r.value)&&Yt(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`);return t({content:i}),(a,o)=>(U(),ye("div",{class:le(P(n).b())},[Fe(a.$slots,"default"),ee(Qn,{name:`${P(n).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[qt(ae("sup",{class:le([P(n).e("content"),P(n).em("content",a.type),P(n).is("fixed",!!a.$slots.default),P(n).is("dot",a.isDot)]),textContent:Me(P(i))},null,10,iz),[[mi,!a.hidden&&(P(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var sz=Xe(oz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const lz=hr(sz),uz=(e,t)=>{sM({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>e.type==="text"));const r=Oe(tM,void 0),n=ua("button"),{form:i}=Gu(),a=ra($(()=>r==null?void 0:r.size)),o=Xd(),s=H(),l=zd(),u=$(()=>e.type||(r==null?void 0:r.type)||""),c=$(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),f=$(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(c.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===ks){const g=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,shouldAddSpace:f,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},cz=["default","primary","success","warning","info","danger","text",""],fz=["button","submit","reset"],Kp=rt({size:Kd,disabled:Boolean,type:{type:String,values:cz,default:""},icon:{type:Wn},nativeType:{type:String,values:fz,default:"button"},loading:Boolean,loadingIcon:{type:Wn,default:()=>cy},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),dz={click:e=>e instanceof MouseEvent};function Kt(e,t){hz(e)&&(e="100%");var r=vz(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gc(e){return Math.min(1,Math.max(0,e))}function hz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function vz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function IM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Xa(e){return e.length===1?"0"+e:String(e)}function pz(e,t,r){return{r:Kt(e,255)*255,g:Kt(t,255)*255,b:Kt(r,255)*255}}function Ub(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(t-r)/l+(t<r?6:0);break;case t:a=(r-e)/l+2;break;case r:a=(e-t)/l+4;break}a/=6}return{h:a,s:o,l:s}}function Hh(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function gz(e,t,r){var n,i,a;if(e=Kt(e,360),t=Kt(t,100),r=Kt(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Hh(s,o,e+1/3),i=Hh(s,o,e),a=Hh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function jb(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t<r?6:0);break;case t:a=(r-e)/s+2;break;case r:a=(e-t)/s+4;break}a/=6}return{h:a,s:l,v:o}}function mz(e,t,r){e=Kt(e,360)*6,t=Kt(t,100),r=Kt(r,100);var n=Math.floor(e),i=e-n,a=r*(1-t),o=r*(1-i*t),s=r*(1-(1-i)*t),l=n%6,u=[r,o,a,a,s,r][l],c=[s,r,r,o,a,a][l],f=[a,a,s,r,r,o][l];return{r:u*255,g:c*255,b:f*255}}function Yb(e,t,r,n){var i=[Xa(Math.round(e).toString(16)),Xa(Math.round(t).toString(16)),Xa(Math.round(r).toString(16))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function yz(e,t,r,n,i){var a=[Xa(Math.round(e).toString(16)),Xa(Math.round(t).toString(16)),Xa(Math.round(r).toString(16)),Xa(_z(n))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function _z(e){return Math.round(parseFloat(e)*255).toString(16)}function qb(e){return Dr(e)/255}function Dr(e){return parseInt(e,16)}function bz(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Xp={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function wz(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=Cz(e)),typeof e=="object"&&(ii(e.r)&&ii(e.g)&&ii(e.b)?(t=pz(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ii(e.h)&&ii(e.s)&&ii(e.v)?(n=mc(e.s),i=mc(e.v),t=mz(e.h,n,i),o=!0,s="hsv"):ii(e.h)&&ii(e.s)&&ii(e.l)&&(n=mc(e.s),a=mc(e.l),t=gz(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=IM(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Sz="[-\\+]?\\d+%?",xz="[-\\+]?\\d*\\.\\d+%?",Gi="(?:".concat(xz,")|(?:").concat(Sz,")"),zh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),Wh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),pn={CSS_UNIT:new RegExp(Gi),rgb:new RegExp("rgb"+zh),rgba:new RegExp("rgba"+Wh),hsl:new RegExp("hsl"+zh),hsla:new RegExp("hsla"+Wh),hsv:new RegExp("hsv"+zh),hsva:new RegExp("hsva"+Wh),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Cz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Xp[e])e=Xp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=pn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=pn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=pn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=pn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pn.hex8.exec(e),r?{r:Dr(r[1]),g:Dr(r[2]),b:Dr(r[3]),a:qb(r[4]),format:t?"name":"hex8"}:(r=pn.hex6.exec(e),r?{r:Dr(r[1]),g:Dr(r[2]),b:Dr(r[3]),format:t?"name":"hex"}:(r=pn.hex4.exec(e),r?{r:Dr(r[1]+r[1]),g:Dr(r[2]+r[2]),b:Dr(r[3]+r[3]),a:qb(r[4]+r[4]),format:t?"name":"hex8"}:(r=pn.hex3.exec(e),r?{r:Dr(r[1]+r[1]),g:Dr(r[2]+r[2]),b:Dr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ii(e){return Boolean(pn.CSS_UNIT.exec(String(e)))}var OM=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=bz(t)),this.originalInput=t;var i=wz(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=IM(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=jb(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=jb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Ub(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Ub(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Yb(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),yz(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Kt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Kt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Yb(this.r,this.g,this.b,!1),r=0,n=Object.entries(Xp);r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(t===o)return a}return!1},e.prototype.toString=function(t){var r=Boolean(t);t=t??this.format;var n=!1,i=this.a<1&&this.a>=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=gc(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=gc(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=gc(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=gc(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o<t;o++)i.push(new e({h:(n+o*a)%360,s:r.s,l:r.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Li(e,t=20){return e.mix("#141414",t).toString()}function Tz(e){const t=Xd(),r=Be("button");return $(()=>{let n={};const i=e.color;if(i){const a=new OM(i),o=e.dark?a.tint(20).toString():Li(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Li(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Li(a,50):a.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Li(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Li(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Li(a,80):a.tint(80).toString());else{const s=e.dark?Li(a,30):a.tint(30).toString(),l=a.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?Li(a,50):a.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const Mz=["aria-disabled","disabled","autofocus","type"],Az=ce({name:"ElButton"}),Ez=ce({...Az,props:Kp,emits:dz,setup(e,{expose:t,emit:r}){const n=e,i=Tz(n),a=Be("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=uz(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,h)=>(U(),ye("button",{ref_key:"_ref",ref:o,class:le([P(a).b(),P(a).m(P(l)),P(a).m(P(s)),P(a).is("disabled",P(u)),P(a).is("loading",d.loading),P(a).is("plain",d.plain),P(a).is("round",d.round),P(a).is("circle",d.circle),P(a).is("text",d.text),P(a).is("link",d.link),P(a).is("has-bg",d.bg)]),"aria-disabled":P(u)||d.loading,disabled:P(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:St(P(i)),onClick:h[0]||(h[0]=(...v)=>P(f)&&P(f)(...v))},[d.loading?(U(),ye(yt,{key:0},[d.$slots.loading?Fe(d.$slots,"loading",{key:0}):(U(),me(P(lr),{key:1,class:le(P(a).is("loading"))},{default:Z(()=>[(U(),me(nn(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(U(),me(P(lr),{key:1},{default:Z(()=>[d.icon?(U(),me(nn(d.icon),{key:0})):Fe(d.$slots,"icon",{key:1})]),_:3})):ke("v-if",!0),d.$slots.default?(U(),ye("span",{key:2,class:le({[P(a).em("text","expand")]:P(c)})},[Fe(d.$slots,"default")],2)):ke("v-if",!0)],14,Mz))}});var Pz=Xe(Ez,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Lz={size:Kp.size,type:Kp.type},Dz=ce({name:"ElButtonGroup"}),Iz=ce({...Dz,props:Lz,setup(e){const t=e;Tt(tM,fn({size:Tn(t,"size"),type:Tn(t,"type")}));const r=Be("button");return(n,i)=>(U(),ye("div",{class:le(`${P(r).b("group")}`)},[Fe(n.$slots,"default")],2))}});var RM=Xe(Iz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Oz=hr(Pz,{ButtonGroup:RM});la(RM);var Rz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Fi=new Map;let Kb;Ot&&(document.addEventListener("mousedown",e=>Kb=e),document.addEventListener("mouseup",e=>{for(const t of Fi.values())for(const{documentHandler:r}of t)r(e,Kb)}));function Xb(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:ys(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=a&&(a.contains(o)||a.contains(s));l||u||c||f||d||h||t.value(n,i)}}const kz={beforeMount(e,t){Fi.has(e)||Fi.set(e,[]),Fi.get(e).push({documentHandler:Xb(e,t),bindingFn:t.value})},updated(e,t){Fi.has(e)||Fi.set(e,[]);const r=Fi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:Xb(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Fi.delete(e)}};var Zb=!1,Ya,Zp,Qp,bf,wf,kM,Sf,Jp,eg,tg,NM,rg,ng,BM,FM;function vr(){if(!Zb){Zb=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(rg=/\b(iPhone|iP[ao]d)/.exec(e),ng=/\b(iP[ao]d)/.exec(e),tg=/Android/i.exec(e),BM=/FBAN\/\w+;/i.exec(e),FM=/Mobile/i.exec(e),NM=!!/Win64/.exec(e),t){Ya=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ya&&document&&document.documentMode&&(Ya=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);kM=n?parseFloat(n[1])+4:Ya,Zp=t[2]?parseFloat(t[2]):NaN,Qp=t[3]?parseFloat(t[3]):NaN,bf=t[4]?parseFloat(t[4]):NaN,bf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),wf=t&&t[1]?parseFloat(t[1]):NaN):wf=NaN}else Ya=Zp=Qp=wf=bf=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Sf=i?parseFloat(i[1].replace("_",".")):!0}else Sf=!1;Jp=!!r[2],eg=!!r[3]}else Sf=Jp=eg=!1}}var ig={ie:function(){return vr()||Ya},ieCompatibilityMode:function(){return vr()||kM>Ya},ie64:function(){return ig.ie()&&NM},firefox:function(){return vr()||Zp},opera:function(){return vr()||Qp},webkit:function(){return vr()||bf},safari:function(){return ig.webkit()},chrome:function(){return vr()||wf},windows:function(){return vr()||Jp},osx:function(){return vr()||Sf},linux:function(){return vr()||eg},iphone:function(){return vr()||rg},mobile:function(){return vr()||rg||ng||tg||FM},nativeApp:function(){return vr()||BM},android:function(){return vr()||tg},ipad:function(){return vr()||ng}},Nz=ig,yc=!!(typeof window<"u"&&window.document&&window.document.createElement),Bz={canUseDOM:yc,canUseWorkers:typeof Worker<"u",canUseEventListeners:yc&&!!(window.addEventListener||window.attachEvent),canUseViewport:yc&&!!window.screen,isInWorker:!yc},$M=Bz,HM;$M.canUseDOM&&(HM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Fz(e,t){if(!$M.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&HM&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var $z=Fz,Qb=10,Jb=40,e1=800;function zM(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*Qb,i=r*Qb,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=Jb,i*=Jb):(n*=e1,i*=e1)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}zM.getEventType=function(){return Nz.firefox()?"DOMMouseScroll":$z("wheel")?"wheel":"mousewheel"};var Hz=zM;/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const zz=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=Hz(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},Wz={beforeMount(e,t){zz(e,t.value)}},WM={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Kd,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},VM={[po]:e=>ze(e)||Yt(e)||Br(e),change:e=>ze(e)||Yt(e)||Br(e)},Vz=({model:e,isChecked:t})=>{const r=Oe(Bs,void 0),n=$(()=>{var a,o;const s=(a=r==null?void 0:r.max)==null?void 0:a.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Qf(s)&&e.value.length>=s&&!t.value||!Qf(l)&&e.value.length<=l&&t.value});return{isDisabled:Xd($(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},Gz=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Oe(Bs,void 0),{formItem:s}=Gu(),{emit:l}=dt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Rt(),c(t.value,v)))}const h=$(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},Uz=e=>{const t=H(!1),{emit:r}=dt(),n=Oe(Bs,void 0),i=$(()=>Qf(n)===!1),a=H(!1);return{model:$({get(){var s,l;return i.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;i.value&&be(s)?(a.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(po,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},jz=(e,t,{model:r})=>{const n=Oe(Bs,void 0),i=H(!1),a=$(()=>{const u=r.value;return Br(u)?u:be(u)?Ke(e.label)?u.map(Je).some(c=>d$(c,e.label)):u.map(Je).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=ra($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=ra($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=$(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},Yz=(e,{model:t})=>{function r(){be(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},GM=(e,t)=>{const{formItem:r}=Gu(),{model:n,isGroup:i,isLimitExceeded:a}=Uz(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=jz(e,t,{model:n}),{isDisabled:f}=Vz({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=py(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=Gz(e,{model:n,isLimitExceeded:a,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return Yz(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:p}},qz=["tabindex","role","aria-checked"],Kz=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Xz=["id","aria-hidden","disabled","value","name","tabindex"],Zz=ce({name:"ElCheckbox"}),Qz=ce({...Zz,props:WM,emits:VM,setup(e){const t=e,r=zd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=GM(t,r),h=Be("checkbox"),v=$(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=$(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(U(),me(nn(!P(u)&&P(i)?"span":"label"),{class:le(P(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:P(d)},{default:Z(()=>[ae("span",{class:le(P(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?qt((U(),ye("input",{key:0,id:P(n),"onUpdate:modelValue":m[0]||(m[0]=y=>xt(c)?c.value=y:null),class:le(P(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:P(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>P(f)&&P(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,Kz)),[[Uf,P(c)]]):qt((U(),ye("input",{key:1,id:P(n),"onUpdate:modelValue":m[4]||(m[4]=y=>xt(c)?c.value=y:null),class:le(P(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:P(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>P(f)&&P(f)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,Xz)),[[Uf,P(c)]]),ae("span",{class:le(P(h).e("inner"))},null,2)],10,qz),P(u)?(U(),ye("span",{key:0,class:le(P(h).e("label"))},[Fe(g.$slots,"default"),g.$slots.default?ke("v-if",!0):(U(),ye(yt,{key:0},[Nt(Me(g.label),1)],64))],2)):ke("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Jz=Xe(Qz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const e6=["name","tabindex","disabled","true-value","false-value"],t6=["name","tabindex","disabled","value"],r6=ce({name:"ElCheckboxButton"}),n6=ce({...r6,props:WM,emits:VM,setup(e){const t=e,r=zd(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=GM(t,r),u=Oe(Bs,void 0),c=Be("checkbox"),f=$(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=$(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",a.value),c.is("checked",i.value),c.is("focus",n.value)]);return(h,v)=>(U(),ye("label",{class:le(P(d))},[h.trueLabel||h.falseLabel?qt((U(),ye("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>xt(s)?s.value=p:null),class:le(P(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:P(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>P(l)&&P(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,e6)),[[Uf,P(s)]]):qt((U(),ye("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>xt(s)?s.value=p:null),class:le(P(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:P(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>P(l)&&P(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,t6)),[[Uf,P(s)]]),h.$slots.default||h.label?(U(),ye("span",{key:2,class:le(P(c).be("button","inner")),style:St(P(i)?P(f):void 0)},[Fe(h.$slots,"default",{},()=>[Nt(Me(h.label),1)])],6)):ke("v-if",!0)],2))}});var UM=Xe(n6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const i6=rt({modelValue:{type:Pe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Kd,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),a6={[po]:e=>be(e),change:e=>be(e)},o6=ce({name:"ElCheckboxGroup"}),s6=ce({...o6,props:i6,emits:a6,setup(e,{emit:t}){const r=e,n=Be("checkbox"),{formItem:i}=Gu(),{inputId:a,isLabeledByFormItem:o}=py(r,{formItemContext:i}),s=async u=>{t(po,u),await Rt(),t("change",u)},l=$({get(){return r.modelValue},set(u){s(u)}});return Tt(Bs,{...m$(Id(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xe(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return U(),me(nn(u.tag),{id:P(a),class:le(P(n).b("group")),role:"group","aria-label":P(o)?void 0:u.label||"checkbox-group","aria-labelledby":P(o)?(f=P(i))==null?void 0:f.labelId:void 0},{default:Z(()=>[Fe(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var jM=Xe(s6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Cs=hr(Jz,{CheckboxButton:UM,CheckboxGroup:jM});la(UM);la(jM);const l6=rt({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Vu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),u6={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},c6=ce({name:"ElTag"}),f6=ce({...c6,props:l6,emits:u6,setup(e,{emit:t}){const r=e,n=ra(),i=Be("tag"),a=$(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=r;return[i.b(),i.is("closable",f),i.m(l),i.m(n.value),i.m(c),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(U(),ye("span",{key:0,class:le(P(a)),style:St({backgroundColor:l.color}),onClick:s},[ae("span",{class:le(P(i).e("content"))},[Fe(l.$slots,"default")],2),l.closable?(U(),me(P(lr),{key:0,class:le(P(i).e("close")),onClick:jf(o,["stop"])},{default:Z(()=>[ee(P(Up))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)):(U(),me(Qn,{key:1,name:`${P(i).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[ae("span",{class:le(P(a)),style:St({backgroundColor:l.color}),onClick:s},[ae("span",{class:le(P(i).e("content"))},[Fe(l.$slots,"default")],2),l.closable?(U(),me(P(lr),{key:0,class:le(P(i).e("close")),onClick:jf(o,["stop"])},{default:Z(()=>[ee(P(Up))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)]),_:3},8,["name"]))}});var d6=Xe(f6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const h6=hr(d6),v6=rt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Pe([Number,Object]),default:()=>ja({})},sm:{type:Pe([Number,Object]),default:()=>ja({})},md:{type:Pe([Number,Object]),default:()=>ja({})},lg:{type:Pe([Number,Object]),default:()=>ja({})},xl:{type:Pe([Number,Object]),default:()=>ja({})}}),p6=ce({name:"ElCol"}),g6=ce({...p6,props:v6,setup(e){const t=e,{gutter:r}=Oe(nM,{gutter:$(()=>0)}),n=Be("col"),i=$(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=$(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];Yt(c)&&(u==="span"?o.push(n.b(`${t[u]}`)):c>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Yt(t[u])?o.push(n.b(`${u}-${t[u]}`)):Ke(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${u}-${c}-${f}`):n.b(`${u}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(U(),me(nn(o.tag),{class:le(P(a)),style:St(P(i))},{default:Z(()=>[Fe(o.$slots,"default")]),_:3},8,["class","style"]))}});var m6=Xe(g6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const YM=hr(m6),y6=ce({name:"ElCollapseTransition"}),_6=ce({...y6,setup(e){const t=Be("collapse-transition"),r={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(U(),me(Qn,So({name:P(t).b()},gI(r)),{default:Z(()=>[Fe(n.$slots,"default")]),_:3},16,["name"]))}});var xf=Xe(_6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);xf.install=e=>{e.component(xf.name,xf)};const b6=xf,ag={},w6=rt({a11y:{type:Boolean,default:!0},locale:{type:Pe(Object)},size:Kd,button:{type:Pe(Object)},experimentalFeatures:{type:Pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ce({name:"ElConfigProvider",props:w6,setup(e,{slots:t}){xe(()=>e.message,n=>{Object.assign(ag,n??{})},{immediate:!0,deep:!0});const r=b3(e);return()=>Fe(t,"default",{config:r==null?void 0:r.value})}});const S6=ce({inheritAttrs:!1});function x6(e,t,r,n,i,a){return Fe(e.$slots,"default")}var C6=Xe(S6,[["render",x6],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const T6=ce({name:"ElCollectionItem",inheritAttrs:!1});function M6(e,t,r,n,i,a){return Fe(e.$slots,"default")}var A6=Xe(T6,[["render",M6],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const E6="data-el-collection-item",P6=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...C6,name:t,setup(){const s=H(null),l=new Map;Tt(n,{itemMap:l,getItems:()=>{const c=P(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${E6}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...A6,name:r,setup(s,{attrs:l}){const u=H(null),c=Oe(n,void 0);Tt(i,{collectionItemRef:u}),Mt(()=>{const f=P(u);f&&c.itemMap.set(f,{ref:f,...l})}),nr(()=>{const f=P(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Vh=rt({trigger:pu.trigger,effect:{...Kr.effect,default:"light"},type:{type:Pe(String)},placement:{type:Pe(String),default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Pe([Number,String]),default:0},maxHeight:{type:Pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Pe(Object)},teleported:Kr.teleported});rt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wn}});rt({onKeydown:{type:Pe(Function)}});Lt.down,Lt.pageDown,Lt.home;Lt.up,Lt.pageUp,Lt.end;P6("Dropdown");const L6=rt({model:Object,rules:{type:Pe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Vu},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),D6={validate:(e,t,r)=>(be(e)||ze(e))&&Br(t)&&ze(r)};function I6(){const e=H([]),t=$(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function r(a){const o=e.value.indexOf(a);return o===-1&&t.value,o}function n(a,o){if(a&&o){const s=r(o);e.value.splice(s,1,a)}else a&&e.value.push(a)}function i(a){const o=r(a);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:i}}const _c=(e,t)=>{const r=Rp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},O6="ElForm",R6=ce({name:O6}),k6=ce({...R6,props:L6,emits:D6,setup(e,{expose:t,emit:r}){const n=e,i=[],a=ra(),o=Be("form"),s=$(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{i.push(y)},u=y=>{y.prop&&i.splice(i.indexOf(y),1)},c=(y=[])=>{n.model&&_c(i,y).forEach(_=>_.resetField())},f=(y=[])=>{_c(i,y).forEach(_=>_.clearValidate())},d=$(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=_c(i,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let b={};for(const S of _)try{await S.validate("")}catch(w){b={...b,...w}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],_)=>{const b=!Le(_);try{const S=await p(y);return S===!0&&(_==null||_(S)),S}catch(S){if(S instanceof Error)throw S;const w=S;return n.scrollToError&&m(Object.keys(w)[0]),_==null||_(!1,w),b&&Promise.reject(w)}},m=y=>{var _;const b=_c(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView())};return xe(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Tt(Fs,fn({...Id(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...I6()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,_)=>(U(),ye("form",{class:le(P(s))},[Fe(y.$slots,"default")],2))}});var N6=Xe(k6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Za.apply(this,arguments)}function B6(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gu(e,t)}function og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},og(e)}function gu(e,t){return gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gu(e,t)}function F6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cf(e,t,r){return F6()?Cf=Reflect.construct.bind():Cf=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&gu(u,o.prototype),u},Cf.apply(null,arguments)}function $6(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sg(e){var t=typeof Map=="function"?new Map:void 0;return sg=function(n){if(n===null||!$6(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Cf(n,arguments,og(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gu(i,n)},sg(e)}var H6=/%[sdj%]/g,z6=function(){};typeof process<"u"&&process.env;function lg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(H6,function(s){if(s==="%%")return"%";if(i>=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function W6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ft(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||W6(t)&&typeof e=="string"&&!e)}function V6(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function t1(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<i?t(e[s],a):r([])}a([])}function G6(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var r1=function(e){B6(t,e);function t(r,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=r,i.fields=n,i}return t}(sg(Error));function U6(e,t,r,n,i){if(t.first){var a=new Promise(function(d,h){var v=function(m){return n(m),m.length?h(new r1(m,lg(m))):d(i)},p=G6(e);t1(p,r,v)});return a.catch(function(d){return d}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,c=[],f=new Promise(function(d,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return n(c),c.length?h(new r1(c,lg(c))):d(i)};s.length||(n(c),d(i)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?t1(g,r,v):V6(g,r,v)})});return f.catch(function(d){return d}),f}function j6(e){return!!(e&&e.message!==void 0)}function Y6(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function n1(e,t){return function(r){var n;return e.fullFields?n=Y6(t,e.fullFields):n=t[r.field||e.fullField],j6(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function i1(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=Za({},e[r],n):e[r]=n}}return e}var qM=function(t,r,n,i,a,o){t.required&&(!n.hasOwnProperty(t.field)||Ft(r,o||t.type))&&i.push(Rr(a.messages.required,t.fullField))},q6=function(t,r,n,i,a){(/^\s+$/.test(r)||r==="")&&i.push(Rr(a.messages.whitespace,t.fullField))},bc,K6=function(){if(bc)return bc;var e="[a-fA-F\\d:]",t=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=(`
(?:
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+r+"$)|(?:^"+i+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+i+"$"),l=function(b){return b&&b.exact?a:new RegExp("(?:"+t(b)+r+t(b)+")|(?:"+t(b)+i+t(b)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+r+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return bc=new RegExp("(?:^"+y+"$)","i"),bc},a1={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},_l={integer:function(t){return _l.number(t)&&parseInt(t,10)===t},float:function(t){return _l.number(t)&&!_l.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!_l.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(a1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(K6())},hex:function(t){return typeof t=="string"&&!!t.match(a1.hex)}},X6=function(t,r,n,i,a){if(t.required&&r===void 0){qM(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?_l[s](r)||i.push(Rr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Rr(a.messages.types[s],t.fullField,t.type))},Z6=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&i.push(Rr(a.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?i.push(Rr(a.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?i.push(Rr(a.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&i.push(Rr(a.messages[f].range,t.fullField,t.min,t.max))},Do="enum",Q6=function(t,r,n,i,a){t[Do]=Array.isArray(t[Do])?t[Do]:[],t[Do].indexOf(r)===-1&&i.push(Rr(a.messages[Do],t.fullField,t[Do].join(", ")))},J6=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ye={required:qM,whitespace:q6,type:X6,range:Z6,enum:Q6,pattern:J6},e8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a,"string"),Ft(r,"string")||(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a),Ye.pattern(t,r,i,o,a),t.whitespace===!0&&Ye.whitespace(t,r,i,o,a))}n(o)},t8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},r8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},n8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},i8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),Ft(r)||Ye.type(t,r,i,o,a)}n(o)},a8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},o8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},s8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Ye.required(t,r,i,o,a,"array"),r!=null&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},l8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},u8="enum",c8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye[u8](t,r,i,o,a)}n(o)},f8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a),Ft(r,"string")||Ye.pattern(t,r,i,o,a)}n(o)},d8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r,"date")&&!t.required)return n();if(Ye.required(t,r,i,o,a),!Ft(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ye.type(t,l,i,o,a),l&&Ye.range(t,l.getTime(),i,o,a)}}n(o)},h8=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Ye.required(t,r,i,o,a,s),n(o)},Gh=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ft(r,o)&&!t.required)return n();Ye.required(t,r,i,s,a,o),Ft(r,o)||Ye.type(t,r,i,s,a)}n(s)},v8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a)}n(o)},kl={string:e8,method:t8,number:r8,boolean:n8,regexp:i8,integer:a8,float:o8,array:s8,object:l8,enum:c8,pattern:f8,date:d8,url:Gh,hex:Gh,email:Gh,required:h8,any:v8};function ug(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var cg=ug(),qu=function(){function e(r){this.rules=null,this._messages=cg,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=i1(ug(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function y(b){if(Array.isArray(b)){var S;g=(S=g).concat.apply(S,b)}else g.push(b)}for(var _=0;_<p.length;_++)y(p[_]);g.length?(m=lg(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===cg&&(f=ug()),i1(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],m=s[p];g.forEach(function(y){var _=y;typeof _.transform=="function"&&(s===n&&(s=Za({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Za({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=p,_.fullField=_.fullField||p,_.type=o.getType(_),d[p]=d[p]||[],d[p].push({rule:_,value:m,source:s,field:p}))})});var v={};return U6(d,l,function(p,g){var m=p.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&p.value),m.field=p.field;function _(w,x){return Za({},x,{fullField:m.fullField+"."+w,fullFields:m.fullFields?[].concat(m.fullFields,[w]):[w]})}function b(w){w===void 0&&(w=[]);var x=Array.isArray(w)?w:[w];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var C=x.map(n1(m,s));if(l.first&&C.length)return v[m.field]=1,g(C);if(!y)g(C);else{if(m.required&&!p.value)return m.message!==void 0?C=[].concat(m.message).map(n1(m,s)):l.error&&(C=[l.error(m,Rr(l.messages.required,m.field))]),g(C);var T={};m.defaultField&&Object.keys(p.value).map(function(M){T[M]=m.defaultField}),T=Za({},T,p.rule.fields);var E={};Object.keys(T).forEach(function(M){var D=T[M],R=Array.isArray(D)?D:[D];E[M]=R.map(_.bind(null,M))});var A=new e(E);A.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),A.validate(p.value,p.rule.options||l,function(M){var D=[];C&&C.length&&D.push.apply(D,C),M&&M.length&&D.push.apply(D,M),g(D.length?D:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,p.value,b,p.source,l);else if(m.validator){try{S=m.validator(m,p.value,b,p.source,l)}catch(w){console.error==null||console.error(w),l.suppressValidatorError||setTimeout(function(){throw w},0),b(w.message)}S===!0?b():S===!1?b(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(w){return b(w)})},function(p){c(p)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!kl.hasOwnProperty(n.type))throw new Error(Rr("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var i=Object.keys(n),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?kl.required:kl[this.getType(n)]||void 0},e}();qu.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");kl[t]=r};qu.warning=z6;qu.messages=cg;qu.validators=kl;const p8=["","error","validating","success"],g8=rt({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Pe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Pe([Object,Array])},error:String,validateStatus:{type:String,values:p8},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Vu}}),o1="ElLabelWrap";var m8=ce({name:o1,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const r=Oe(Fs,void 0),n=Oe(go);n||ta(o1,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Be("form"),a=H(),o=H(0),s=()=>{var c;if((c=a.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Rt(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Mt(()=>{u()}),nr(()=>{l("remove")}),Fd(()=>u()),xe(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),ms($(()=>{var c,f;return(f=(c=a.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return ee("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return ee(yt,{ref:a},[(f=t.default)==null?void 0:f.call(t)])}}});const y8=["role","aria-labelledby"],_8=ce({name:"ElFormItem"}),b8=ce({..._8,props:g8,setup(e,{expose:t}){const r=e,n=zd(),i=Oe(Fs,void 0),a=Oe(go,void 0),o=ra(void 0,{formItem:!1}),s=Be("form-item"),l=vy().value,u=H([]),c=H(""),f=T$(c,100),d=H(""),h=H();let v,p=!1;const g=$(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=vo(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=$(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&T)return{};const W=vo(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=$(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",R.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=$(()=>Br(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=$(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),S=$(()=>r.prop?ze(r.prop)?r.prop:r.prop.join("."):""),w=$(()=>!!(r.label||n.label)),x=$(()=>r.for||u.value.length===1?u.value[0]:void 0),C=$(()=>!x.value&&w.value),T=!!a,E=$(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return mf(W,r.prop).value}),A=$(()=>{const{required:W}=r,Y=[];r.rules&&Y.push(...Rp(r.rules));const ue=i==null?void 0:i.rules;if(ue&&r.prop){const he=mf(ue,r.prop).value;he&&Y.push(...Rp(he))}if(W!==void 0){const he=Y.map((Q,L)=>[Q,L]).filter(([Q])=>Object.keys(Q).includes("required"));if(he.length>0)for(const[Q,L]of he)Q.required!==W&&(Y[L]={...Q,required:W});else Y.push({required:W})}return Y}),M=$(()=>A.value.length>0),D=W=>A.value.filter(ue=>!ue.trigger||!W?!0:Array.isArray(ue.trigger)?ue.trigger.includes(W):ue.trigger===W).map(({trigger:ue,...he})=>he),R=$(()=>A.value.some(W=>W.required)),k=$(()=>{var W;return f.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),F=$(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),K=W=>{c.value=W},B=W=>{var Y,ue;const{errors:he,fields:Q}=W;(!he||!Q)&&console.error(W),K("error"),d.value=he?(ue=(Y=he==null?void 0:he[0])==null?void 0:Y.message)!=null?ue:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},N=()=>{K("success"),i==null||i.emit("validate",r.prop,!0,"")},j=async W=>{const Y=S.value;return new qu({[Y]:W}).validate({[Y]:E.value},{firstFields:!0}).then(()=>(N(),!0)).catch(he=>(B(he),Promise.reject(he)))},re=async(W,Y)=>{if(p||!r.prop)return!1;const ue=Le(Y);if(!M.value)return Y==null||Y(!1),!1;const he=D(W);return he.length===0?(Y==null||Y(!0),!0):(K("validating"),j(he).then(()=>(Y==null||Y(!0),!0)).catch(Q=>{const{fields:L}=Q;return Y==null||Y(!1,L),ue?!1:Promise.reject(L)}))},oe=()=>{K(""),d.value="",p=!1},_e=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const Y=mf(W,r.prop);p=!0,Y.value=eb(v),await Rt(),oe(),p=!1},Ee=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(Y=>Y!==W)};xe(()=>r.error,W=>{d.value=W||"",K(W?"error":"")},{immediate:!0}),xe(()=>r.validateStatus,W=>K(W||""));const J=fn({...Id(r),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Ee,removeInputId:V,resetField:_e,clearValidate:oe,validate:re});return Tt(go,J),Mt(()=>{r.prop&&(i==null||i.addField(J),v=eb(E.value))}),nr(()=>{i==null||i.removeField(J)}),t({size:o,validateMessage:d,validateState:c,validate:re,clearValidate:oe,resetField:_e}),(W,Y)=>{var ue;return U(),ye("div",{ref_key:"formItemRef",ref:h,class:le(P(y)),role:P(C)?"group":void 0,"aria-labelledby":P(C)?P(l):void 0},[ee(P(m8),{"is-auto-width":P(g).width==="auto","update-all":((ue=P(i))==null?void 0:ue.labelWidth)==="auto"},{default:Z(()=>[P(w)?(U(),me(nn(P(x)?"label":"div"),{key:0,id:P(l),for:P(x),class:le(P(s).e("label")),style:St(P(g))},{default:Z(()=>[Fe(W.$slots,"label",{label:P(F)},()=>[Nt(Me(P(F)),1)])]),_:3},8,["id","for","class","style"])):ke("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ae("div",{class:le(P(s).e("content")),style:St(P(m))},[Fe(W.$slots,"default"),ee(Qn,{name:`${P(s).namespace.value}-zoom-in-top`},{default:Z(()=>[P(k)?Fe(W.$slots,"error",{key:0,error:d.value},()=>[ae("div",{class:le(P(b))},Me(d.value),3)]):ke("v-if",!0)]),_:3},8,["name"])],6)],10,y8)}}});var KM=Xe(b8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const XM=hr(N6,{FormItem:KM}),ZM=la(KM);let w8=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let i=!1;switch(n.code){case Lt.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Lt.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Lt.tab:{gf(t,"mouseleave");break}case Lt.enter:case Lt.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},S8=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new w8(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Lt.down:{gf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Lt.up:{gf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Lt.tab:{gf(t.currentTarget,"mouseleave");break}case Lt.enter:case Lt.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},x8=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new S8(n,t)})}};const C8=ce({name:"ElMenuCollapseTransition",setup(){const e=Be("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Zo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){ss(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Il(r,e.m("collapse"))?(ss(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Zo(r,e.m("collapse"))):(Zo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),ss(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Zo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function T8(e,t,r,n,i,a){return U(),me(Qn,So({mode:"out-in"},e.listeners),{default:Z(()=>[Fe(e.$slots,"default")]),_:3},16)}var M8=Xe(C8,[["render",T8],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function QM(e,t){const r=$(()=>{let i=e.parent;const a=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&a.unshift(i.props.index),i=i.parent;return a});return{parentMenu:$(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function A8(e){return $(()=>{const r=e.backgroundColor;return r?new OM(r).shade(20).toString():""})}const JM=(e,t)=>{const r=Be("menu");return $(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":A8(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},E8=rt({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Wn},expandOpenIcon:{type:Wn},collapseCloseIcon:{type:Wn},collapseOpenIcon:{type:Wn}}),Uh="ElSubMenu";var Ey=ce({name:Uh,props:E8,setup(e,{slots:t,expose:r}){const n=dt(),{indexPath:i,parentMenu:a}=QM(n,$(()=>e.index)),o=Be("menu"),s=Be("sub-menu"),l=Oe("rootMenu");l||ta(Uh,"can not inject root menu");const u=Oe(`subMenu:${a.value.uid}`);u||ta(Uh,"can not inject sub menu");const c=H({}),f=H({});let d;const h=H(!1),v=H(),p=H(null),g=$(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=$(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:KT:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:uy),y=$(()=>u.level===0),_=$(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),b=$(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),S=$(()=>A.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),w=$(()=>l.openedMenus.includes(e.index)),x=$(()=>{let N=!1;return Object.values(c.value).forEach(j=>{j.active&&(N=!0)}),Object.values(f.value).forEach(j=>{j.active&&(N=!0)}),N}),C=$(()=>l.props.backgroundColor||""),T=$(()=>l.props.activeTextColor||""),E=$(()=>l.props.textColor||""),A=$(()=>l.props.mode),M=fn({index:e.index,indexPath:i,active:x}),D=$(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:x.value?l.props.activeTextColor?T.value:"":"transparent",color:x.value?T.value:E.value}),R=()=>{var N,j,re;return(re=(j=(N=p.value)==null?void 0:N.popperRef)==null?void 0:j.popperInstanceRef)==null?void 0:re.destroy()},k=N=>{N||R()},F=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:i.value,active:x.value})},K=(N,j=e.showTimeout)=>{var re;N.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Wp(()=>{l.openMenu(e.index,i.value)},j),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},B=(N=!1)=>{var j,re;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Wp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&N&&((j=n.parent)==null?void 0:j.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};xe(()=>l.props.collapse,N=>k(Boolean(N)));{const N=re=>{f.value[re.index]=re},j=re=>{delete f.value[re.index]};Tt(`subMenu:${n.uid}`,{addSubMenu:N,removeSubMenu:j,handleMouseleave:B,mouseInChild:h,level:u.level+1})}return r({opened:w}),Mt(()=>{l.addSubMenu(M),u.addSubMenu(M)}),nr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var N;const j=[(N=t.title)==null?void 0:N.call(t),Ce(lr,{class:s.e("icon-arrow"),style:{transform:w.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ze(m.value)?Ce(n.appContext.components[m.value]):Ce(m.value)})],re=JM(l.props,u.level+1),oe=l.isMenuPopup?Ce(Yu,{ref:p,visible:w.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:S.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var _e;return Ce("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Ee=>K(Ee,100),onMouseleave:()=>B(!0),onFocus:Ee=>K(Ee,100)},[Ce("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(_e=t.default)==null?void 0:_e.call(t)])])},default:()=>Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:F},j)}):Ce(yt,{},[Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:F},j),Ce(b6,{},{default:()=>{var _e;return qt(Ce("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(_e=t.default)==null?void 0:_e.call(t)]),[[mi,w.value]])}})]);return Ce("li",{class:[s.b(),s.is("active",x.value),s.is("opened",w.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:K,onMouseleave:()=>B(!0),onFocus:K},[oe])}}});const P8=rt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Pe(Array),default:()=>ja([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),jh=e=>Array.isArray(e)&&e.every(t=>ze(t)),L8={close:(e,t)=>ze(e)&&jh(t),open:(e,t)=>ze(e)&&jh(t),select:(e,t,r,n)=>ze(e)&&jh(t)&&Ke(r)&&(n===void 0||n instanceof Promise)};var D8=ce({name:"ElMenu",props:P8,emits:L8,setup(e,{emit:t,slots:r,expose:n}){const i=dt(),a=i.appContext.config.globalProperties.$router,o=H(),s=Be("menu"),l=Be("sub-menu"),u=H(-1),c=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=H(e.defaultActive),d=H({}),h=H({}),v=$(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=f.value&&d.value[f.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(M=>{const D=h.value[M];D&&g(M,D.indexPath)})},g=(E,A)=>{c.value.includes(E)||(e.uniqueOpened&&(c.value=c.value.filter(M=>A.includes(M))),c.value.push(E),t("open",E,A))},m=(E,A)=>{const M=c.value.indexOf(E);M!==-1&&c.value.splice(M,1),t("close",E,A)},y=({index:E,indexPath:A})=>{c.value.includes(E)?m(E,A):g(E,A)},_=E=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:A,indexPath:M}=E;if(!(A===void 0||M===void 0))if(e.router&&a){const D=E.route||A,R=a.push(D).then(k=>(k||(f.value=A),k));t("select",A,M,{index:A,indexPath:M,route:D},R)}else f.value=A,t("select",A,M,{index:A,indexPath:M})},b=E=>{const A=d.value,M=A[E]||f.value&&A[f.value]||A[e.defaultActive];M?f.value=M.index:f.value=E},S=()=>{var E,A;if(!o.value)return-1;const M=Array.from((A=(E=o.value)==null?void 0:E.childNodes)!=null?A:[]).filter(N=>N.nodeName!=="#text"||N.nodeValue),D=64,R=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),k=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-R-k;let K=0,B=0;return M.forEach((N,j)=>{K+=N.offsetWidth||0,K<=F-D&&(B=j+1)}),B===M.length?-1:B},w=(E,A=33.34)=>{let M;return()=>{M&&clearTimeout(M),M=setTimeout(()=>{E()},A)}};let x=!0;const C=()=>{const E=()=>{u.value=-1,Rt(()=>{u.value=S()})};x?E():w(E)(),x=!1};xe(()=>e.defaultActive,E=>{d.value[E]||(f.value=""),b(E)}),xe(()=>e.collapse,E=>{E&&(c.value=[])}),xe(d.value,p);let T;no(()=>{e.mode==="horizontal"&&e.ellipsis?T=ms(o,C).stop:T==null||T()});{const E=R=>{h.value[R.index]=R},A=R=>{delete h.value[R.index]};Tt("rootMenu",fn({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:R=>{d.value[R.index]=R},removeMenuItem:R=>{delete d.value[R.index]},addSubMenu:E,removeSubMenu:A,openMenu:g,closeMenu:m,handleMenuItemClick:_,handleSubMenuClick:y})),Tt(`subMenu:${i.uid}`,{addSubMenu:E,removeSubMenu:A,mouseInChild:H(!1),level:0})}return Mt(()=>{e.mode==="horizontal"&&new x8(i.vnode.el,s.namespace.value)}),n({open:A=>{const{indexPath:M}=h.value[A];M.forEach(D=>g(D,M))},close:m,handleResize:C}),()=>{var E,A;let M=(A=(E=r.default)==null?void 0:E.call(r))!=null?A:[];const D=[];if(e.mode==="horizontal"&&o.value){const F=yf(M),K=u.value===-1?F:F.slice(0,u.value),B=u.value===-1?[]:F.slice(u.value);B!=null&&B.length&&e.ellipsis&&(M=K,D.push(Ce(Ey,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ce(lr,{class:l.e("icon-more")},{default:()=>Ce(i3)}),default:()=>B})))}const R=JM(e,0),k=Ce("ul",{key:String(e.collapse),role:"menubar",ref:o,style:R.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...M,...D]);return e.collapseTransition&&e.mode==="vertical"?Ce(M8,()=>k):k}}});const I8=rt({index:{type:Pe([String,null]),default:null},route:{type:Pe([String,Object])},disabled:Boolean}),O8={click:e=>ze(e.index)&&Array.isArray(e.indexPath)},Yh="ElMenuItem",R8=ce({name:Yh,components:{ElTooltip:Yu},props:I8,emits:O8,setup(e,{emit:t}){const r=dt(),n=Oe("rootMenu"),i=Be("menu"),a=Be("menu-item");n||ta(Yh,"can not inject root menu");const{parentMenu:o,indexPath:s}=QM(r,Tn(e,"index")),l=Oe(`subMenu:${o.value.uid}`);l||ta(Yh,"can not inject sub menu");const u=$(()=>e.index===n.activeIndex),c=fn({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return Mt(()=>{l.addSubMenu(c),n.addMenuItem(c)}),nr(()=>{l.removeSubMenu(c),n.removeMenuItem(c)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:f}}});function k8(e,t,r,n,i,a){const o=_r("el-tooltip");return U(),ye("li",{class:le([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(U(),me(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[Fe(e.$slots,"title")]),default:Z(()=>[ae("div",{class:le(e.nsMenu.be("tooltip","trigger"))},[Fe(e.$slots,"default")],2)]),_:3},8,["effect"])):(U(),ye(yt,{key:1},[Fe(e.$slots,"default"),Fe(e.$slots,"title")],64))],2)}var eA=Xe(R8,[["render",k8],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const N8={title:String},B8="ElMenuItemGroup",F8=ce({name:B8,props:N8,setup(){return{ns:Be("menu-item-group")}}});function $8(e,t,r,n,i,a){return U(),ye("li",{class:le(e.ns.b())},[ae("div",{class:le(e.ns.e("title"))},[e.$slots.title?Fe(e.$slots,"title",{key:1}):(U(),ye(yt,{key:0},[Nt(Me(e.title),1)],64))],2),ae("ul",null,[Fe(e.$slots,"default")])],2)}var tA=Xe(F8,[["render",$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const H8=hr(D8,{MenuItem:eA,MenuItemGroup:tA,SubMenu:Ey}),z8=la(eA);la(tA);const W8=la(Ey),V8=rt({trigger:pu.trigger,placement:Vh.placement,disabled:pu.disabled,visible:Kr.visible,transition:Kr.transition,popperOptions:Vh.popperOptions,tabindex:Vh.tabindex,content:Kr.content,popperStyle:Kr.popperStyle,popperClass:Kr.popperClass,enterable:{...Kr.enterable,default:!0},effect:{...Kr.effect,default:"light"},teleported:Kr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),G8={"update:visible":e=>Br(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},U8="onUpdate:visible",j8=ce({name:"ElPopover"}),Y8=ce({...j8,props:V8,emits:G8,setup(e,{expose:t,emit:r}){const n=e,i=$(()=>n[U8]),a=Be("popover"),o=H(),s=$(()=>{var g;return(g=P(o))==null?void 0:g.popperRef}),l=$(()=>[{width:vo(n.width)},n.popperStyle]),u=$(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),c=$(()=>n.transition===`${a.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(U(),me(P(Yu),So({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":P(u),"popper-style":P(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":P(c),"onUpdate:visible":P(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:Z(()=>[g.title?(U(),ye("div",{key:0,class:le(P(a).e("title")),role:"title"},Me(g.title),3)):ke("v-if",!0),Fe(g.$slots,"default",{},()=>[Nt(Me(g.content),1)])]),default:Z(()=>[g.$slots.reference?Fe(g.$slots,"reference",{key:0}):ke("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var q8=Xe(Y8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const s1=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var K8={mounted(e,t){s1(e,t)},updated(e,t){s1(e,t)}};const X8="popover",Z8=y3(K8,X8),Q8=hr(q8,{directive:Z8}),J8=["start","center","end","space-around","space-between","space-evenly"],eW=["top","middle","bottom"],tW=rt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:J8,default:"start"},align:{type:String,values:eW,default:"top"}}),rW=ce({name:"ElRow"}),nW=ce({...rW,props:tW,setup(e){const t=e,r=Be("row"),n=$(()=>t.gutter);Tt(nM,{gutter:n});const i=$(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=$(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(U(),me(nn(o.tag),{class:le(P(a)),style:St(P(i))},{default:Z(()=>[Fe(o.$slots,"default")]),_:3},8,["class","style"]))}});var iW=Xe(nW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const rA=hr(iW),aW=rt({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Wn},inactiveIcon:{type:Wn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Pe(Function)},size:{type:String,validator:_3},tabindex:{type:[String,Number]}}),oW={[po]:e=>Br(e)||ze(e)||Yt(e),[jp]:e=>Br(e)||ze(e)||Yt(e),[Yp]:e=>Br(e)||ze(e)||Yt(e)},sW=["onClick"],lW=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],uW=["aria-hidden"],cW=["aria-hidden"],fW=["aria-hidden"],fg="ElSwitch",dW=ce({name:fg}),hW=ce({...dW,props:aW,emits:oW,setup(e,{expose:t,emit:r}){const n=e,i=dt(),{formItem:a}=Gu(),o=ra(),s=Be("switch");sM({from:'"value"',replacement:'"model-value" or "v-model"',scope:fg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},$(()=>{var S;return!!((S=i.vnode.props)!=null&&S.value)}));const{inputId:l}=py(n,{formItemContext:a}),u=Xd($(()=>n.loading)),c=H(n.modelValue!==!1),f=H(),d=H(),h=$(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",g.value)]),v=$(()=>({width:vo(n.width)}));xe(()=>n.modelValue,()=>{c.value=!0}),xe(()=>n.value,()=>{c.value=!1});const p=$(()=>c.value?n.modelValue:n.value),g=$(()=>p.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(p.value)||(r(po,n.inactiveValue),r(jp,n.inactiveValue),r(Yp,n.inactiveValue)),xe(g,S=>{var w;f.value.checked=S,n.validateEvent&&((w=a==null?void 0:a.validate)==null||w.call(a,"change").catch(x=>void 0))});const m=()=>{const S=g.value?n.inactiveValue:n.activeValue;r(po,S),r(jp,S),r(Yp,S),Rt(()=>{f.value.checked=g.value})},y=()=>{if(u.value)return;const{beforeChange:S}=n;if(!S){m();return}const w=S();[Hf(w),Br(w)].includes(!0)||ta(fg,"beforeChange must return type `Promise<boolean>` or `boolean`"),Hf(w)?w.then(C=>{C&&m()}).catch(C=>{}):w&&m()},_=$(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),b=()=>{var S,w;(w=(S=f.value)==null?void 0:S.focus)==null||w.call(S)};return Mt(()=>{f.value.checked=g.value}),t({focus:b,checked:g}),(S,w)=>(U(),ye("div",{class:le(P(h)),style:St(P(_)),onClick:jf(y,["prevent"])},[ae("input",{id:P(l),ref_key:"input",ref:f,class:le(P(s).e("input")),type:"checkbox",role:"switch","aria-checked":P(g),"aria-disabled":P(u),name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:P(u),tabindex:S.tabindex,onChange:m,onKeydown:xO(y,["enter"])},null,42,lW),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(U(),ye("span",{key:0,class:le([P(s).e("label"),P(s).em("label","left"),P(s).is("active",!P(g))])},[S.inactiveIcon?(U(),me(P(lr),{key:0},{default:Z(()=>[(U(),me(nn(S.inactiveIcon)))]),_:1})):ke("v-if",!0),!S.inactiveIcon&&S.inactiveText?(U(),ye("span",{key:1,"aria-hidden":P(g)},Me(S.inactiveText),9,uW)):ke("v-if",!0)],2)):ke("v-if",!0),ae("span",{ref_key:"core",ref:d,class:le(P(s).e("core")),style:St(P(v))},[S.inlinePrompt?(U(),ye("div",{key:0,class:le(P(s).e("inner"))},[S.activeIcon||S.inactiveIcon?(U(),me(P(lr),{key:0,class:le(P(s).is("icon"))},{default:Z(()=>[(U(),me(nn(P(g)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(U(),ye("span",{key:1,class:le(P(s).is("text")),"aria-hidden":!P(g)},Me(P(g)?S.activeText:S.inactiveText),11,cW)):ke("v-if",!0)],2)):ke("v-if",!0),ae("div",{class:le(P(s).e("action"))},[S.loading?(U(),me(P(lr),{key:0,class:le(P(s).is("loading"))},{default:Z(()=>[ee(P(cy))]),_:1},8,["class"])):ke("v-if",!0)],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(U(),ye("span",{key:1,class:le([P(s).e("label"),P(s).em("label","right"),P(s).is("active",P(g))])},[S.activeIcon?(U(),me(P(lr),{key:0},{default:Z(()=>[(U(),me(nn(S.activeIcon)))]),_:1})):ke("v-if",!0),!S.activeIcon&&S.activeText?(U(),ye("span",{key:1,"aria-hidden":!P(g)},Me(S.activeText),9,fW)):ke("v-if",!0)],2)):ke("v-if",!0)],14,sW))}});var vW=Xe(hW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const pW=hr(vW);/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var gW=/["'&<>]/,mW=yW;function yW(e){var t=""+e,r=gW.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&#39;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=n}return o!==a?i+t.substring(o,a):i}const qh=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},_W=function(e,t,r,n,i){if(!t&&!n&&(!i||Array.isArray(i)&&!i.length))return e;typeof r=="string"?r=r==="descending"?-1:1:r=r&&r<0?-1:1;const a=n?null:function(s,l){return i?(Array.isArray(i)||(i=[i]),i.map(u=>typeof u=="string"?fu(s,u):u(s,l,e))):(t!=="$key"&&Ke(s)&&"$value"in s&&(s=s.$value),[Ke(s)?fu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:a?a(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},nA=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},bW=function(e,t){let r=null;for(let n=0;n<e.columns.length;n++){const i=e.columns[n];if(i.columnKey===t){r=i;break}}return r||ta("ElTable",`No column matching with column-key: ${t}`),r},l1=function(e,t,r){const n=(t.className||"").match(new RegExp(`${r}-table_[^\\s]+`,"gm"));return n?nA(e,n[0]):null},Ut=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const i of r)n=n[i];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Qa=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Ut(n,t)]={row:n,index:i}}),r};function wW(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(Ve(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function Py(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function iA(e){return e===""||e!==void 0&&(e=Py(e),Number.isNaN(e)&&(e=80)),e}function SW(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function xW(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Nl(e,t,r){let n=!1;const i=e.indexOf(t),a=i!==-1,o=s=>{s==="add"?e.push(t):e.splice(i,1),n=!0,be(t.children)&&t.children.forEach(l=>{Nl(e,l,r??!a)})};return Br(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function CW(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const c=u[r];i(c)||a(u,c,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let li;function TW(e,t,r,n){n=FT({enterable:!0,showArrow:!0},n);const{nextZIndex:i}=Ty(),a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=n.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",n.popperClass||""].join(" "),r=mW(r),m.innerHTML=r,m.style.zIndex=String(i()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){c&&c.update()}li==null||li(),li=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",li),li=void 0}catch{}};let c=null,f=u,d=li;n.enterable&&({onOpen:f,onClose:d}=xM({showAfter:n.showAfter,hideAfter:n.hideAfter,open:u,close:li}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(n.offset&&v.push({name:"offset",options:{offset:[0,n.offset]}}),n.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=n.popperOptions||{};return c=wM(t,h,{placement:n.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",li),c}function aA(e){return e.children?c$(e.children,aA):[e]}function u1(e,t){return e+t.colSpan}const oA=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=aA(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(u1,0),a=i+l.reduce(u1,0)-1}else i=e;let s;switch(t){case"left":a<r.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a<r.states.fixedLeafColumnsLength.value?s="left":i>=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Ly=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=oA(t,r,n,i);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function c1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Dy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=oA(e,t,r,n);if(!i)return;const s={},l=i==="left",u=r.states.columns.value;return l?s.left=u.slice(0,a).reduce(c1,0):s.right=u.slice(o+1).reverse().reduce(c1,0),s},Ts=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function MW(e){const t=dt(),r=H(!1),n=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=Qa(n.value,u);n.value=l.reduce((f,d)=>{const h=Ut(d,u);return c[h]&&f.push(d),f},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Nl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=Qa(u,c);n.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!Qa(n.value,u)[Ut(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function AW(e){const t=dt(),r=H(null),n=H(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(P(c)||[]).find(h=>Ut(h,f.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=n.value;if(!c.includes(f)&&f){if(u){const d=Ut(f,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function EW(e){const t=H([]),r=H({}),n=H(16),i=H(!1),a=H({}),o=H("hasChildren"),s=H("children"),l=dt(),u=$(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=$(()=>{const m=e.rowKey.value,y=Object.keys(a.value),_={};return y.length&&y.forEach(b=>{if(a.value[b].length){const S={children:[]};a.value[b].forEach(w=>{const x=Ut(w,m);S.children.push(x),w[o.value]&&!_[x]&&(_[x]={children:[]})}),_[b]=S}}),_}),f=m=>{const y=e.rowKey.value,_={};return CW(m,(b,S,w)=>{const x=Ut(b,y);Array.isArray(S)?_[x]={children:S.map(C=>Ut(C,y)),level:w}:i.value&&(_[x]={children:[],lazy:!0,level:w})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,S=c.value,w=Object.keys(b),x={};if(w.length){const C=P(r),T=[],E=(M,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||M!=null&&M.expanded);{const R=y||t.value&&t.value.includes(D);return!!(M!=null&&M.expanded||R)}};w.forEach(M=>{const D=C[M],R={...b[M]};if(R.expanded=E(D,M),R.lazy){const{loaded:k=!1,loading:F=!1}=D||{};R.loaded=!!k,R.loading=!!F,T.push(M)}x[M]=R});const A=Object.keys(S);i.value&&A.length&&T.length&&A.forEach(M=>{const D=C[M],R=S[M].children;if(T.includes(M)){if(x[M].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[M].children=R}else{const{loaded:k=!1,loading:F=!1}=D||{};x[M]={lazy:!0,loaded:!!k,loading:!!F,expanded:E(D,M),children:R,level:""}}})}r.value=x,(_=l.store)==null||_.updateTableScrollY()};xe(()=>t.value,()=>{d(!0)}),xe(()=>u.value,()=>{d()}),xe(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Ut(m,_),S=b&&r.value[b];if(b&&S&&"expanded"in S){const w=S.expanded;y=typeof y>"u"?!S.expanded:y,r.value[b].expanded=y,w!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ut(m,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?g(m,_,b):v(m,void 0)},g=(m,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(m,_,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,S.length&&(a.value[y]=S),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const PW=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:_W(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},Tf=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,Tf(r.children)):t.push(r)}),t};function LW(){var e;const t=dt(),{size:r}=Id((e=t.proxy)==null?void 0:e.$props),n=H(null),i=H([]),a=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),c=H([]),f=H([]),d=H([]),h=H([]),v=H([]),p=H(0),g=H(0),m=H(0),y=H(!1),_=H([]),b=H(!1),S=H(!1),w=H(null),x=H({}),C=H(null),T=H(null),E=H(null),A=H(null),M=H(null);xe(i,()=>t.state&&F(!1),{deep:!0});const D=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},R=fe=>{var Te;(Te=fe.children)==null||Te.forEach(He=>{He.fixed=fe.fixed,R(He)})},k=()=>{s.value.forEach(Ze=>{R(Ze)}),c.value=s.value.filter(Ze=>Ze.fixed===!0||Ze.fixed==="left"),f.value=s.value.filter(Ze=>Ze.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const fe=s.value.filter(Ze=>!Ze.fixed);l.value=[].concat(c.value).concat(fe).concat(f.value);const Te=Tf(fe),He=Tf(c.value),We=Tf(f.value);p.value=Te.length,g.value=He.length,m.value=We.length,u.value=[].concat(He).concat(Te).concat(We),o.value=c.value.length>0||f.value.length>0},F=(fe,Te=!1)=>{fe&&k(),Te?t.state.doLayout():t.state.debouncedUpdateLayout()},K=fe=>_.value.includes(fe),B=()=>{y.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},N=()=>{let fe;if(n.value){fe=[];const Te=Qa(_.value,n.value),He=Qa(i.value,n.value);for(const We in Te)Ve(Te,We)&&!He[We]&&fe.push(Te[We].row)}else fe=_.value.filter(Te=>!i.value.includes(Te));if(fe.length){const Te=_.value.filter(He=>!fe.includes(He));_.value=Te,t.emit("selection-change",Te.slice())}},j=()=>(_.value||[]).slice(),re=(fe,Te=void 0,He=!0)=>{if(Nl(_.value,fe,Te)){const Ze=(_.value||[]).slice();He&&t.emit("select",Ze,fe),t.emit("selection-change",Ze)}},oe=()=>{var fe,Te;const He=S.value?!y.value:!(y.value||_.value.length);y.value=He;let We=!1,Ze=0;const kt=(Te=(fe=t==null?void 0:t.store)==null?void 0:fe.states)==null?void 0:Te.rowKey.value;i.value.forEach((ht,Wt)=>{const Wr=Wt+Ze;w.value?w.value.call(null,ht,Wr)&&Nl(_.value,ht,He)&&(We=!0):Nl(_.value,ht,He)&&(We=!0),Ze+=V(Ut(ht,kt))}),We&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},_e=()=>{const fe=Qa(_.value,n.value);i.value.forEach(Te=>{const He=Ut(Te,n.value),We=fe[He];We&&(_.value[We.index]=Te)})},Ee=()=>{var fe,Te,He;if(((fe=i.value)==null?void 0:fe.length)===0){y.value=!1;return}let We;n.value&&(We=Qa(_.value,n.value));const Ze=function(Wr){return We?!!We[Ut(Wr,n.value)]:_.value.includes(Wr)};let kt=!0,ht=0,Wt=0;for(let Wr=0,UL=(i.value||[]).length;Wr<UL;Wr++){const jL=(He=(Te=t==null?void 0:t.store)==null?void 0:Te.states)==null?void 0:He.rowKey.value,YL=Wr+Wt,Mh=i.value[Wr],qL=w.value&&w.value.call(null,Mh,YL);if(Ze(Mh))ht++;else if(!w.value||qL){kt=!1;break}Wt+=V(Ut(Mh,jL))}ht===0&&(kt=!1),y.value=kt},V=fe=>{var Te;if(!t||!t.store)return 0;const{treeData:He}=t.store.states;let We=0;const Ze=(Te=He.value[fe])==null?void 0:Te.children;return Ze&&(We+=Ze.length,Ze.forEach(kt=>{We+=V(kt)})),We},J=(fe,Te)=>{Array.isArray(fe)||(fe=[fe]);const He={};return fe.forEach(We=>{x.value[We.id]=Te,He[We.columnKey||We.id]=Te}),He},W=(fe,Te,He)=>{T.value&&T.value!==fe&&(T.value.order=null),T.value=fe,E.value=Te,A.value=He},Y=()=>{let fe=P(a);Object.keys(x.value).forEach(Te=>{const He=x.value[Te];if(!He||He.length===0)return;const We=nA({columns:u.value},Te);We&&We.filterMethod&&(fe=fe.filter(Ze=>He.some(kt=>We.filterMethod.call(null,kt,Ze,We))))}),C.value=fe},ue=()=>{i.value=PW(C.value,{sortingColumn:T.value,sortProp:E.value,sortOrder:A.value})},he=(fe=void 0)=>{fe&&fe.filter||Y(),ue()},Q=fe=>{const{tableHeaderRef:Te}=t.refs;if(!Te)return;const He=Object.assign({},Te.filterPanels),We=Object.keys(He);if(We.length)if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const Ze=fe.map(kt=>bW({columns:u.value},kt));We.forEach(kt=>{const ht=Ze.find(Wt=>Wt.id===kt);ht&&(ht.filteredValue=[])}),t.store.commit("filterChange",{column:Ze,values:[],silent:!0,multi:!0})}else We.forEach(Ze=>{const kt=u.value.find(ht=>ht.id===Ze);kt&&(kt.filteredValue=[])}),x.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},L=()=>{T.value&&(W(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:z,updateExpandRows:G,states:q,isRowExpanded:ne}=MW({data:i,rowKey:n}),{updateTreeExpandKeys:de,toggleTreeExpansion:te,updateTreeData:ie,loadOrToggle:X,states:we}=EW({data:i,rowKey:n}),{updateCurrentRowData:ve,updateCurrentRow:Se,setCurrentRowKey:Ie,states:$e}=AW({data:i,rowKey:n});return{assertRowKey:D,updateColumns:k,scheduleLayout:F,isSelected:K,clearSelection:B,cleanSelection:N,getSelectionRows:j,toggleRowSelection:re,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:_e,updateAllSelected:Ee,updateFilters:J,updateCurrentRow:Se,updateSort:W,execFilter:Y,execSort:ue,execQuery:he,clearFilter:Q,clearSort:L,toggleRowExpansion:z,setExpandRowKeysAdapter:fe=>{I(fe),de(fe)},setCurrentRowKey:Ie,toggleRowExpansionAdapter:(fe,Te)=>{u.value.some(({type:We})=>We==="expand")?z(fe,Te):te(fe,Te)},isRowExpanded:ne,updateExpandRows:G,updateCurrentRowData:ve,loadOrToggle:X,updateTreeData:ie,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:p,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:m,isAllSelected:y,selection:_,reserveSelection:b,selectOnIndeterminate:S,selectable:w,filters:x,filteredData:C,sortingColumn:T,sortProp:E,sortOrder:A,hoverRow:M,...q,...we,...$e}}}function dg(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=dg(r.children,t)),r)})}function sA(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&sA(t.children)}),e.sort((t,r)=>t.no-r.no)}function DW(){const e=dt(),t=LW();return{ns:Be("table"),...t,mutations:{setData(o,s){const l=P(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),P(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l){const u=P(o._columns);let c=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),c=dg(u,l)):(u.push(s),c=u),sA(c),o._columns.value=c,s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(o,s,l){const u=P(o._columns)||[];if(l)l.children.splice(l.children.findIndex(c=>c.id===s.id),1),Rt(()=>{var c;((c=l.children)==null?void 0:c.length)===0&&delete l.children}),o._columns.value=dg(u,l);else{const c=u.indexOf(s);c>-1&&(u.splice(c,1),o._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=P(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=P(l),d=P(u),h=P(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Rt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Bl={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function IW(e,t){if(!e)throw new Error("Table is required.");const r=DW();return r.toggleAllSelection=Xf(r._toggleAllSelection,10),Object.keys(Bl).forEach(n=>{lA(uA(t,n),n,r)}),OW(r,t),r}function OW(e,t){Object.keys(Bl).forEach(r=>{xe(()=>uA(t,r),n=>{lA(n,r,e)})})}function lA(e,t,r){let n=e,i=Bl[t];typeof Bl[t]=="object"&&(i=i.key,n=n||Bl[t].default),r.states[i].value=n}function uA(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(i=>{n=n[i]}),n}else return e[t]}class RW{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const r in t)Ve(t,r)&&(xt(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let n=!0;const i=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,i!==n}return!1}setHeight(t,r="height"){if(!Ot)return;const n=this.table.vnode.el;if(t=SW(t),this.height.value=Number(t),!n&&(t||t===0))return Rt(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Ot)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const i=this.getFlattenColumns(),a=i.filter(l=>typeof l.width!="number");if(i.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),a.length>0&&t){if(i.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+l;else{const u=a.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;a.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),a[0].realWidth=Number(a[0].minWidth||80)+l-f}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:kW}=Cs,NW=ce({name:"ElTableFilterPanel",components:{ElCheckbox:Cs,ElCheckboxGroup:kW,ElScrollbar:TM,ElTooltip:Yu,ElIcon:lr,ArrowDown:KT,ArrowUp:I5},directives:{ClickOutside:kz},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=dt(),{t:r}=uM(),n=Be("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=H(!1),o=H(null),s=$(()=>e.column&&e.column.filters),l=$({get:()=>{var b;return(((b=e.column)==null?void 0:b.filteredValue)||[])[0]},set:b=>{u.value&&(typeof b<"u"&&b!==null?u.value.splice(0,1,b):u.value.splice(0,1))}}),u=$({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),c=$(()=>e.column?e.column.filterMultiple:!0),f=b=>b.value===l.value,d=()=>{a.value=!1},h=b=>{b.stopPropagation(),a.value=!a.value},v=()=>{a.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=b=>{l.value=b,y(typeof b<"u"&&b!==null?u.value:[]),d()},y=b=>{e.store.commit("filterChange",{column:e.column,values:b}),e.store.updateAllSelected()};xe(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=$(()=>{var b,S;return(S=(b=o.value)==null?void 0:b.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:a,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),BW={key:0},FW=["disabled"],$W=["label","onClick"];function HW(e,t,r,n,i,a){const o=_r("el-checkbox"),s=_r("el-checkbox-group"),l=_r("el-scrollbar"),u=_r("arrow-up"),c=_r("arrow-down"),f=_r("el-icon"),d=_r("el-tooltip"),h=Hm("click-outside");return U(),me(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Z(()=>[e.multiple?(U(),ye("div",BW,[ae("div",{class:le(e.ns.e("content"))},[ee(l,{"wrap-class":e.ns.e("wrap")},{default:Z(()=>[ee(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:le(e.ns.e("checkbox-group"))},{default:Z(()=>[(U(!0),ye(yt,null,r_(e.filters,v=>(U(),me(o,{key:v.value,label:v.value},{default:Z(()=>[Nt(Me(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ae("div",{class:le(e.ns.e("bottom"))},[ae("button",{class:le({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},Me(e.t("el.table.confirmFilter")),11,FW),ae("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Me(e.t("el.table.resetFilter")),1)],2)])):(U(),ye("ul",{key:1,class:le(e.ns.e("list"))},[ae("li",{class:le([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},Me(e.t("el.table.clearFilter")),3),(U(!0),ye(yt,null,r_(e.filters,v=>(U(),ye("li",{key:v.value,class:le([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Me(v.text),11,$W))),128))],2))]),default:Z(()=>[qt((U(),ye("span",{class:le([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[ee(f,null,{default:Z(()=>[e.column.filterOpened?(U(),me(u,{key:0})):(U(),me(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var zW=Xe(NW,[["render",HW],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function cA(e){const t=dt();Bd(()=>{r.value.addObserver(t)}),Mt(()=>{n(r.value),i(r.value)}),Fd(()=>{n(r.value),i(r.value)}),Nu(()=>{r.value.removeObserver(t)});const r=$(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=a.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},i=a=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",a.scrollY.value?a.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=a.scrollY.value?`${a.gutterWidth}px`:"0",d.style.display=a.scrollY.value?"":"none"}};return{tableLayout:r.value,onColumnsChange:n,onScrollableChange:i}}const ei=Symbol("ElTable");function WW(e,t){const r=dt(),n=Oe(ei),i=p=>{p.stopPropagation()},a=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&i(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),c=(p,g)=>{if(Ot&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${g.id}`),S=b.getBoundingClientRect(),w=S.left-_+30;Zo(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:S.right-_,startColumnLeft:S.left-_,tableLeft:_};const x=m==null?void 0:m.refs.resizeProxy;x.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=E=>{const A=E.clientX-u.value.startMouseLeft,M=u.value.startLeft+A;x.style.left=`${Math.max(w,M)}px`},T=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,D=Number.parseInt(x.style.left,10)-E;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,A-E,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ss(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)}},f=(p,g)=>{var m;if(g.children&&g.children.length>0)return;const y=(m=p.target)==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",Il(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Il(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Ot&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),b=(y=p.target)==null?void 0:y.closest("th");if(b&&Il(b,"noclick")){ss(b,"noclick");return}if(!g.sortable)return;const S=e.store.states;let w=S.sortProp.value,x;const C=S.sortingColumn.value;(C!==g||C===g&&C.order===null)&&(C&&(C.order=null),S.sortingColumn.value=g,w=g.property),_?x=g.order=_:x=g.order=null,S.sortProp.value=w,S.sortOrder.value=x,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function VW(e){const t=Oe(ei),r=Be("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=Dy(l,c.fixed,e.store,u);return Ts(h,"left"),Ts(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=Ly(r.b(),l,c.fixed,e.store,u),d=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||d.push("is-leaf"),c.sortable&&d.push("is-sortable");const h=t==null?void 0:t.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),d.push(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const fA=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,fA(r.children))):t.push(r)}),t},GW=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t<a.level&&(t=a.level)),a.children){let s=0;a.children.forEach(l=>{r(l,a),s+=l.colSpan}),a.colSpan=s}else a.colSpan=1};e.forEach(a=>{a.level=1,r(a,void 0)});const n=[];for(let a=0;a<t;a++)n.push([]);return fA(e).forEach(a=>{a.children?(a.rowSpan=1,a.children.forEach(o=>o.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function UW(e){const t=Oe(ei),r=$(()=>GW(e.store.states.originColumns.value));return{isGroup:$(()=>{const a=r.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var jW=ce({name:"ElTableHeader",components:{ElCheckbox:Cs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=dt(),n=Oe(ei),i=Be("table"),a=H({}),{onColumnsChange:o,onScrollableChange:s}=cA(n);Mt(async()=>{await Rt(),await Rt();const{prop:w,order:x}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=WW(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=VW(e),{isGroup:_,toggleAllSelection:b,columnRows:S}=UW(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:S,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return Ce("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>Ce("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),Ce("th",{class:i(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>c(b,y),onMouseout:d},[Ce("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&Ce("span",{onClick:b=>f(b,y),class:"caret-wrapper"},[Ce("i",{onClick:b=>f(b,y,"ascending"),class:"sort-caret ascending"}),Ce("i",{onClick:b=>f(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Ce(zW,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,S)=>{y[b]=S}})])]))))))}});function YW(e){const t=Oe(ei),r=H(""),n=H(Ce("div")),i=(d,h,v)=>{var p;const g=t,m=qh(d);let y;const _=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;m&&(y=l1({columns:e.store.states.columns.value},m,_),y&&(g==null||g.emit(`cell-${v}`,h,y,m,d))),g==null||g.emit(`row-${v}`,h,y,d)},a=(d,h)=>{i(d,h,"dblclick")},o=(d,h)=>{e.store.commit("setCurrentRow",h),i(d,h,"click")},s=(d,h)=>{i(d,h,"contextmenu")},l=Xf(d=>{e.store.commit("setHoverRow",d)},30),u=Xf(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,h,v)=>{var p;const g=t,m=qh(d),y=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;if(m){const x=l1({columns:e.store.states.columns.value},m,y),C=g.hoverState={cell:m,column:x,row:h};g==null||g.emit("cell-mouse-enter",C.row,C.column,C.cell,d)}if(!v)return;const _=d.target.querySelector(".cell");if(!(Il(_,`${y}-tooltip`)&&_.childNodes.length))return;const b=document.createRange();b.setStart(_,0),b.setEnd(_,_.childNodes.length);const S=Math.round(b.getBoundingClientRect().width),w=(Number.parseInt(bb(_,"paddingLeft"),10)||0)+(Number.parseInt(bb(_,"paddingRight"),10)||0);(S+w>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&TW(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,v)},handleCellMouseLeave:d=>{if(!qh(d))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,d)},tooltipContent:r,tooltipTrigger:n}}function qW(e){const t=Oe(ei),r=Be("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(r.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=Dy(c,e==null?void 0:e.fixed,e.store);return Ts(p,"left"),Ts(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=Ly(r.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),p=[d.id,d.align,d.className,...v],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),p.push(r.e("cell")),p.filter(m=>Boolean(m)).join(" ")},getSpan:(u,c,f,d)=>{let h=1,v=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function KW(e){const t=Oe(ei),r=Be("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=YW(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=qW(e),y=$(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,C)=>{const T=t.props.rowKey;return T?Ut(x,T):C},b=(x,C,T,E=!1)=>{const{tooltipEffect:A,tooltipOptions:M,store:D}=e,{indent:R,columns:k}=D.states,F=h(x,C);let K=!0;return T&&(F.push(r.em("row",`level-${T.level}`)),K=T.display),Ce("tr",{style:[K?null:{display:"none"},d(x,C)],class:F,key:_(x,C),onDblclick:N=>n(N,x),onClick:N=>i(N,x),onContextmenu:N=>a(N,x),onMouseenter:()=>o(C),onMouseleave:s},k.value.map((N,j)=>{const{rowspan:re,colspan:oe}=g(x,N,C,j);if(!re||!oe)return null;const _e={...N};_e.realWidth=m(k.value,oe,j);const Ee={store:e.store,_self:e.context||t,column:_e,row:x,$index:C,cellIndex:j,expanded:E};j===y.value&&T&&(Ee.treeNode={indent:T.level*R.value,level:T.level},typeof T.expanded=="boolean"&&(Ee.treeNode.expanded=T.expanded,"loading"in T&&(Ee.treeNode.loading=T.loading),"noLazyChildren"in T&&(Ee.treeNode.noLazyChildren=T.noLazyChildren)));const V=`${C},${j}`,J=_e.columnKey||_e.rawColumnKey||"",W=S(j,N,Ee),Y=N.showOverflowTooltip&&FT({effect:A},M,N.showOverflowTooltip);return Ce("td",{style:v(C,j,x,N),class:p(C,j,x,N,oe-1),key:`${J}${V}`,rowspan:re,colspan:oe,onMouseenter:ue=>l(ue,x,Y),onMouseleave:u},[W])}))},S=(x,C,T)=>C.renderCell(T);return{wrappedRowRender:(x,C)=>{const T=e.store,{isRowExpanded:E,assertRowKey:A}=T,{treeData:M,lazyTreeNodeMap:D,childrenColumnName:R,rowKey:k}=T.states,F=T.states.columns.value;if(F.some(({type:B})=>B==="expand")){const B=E(x),N=b(x,C,void 0,B),j=t.renderExpanded;return B?j?[[N,Ce("tr",{key:`expanded-row__${N.key}`},[Ce("td",{colspan:F.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[j({row:x,$index:C,store:T,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(M.value).length){A();const B=Ut(x,k.value);let N=M.value[B],j=null;N&&(j={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(j.noLazyChildren=!(N.children&&N.children.length)),j.loading=N.loading));const re=[b(x,C,j)];if(N){let oe=0;const _e=(V,J)=>{V&&V.length&&J&&V.forEach(W=>{const Y={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ue=Ut(W,k.value);if(ue==null)throw new Error("For nested data item, row-key is required.");if(N={...M.value[ue]},N&&(Y.expanded=N.expanded,N.level=N.level||Y.level,N.display=!!(N.expanded&&Y.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(Y.noLazyChildren=!(N.children&&N.children.length)),Y.loading=N.loading)),oe++,re.push(b(W,C+oe,Y)),N){const he=D.value[ue]||W[R.value];_e(he,N)}})};N.display=!0;const Ee=D.value[B]||x[R.value];_e(Ee,N)}return re}else return b(x,C,void 0)},tooltipContent:c,tooltipTrigger:f}}const XW={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var ZW=ce({name:"ElTableBody",props:XW,setup(e){const t=dt(),r=Oe(ei),n=Be("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=KW(e),{onColumnsChange:s,onScrollableChange:l}=cA(r);return xe(e.store.states.hoverRow,(u,c)=>{if(!e.store.states.isComplex.value||!Ot)return;let f=window.requestAnimationFrame;f||(f=d=>window.setTimeout(d,16)),f(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${n.e("row")}`)),v=h[c],p=h[u];v&&ss(v,"hover-row"),p&&Zo(p,"hover-row")})}),Nu(()=>{var u;(u=li)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return Ce("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function Iy(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(i=>i.width===void 0)&&(r=[]);const n=i=>{const a={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?a.style={width:`${i.width}px`}:a.name=i.id,a};return Ce("colgroup",{},r.map(i=>Ce("col",n(i))))}Iy.props=["columns","tableLayout"];function QW(){const e=Oe(ei),t=e==null?void 0:e.store,r=$(()=>t.states.fixedLeafColumnsLength.value),n=$(()=>t.states.rightFixedColumns.value.length),i=$(()=>t.states.columns.value.length),a=$(()=>t.states.fixedColumns.value.length),o=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function JW(e){const{columns:t}=QW(),r=Be("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Ly(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(a,o)=>{const s=Dy(o,a.fixed,e.store);return Ts(s,"left"),Ts(s,"right"),s},columns:t}}var eV=ce({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=JW(e);return{ns:Be("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i,ns:a}=this,o=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=i;return}const c=o.map(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),Ce("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Iy({columns:e}),Ce("tbody",[Ce("tr",{},[...e.map((l,u)=>Ce("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[Ce("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function tV(e){return{setCurrentRow:c=>{e.commit("setCurrentRow",c)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(c,f)=>{e.toggleRowSelection(c,f,!1),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:c=>{e.clearFilter(c)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{e.toggleRowExpansionAdapter(c,f)},clearSort:()=>{e.clearSort()},sort:(c,f)=>{e.commit("sort",{prop:c,order:f})}}}function rV(e,t,r,n){const i=H(!1),a=H(null),o=H(!1),s=B=>{o.value=B},l=H({width:null,height:null,headerHeight:null}),u=H(!1),c={display:"inline-block",verticalAlign:"middle"},f=H(),d=H(0),h=H(0),v=H(0),p=H(0);no(()=>{t.setHeight(e.height)}),no(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,r.states.rowKey],([B,N])=>{!P(N)||!P(B)||r.setCurrentRowKey(`${B}`)},{immediate:!0}),xe(()=>e.data,B=>{n.store.commit("setData",B)},{immediate:!0,deep:!0}),no(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(B,N)=>{const{pixelX:j,pixelY:re}=N;Math.abs(j)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},y=$(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};Mt(async()=>{await Rt(),r.updateColumns(),T(),requestAnimationFrame(b);const B=n.vnode.el,N=n.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),l.value={width:f.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},r.states.columns.value.forEach(j=>{j.filteredValue&&j.filteredValue.length&&n.store.commit("filterChange",{column:j,values:j.filteredValue,silent:!0})}),n.$ready=!0});const S=(B,N)=>{if(!B)return;const j=Array.from(B.classList).filter(re=>!re.startsWith("is-scrolling-"));j.push(t.scrollX.value?N:"is-scrolling-none"),B.className=j.join(" ")},w=B=>{const{tableWrapper:N}=n.refs;S(N,B)},x=B=>{const{tableWrapper:N}=n.refs;return!!(N&&N.classList.contains(B))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";x(V)||w(V);return}const B=n.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:N,offsetWidth:j,scrollWidth:re}=B,{headerWrapper:oe,footerWrapper:_e}=n.refs;oe&&(oe.scrollLeft=N),_e&&(_e.scrollLeft=N);const Ee=re-j-1;N>=Ee?w("is-scrolling-right"):w(N===0?"is-scrolling-left":"is-scrolling-middle")},T=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&Sn(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?ms(n.vnode.el,E):Sn(window,"resize",E),ms(n.refs.bodyWrapper,()=>{var B,N;E(),(N=(B=n.refs)==null?void 0:B.scrollBarRef)==null||N.update()}))},E=()=>{var B,N,j;const re=n.vnode.el;if(!n.$ready||!re)return;let oe=!1;const{width:_e,height:Ee,headerHeight:V}=l.value,J=f.value=re.offsetWidth;_e!==J&&(oe=!0);const W=re.offsetHeight;(e.height||y.value)&&Ee!==W&&(oe=!0);const Y=e.tableLayout==="fixed"?n.refs.headerWrapper:(B=n.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(Y==null?void 0:Y.offsetHeight)!==V&&(oe=!0),d.value=((N=n.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(Y==null?void 0:Y.scrollHeight)||0,p.value=((j=n.refs.footerWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-v.value-p.value,oe&&(l.value={width:J,height:W,headerHeight:e.showHeader&&(Y==null?void 0:Y.offsetHeight)||0},b())},A=ra(),M=$(()=>{const{bodyWidth:B,scrollY:N,gutterWidth:j}=t;return B.value?`${B.value-(N.value?j:0)}px`:""}),D=$(()=>e.maxHeight?"fixed":e.tableLayout),R=$(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&h.value&&(B=`${h.value}px`);const N=f.value;return{width:N?`${N}px`:"",height:B}}),k=$(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=$(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`};{const B=e.maxHeight;if(d.value>=Number(B))return{maxHeight:`${d.value-v.value-p.value}px`}}}return{}});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:m,tableSize:A,emptyBlockStyle:R,handleFixedMousewheel:(B,N)=>{const j=n.refs.bodyWrapper;if(Math.abs(N.spinY)>0){const re=j.scrollTop;N.pixelY<0&&re!==0&&B.preventDefault(),N.pixelY>0&&j.scrollHeight-j.clientHeight>re&&B.preventDefault(),j.scrollTop+=Math.ceil(N.pixelY/5)}else j.scrollLeft+=Math.ceil(N.pixelX/5)},resizeProxyVisible:o,bodyWidth:M,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:c,tableInnerStyle:k,scrollbarStyle:F}}var nV={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const iV=()=>{const e=H(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&Yt(o)&&["Top","Left"].includes(a)&&s[`setScroll${a}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>r("Top",a),setScrollLeft:a=>r("Left",a)}};let aV=1;const oV=ce({name:"ElTable",directives:{Mousewheel:Wz},components:{TableHeader:jW,TableBody:ZW,TableFooter:eV,ElScrollbar:TM,hColgroup:Iy},props:nV,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=uM(),r=Be("table"),n=dt();Tt(ei,n);const i=IW(n,e);n.store=i;const a=new RW({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=$(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=tV(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:S,tableSize:w,emptyBlockStyle:x,handleFixedMousewheel:C,resizeProxyVisible:T,bodyWidth:E,resizeState:A,doLayout:M,tableBodyStyles:D,tableLayout:R,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:K}=rV(e,a,i,n),{scrollBarRef:B,scrollTo:N,setScrollLeft:j,setScrollTop:re}=iV(),oe=Xf(M,50),_e=`${r.namespace.value}-table_${aV++}`;n.tableId=_e,n.state={isGroup:_,resizeState:A,doLayout:M,debouncedUpdateLayout:oe};const Ee=$(()=>e.sumText||t("el.table.sumText")),V=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:S,handleMouseLeave:b,tableId:_e,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:T,resizeState:A,isGroup:_,bodyWidth:E,tableBodyStyles:D,emptyBlockStyle:x,debouncedUpdateLayout:oe,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:M,sort:p,t,setDragVisible:y,context:n,computedSumText:Ee,computedEmptyText:V,tableLayout:R,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:K,scrollBarRef:B,scrollTo:N,setScrollLeft:j,setScrollTop:re}}}),sV=["data-prefix"],lV={ref:"hiddenColumns",class:"hidden-columns"};function uV(e,t,r,n,i,a){const o=_r("hColgroup"),s=_r("table-header"),l=_r("table-body"),u=_r("el-scrollbar"),c=_r("table-footer"),f=Hm("mousewheel");return U(),ye("div",{ref:"tableWrapper",class:le([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:St(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=d=>e.handleMouseLeave())},[ae("div",{class:le(e.ns.e("inner-wrapper")),style:St(e.tableInnerStyle)},[ae("div",lV,[Fe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qt((U(),ye("div",{key:0,ref:"headerWrapper",class:le(e.ns.e("header-wrapper"))},[ae("table",{ref:"tableHeader",class:le(e.ns.e("header")),style:St(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ee(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),ae("div",{ref:"bodyWrapper",class:le(e.ns.e("body-wrapper"))},[ee(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[ae("table",{ref:"tableBody",class:le(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:St({width:e.bodyWidth,tableLayout:e.tableLayout})},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(U(),me(s,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):ke("v-if",!0),ee(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(U(),ye("div",{key:0,ref:"emptyBlock",style:St(e.emptyBlockStyle),class:le(e.ns.e("empty-block"))},[ae("span",{class:le(e.ns.e("empty-text"))},[Fe(e.$slots,"empty",{},()=>[Nt(Me(e.computedEmptyText),1)])],2)],6)):ke("v-if",!0),e.$slots.append?(U(),ye("div",{key:1,ref:"appendWrapper",class:le(e.ns.e("append-wrapper"))},[Fe(e.$slots,"append")],2)):ke("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?qt((U(),ye("div",{key:1,ref:"footerWrapper",class:le(e.ns.e("footer-wrapper"))},[ee(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:St(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[mi,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),e.border||e.isGroup?(U(),ye("div",{key:2,class:le(e.ns.e("border-left-patch"))},null,2)):ke("v-if",!0)],6),qt(ae("div",{ref:"resizeProxy",class:le(e.ns.e("column-resize-proxy"))},null,2),[[mi,e.resizeProxyVisible]])],46,sV)}var cV=Xe(oV,[["render",uV],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const fV={selection:"table-column--selection",expand:"table__expand-column"},dV={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},hV=e=>fV[e]||"",vV={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ce(Cs,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:n}){return Ce(Cs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),Ce("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,i=[n.e("expand-icon")];return r&&i.push(n.em("expand-icon","expanded")),Ce("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ce(lr,null,{default:()=>[Ce(uy)]})]})},sortable:!1,resizable:!1}};function pV({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&mf(e,i).value;return t&&t.formatter?t.formatter(e,t,a,r):((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||""}function gV({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[Ce("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(Ce("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let l=uy;t.loading&&(l=cy),a.push(Ce("div",{class:s,onClick:o},{default:()=>[Ce(lr,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ce(l)]})]}))}else a.push(Ce("span",{class:i.e("placeholder")}));return a}function f1(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function mV(e,t){const r=dt();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=f1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ve(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=Py(c)),u==="minWidth"&&l==="realMinWidth"&&(f=iA(c)),r.columnConfig.value[u]=f,r.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=f1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ve(t,u)&&xe(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function yV(e,t,r){const n=dt(),i=H(""),a=H(!1),o=H(),s=H(),l=Be("table");no(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),no(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=$(()=>{let _=n.vnode.vParent||n.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),c=$(()=>{const{store:_}=n.parent;if(!_)return!1;const{treeData:b}=_.states,S=b.value;return S&&Object.keys(S).length>0}),f=H(Py(e.width)),d=H(iA(e.minWidth)),h=_=>(f.value&&(_.width=f.value),d.value&&(_.minWidth=d.value),!f.value&&d.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),v=_=>{const b=_.type,S=vV[b]||{};Object.keys(S).forEach(x=>{const C=S[x];x!=="className"&&C!==void 0&&(_[x]=C)});const w=hV(b);if(w){const x=`${P(l.namespace)}-${w}`;_.className=_.className?`${_.className} ${x}`:x}return _},p=_=>{Array.isArray(_)?_.forEach(S=>b(S)):b(_);function b(S){var w;((w=S==null?void 0:S.type)==null?void 0:w.name)==="ElTableColumn"&&(S.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=S=>{n.columnConfig.value.label;const w=t.header;return w?w(S):_.label});let b=_.renderCell;return _.type==="expand"?(_.renderCell=S=>Ce("div",{class:"cell"},[b(S)]),r.value.renderExpanded=S=>t.default?t.default(S):t.default):(b=b||pV,_.renderCell=S=>{let w=null;if(t.default){const E=t.default(S);w=E.some(A=>A.type!==Sr)?E:b(S)}else w=b(S);const x=c.value&&S.cellIndex===0&&S.column.type!=="selection",C=gV(S,x),T={class:"cell",style:{}};return _.showOverflowTooltip&&(T.class=`${T.class} ${P(l.namespace)}-tooltip`,T.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(w),Ce("div",T,[C,w])}),_},getPropsData:(..._)=>_.reduce((b,S)=>(Array.isArray(S)&&S.forEach(w=>{b[w]=e[w]}),b),{}),getColumnElIndex:(_,b)=>Array.prototype.indexOf.call(_,b)}}var _V={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let bV=1;var dA=ce({name:"ElTableColumn",components:{ElCheckbox:Cs},props:_V,setup(e,{slots:t}){const r=dt(),n=H({}),i=$(()=>{let y=r.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:a,registerComplexWatchers:o}=mV(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g}=yV(e,t,i),m=c.value;s.value=`${m.tableId||m.columnId}_column_${bV++}`,Bd(()=>{l.value=i.value!==m;const y=e.type||"default",_=e.sortable===""?!0:e.sortable,b={...dV[y],id:s.value,type:y,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:r.vnode.key};let T=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);T=wW(b,T),T=xW(h,f,d)(T),n.value=T,a(),o()}),Mt(()=>{var y;const _=c.value,b=l.value?_.vnode.el.children:(y=_.refs.hiddenColumns)==null?void 0:y.children,S=()=>p(b||[],r.vnode.el);n.value.getColumnIndex=S,S()>-1&&i.value.store.commit("insertColumn",n.value,l.value?_.columnConfig.value:null)}),nr(()=>{i.value.store.commit("removeColumn",n.value,l.value?m.columnConfig.value:null)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===yt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!ze(s==null?void 0:s.children)&&i.push(s)});return Ce("div",i)}catch{return Ce("div",[])}}});const wV=hr(cV,{TableColumn:dA}),SV=la(dA),hA=["success","info","warning","error"],mr=ja({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ot?document.body:void 0}),xV=rt({customClass:{type:String,default:mr.customClass},center:{type:Boolean,default:mr.center},dangerouslyUseHTMLString:{type:Boolean,default:mr.dangerouslyUseHTMLString},duration:{type:Number,default:mr.duration},icon:{type:Wn,default:mr.icon},id:{type:String,default:mr.id},message:{type:Pe([String,Object,Function]),default:mr.message},onClose:{type:Pe(Function),required:!1},showClose:{type:Boolean,default:mr.showClose},type:{type:String,values:hA,default:mr.type},offset:{type:Number,default:mr.offset},zIndex:{type:Number,default:mr.zIndex},grouping:{type:Boolean,default:mr.grouping},repeatNum:{type:Number,default:mr.repeatNum}}),CV={destroy:()=>!0},Vn=xC([]),TV=e=>{const t=Vn.findIndex(i=>i.id===e),r=Vn[t];let n;return t>0&&(n=Vn[t-1]),{current:r,prev:n}},MV=e=>{const{prev:t}=TV(e);return t?t.vm.exposed.bottom.value:0},AV=["id"],EV=["innerHTML"],PV=ce({name:"ElMessage"}),LV=ce({...PV,props:xV,emits:CV,setup(e,{expose:t}){const r=e,{Close:n}=g3,i=Be("message"),a=H(),o=H(!1),s=H(0);let l;const u=$(()=>r.type?r.type==="error"?"danger":r.type:"info"),c=$(()=>{const b=r.type;return{[i.bm("icon",b)]:b&&wb[b]}}),f=$(()=>r.icon||wb[r.type]||""),d=$(()=>MV(r.id)),h=$(()=>r.offset+d.value),v=$(()=>s.value+h.value),p=$(()=>({top:`${h.value}px`,zIndex:r.zIndex}));function g(){r.duration!==0&&({stop:l}=Wp(()=>{y()},r.duration))}function m(){l==null||l()}function y(){o.value=!1}function _({code:b}){b===Lt.esc&&y()}return Mt(()=>{g(),o.value=!0}),xe(()=>r.repeatNum,()=>{m(),g()}),Sn(document,"keydown",_),ms(a,()=>{s.value=a.value.getBoundingClientRect().height}),t({visible:o,bottom:v,close:y}),(b,S)=>(U(),me(Qn,{name:P(i).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:S[0]||(S[0]=w=>b.$emit("destroy")),persisted:""},{default:Z(()=>[qt(ae("div",{id:b.id,ref_key:"messageRef",ref:a,class:le([P(i).b(),{[P(i).m(b.type)]:b.type&&!b.icon},P(i).is("center",b.center),P(i).is("closable",b.showClose),b.customClass]),style:St(P(p)),role:"alert",onMouseenter:m,onMouseleave:g},[b.repeatNum>1?(U(),me(P(lz),{key:0,value:b.repeatNum,type:P(u),class:le(P(i).e("badge"))},null,8,["value","type","class"])):ke("v-if",!0),P(f)?(U(),me(P(lr),{key:1,class:le([P(i).e("icon"),P(c)])},{default:Z(()=>[(U(),me(nn(P(f))))]),_:1},8,["class"])):ke("v-if",!0),Fe(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(U(),ye(yt,{key:1},[ke(" Caution here, message could've been compromised, never use user's input as message "),ae("p",{class:le(P(i).e("content")),innerHTML:b.message},null,10,EV)],2112)):(U(),ye("p",{key:0,class:le(P(i).e("content"))},Me(b.message),3))]),b.showClose?(U(),me(P(lr),{key:2,class:le(P(i).e("closeBtn")),onClick:jf(y,["stop"])},{default:Z(()=>[ee(P(n))]),_:1},8,["class","onClick"])):ke("v-if",!0)],46,AV),[[mi,o.value]])]),_:3},8,["name","onBeforeLeave"]))}});var DV=Xe(LV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let IV=1;const vA=e=>{const t=!e||ze(e)||Ji(e)||Le(e)?{message:e}:e,r={...mr,...t};if(!r.appendTo)r.appendTo=document.body;else if(ze(r.appendTo)){let n=document.querySelector(r.appendTo);ys(n)||(n=document.body),r.appendTo=n}return r},OV=e=>{const t=Vn.indexOf(e);if(t===-1)return;Vn.splice(t,1);const{handler:r}=e;r.close()},RV=({appendTo:e,...t},r)=>{const{nextZIndex:n}=Ty(),i=`message_${IV++}`,a=t.onClose,o=document.createElement("div"),s={...t,zIndex:n()+t.zIndex,id:i,onClose:()=>{a==null||a(),OV(f)},onDestroy:()=>{A_(null,o)}},l=ee(DV,s,Le(s.message)||Ji(s.message)?{default:Le(s.message)?s.message:()=>s.message}:null);l.appContext=r||Ms._context,A_(l,o),e.appendChild(o.firstElementChild);const u=l.component,f={id:i,vnode:l,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:l.component.props};return f},Ms=(e={},t)=>{if(!Ot)return{close:()=>{}};if(Yt(ag.max)&&Vn.length>=ag.max)return{close:()=>{}};const r=vA(e);if(r.grouping&&Vn.length){const i=Vn.find(({vnode:a})=>{var o;return((o=a.props)==null?void 0:o.message)===r.message});if(i)return i.props.repeatNum+=1,i.props.type=r.type,i.handler}const n=RV(r,t);return Vn.push(n),n.handler};hA.forEach(e=>{Ms[e]=(t={},r)=>{const n=vA(t);return Ms({...n,type:e},r)}});function kV(e){for(const t of Vn)(!e||e===t.props.type)&&t.handler.close()}Ms.closeAll=kV;Ms._context=null;const pA=m3(Ms,"$message"),NV={id:"app"},BV={class:"grid-content header-color"},FV={class:"header-content"},$V=ae("div",{class:"brand"},[ae("a",{href:"#"},"frp")],-1),HV={class:"dark-switch"},zV=ae("span",null,"Proxies",-1),WV={id:"content"},VV=ae("footer",null,null,-1),GV=ce({__name:"App",setup(e){const t=o5(),r=H(t),n=A$(t),i=a=>{a==""&&window.open("https://github.com/fatedier/frp")};return(a,o)=>{const s=pW,l=z8,u=W8,c=H8,f=YM,d=_r("router-view"),h=rA;return U(),ye("div",NV,[ae("header",BV,[ae("div",FV,[$V,ae("div",HV,[ee(s,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=v=>r.value=v),"inline-prompt":"","active-text":"Dark","inactive-text":"Light",onChange:P(n),style:{"--el-switch-on-color":"#444452","--el-switch-off-color":"#589ef8"}},null,8,["modelValue","onChange"])])])]),ae("section",null,[ee(h,null,{default:Z(()=>[ee(f,{id:"side-nav",xs:24,md:4},{default:Z(()=>[ee(c,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:i},{default:Z(()=>[ee(l,{index:"/"},{default:Z(()=>[Nt("Overview")]),_:1}),ee(u,{index:"/proxies"},{title:Z(()=>[zV]),default:Z(()=>[ee(l,{index:"/proxies/tcp"},{default:Z(()=>[Nt("TCP")]),_:1}),ee(l,{index:"/proxies/udp"},{default:Z(()=>[Nt("UDP")]),_:1}),ee(l,{index:"/proxies/http"},{default:Z(()=>[Nt("HTTP")]),_:1}),ee(l,{index:"/proxies/https"},{default:Z(()=>[Nt("HTTPS")]),_:1}),ee(l,{index:"/proxies/stcp"},{default:Z(()=>[Nt("STCP")]),_:1}),ee(l,{index:"/proxies/sudp"},{default:Z(()=>[Nt("SUDP")]),_:1})]),_:1}),ee(l,{index:""},{default:Z(()=>[Nt("Help")]),_:1})]),_:1})]),_:1}),ee(f,{xs:24,md:20},{default:Z(()=>[ae("div",WV,[ee(d)])]),_:1})]),_:1})]),VV])}}});/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const qo=typeof window<"u";function UV(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const st=Object.assign;function Kh(e,t){const r={};for(const n in t){const i=t[n];r[n]=En(i)?i.map(e):e(i)}return r}const Fl=()=>{},En=Array.isArray,jV=/\/$/,YV=e=>e.replace(jV,"");function Xh(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=ZV(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function qV(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function d1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KV(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&As(t.matched[n],r.matched[i])&&gA(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XV(e[r],t[r]))return!1;return!0}function XV(e,t){return En(e)?h1(e,t):En(t)?h1(t,e):e===t}function h1(e,t){return En(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function ZV(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a<n.length;a++)if(o=n[a],o!==".")if(o==="..")i>1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var mu;(function(e){e.pop="pop",e.push="push"})(mu||(mu={}));var $l;(function(e){e.back="back",e.forward="forward",e.unknown=""})($l||($l={}));function QV(e){if(!e)if(qo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),YV(e)}const JV=/^[^#]+#/;function eG(e,t){return e.replace(JV,"#")+t}function tG(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function rG(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=tG(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function v1(e,t){return(history.state?history.state.position-t:-1)+e}const hg=new Map;function nG(e,t){hg.set(e,t)}function iG(e){const t=hg.get(e);return hg.delete(e),t}let aG=()=>location.protocol+"//"+location.host;function mA(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),d1(l,"")}return d1(r,e)+n+i}function oG(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=mA(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,v,{delta:g,type:mu.pop,direction:g?g>0?$l.forward:$l.back:$l.unknown})})};function l(){o=r.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return a.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(st({},d.state,{scroll:Jd()}),"")}function f(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function p1(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Jd():null}}function sG(e){const{history:t,location:r}=window,n={value:mA(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:aG()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[c?"replace":"assign"](d)}}function o(l,u){const c=st({},t.state,p1(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=st({},i.value,t.state,{forward:l,scroll:Jd()});a(c.current,c,!0);const f=st({},p1(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function lG(e){e=QV(e);const t=sG(e),r=oG(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=st({location:"",base:e,go:n,createHref:eG.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function uG(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lG(e)}function cG(e){return typeof e=="string"||e&&typeof e=="object"}function yA(e){return typeof e=="string"||typeof e=="symbol"}const Di={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_A=Symbol("");var g1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(g1||(g1={}));function Es(e,t){return st(new Error,{type:e,[_A]:!0},t)}function ai(e,t){return e instanceof Error&&_A in e&&(t==null||!!(e.type&t))}const m1="[^/]+?",fG={sensitive:!1,strict:!1,start:!0,end:!0},dG=/[.+*?^${}()[\]/\\]/g;function hG(e,t){const r=st({},fG,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(r.sensitive?.25:0);if(d.type===0)f||(i+="/"),i+=d.value.replace(dG,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:m}=d;a.push({name:v,repeatable:p,optional:g});const y=m||m1;if(y!==m1){h+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${y}): `+b.message)}}let _=p?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,h+=20,g&&(h+=-8),p&&(h+=-20),y===".*"&&(h+=-50)}c.push(h)}n.push(c)}if(r.strict&&r.end){const u=n.length-1;n[u][n[u].length-1]+=.7000000000000001}r.strict||(i+="/?"),r.end?i+="$":r.strict&&(i+="(?:/|$)");const o=new RegExp(i,r.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=a[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(En(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const y=En(m)?m.join("/"):m;if(!y)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=y}}return c||"/"}return{re:o,score:n,keys:a,parse:s,stringify:l}}function vG(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function pG(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const a=vG(n[r],i[r]);if(a)return a;r++}if(Math.abs(i.length-n.length)===1){if(y1(n))return 1;if(y1(i))return-1}return i.length-n.length}function y1(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const gG={type:0,value:""},mG=/[a-zA-Z0-9_]/;function yG(e){if(!e)return[[]];if(e==="/")return[[gG]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function f(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s<e.length;){if(l=e[s++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),r=1):d();break;case 4:d(),r=n;break;case 1:l==="("?r=2:mG.test(l)?d():(f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:r=3:c+=l;break;case 3:f(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),i}function _G(e,t,r){const n=hG(yG(e.path),r),i=st(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function bG(e,t){const r=[],n=new Map;t=w1({strict:!1,end:!0,sensitive:!1},t);function i(c){return n.get(c)}function a(c,f,d){const h=!d,v=wG(c);v.aliasOf=d&&d.record;const p=w1(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of _)g.push(st({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v}))}let m,y;for(const _ of g){const{path:b}=_;if(f&&b[0]!=="/"){const S=f.record.path,w=S[S.length-1]==="/"?"":"/";_.path=f.record.path+(b&&w+b)}if(m=_G(_,f,p),d?d.alias.push(m):(y=y||m,y!==m&&y.alias.push(m),h&&c.name&&!b1(m)&&o(c.name)),v.children){const S=v.children;for(let w=0;w<S.length;w++)a(S[w],m,d&&d.children[w])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return y?()=>{o(y)}:Fl}function o(c){if(yA(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let f=0;for(;f<r.length&&pG(c,r[f])>=0&&(c.record.path!==r[f].record.path||!bA(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!b1(c)&&n.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw Es(1,{location:c});p=d.record.name,h=st(_1(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&_1(c.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?n.get(f.name):r.find(y=>y.re.test(f.path)),!d)throw Es(1,{location:c,currentLocation:f});p=d.record.name,h=st({},f.params,c.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:xG(g)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function _1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function wG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SG(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function SG(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function b1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xG(e){return e.reduce((t,r)=>st(t,r.meta),{})}function w1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function bA(e,t){return t.children.some(r=>r===e||bA(e,r))}const wA=/#/g,CG=/&/g,TG=/\//g,MG=/=/g,AG=/\?/g,SA=/\+/g,EG=/%5B/g,PG=/%5D/g,xA=/%5E/g,LG=/%60/g,CA=/%7B/g,DG=/%7C/g,TA=/%7D/g,IG=/%20/g;function Oy(e){return encodeURI(""+e).replace(DG,"|").replace(EG,"[").replace(PG,"]")}function OG(e){return Oy(e).replace(CA,"{").replace(TA,"}").replace(xA,"^")}function vg(e){return Oy(e).replace(SA,"%2B").replace(IG,"+").replace(wA,"%23").replace(CG,"%26").replace(LG,"`").replace(CA,"{").replace(TA,"}").replace(xA,"^")}function RG(e){return vg(e).replace(MG,"%3D")}function kG(e){return Oy(e).replace(wA,"%23").replace(AG,"%3F")}function NG(e){return e==null?"":kG(e).replace(TG,"%2F")}function td(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function BG(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const a=n[i].replace(SA," "),o=a.indexOf("="),s=td(o<0?a:a.slice(0,o)),l=o<0?null:td(a.slice(o+1));if(s in t){let u=t[s];En(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function S1(e){let t="";for(let r in e){const n=e[r];if(r=RG(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(En(n)?n.map(a=>a&&vg(a)):[n&&vg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function FG(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=En(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const $G=Symbol(""),x1=Symbol(""),Ry=Symbol(""),MA=Symbol(""),pg=Symbol("");function Xs(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Wi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Es(4,{from:r,to:t})):f instanceof Error?s(f):cG(f)?s(Es(2,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),o())},u=e.call(n&&n.instances[i],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function Zh(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(HG(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Wi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const c=UV(u)?u.default:u;a.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Wi(d,r,n,a,o)()}))}}return i}function HG(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function C1(e){const t=Oe(Ry),r=Oe(MA),n=$(()=>t.resolve(P(e.to))),i=$(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(As.bind(null,c));if(d>-1)return d;const h=T1(l[u-2]);return u>1&&T1(c)===h&&f[f.length-1].path!==h?f.findIndex(As.bind(null,l[u-2])):d}),a=$(()=>i.value>-1&&GG(r.params,n.value.params)),o=$(()=>i.value>-1&&i.value===r.matched.length-1&&gA(r.params,n.value.params));function s(l={}){return VG(l)?t[P(e.replace)?"replace":"push"](P(e.to)).catch(Fl):Promise.resolve()}return{route:n,href:$(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const zG=ce({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:C1,setup(e,{slots:t}){const r=fn(C1(e)),{options:n}=Oe(Ry),i=$(()=>({[M1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[M1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Ce("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),WG=zG;function VG(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function GG(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!En(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function T1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const M1=(e,t,r)=>e??t??r,UG=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Oe(pg),i=$(()=>e.route||n.value),a=Oe(x1,0),o=$(()=>{let u=P(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=$(()=>i.value.matched[o.value]);Tt(x1,$(()=>o.value+1)),Tt($G,s),Tt(pg,i);const l=H();return xe(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!As(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return A1(r.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=Ce(d,st({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return A1(r.default,{Component:g,route:u})||g}}});function A1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const jG=UG;function YG(e){const t=bG(e.routes,e),r=e.parseQuery||BG,n=e.stringifyQuery||S1,i=e.history,a=Xs(),o=Xs(),s=Xs(),l=EC(Di);let u=Di;qo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kh.bind(null,V=>""+V),f=Kh.bind(null,NG),d=Kh.bind(null,td);function h(V,J){let W,Y;return yA(V)?(W=t.getRecordMatcher(V),Y=J):Y=V,t.addRoute(Y,W)}function v(V){const J=t.getRecordMatcher(V);J&&t.removeRoute(J)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,J){if(J=st({},J||l.value),typeof V=="string"){const L=Xh(r,V,J.path),I=t.resolve({path:L.path},J),z=i.createHref(L.fullPath);return st(L,I,{params:d(I.params),hash:td(L.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=st({},V,{path:Xh(r,V.path,J.path).path});else{const L=st({},V.params);for(const I in L)L[I]==null&&delete L[I];W=st({},V,{params:f(V.params)}),J.params=f(J.params)}const Y=t.resolve(W,J),ue=V.hash||"";Y.params=c(d(Y.params));const he=qV(n,st({},V,{hash:OG(ue),path:Y.path})),Q=i.createHref(he);return st({fullPath:he,hash:ue,query:n===S1?FG(V.query):V.query||{}},Y,{redirectedFrom:void 0,href:Q})}function y(V){return typeof V=="string"?Xh(r,V,l.value.path):st({},V)}function _(V,J){if(u!==V)return Es(8,{from:J,to:V})}function b(V){return x(V)}function S(V){return b(st(y(V),{replace:!0}))}function w(V){const J=V.matched[V.matched.length-1];if(J&&J.redirect){const{redirect:W}=J;let Y=typeof W=="function"?W(V):W;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),st({query:V.query,hash:V.hash,params:"path"in Y?{}:V.params},Y)}}function x(V,J){const W=u=m(V),Y=l.value,ue=V.state,he=V.force,Q=V.replace===!0,L=w(W);if(L)return x(st(y(L),{state:typeof L=="object"?st({},ue,L.state):ue,force:he,replace:Q}),J||W);const I=W;I.redirectedFrom=J;let z;return!he&&KV(n,Y,W)&&(z=Es(16,{to:I,from:Y}),j(Y,Y,!0,!1)),(z?Promise.resolve(z):T(I,Y)).catch(G=>ai(G)?ai(G,2)?G:N(G):K(G,I,Y)).then(G=>{if(G){if(ai(G,2))return x(st({replace:Q},y(G.to),{state:typeof G.to=="object"?st({},ue,G.to.state):ue,force:he}),J||I)}else G=A(I,Y,!0,Q,ue);return E(I,Y,G),G})}function C(V,J){const W=_(V,J);return W?Promise.reject(W):Promise.resolve()}function T(V,J){let W;const[Y,ue,he]=qG(V,J);W=Zh(Y.reverse(),"beforeRouteLeave",V,J);for(const L of Y)L.leaveGuards.forEach(I=>{W.push(Wi(I,V,J))});const Q=C.bind(null,V,J);return W.push(Q),Io(W).then(()=>{W=[];for(const L of a.list())W.push(Wi(L,V,J));return W.push(Q),Io(W)}).then(()=>{W=Zh(ue,"beforeRouteUpdate",V,J);for(const L of ue)L.updateGuards.forEach(I=>{W.push(Wi(I,V,J))});return W.push(Q),Io(W)}).then(()=>{W=[];for(const L of V.matched)if(L.beforeEnter&&!J.matched.includes(L))if(En(L.beforeEnter))for(const I of L.beforeEnter)W.push(Wi(I,V,J));else W.push(Wi(L.beforeEnter,V,J));return W.push(Q),Io(W)}).then(()=>(V.matched.forEach(L=>L.enterCallbacks={}),W=Zh(he,"beforeRouteEnter",V,J),W.push(Q),Io(W))).then(()=>{W=[];for(const L of o.list())W.push(Wi(L,V,J));return W.push(Q),Io(W)}).catch(L=>ai(L,8)?L:Promise.reject(L))}function E(V,J,W){for(const Y of s.list())Y(V,J,W)}function A(V,J,W,Y,ue){const he=_(V,J);if(he)return he;const Q=J===Di,L=qo?history.state:{};W&&(Y||Q?i.replace(V.fullPath,st({scroll:Q&&L&&L.scroll},ue)):i.push(V.fullPath,ue)),l.value=V,j(V,J,W,Q),N()}let M;function D(){M||(M=i.listen((V,J,W)=>{if(!Ee.listening)return;const Y=m(V),ue=w(Y);if(ue){x(st(ue,{replace:!0}),Y).catch(Fl);return}u=Y;const he=l.value;qo&&nG(v1(he.fullPath,W.delta),Jd()),T(Y,he).catch(Q=>ai(Q,12)?Q:ai(Q,2)?(x(Q.to,Y).then(L=>{ai(L,20)&&!W.delta&&W.type===mu.pop&&i.go(-1,!1)}).catch(Fl),Promise.reject()):(W.delta&&i.go(-W.delta,!1),K(Q,Y,he))).then(Q=>{Q=Q||A(Y,he,!1),Q&&(W.delta&&!ai(Q,8)?i.go(-W.delta,!1):W.type===mu.pop&&ai(Q,20)&&i.go(-1,!1)),E(Y,he,Q)}).catch(Fl)}))}let R=Xs(),k=Xs(),F;function K(V,J,W){N(V);const Y=k.list();return Y.length?Y.forEach(ue=>ue(V,J,W)):console.error(V),Promise.reject(V)}function B(){return F&&l.value!==Di?Promise.resolve():new Promise((V,J)=>{R.add([V,J])})}function N(V){return F||(F=!V,D(),R.list().forEach(([J,W])=>V?W(V):J()),R.reset()),V}function j(V,J,W,Y){const{scrollBehavior:ue}=e;if(!qo||!ue)return Promise.resolve();const he=!W&&iG(v1(V.fullPath,0))||(Y||!W)&&history.state&&history.state.scroll||null;return Rt().then(()=>ue(V,J,he)).then(Q=>Q&&rG(Q)).catch(Q=>K(Q,V,J))}const re=V=>i.go(V);let oe;const _e=new Set,Ee={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:b,replace:S,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:B,install(V){const J=this;V.component("RouterLink",WG),V.component("RouterView",jG),V.config.globalProperties.$router=J,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>P(l)}),qo&&!oe&&l.value===Di&&(oe=!0,b(i.location).catch(ue=>{}));const W={};for(const ue in Di)W[ue]=$(()=>l.value[ue]);V.provide(Ry,J),V.provide(MA,fn(W)),V.provide(pg,l);const Y=V.unmount;_e.add(V),V.unmount=function(){_e.delete(V),_e.size<1&&(u=Di,M&&M(),M=null,l.value=Di,oe=!1,F=!1),Y()}}};return Ee}function Io(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function qG(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const s=t.matched[o];s&&(e.matched.find(u=>As(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>As(u,l))||i.push(l))}return[r,n,i]}var na={},KG={get exports(){return na},set exports(e){na=e}};(function(e,t){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n};(function(n,i){r(t)==="object"?e.exports=i():n.Humanize=i()})(Rz,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(f){return typeof f<"u"&&f!==null},o=function(f){return f!==f},s=function(f){return isFinite(f)&&!o(parseFloat(f))},l=function(f){var d=Object.prototype.toString.call(f);return d==="[object Array]"},u={intword:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(f,h)},compactInteger:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(f,10),v=h<0?"-":"",p=Math.abs(h),g=String(p),m=g.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+g;if(m>y[0]+3)return h.toExponential(d).replace("e+","x10^");for(var b=void 0,S=0;S<y.length;S++){var w=y[S];if(m>=w){b=w;break}}var x=m-b+1,C=g.split(""),T=C.slice(0,x),E=C.slice(x,x+d+1),A=T.join(""),M=E.join("");M.length<d&&(M+=""+Array(d-M.length+1).join("0"));var D=void 0;if(d===0)D=""+v+A+_[y.indexOf(b)];else{var R=Number(A+"."+M).toFixed(d);D=""+v+R+_[y.indexOf(b)]}return D},intComma:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];return u.formatNumber(f,d)},intcomma:function(){return u.intComma.apply(u,arguments)},fileSize:function(f){var d=arguments.length<=1||arguments[1]===void 0?2:arguments[1];for(var h in i)if(i.hasOwnProperty(h)){var v=i[h];if(f>=v)return u.formatNumber(f/v,d,"")+" "+h+"B"}return f>=1024?u.formatNumber(f/1024,0)+" KB":u.formatNumber(f,0)+u.pluralize(f," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1],h=arguments.length<=2||arguments[2]===void 0?",":arguments[2],v=arguments.length<=3||arguments[3]===void 0?".":arguments[3],p=function(x,C,T){return T?x.substr(0,T)+C:""},g=function(x,C,T){return x.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(x,C,T){return T?C+u.toFixed(Math.abs(x),T).split(".")[1]:""},y=u.normalizePrecision(d),_=f<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(f||0),y),10)),S=b.length>3?b.length%3:0;return _+p(b,h,S)+g(b,h,S)+m(f,v,y)},toFixed:function(f,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(f*h)/h).toFixed(d)},normalizePrecision:function(f,d){return f=Math.round(Math.abs(f)),o(f)?d:f},ordinal:function(f){var d=parseInt(f,10);if(d===0)return f;var h=d%100;if([11,12,13].indexOf(h)>=0)return d+"th";var v=d%10,p=void 0;switch(v){case 1:p="st";break;case 2:p="nd";break;case 3:p="rd";break;default:p="th"}return""+d+p},times:function(f){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(f)&&f>=0){var h=parseFloat(f),v=["never","once","twice"];if(a(d[h]))return String(d[h]);var p=a(v[h])&&v[h].toString();return p||h.toString()+" times"}return null},pluralize:function(f,d,h){return a(f)&&a(d)?(h=a(h)?h:d+"s",parseInt(f,10)===1?d:h):null},truncate:function(f){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return f.length>d?f.substring(0,d-h.length)+h:f},truncateWords:function(f,d){for(var h=f.split(" "),v="",p=0;p<d;)a(h[p])&&(v+=h[p]+" "),p++;return h.length>d?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(f){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(f)&&s(d)&&f>d&&(v=d+h),(v||f).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(f,d,h){var v=f.length,p=void 0;if(v<2)return String(f);if(v===2)return f.join(" and ");if(a(d)&&v>d){var g=v-d;p=d,h=a(h)?h:", and "+g+" "+u.pluralize(g,"other")}else p=-1,h=", and "+f[v-1];return f.slice(0,p).join(", ")+h},dictionary:function(f){var d=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],h=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(f)&&(typeof f>"u"?"undefined":r(f))==="object"&&!l(f)){var p=[];for(var g in f)if(f.hasOwnProperty(g)){var m=f[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(f,d){if(!l(f))return null;var h=f.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(f===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=f/d,y=0;y<n.length;++y){var _=n[y];if(g=m*_.value,g>1){p=_.name;break}}p||(v="Less than",g=1,p=n[n.length-1].name);var b=Math.round(g);return h=u.pluralize(b,h),v+" "+b+" "+h+" per "+p},nl2br:function(f){var d=arguments.length<=1||arguments[1]===void 0?"<br/>":arguments[1];return f.replace(/\n/g,d)},br2nl:function(f){var d=arguments.length<=1||arguments[1]===void 0?`\r
`:arguments[1];return f.replace(/\<br\s*\/?\>/g,d)},capitalize:function(f){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+f.charAt(0).toUpperCase()+(d?f.slice(1).toLowerCase():f.slice(1))},capitalizeAll:function(f){return f.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(f){var d=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,h=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,g=void 0;return g=function(y){for(var _=arguments.length<=1||arguments[1]===void 0?!1:arguments[1],b=arguments.length<=2||arguments[2]===void 0?!0:arguments[2],S=[],w=y.split(_?p:v),x=0;x<w.length;++x){var C=w[x];if(C.indexOf("-")!==-1){S.push(g(C,!0,x===0||x===w.length-1));continue}if(b&&(x===0||x===w.length-1)){S.push(h.test(C)?C:u.capitalize(C));continue}h.test(C)?S.push(C):d.test(C)?S.push(C.toLowerCase()):S.push(u.capitalize(C))}return S.join(_?"-":" ")},g(f)},titlecase:function(){return u.titleCase.apply(u,arguments)}};return u})})(KG,na);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var gg=function(e,t){return gg=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])},gg(e,t)};function pe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");gg(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var XG=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),ZG=function(){function e(){this.browser=new XG,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 e}(),Wa=new ZG;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Wa.wxa=!0,Wa.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Wa.worker=!0:typeof navigator>"u"?(Wa.node=!0,Wa.svgSupported=!0):QG(navigator.userAgent,Wa);function QG(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);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),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Ue=Wa;var ky=12,JG="sans-serif",mo=ky+"px "+JG,eU=20,tU=100,rU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nU(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-eU)/tU;t[n]=i}return t}var iU=nU(rU),Mo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Mo.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||mo),e.measureText(r);r=r||"",n=n||mo;var a=/(\d+)px/.exec(n),o=a&&+a[1]||ky,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=iU[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},AA=ia(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),EA=ia(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ku=Object.prototype.toString,eh=Array.prototype,aU=eh.forEach,oU=eh.filter,Ny=eh.slice,sU=eh.map,E1=function(){}.constructor,wc=E1?E1.prototype:null,By="__proto__",lU=2311;function PA(){return lU++}function Fy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Qe(e){if(e==null||typeof e!="object")return e;var t=e,r=Ku.call(e);if(r==="[object Array]"){if(!zl(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Qe(e[n])}}else if(EA[r]){if(!zl(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!AA[r]&&!zl(e)&&!rd(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==By&&(t[o]=Qe(e[o]))}return t}function ot(e,t,r){if(!De(t)||!De(e))return r?Qe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==By){var i=e[n],a=t[n];De(a)&&De(i)&&!ge(a)&&!ge(i)&&!rd(a)&&!rd(i)&&!P1(a)&&!P1(i)&&!zl(a)&&!zl(i)?ot(i,a,r):(r||!(n in e))&&(e[n]=Qe(t[n]))}return e}function se(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==By&&(e[r]=t[r]);return e}function ct(e,t,r){for(var n=Ct(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}Mo.createCanvas;function at(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function uU(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function ti(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else ct(e,t,r)}function Ar(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function O(e,t,r){if(e&&t)if(e.forEach&&e.forEach===aU)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Re(e,t,r){if(!e)return[];if(!t)return $y(e);if(e.map&&e.map===sU)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function ia(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function Ht(e,t,r){if(!e)return[];if(!t)return $y(e);if(e.filter&&e.filter===oU)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function Ct(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function cU(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Ny.call(arguments)))}}var _t=wc&&Ge(wc.bind)?wc.call.bind(wc.bind):cU;function Dt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Ny.call(arguments)))}}function ge(e){return Array.isArray?Array.isArray(e):Ku.call(e)==="[object Array]"}function Ge(e){return typeof e=="function"}function Ae(e){return typeof e=="string"}function mg(e){return Ku.call(e)==="[object String]"}function bt(e){return typeof e=="number"}function De(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function P1(e){return!!AA[Ku.call(e)]}function zr(e){return!!EA[Ku.call(e)]}function rd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function th(e){return e.colorStops!=null}function fU(e){return e.image!=null}function nd(e){return e!==e}function yu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function qe(e,t){return e??t}function Hl(e,t,r){return e??t??r}function $y(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Ny.apply(e,t)}function LA(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function _i(e,t){if(!e)throw new Error(t)}function Gn(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var DA="__ec_primitive__";function yg(e){e[DA]=!0}function zl(e){return e[DA]}var dU=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Ct(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),IA=typeof Map=="function";function hU(){return IA?new Map:new dU}var vU=function(){function e(t){var r=ge(t);this.data=hU();var n=this;t instanceof e?t.each(i):t&&O(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return IA?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function je(e){return new vU(e)}function pU(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function rh(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&se(r,t),r}function OA(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ps(e,t){return e.hasOwnProperty(t)}function Tr(){}var gU=180/Math.PI;function $s(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function mU(e){return[e[0],e[1]]}function L1(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function yU(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function _U(e){return Math.sqrt(bU(e))}function bU(e){return e[0]*e[0]+e[1]*e[1]}function Qh(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function wU(e,t){var r=_U(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function _g(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var bg=_g;function SU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ls=SU;function Jh(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function on(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Jo(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function es(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Oo=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),xU=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Oo(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Oo(r,t),"drag",t.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 Oo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Oo(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Oo(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Oo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const CU=xU;var TU=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],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(t,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(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}();const ri=TU;var MU=Math.log(2);function wg(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/MU);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[r][d]*wg(e,t-1,c,u,i|v,a),h++)}return a[o]=f,f}function D1(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=wg(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)*wg(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var I1="___zrEVENTSAVED",ev=[];function AU(e,t,r,n,i){return Sg(ev,t,n,i,!0)&&Sg(e,r,ev[0],ev[1])}function Sg(e,t,r,n,i){if(t.getBoundingClientRect&&Ue.domSupported&&!RA(t)){var a=t[I1]||(t[I1]={}),o=EU(t,a),s=PU(o,a,i);if(s)return s(e,r,n),!0}return!1}function EU(e,t){var r=t.markers;if(r)return r;r=t.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;"),e.appendChild(o),r.push(o)}return r}function PU(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?D1(s,o):D1(o,s))}function RA(e){return e.nodeName.toUpperCase()==="CANVAS"}var LU=/([&<>"'])/g,DU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Zr(e){return e==null?"":(e+"").replace(LU,function(t,r){return DU[r]})}var IU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tv=[],OU=Ue.browser.firefox&&+Ue.browser.version.split(".")[0]<39;function xg(e,t,r,n){return r=r||{},n?O1(e,t,r):OU&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):O1(e,t,r),r}function O1(e,t,r){if(Ue.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(RA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Sg(tv,e,n,i)){r.zrX=tv[0],r.zrY=tv[1];return}}r.zrX=r.zrY=0}function Hy(e){return e||window.event}function Yr(e,t,r){if(t=Hy(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&xg(e,o,t,r)}else{xg(e,t,t,r);var a=RU(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&IU.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function RU(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function kU(e,t,r,n){e.addEventListener(t,r,n)}function NU(e,t,r,n){e.removeEventListener(t,r,n)}var kA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},BU=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=xg(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in rv)if(rv.hasOwnProperty(r)){var n=rv[r](this._track,t);if(n)return n}},e}();function R1(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function FU(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var rv={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=R1(n)/R1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=FU(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _u(){return[1,0,0,1,0,0]}function zy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function $U(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function us(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Cg(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Wy(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function HU(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function nh(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var zU=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Ne=zU;var Sc=Math.min,xc=Math.max,ga=new Ne,ma=new Ne,ya=new Ne,_a=new Ne,Zs=new Ne,Qs=new Ne,WU=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Sc(t.x,this.x),n=Sc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xc(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=xc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=_u();return Cg(a,a,[-r.x,-r.y]),HU(a,a,[n,i]),Cg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var h=1/0,v=0,p=Math.abs(a-l),g=Math.abs(u-i),m=Math.abs(s-c),y=Math.abs(f-o),_=Math.min(p,g),b=Math.min(m,y);a<l||u<i?_>v&&(v=_,p<g?Ne.set(Qs,-p,0):Ne.set(Qs,g,0)):_<h&&(h=_,p<g?Ne.set(Zs,p,0):Ne.set(Zs,-g,0)),s<c||f<o?b>v&&(v=b,m<y?Ne.set(Qs,0,-m):Ne.set(Qs,0,y)):_<h&&(h=_,m<y?Ne.set(Zs,0,m):Ne.set(Zs,0,-y))}return r&&Ne.copy(r,d?Zs:Qs),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,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];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ga.x=ya.x=r.x,ga.y=_a.y=r.y,ma.x=_a.x=r.x+r.width,ma.y=ya.y=r.y+r.height,ga.transform(n),_a.transform(n),ma.transform(n),ya.transform(n),t.x=Sc(ga.x,ma.x,ya.x,_a.x),t.y=Sc(ga.y,ma.y,ya.y,_a.y);var l=xc(ga.x,ma.x,ya.x,_a.x),u=xc(ga.y,ma.y,ya.y,_a.y);t.width=l-t.x,t.height=u-t.y},e}();const tt=WU;var NA="silent";function VU(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.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:GU}}function GU(){kA(this.event)}var UU=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ri),Js=function(){function e(t,r){this.x=t,this.y=r}return e}(),jU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nv=new tt(0,0,0,0),BA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Js(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new UU,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new CU(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(O(jU,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=FA(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 Js(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.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)},t.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})},t.prototype.resize=function(){this._hovered=new Js(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=VU(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)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Js(r,n);if(k1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new tt(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(nv.copy(d.getBoundingRect()),d.transform&&nv.applyTransform(d.transform),nv.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=v){var y=r+g*Math.cos(m),_=n+g*Math.sin(m);if(k1(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new BU);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 Js;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ri);O(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){BA.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=FA(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||bg(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function YU(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?NA:!0}return!1}function k1(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=YU(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==NA)){t.target=o;break}}}function FA(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const qU=BA;var $A=32,el=7;function KU(e){for(var t=0;e>=$A;)t|=e&1,e>>=1;return e+t}function N1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;XU(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function XU(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function B1(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function iv(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[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(e,t[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 c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function av(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[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(e,t[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 c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function ZU(e,t){var r=el,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=n[h],p=i[h],g=n[h+1],m=i[h+1];i[h]=p+m,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var y=av(e[g],e,v,p,0,t);v+=y,p-=y,p!==0&&(m=iv(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var y=0,_=p,b=h;if(e[b++]=e[_++],--g===0){for(m=0;m<v;m++)e[b+m]=o[y+m];return}if(v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y];return}for(var S=r,w,x,C;;){w=0,x=0,C=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],x++,w=0,--g===0){C=!0;break}}else if(e[b++]=o[y++],w++,x=0,--v===1){C=!0;break}while((w|x)<S);if(C)break;do{if(w=av(e[_],o,y,v,0,t),w!==0){for(m=0;m<w;m++)e[b+m]=o[y+m];if(b+=w,y+=w,v-=w,v<=1){C=!0;break}}if(e[b++]=e[_++],--g===0){C=!0;break}if(x=iv(o[y],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[b+m]=e[_+m];if(b+=x,_+=x,g-=x,g===0){C=!0;break}}if(e[b++]=o[y++],--v===1){C=!0;break}S--}while(w>=el||x>=el);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<g;m++)e[b+m]=e[_+m];e[b+g]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[b+m]=o[y+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var y=h+v-1,_=g-1,b=p+g-1,S=0,w=0;if(e[b--]=e[y--],--v===0){for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m];return}if(g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_];return}for(var x=r;;){var C=0,T=0,E=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--v===0){E=!0;break}}else if(e[b--]=o[_--],T++,C=0,--g===1){E=!0;break}while((C|T)<x);if(E)break;do{if(C=v-av(o[_],e,h,v,v-1,t),C!==0){for(b-=C,y-=C,v-=C,w=b+1,S=y+1,m=C-1;m>=0;m--)e[w+m]=e[S+m];if(v===0){E=!0;break}}if(e[b--]=o[_--],--g===1){E=!0;break}if(T=g-iv(e[y],o,0,g,g-1,t),T!==0){for(b-=T,_-=T,g-=T,w=b+1,S=_+1,m=0;m<T;m++)e[w+m]=o[S+m];if(g<=1){E=!0;break}}if(e[b--]=e[y--],--v===0){E=!0;break}x--}while(C>=el||T>=el);if(E)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;m<g;m++)e[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Mf(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<$A){a=N1(e,r,n,t),B1(e,r,n,r+a,t);return}var o=ZU(e,t),s=KU(i);do{if(a=N1(e,r,n,t),a<s){var l=i;l>s&&(l=s),B1(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Or=1,bl=2,Ko=4,F1=!1;function ov(){F1||(F1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var QU=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$1}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,Mf(n,$1)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Or),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(ov(),c.z=0),isNaN(c.z2)&&(ov(),c.z2=0),isNaN(c.zlevel)&&(ov(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=at(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const JU=QU;var HA;HA=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Tg=HA;var Af={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Af.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Af.bounceIn(e*2)*.5:Af.bounceOut(e*2-1)*.5+.5}};const zA=Af;var Cc=Math.pow,Xi=Math.sqrt,id=1e-8,WA=1e-4,H1=Xi(3),Tc=1/3,Hn=$s(),Qr=$s(),cs=$s();function Ui(e){return e>-id&&e<id}function VA(e){return e>id||e<-id}function Gt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function z1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function GA(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Ui(c)&&Ui(f))if(Ui(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=f*f-4*c*d;if(Ui(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Xi(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Cc(-_,Tc):_=Cc(_,Tc),b<0?b=-Cc(-b,Tc):b=Cc(b,Tc);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*c*s-3*o*f)/(2*Xi(c*c*c)),w=Math.acos(S)/3,x=Xi(c),C=Math.cos(w),v=(-s-2*x*C)/(3*o),m=(-s+x*(C+H1*Math.sin(w)))/(3*o),T=(-s+x*(C-H1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),T>=0&&T<=1&&(a[h++]=T)}}return h}function UA(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ui(o)){if(VA(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ui(c))i[0]=-a/(2*o);else if(c>0){var f=Xi(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function ad(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function jA(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;Hn[0]=l,Hn[1]=u;for(var y=0;y<1;y+=.05)Qr[0]=Gt(e,r,i,o,y),Qr[1]=Gt(t,n,a,s,y),g=ls(Hn,Qr),g<h&&(f=y,h=g);h=1/0;for(var _=0;_<32&&!(d<WA);_++)v=f-d,p=f+d,Qr[0]=Gt(e,r,i,o,v),Qr[1]=Gt(t,n,a,s,v),g=ls(Qr,Hn),v>=0&&g<h?(f=v,h=g):(cs[0]=Gt(e,r,i,o,p),cs[1]=Gt(t,n,a,s,p),m=ls(cs,Hn),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=Gt(e,r,i,o,f),c[1]=Gt(t,n,a,s,f)),Xi(h)}function e9(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=Gt(e,r,i,o,v),g=Gt(t,n,a,s,v),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function Jt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function W1(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function t9(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ui(a)){if(VA(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ui(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Xi(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function YA(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function od(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function qA(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Hn[0]=o,Hn[1]=s;for(var d=0;d<1;d+=.05){Qr[0]=Jt(e,r,i,d),Qr[1]=Jt(t,n,a,d);var h=ls(Hn,Qr);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<WA);v++){var p=u-c,g=u+c;Qr[0]=Jt(e,r,i,p),Qr[1]=Jt(t,n,a,p);var h=ls(Qr,Hn);if(p>=0&&h<f)u=p,f=h;else{cs[0]=Jt(e,r,i,g),cs[1]=Jt(t,n,a,g);var m=ls(cs,Hn);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Jt(e,r,i,u),l[1]=Jt(t,n,a,u)),Xi(f)}function r9(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Jt(e,r,i,d),v=Jt(t,n,a,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var n9=/cubic-bezier\(([0-9,\.e ]+)\)/;function KA(e){var t=e&&n9.exec(e);if(t){var r=t[1].split(","),n=+Gn(r[0]),i=+Gn(r[1]),a=+Gn(r[2]),o=+Gn(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:GA(0,n,a,1,l,s)&&Gt(0,i,o,1,s[0])}}}var i9=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Tr,this.ondestroy=t.ondestroy||Tr,this.onrestart=t.onrestart||Tr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ge(t)?t:zA[t]||KA(t)},e}();const a9=i9;var XA=function(){function e(t){this.value=t}return e}(),o9=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new XA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),s9=function(){function e(t){this._list=new o9,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new XA(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Xu=s9;var V1={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 Wl(e){return e=Math.round(e),e<0?0:e>255?255:e}function G1(e){return e<0?0:e>1?1:e}function sv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wl(parseFloat(t)/100*255):Wl(parseInt(t,10))}function Vl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?G1(parseFloat(t)/100):G1(parseFloat(t))}function lv(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function jr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Mg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ZA=new Xu(20),Mc=null;function Ro(e,t){Mc&&Mg(Mc,t),Mc=ZA.put(e,Mc||t.slice())}function oo(e,t){if(e){t=t||[];var r=ZA.get(e);if(r)return Mg(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in V1)return Mg(t,V1[n]),Ro(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){jr(t,0,0,0,1);return}return jr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Ro(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){jr(t,0,0,0,1);return}return jr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ro(e,t),t}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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?jr(t,+u[0],+u[1],+u[2],1):jr(t,0,0,0,1);c=Vl(u.pop());case"rgb":if(u.length>=3)return jr(t,sv(u[0]),sv(u[1]),sv(u[2]),u.length===3?c:Vl(u[3])),Ro(e,t),t;jr(t,0,0,0,1);return;case"hsla":if(u.length!==4){jr(t,0,0,0,1);return}return u[3]=Vl(u[3]),U1(u,t),Ro(e,t),t;case"hsl":if(u.length!==3){jr(t,0,0,0,1);return}return U1(u,t),Ro(e,t),t;default:return}}jr(t,0,0,0,1)}}function U1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Vl(e[1]),i=Vl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],jr(t,Wl(lv(o,a,r+1/3)*255),Wl(lv(o,a,r)*255),Wl(lv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function j1(e,t){var r=oo(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Vy(r,r.length===4?"rgba":"rgb")}}function Vy(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function sd(e,t){var r=oo(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function l9(e){return e.type==="linear"}function u9(e){return e.type==="radial"}(function(){return Ue.hasGlobalWindow&&Ge(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Ag=Array.prototype.slice;function fi(e,t,r){return(t-e)*r+e}function uv(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=fi(t[a],r[a],n);return e}function c9(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=fi(t[o][s],r[o][s],n)}return e}function Ac(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Y1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function f9(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,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 d9(e,t,r){var n=e,i=t;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]:Ag.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 c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function Ef(e){if(Ar(e)){var t=e.length;if(Ar(e[0])){for(var r=[],n=0;n<t;n++)r.push(Ag.call(e[n]));return r}return Ag.call(e)}return e}function Pf(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function h9(e){return Ar(e&&e[0])?2:1}var Ec=0,Lf=1,QA=2,wl=3,Eg=4,Pg=5,q1=6;function K1(e){return e===Eg||e===Pg}function Pc(e){return e===Lf||e===QA}var tl=[0,0,0,0],v9=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=q1,l=r;if(Ar(r)){var u=h9(r);s=u,(u===1&&!bt(r[0])||u===2&&!bt(r[0][0]))&&(o=!0)}else if(bt(r)&&!nd(r))s=Ec;else if(Ae(r))if(!isNaN(+r))s=Ec;else{var c=oo(r);c&&(l=c,s=wl)}else if(th(r)){var f=se({},l);f.colorStops=Re(r.colorStops,function(h){return{offset:h.offset,color:oo(h.color)}}),l9(r)?s=Eg:u9(r)&&(s=Pg),l=f}a===0?this.valType=s:(s!==this.valType||s===q1)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Ge(n)?n:zA[n]||KA(n)),i.push(d),d},e.prototype.prepare=function(t,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=Pc(i),u=K1(i),c=0;c<a;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==a-1?d9(d,h,i):u&&f9(d.colorStops,h.colorStops))}if(!s&&i!==Pg&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===Ec?n[c].additiveValue=n[c].value-v:i===wl?n[c].additiveValue=Ac([],n[c].value,v,-1):Pc(i)&&(n[c].additiveValue=i===Lf?Ac([],n[c].value,v,-1):Y1([],n[c].value,v,-1))}},e.prototype.step=function(t,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===wl,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?tl:t[l];if((Pc(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(Pc(a))a===Lf?uv(y,h[i],v[i],m):c9(y,h[i],v[i],m);else if(K1(a)){var _=h[i],b=v[i],S=a===Eg;t[l]={type:S?"linear":"radial",x:fi(_.x,b.x,m),y:fi(_.y,b.y,m),colorStops:Re(_.colorStops,function(x,C){var T=b.colorStops[C];return{offset:fi(x.offset,T.offset,m),color:Pf(uv([],x.color,T.color,m))}}),global:b.global},S?(t[l].x2=fi(_.x2,b.x2,m),t[l].y2=fi(_.y2,b.y2,m)):t[l].r=fi(_.r,b.r,m)}else if(u)uv(y,h[i],v[i],m),n||(t[l]=Pf(y));else{var w=fi(h[i],v[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ec?t[n]=t[n]+i:r===wl?(oo(t[n],tl),Ac(tl,tl,i,1),t[n]=Pf(tl)):r===Lf?Ac(t[n],t[n],i,1):r===QA&&Y1(t[n],t[n],i,1)},e}(),p9=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Fy("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Ct(r),n)},e.prototype.whenWithKeys=function(t,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 v9(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===wl&&u&&(u=Pf(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ef(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ef(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){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,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new a9({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){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,h);var m=r._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Re(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[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},e.prototype.saveTo=function(t,r,n){if(t){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&&(t[a]=Ef(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Ct(t);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,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const Gy=p9;function ts(){return new Date().getTime()}var g9=function(e){pe(t,e);function t(r){var n=e.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 t.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},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.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}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=ts()-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())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Tg(n),!r._paused&&r.update())}Tg(n)},t.prototype.start=function(){this._running||(this._time=ts(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ts(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ts()-this._pauseStart,this._paused=!1)},t.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},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Gy(r,n.loop);return this.addAnimator(i),i},t}(ri);const m9=g9;var y9=300,cv=Ue.domSupported,fv=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Re(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),X1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Z1=!1;function Lg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function _9(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function dv(e){e&&(e.zrByTouch=!0)}function b9(e,t){return Yr(e.dom,new w9(e,t),!0)}function JA(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var w9=function(){function e(t,r){this.stopPropagation=Tr,this.stopImmediatePropagation=Tr,this.preventDefault=Tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),mn={mousedown:function(e){e=Yr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Yr(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Yr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Yr(this.dom,e);var t=e.toElement||e.relatedTarget;JA(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Z1=!0,e=Yr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Z1||(e=Yr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Yr(this.dom,e),dv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),mn.mousemove.call(this,e),mn.mousedown.call(this,e)},touchmove:function(e){e=Yr(this.dom,e),dv(e),this.handler.processGesture(e,"change"),mn.mousemove.call(this,e)},touchend:function(e){e=Yr(this.dom,e),dv(e),this.handler.processGesture(e,"end"),mn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<y9&&mn.click.call(this,e)},pointerdown:function(e){mn.mousedown.call(this,e)},pointermove:function(e){Lg(e)||mn.mousemove.call(this,e)},pointerup:function(e){mn.mouseup.call(this,e)},pointerout:function(e){Lg(e)||mn.mouseout.call(this,e)}};O(["click","dblclick","contextmenu"],function(e){mn[e]=function(t){t=Yr(this.dom,t),this.trigger(e,t)}});var Dg={pointermove:function(e){Lg(e)||Dg.mousemove.call(this,e)},pointerup:function(e){Dg.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function S9(e,t){var r=t.domHandlers;Ue.pointerEventsSupported?O(fv.pointer,function(n){Df(t,n,function(i){r[n].call(e,i)})}):(Ue.touchEventsSupported&&O(fv.touch,function(n){Df(t,n,function(i){r[n].call(e,i),_9(t)})}),O(fv.mouse,function(n){Df(t,n,function(i){i=Hy(i),t.touching||r[n].call(e,i)})}))}function x9(e,t){Ue.pointerEventsSupported?O(X1.pointer,r):Ue.touchEventsSupported||O(X1.mouse,r);function r(n){function i(a){a=Hy(a),JA(e,a.target)||(a=b9(e,a),t.domHandlers[n].call(e,a))}Df(t,n,i,{capture:!0})}}function Df(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,kU(e.domTarget,t,r,n)}function hv(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&NU(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Q1=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),C9=function(e){pe(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new Q1(r,mn),cv&&(i._globalHandlerScope=new Q1(document,Dg)),S9(i,i._localHandlerScope),i}return t.prototype.dispose=function(){hv(this._localHandlerScope),cv&&hv(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,cv&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?x9(this,n):hv(n)}},t}(ri);const T9=C9;var e2=1;Ue.hasGlobalWindow&&(e2=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ld=e2,Ig=.4,Og="#333",Rg="#ccc",M9="#eee",J1=zy,ew=5e-5;function ba(e){return e>ew||e<-ew}var wa=[],ko=[],vv=_u(),pv=Math.abs,A9=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return ba(this.rotation)||ba(this.x)||ba(this.y)||ba(this.scaleX-1)||ba(this.scaleY-1)||ba(this.skewX)||ba(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&J1(n);return}n=n||_u(),r?this.getLocalTransform(n):J1(n),t&&(r?us(n,t,n):$U(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(wa);var n=wa[0]<0?-1:1,i=wa[1]<0?-1:1,a=((wa[0]-n)*r+n)/wa[0]||0,o=((wa[1]-i)*r+i)/wa[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_u(),nh(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(us(ko,t.invTransform,r),r=ko);var n=this.originX,i=this.originY;(n||i)&&(vv[4]=n,vv[5]=i,us(ko,r,vv),ko[4]-=n,ko[5]-=i,r=ko),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&on(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&on(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&pv(t[0]-1)>1e-10&&pv(t[3]-1)>1e-10?Math.sqrt(pv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){E9(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Wy(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),bu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function E9(e,t){for(var r=0;r<bu.length;r++){var n=bu[r];e[n]=t[n]}}const ih=A9;var tw={};function Fr(e,t){t=t||mo;var r=tw[t];r||(r=tw[t]=new Xu(500));var n=r.get(e);return n==null&&(n=Mo.measureText(e,t).width,r.put(e,n)),n}function rw(e,t,r,n){var i=Fr(e,t),a=jy(t),o=Sl(0,i,r),s=Xo(0,a,n),l=new tt(o,s,i,a);return l}function Uy(e,t,r,n){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return rw(i[0],t,r,n);for(var o=new tt(0,0,0,0),s=0;s<i.length;s++){var l=rw(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Sl(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Xo(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function jy(e){return Fr("国",e)}function aa(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ud(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=aa(n[0],r.width),u+=aa(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var gv="__zr_normal__",mv=bu.concat(["ignore"]),P9=ia(bu,function(e,t){return e[t]=!0,e},{ignore:!1}),No={},L9=new tt(0,0,0,0),Yy=function(){function e(t){this.id=PA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){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 c=L9;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(No,n,c):ud(No,n,c),a.x=No.x,a.y=No.y,o=No.align,s=No.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=aa(f[0],c.width),h=aa(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.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,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Or,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rg:Og},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&oo(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,Vy(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},se(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(De(t))for(var n=t,i=Ct(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);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!==gv)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,mv)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(gv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===gv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(at(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Fy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Or),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Or)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=at(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];se(r,a),a.textConfig&&(n=n||{},se(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=se({},i?this.textConfig:n.textConfig),se(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<mv.length;c++){var f=mv[c],d=a&&P9[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new ih,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),se(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Or;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Gy(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=at(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){yv(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){yv(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=yv(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Or;function r(n,i,a,o){Object.defineProperty(t,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(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();ti(Yy,ri);ti(Yy,ih);function yv(e,t,r,n,i){r=r||{};var a=[];t2(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=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 d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function _v(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function D9(e){return Ar(e[0])}function I9(e,t,r){if(Ar(t[r]))if(Ar(e[r])||(e[r]=[]),zr(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),_v(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(D9(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?_v(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else _v(a,i,o);a.length=i.length}else e[r]=t[r]}function O9(e,t){return e===t||Ar(e)&&Ar(t)&&R9(e,t)}function R9(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function t2(e,t,r,n,i,a,o,s){for(var l=Ct(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!De(a),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],y=n[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(De(y)&&!Ar(y)&&!th(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}t2(e,m,r[m],y,i,a&&a[m],o,s)}else p.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var b=0;b<v.length;b++){var S=v[b];if(S.targetName===t){var w=S.stopTracks(p);if(w){var x=at(v,S);v.splice(x,1)}}}if(i.force||(p=Ht(p,function(A){return!O9(n[A],r[A])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,T=void 0,E=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];T[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){E={};for(var b=0;b<_;b++){var m=p[b];E[m]=Ef(r[m]),I9(r,n,m)}}var S=new Gy(r,!1,!1,f?Ht(v,function(M){return M.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),d&&C&&S.whenWithKeys(0,C,p),E&&S.whenWithKeys(0,E,p),S.whenWithKeys(u??500,s?T:n,p).delay(c||0),e.addAnimator(S,t),o.push(S)}}const r2=Yy;var n2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.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},t.prototype.replace=function(r,n){var i=at(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.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},t.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()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=at(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.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},t.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},t.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},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new tt(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(),c=l.getLocalTransform(a);c?(tt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(r2);n2.prototype.type="group";const cn=n2;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var If={},i2={};function k9(e){delete i2[e]}function N9(e){if(!e)return!1;if(typeof e=="string")return sd(e,1)<Ig;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=sd(t[i].color,1);return r/=n,r<Ig}return!1}var B9=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new JU,o=n.renderer||"canvas";If[o]||(o=Ct(If)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new If[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Ue.node&&!Ue.worker&&!l?new T9(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?Ue.touchEventsSupported:!!c,d=44,h;f&&(h=qe(n.pointerSize,d)),this.handler=new qU(a,s,u,s.root,h),this.animation=new m9({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=N9(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var r,n=ts();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ts();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof cn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,k9(this.id)},e}();function nw(e,t){var r=new B9(PA(),e,t);return i2[r.id]=r,r}function F9(e,t){If[e]=t}var iw=1e-4,a2=20;function $9(e){return e.replace(/^\s+|\s+$/g,"")}function kg(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ae(e)?$9(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function It(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),a2),e=(+e).toFixed(t),r?e:+e}function di(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return H9(e)}function H9(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function z9(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function W9(e,t){var r=ia(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Re(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Re(i,function(h){return Math.floor(h)}),s=ia(o,function(h,v){return h+v},0),l=Re(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Re(o,function(h){return h/n})}function V9(e,t){var r=Math.max(di(e),di(t)),n=e+t;return r>a2?n:It(n,r)}function o2(e){var t=Math.PI*2;return(e%t+t)%t}function cd(e){return e>-iw&&e<iw}var G9=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function bi(e){if(e instanceof Date)return e;if(Ae(e)){var t=G9.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function U9(e){return Math.pow(10,qy(e))}function qy(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function s2(e,t){var r=qy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function fd(e){var t=parseFloat(e);return t==e&&(t!==0||!Ae(e)||e.indexOf("x")<=0)?t:NaN}function j9(e){return!isNaN(fd(e))}function l2(){return Math.round(Math.random()*9)}function u2(e,t){return t===0?e:u2(t,e%t)}function aw(e,t){return e==null?t:t==null?e:e*t/u2(e,t)}function br(e){throw new Error(e)}function ow(e,t,r){return(t-e)*r+e}var c2="series\0",Y9="\0_ec_\0";function cr(e){return e instanceof Array?e:e==null?[]:[e]}function Ng(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var sw=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Zu(e){return De(e)&&!ge(e)&&!(e instanceof Date)?e.value:e}function q9(e){return De(e)&&!(e instanceof Array)}function K9(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=je();O(t,function(l,u){if(!De(l)){t[u]=null;return}});var s=X9(e,o,r);return(n||i)&&Z9(s,e,o,t),n&&Q9(s,t),n||i?J9(s,t,i):a&&ej(s,t),tj(s),s}function X9(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||wu(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Z9(e,t,r,n){O(n,function(i,a){if(!(!i||i.id==null)){var o=Gl(i.id),s=r.get(o);if(s!=null){var l=e[s];_i(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function Q9(e,t){O(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!wu(r)&&!wu(a)&&f2("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function J9(e,t,r){O(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||wu(i.existing)||i.existing&&n.id!=null&&!f2("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function ej(e,t){O(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function tj(e){var t=je();O(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),O(e,function(r){var n=r.newOption;_i(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),O(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(De(a)){if(o.name=a.name!=null?Gl(a.name):i?i.name:c2+n,i)o.id=Gl(i.id);else if(a.id!=null)o.id=Gl(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function f2(e,t,r){var n=qn(t[e],null),i=qn(r[e],null);return n!=null&&i!=null&&n===i}function Gl(e){return qn(e,"")}function qn(e,t){return e==null?t:Ae(e)?e:bt(e)||mg(e)?e+"":t}function Ky(e){var t=e.name;return!!(t&&t.indexOf(c2))}function wu(e){return e&&e.id!=null&&Gl(e.id).indexOf(Y9)===0}function rj(e,t,r){O(e,function(n){var i=n.newOption;De(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=nj(t,i,n.existing,r))})}function nj(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Qu(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ge(t.dataIndex)?Re(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ge(t.name)?Re(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function At(){var e="__ec_inner_"+ij++;return function(t){return t[e]||(t[e]={})}}var ij=l2();function bv(e,t,r){var n=Xy(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=Ju(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Xy(e,t){var r;if(Ae(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=je(),a={},o=!1;return O(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&at(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var xn={useDefault:!0,enableAll:!1,enableNone:!1};function Ju(e,t,r,n){n=n||xn;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(_i(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(_i(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function d2(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function aj(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function oj(e){return e==="auto"?Ue.domSupported?"html":"richText":e||"html"}function sj(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(bt(n)){var o=ow(r||0,n,i);return It(o,a?Math.max(di(r||0),di(n)):t)}else{if(Ae(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=ow(h,v,i);s[f]=It(o,a?Math.max(di(h),di(v)):t)}}return s}}var lj=".",Sa="___EC__COMPONENT__CONTAINER___",h2="___EC__EXTENDED_CLASS___";function Un(e){var t={main:"",sub:""};if(e){var r=e.split(lj);t.main=r[0]||"",t.sub=r[1]||""}return t}function uj(e){_i(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function cj(e){return!!(e&&e[h2])}function Zy(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return fj(n)?i=function(a){pe(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},uU(i,this)),se(i.prototype,r),i[h2]=!0,i.extend=this.extend,i.superCall=vj,i.superApply=pj,i.superClass=n,i}}function fj(e){return Ge(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function v2(e,t){e.extend=t.extend}var dj=Math.round(Math.random()*10);function hj(e){var t=["__\0is_clz",dj++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function vj(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function pj(e,t,r){return this.superClass.prototype[t].apply(e,r)}function ah(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){uj(i),n.prototype.type=i;var a=Un(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Sa){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Sa]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Un(n),a=[],o=t[i.main];return o&&o[Sa]?O(o,function(s,l){l!==Sa&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Un(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return O(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Un(n),a=t[i.main];return a&&a[Sa]};function r(n){var i=t[n.main];return(!i||!i[Sa])&&(i=t[n.main]={},i[Sa]=!0),i}}function Su(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&at(i,l)>=0||a&&at(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var gj=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],mj=Su(gj),yj=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return mj(this,t,r)},e}(),Bg=new Xu(50);function _j(e){if(typeof e=="string"){var t=Bg.get(e);return t&&t.image}else return e}function p2(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Bg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!oh(t)&&a.pending.push(o)):(t=Mo.loadImage(e,lw,lw),t.__zrImageSrc=e,Bg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function lw(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function oh(e){return e&&e.width&&e.height}var wv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function bj(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
`);i=g2(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=m2(a[o],i);return a.join(`
`)}function g2(e,t,r,n){n=n||{};var i=se({},n);i.font=t,r=qe(r,"..."),i.maxIterations=qe(n.maxIterations,2);var a=i.minChar=qe(n.minChar,0);i.cnCharWidth=Fr("国",t);var o=i.ascCharWidth=Fr("a",t);i.placeholder=qe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Fr(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function m2(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Fr(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?wj(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Fr(e,n)}return e===""&&(e=t.placeholder),e}function wj(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function Sj(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=jy(i),s=qe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?y2(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
`):[];var d=f.length*s,h=qe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var p=g2(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=m2(f[g],p);for(var m=h,y=0,g=0;g<f.length;g++)y=Math.max(Fr(f[g],i),y);c==null&&(c=y);var _=y;return n&&(m+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:y,contentHeight:d,width:c}}var xj=function(){function e(){}return e}(),uw=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Cj=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function Tj(e,t){var r=new Cj;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=wv.lastIndex=0,l;(l=wv.exec(e))!=null;){var u=l.index;u>s&&Sv(r,e.substring(s,u),t,o),Sv(r,l[2],t,o,l[1]),s=wv.lastIndex}s<e.length&&Sv(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=a==="truncate",p=t.lineOverflow==="truncate";function g(B,N,j){B.width=N,B.lineHeight=j,f+=j,d=Math.max(d,N)}e:for(var m=0;m<r.lines.length;m++){for(var y=r.lines[m],_=0,b=0,S=0;S<y.tokens.length;S++){var w=y.tokens[S],x=w.styleName&&t.rich[w.styleName]||{},C=w.textPadding=x.padding,T=C?C[1]+C[3]:0,E=w.font=x.font||t.font;w.contentHeight=jy(E);var A=qe(x.height,w.contentHeight);if(w.innerHeight=A,C&&(A+=C[0]+C[2]),w.height=A,w.lineHeight=Hl(x.lineHeight,t.lineHeight,A),w.align=x&&x.align||t.align,w.verticalAlign=x&&x.verticalAlign||"middle",p&&i!=null&&f+w.lineHeight>i){S>0?(y.tokens=y.tokens.slice(0,S),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var M=x.width,D=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,c.push(w),w.contentWidth=Fr(w.text,E);else{if(D){var R=x.backgroundColor,k=R&&R.image;k&&(k=_j(k),oh(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var F=v&&n!=null?n-b:null;F!=null&&F<w.width?!D||F<T?(w.text="",w.width=w.contentWidth=0):(w.text=bj(w.text,F-T,E,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=Fr(w.text,E)):w.contentWidth=Fr(w.text,E)}w.width+=T,b+=w.width,x&&(_=Math.max(_,w.lineHeight))}g(y,b,_)}r.outerWidth=r.width=qe(n,d),r.outerHeight=r.height=qe(i,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var w=c[m],K=w.percentWidth;w.width=parseInt(K,10)/100*r.width}return r}function Sv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=aa(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
`),u=!0),n.accumWidth=v}else{var p=y2(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
`);for(var g=0;g<c.length;g++){var m=c[g],y=new xj;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!a,typeof o.width=="number"?y.width=o.width:y.width=f?f[g]:Fr(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new uw)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else s.push(new uw([y]))}}function Mj(e){var t=e.charCodeAt(0);return t>=33&&t<=383}var Aj=ia(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Ej(e){return Mj(e)?!!Aj[e]:!0}function y2(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Fr(d,t),v=n?!1:!Ej(d);if(a.length?c+h>r:i+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Fg="__zr_style_"+Math.round(Math.random()*10),so={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},sh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};so[Fg]=!0;var cw=["z","z2","invisible"],Pj=["invisible"],Lj=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ct(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Dj(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},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.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 tt(0,0,0,0)),n?tt.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},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new tt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:se(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=bl,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&bl)},t.prototype.styleUpdated=function(){this.__dirty&=~bl},t.prototype.createStyle=function(r){return rh(so,r)},t.prototype.useStyle=function(r){r[Fg]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Fg]},t.prototype._innerSaveToNormal=function(r){e.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,cw)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.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 c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Ct(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Ct(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Pj:cw,d=0;d<p.length;d++){var h=p[d];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.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},t.prototype._mergeStyle=function(r,n){return se(r,n),r},t.prototype.getAnimationStyleProps=function(){return sh},t.initDefaultProps=function(){var r=t.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=Or|bl}(),t}(r2),xv=new tt(0,0,0,0),Cv=new tt(0,0,0,0);function Dj(e,t,r){return xv.copy(e.getBoundingRect()),e.transform&&xv.applyTransform(e.transform),Cv.width=t,Cv.height=r,!xv.intersect(Cv)}const ec=Lj;var Jr=Math.min,en=Math.max,Tv=Math.sin,Mv=Math.cos,xa=Math.PI*2,Lc=$s(),Dc=$s(),Ic=$s();function fw(e,t,r,n,i,a){i[0]=Jr(e,r),i[1]=Jr(t,n),a[0]=en(e,r),a[1]=en(t,n)}var dw=[],hw=[];function Ij(e,t,r,n,i,a,o,s,l,u){var c=UA,f=Gt,d=c(e,r,i,o,dw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,i,o,dw[h]);l[0]=Jr(v,l[0]),u[0]=en(v,u[0])}d=c(t,n,a,s,hw);for(var h=0;h<d;h++){var p=f(t,n,a,s,hw[h]);l[1]=Jr(p,l[1]),u[1]=en(p,u[1])}l[0]=Jr(e,l[0]),u[0]=en(e,u[0]),l[0]=Jr(o,l[0]),u[0]=en(o,u[0]),l[1]=Jr(t,l[1]),u[1]=en(t,u[1]),l[1]=Jr(s,l[1]),u[1]=en(s,u[1])}function Oj(e,t,r,n,i,a,o,s){var l=YA,u=Jt,c=en(Jr(l(e,r,i),1),0),f=en(Jr(l(t,n,a),1),0),d=u(e,r,i,c),h=u(t,n,a,f);o[0]=Jr(e,i,d),o[1]=Jr(t,a,h),s[0]=en(e,i,d),s[1]=en(t,a,h)}function Rj(e,t,r,n,i,a,o,s,l){var u=Jo,c=es,f=Math.abs(i-a);if(f%xa<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Lc[0]=Mv(i)*r+e,Lc[1]=Tv(i)*n+t,Dc[0]=Mv(a)*r+e,Dc[1]=Tv(a)*n+t,u(s,Lc,Dc),c(l,Lc,Dc),i=i%xa,i<0&&(i=i+xa),a=a%xa,a<0&&(a=a+xa),i>a&&!o?a+=xa:i<a&&o&&(i+=xa),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Ic[0]=Mv(h)*r+e,Ic[1]=Tv(h)*n+t,u(s,Ic,s),c(l,Ic,l))}var it={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ca=[],Ta=[],Rn=[],Ii=[],kn=[],Nn=[],Av=Math.min,Ev=Math.max,Ma=Math.cos,Aa=Math.sin,oi=Math.abs,$g=Math.PI,$i=$g*2,Pv=typeof Float32Array<"u",rl=[];function Lv(e){var t=Math.round(e/$g*1e8)/1e8;return t%2*$g}function kj(e,t){var r=Lv(e[0]);r<0&&(r+=$i);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=$i?i=r+$i:t&&r-i>=$i?i=r-$i:!t&&r>i?i=r+($i-Lv(r-i)):t&&r<i&&(i=r-($i-Lv(i-r))),e[0]=r,e[1]=i}var Nj=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=oi(n/ld/t)||0,this._uy=oi(n/ld/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(it.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=oi(t-this._xi),i=oi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(it.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(it.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(it.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),rl[0]=i,rl[1]=a,kj(rl,o),i=rl[0],a=rl[1];var s=a-i;return this.addData(it.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Ma(a)*n+t,this._yi=Aa(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(it.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(it.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Pv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();Pv&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Pv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=kn[0]=kn[1]=Number.MAX_VALUE,Ii[0]=Ii[1]=Nn[0]=Nn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case it.M:r=i=t[o++],n=a=t[o++],kn[0]=i,kn[1]=a,Nn[0]=i,Nn[1]=a;break;case it.L:fw(r,n,t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case it.C:Ij(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case it.Q:Oj(r,n,t[o++],t[o++],t[o],t[o+1],kn,Nn),r=t[o++],n=t[o++];break;case it.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(i=Ma(h)*f+u,a=Aa(h)*d+c),Rj(u,c,f,d,h,v,p,kn,Nn),r=Ma(v)*f+u,n=Aa(v)*d+c;break;case it.R:i=r=t[o++],a=n=t[o++];var g=t[o++],m=t[o++];fw(i,a,i+g,a+m,kn,Nn);break;case it.Z:r=i,n=a;break}Jo(Rn,Rn,kn),es(Ii,Ii,Nn)}return o===0&&(Rn[0]=Rn[1]=Ii[0]=Ii[1]=0),new tt(Rn[0],Rn[1],Ii[0]-Rn[0],Ii[1]-Rn[1])},e.prototype._calculateLength=function(){var t=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,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var p=-1;switch(h){case it.M:a=s=t[d++],o=l=t[d++];break;case it.L:{var g=t[d++],m=t[d++],y=g-a,_=m-o;(oi(y)>n||oi(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case it.C:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++],w=t[d++],x=t[d++];p=e9(a,o,b,S,g,m,w,x,10),a=w,o=x;break}case it.Q:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++];p=r9(a,o,b,S,g,m,10),a=g,o=m;break}case it.A:var C=t[d++],T=t[d++],E=t[d++],A=t[d++],M=t[d++],D=t[d++],R=D+M;d+=1,t[d++],v&&(s=Ma(M)*E+C,l=Aa(M)*A+T),p=Ev(E,A)*Av($i,Math.abs(D)),a=Ma(R)*E+C,o=Aa(R)*A+T;break;case it.R:{s=a=t[d++],l=o=t[d++];var k=t[d++],F=t[d++];p=k*2+F*2;break}case it.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,p,g=0,m=0,y,_=0,b,S;if(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;e:for(var w=0;w<o;){var x=n[w++],C=w===1;switch(C&&(u=n[w],c=n[w+1],s=u,l=c),x!==it.L&&_>0&&(t.lineTo(b,S),_=0),x){case it.M:s=u=n[w++],l=c=n[w++],t.moveTo(u,c);break;case it.L:{f=n[w++],d=n[w++];var T=oi(f-u),E=oi(d-c);if(T>i||E>a){if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var D=T*T+E*E;D>_&&(b=f,S=d,_=D)}break}case it.C:{var R=n[w++],k=n[w++],F=n[w++],K=n[w++],B=n[w++],N=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;ad(u,R,F,B,M,Ca),ad(c,k,K,N,M,Ta),t.bezierCurveTo(Ca[1],Ta[1],Ca[2],Ta[2],Ca[3],Ta[3]);break e}g+=A}t.bezierCurveTo(R,k,F,K,B,N),u=B,c=N;break}case it.Q:{var R=n[w++],k=n[w++],F=n[w++],K=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;od(u,R,F,M,Ca),od(c,k,K,M,Ta),t.quadraticCurveTo(Ca[1],Ta[1],Ca[2],Ta[2]);break e}g+=A}t.quadraticCurveTo(R,k,F,K),u=F,c=K;break}case it.A:var j=n[w++],re=n[w++],oe=n[w++],_e=n[w++],Ee=n[w++],V=n[w++],J=n[w++],W=!n[w++],Y=oe>_e?oe:_e,ue=oi(oe-_e)>.001,he=Ee+V,Q=!1;if(h){var A=v[m++];g+A>y&&(he=Ee+V*(y-g)/A,Q=!0),g+=A}if(ue&&t.ellipse?t.ellipse(j,re,oe,_e,J,Ee,he,W):t.arc(j,re,Y,Ee,he,W),Q)break e;C&&(s=Ma(Ee)*oe+j,l=Aa(Ee)*_e+re),u=Ma(he)*oe+j,c=Aa(he)*_e+re;break;case it.R:s=u=n[w],l=c=n[w+1],f=n[w++],d=n[w++];var L=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(f,d),t.lineTo(f+Av(z,L),d),z-=L,z>0&&t.lineTo(f+L,d+Av(z,I)),z-=I,z>0&&t.lineTo(f+Ev(L-z,0),d+I),z-=L,z>0&&t.lineTo(f,d+Ev(I-z,0));break e}g+=A}t.rect(f,d,L,I);break;case it.Z:if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=it,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const yo=Nj;function Bo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Bj(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=jA(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function Fj(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=qA(e,t,r,n,i,a,s,l,null);return c<=u/2}var vw=Math.PI*2;function ji(e){return e%=vw,e<0&&(e+=vw),e}var nl=Math.PI*2;function $j(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%nl<1e-4)return!0;if(a){var f=n;n=ji(i),i=ji(f)}else n=ji(n),i=ji(i);n>i&&(i+=nl);var d=Math.atan2(l,s);return d<0&&(d+=nl),d>=n&&d<=i||d+nl>=n&&d+nl<=i}function Ea(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Oi=yo.CMD,Pa=Math.PI*2,Hj=1e-4;function zj(e,t){return Math.abs(e-t)<Hj}var or=[-1,-1,-1],Xr=[-1,-1];function Wj(){var e=Xr[0];Xr[0]=Xr[1],Xr[1]=e}function Vj(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=GA(t,n,a,s,u,or);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=or[p],m=g===0||g===1?.5:1,y=Gt(e,r,i,o,g);y<l||(d<0&&(d=UA(t,n,a,s,Xr),Xr[1]<Xr[0]&&d>1&&Wj(),h=Gt(t,n,a,s,Xr[0]),d>1&&(v=Gt(t,n,a,s,Xr[1]))),d===2?g<Xr[0]?f+=h<t?m:-m:g<Xr[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Xr[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function Gj(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=t9(t,n,a,s,or);if(l===0)return 0;var u=YA(t,n,a);if(u>=0&&u<=1){for(var c=0,f=Jt(t,n,a,u),d=0;d<l;d++){var h=or[d]===0||or[d]===1?.5:1,v=Jt(e,r,i,or[d]);v<o||(or[d]<u?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=or[0]===0||or[0]===1?.5:1,v=Jt(e,r,i,or[0]);return v<o?0:a<t?h:-h}}function Uj(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);or[0]=-l,or[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Pa-1e-4){n=0,i=Pa;var c=a?1:-1;return o>=or[0]+e&&o<=or[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Pa,i+=Pa);for(var d=0,h=0;h<2;h++){var v=or[h];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=Pa+p),(p>=n&&p<=i||p+Pa>=n&&p+Pa<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function _2(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var p=a[v++],g=v===1;switch(p===Oi.M&&v>1&&(r||(s+=Ea(l,u,c,f,n,i))),g&&(l=a[v],u=a[v+1],c=l,f=u),p){case Oi.M:c=a[v++],f=a[v++],l=c,u=f;break;case Oi.L:if(r){if(Bo(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ea(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Oi.C:if(r){if(Bj(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Vj(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 Oi.Q:if(r){if(Fj(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Gj(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Oi.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],S=a[v++],w=a[v++];v+=1;var x=!!(1-a[v++]);d=Math.cos(S)*_+m,h=Math.sin(S)*b+y,g?(c=d,f=h):s+=Ea(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if($j(m,y,b,S,S+w,x,t,C,i))return!0}else s+=Uj(m,y,b,S,S+w,x,C,i);l=Math.cos(S+w)*_+m,u=Math.sin(S+w)*b+y;break;case Oi.R:c=l=a[v++],f=u=a[v++];var T=a[v++],E=a[v++];if(d=c+T,h=f+E,r){if(Bo(c,f,d,f,t,n,i)||Bo(d,f,d,h,t,n,i)||Bo(d,h,c,h,t,n,i)||Bo(c,h,c,f,t,n,i))return!0}else s+=Ea(d,f,d,h,n,i),s+=Ea(c,h,c,f,n,i);break;case Oi.Z:if(r){if(Bo(l,u,c,f,t,n,i))return!0}else s+=Ea(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!zj(u,f)&&(s+=Ea(l,u,c,f,n,i)||0),s!==0}function jj(e,t,r){return _2(e,0,!1,t,r)}function Yj(e,t,r,n){return _2(e,t,!0,r,n)}var b2=ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},so),qj={style:ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},sh.style)},Dv=bu.concat(["invisible","culling","z","z2","zlevel","parent"]),Kj=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(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<Dv.length;++s)i[Dv[s]]=this[Dv[s]];i.__dirty|=Or}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Ct(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?se(this.style,s):this.useStyle(s):o==="shape"?se(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ae(r)){var n=sd(r,0);return n>.5?Og:n>.2?M9:Rg}else if(r)return Rg}return Og},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ae(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=sd(r,0)<Ig;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Ko},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new yo(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.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&Ko)&&(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 c=this.strokeContainThreshold;u=Math.max(u,c??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},t.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)),Yj(s,l/u,r,n)))return!0}if(this.hasFill())return jj(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ko,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:se(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ko)},t.prototype.createStyle=function(r){return rh(b2,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=se({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.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=se({},i.shape),se(u,n.shape)):(u=se({},a?this.shape:i.shape),se(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=se({},this.shape);for(var c={},f=Ct(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.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},t.prototype.getAnimationStyleProps=function(){return qj},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){pe(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 Qe(r.style)},o.prototype.getDefaultShape=function(){return Qe(r.shape)},o}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Or|bl|Ko}(),t}(ec);const ft=Kj;var Xj=ct({strokeFirst:!0,font:mo,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},b2),w2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return rh(Xj,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Uy(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},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ec);w2.prototype.type="tspan";const Hg=w2;var Zj=ct({x:0,y:0},so),Qj={style:ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},sh.style)};function Jj(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var S2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return rh(Zj,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Jj(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},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Qj},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new tt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ec);S2.prototype.type="image";const Hs=S2;function eY(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var rs=Math.round;function x2(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(rs(n*2)===rs(i*2)&&(e.x1=e.x2=Ja(n,s,!0)),rs(a*2)===rs(o*2)&&(e.y1=e.y2=Ja(a,s,!0))),e}}function C2(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ja(n,s,!0),e.y=Ja(i,s,!0),e.width=Math.max(Ja(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ja(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ja(e,t,r){if(!t)return e;var n=rs(e*2);return(n+rs(t))%2===0?n/2:(n+(r?1:-1))/2}var tY=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),rY={},T2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=C2(rY,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?eY(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ft);T2.prototype.type="rect";const Bt=T2;var pw={fill:"#000"},gw=2,nY={style:ct({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},sh.style)},M2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pw,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.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}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,lY(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new tt(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},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||pw},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return se(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Ct(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},se(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return nY},t.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},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||mo,i=r.padding,a=xw(r),o=Sj(a,r),s=Iv(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=r.x||0,g=r.y||0,m=r.align||v.align||"left",y=r.verticalAlign||v.verticalAlign||"top",_=p,b=Xo(g,o.contentHeight,y);if(s||i){var S=Sl(p,c,m),w=Xo(g,u,y);s&&this._renderBackground(r,r,S,w,c,u)}b+=h/2,i&&(_=Sw(p,m,i),y==="top"?b+=i[0]:y==="bottom"&&(b-=i[2]));for(var x=0,C=!1,T=ww("fill"in r?r.fill:(C=!0,v.fill)),E=bw("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(x=gw,v.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,R=0;R<d.length;R++){var k=this._getOrCreateChild(Hg),F=k.createStyle();k.useStyle(F),F.text=d[R],F.x=_,F.y=b,m&&(F.textAlign=m),F.textBaseline="middle",F.opacity=r.opacity,F.strokeFirst=!0,A&&(F.shadowBlur=r.textShadowBlur||0,F.shadowColor=r.textShadowColor||"transparent",F.shadowOffsetX=r.textShadowOffsetX||0,F.shadowOffsetY=r.textShadowOffsetY||0),F.stroke=E,F.fill=T,E&&(F.lineWidth=r.lineWidth||x,F.lineDash=r.lineDash,F.lineDashOffset=r.lineDashOffset||0),F.font=n,yw(F,r),b+=h,M&&k.setBoundingRect(new tt(Sl(F.x,r.width,F.textAlign),Xo(F.y,D,F.textBaseline),f,D))}},t.prototype._updateRichTexts=function(){var r=this.style,n=xw(r),i=Tj(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=Sl(u,o,d),p=Xo(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var y=g+a;Iv(r)&&this._renderBackground(r,r,v,p,o,s);for(var _=!!r.backgroundColor,b=0;b<i.lines.length;b++){for(var S=i.lines[b],w=S.tokens,x=w.length,C=S.lineHeight,T=S.width,E=0,A=g,M=y,D=x-1,R=void 0;E<x&&(R=w[E],!R.align||R.align==="left");)this._placeToken(R,r,C,m,A,"left",_),T-=R.width,A+=R.width,E++;for(;D>=0&&(R=w[D],R.align==="right");)this._placeToken(R,r,C,m,M,"right",_),T-=R.width,M-=R.width,D--;for(A+=(a-(A-g)-(y-M)-T)/2;E<=D;)R=w[E],this._placeToken(R,r,C,m,A+R.width/2,"center",_),A+=R.width,E++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Iv(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=Sw(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Hg),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=ww("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),S=bw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=gw,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||mo,g.opacity=Hl(u.opacity,n.opacity,1),yw(g,u),S&&(g.lineWidth=Hl(u.lineWidth,n.lineWidth,_),g.lineDash=qe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),b&&(g.fill=b);var x=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new tt(Sl(g.x,x,g.textAlign),Xo(g.y,C,g.textBaseline),x,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&c){p=this._getOrCreateChild(Bt),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=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=qe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Hs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=qe(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.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=Hl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return sY(r)&&(n=[r.fontStyle,r.fontWeight,oY(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gn(n)||r.textFont||r.font},t}(ec),iY={left:!0,right:1,center:1},aY={top:1,bottom:1,middle:1},mw=["fontStyle","fontWeight","fontSize","fontFamily"];function oY(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ky+"px":e+"px"}function yw(e,t){for(var r=0;r<mw.length;r++){var n=mw[r],i=t[n];i!=null&&(e[n]=i)}}function sY(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function lY(e){return _w(e),O(e.rich,_w),e}function _w(e){if(e){e.font=M2.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||iY[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||aY[r]?r:"top";var n=e.padding;n&&(e.padding=LA(e.padding))}}function bw(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function ww(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Sw(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function xw(e){var t=e.text;return t!=null&&(t+=""),t}function Iv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const dr=M2;var ut=At(),uY=function(e,t,r,n){if(n){var i=ut(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,n.type==="group"&&n.traverse(function(a){var o=ut(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t})}},Cw=1,Tw={},A2=At(),Qy=At(),E2=0,Jy=1,e0=2,Zn=["emphasis","blur","select"],dd=["normal","emphasis","blur","select"],cY=10,fY=9,lo="highlight",Of="downplay",Ul="select",Rf="unselect",jl="toggleSelect";function Fo(e){return e!=null&&e!=="none"}var Mw=new Xu(100);function Aw(e){if(Ae(e)){var t=Mw.get(e);return t||(t=j1(e,-.1),Mw.put(e,t)),t}else if(th(e)){var r=se({},e);return r.colorStops=Re(e.colorStops,function(n){return{offset:n.offset,color:j1(n.color,-.1)}}),r}return e}function lh(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function P2(e){lh(e,"emphasis",e0)}function L2(e){e.hoverState===e0&&lh(e,"normal",E2)}function t0(e){lh(e,"blur",Jy)}function D2(e){e.hoverState===Jy&&lh(e,"normal",E2)}function dY(e){e.selected=!0}function hY(e){e.selected=!1}function Ew(e,t,r){t(e,r)}function Ti(e,t,r){Ew(e,t,r),e.isGroup&&e.traverse(function(n){Ew(n,t,r)})}function vY(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function pY(e,t,r,n){var i=r&&at(r,"select")>=0,a=!1;if(e instanceof ft){var o=A2(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fo(s)||Fo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=se({},n),u=se({},u),u.fill=s):!Fo(u.fill)&&Fo(s)?(a=!0,n=se({},n),u=se({},u),u.fill=Aw(s)):!Fo(u.stroke)&&Fo(l)&&(a||(n=se({},n),u=se({},u)),u.stroke=Aw(l)),n.style=u}}if(n&&n.z2==null){a||(n=se({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??cY)}return n}function gY(e,t,r){if(r&&r.z2==null){r=se({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??fY)}return r}function mY(e,t,r){var n=at(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:vY(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=se({},r),o=se({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ov(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return pY(this,e,t,r);if(e==="blur")return mY(this,e,r);if(e==="select")return gY(this,e,r)}return r}function yY(e){e.stateProxy=Ov;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ov),r&&(r.stateProxy=Ov)}function Pw(e,t){!k2(e,t)&&!e.__highByOuter&&Ti(e,P2)}function Lw(e,t){!k2(e,t)&&!e.__highByOuter&&Ti(e,L2)}function zg(e,t){e.__highByOuter|=1<<(t||0),Ti(e,P2)}function Wg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ti(e,L2)}function _Y(e){Ti(e,t0)}function I2(e){Ti(e,D2)}function O2(e){Ti(e,dY)}function R2(e){Ti(e,hY)}function k2(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function N2(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Qy(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){D2(u)}),s&&r.push(a)),o.isBlured=!1}),O(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Vg(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&I2(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){t0(g)}),Ar(t))a(u.getData(),t);else if(De(t))for(var v=Ct(t),p=0;p<v.length;p++)a(u.getData(v[p]),t[v[p]]);l.push(u),Qy(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function Gg(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Qy(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){t0(a)})}}}function bY(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Qu(i,t);a=(ge(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=ut(o);Vg(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Vg(n,c,f,r)}}}function r0(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);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(ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function wY(e,t,r){var n=ut(e),i=r0(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Gg(n.componentMainType,n.componentIndex,r),O(a,function(s){return Pw(s,t)})):(Vg(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Gg(n.componentMainType,n.componentIndex,r),Pw(e,t))}function SY(e,t,r){N2(r);var n=ut(e),i=r0(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?O(i,function(a){return Lw(a,t)}):Lw(e,t)}function xY(e,t,r){if(Yg(t)){var n=t.dataType,i=e.getData(n),a=Qu(i,t);ge(a)||(a=[a]),e[t.type===jl?"toggleSelect":t.type===Ul?"select":"unselect"](a,n)}}function Dw(e){var t=e.getAllData();O(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?O2(a):R2(a)})})}function CY(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();O(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),t.push(s)}})}),t}function Ug(e,t,r){$2(e,!0),Ti(e,yY),MY(e,t,r)}function TY(e){$2(e,!1)}function B2(e,t,r,n){n?TY(e):Ug(e,t,r)}function MY(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Iw=["emphasis","blur","select"],AY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function F2(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Iw.length;i++){var a=Iw[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[AY[r]]()}}function $2(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function jg(e){return!!(e&&e.__highDownDispatcher)}function EY(e){var t=Tw[e];return t==null&&Cw<=32&&(t=Tw[e]=Cw++),t}function Yg(e){var t=e.type;return t===Ul||t===Rf||t===jl}function Ow(e){var t=e.type;return t===lo||t===Of}function PY(e){var t=A2(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var $o=yo.CMD,LY=[[],[],[]],Rw=Math.sqrt,DY=Math.atan2;function IY(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=$o.M,f=$o.C,d=$o.L,h=$o.R,v=$o.A,p=$o.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case p:a=2;break;case v:var g=t[4],m=t[5],y=Rw(t[0]*t[0]+t[1]*t[1]),_=Rw(t[2]*t[2]+t[3]*t[3]),b=DY(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=g,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],on(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],on(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=LY[l];S[0]=r[o++],S[1]=r[o++],on(S,S,t),r[s++]=S[0],r[s++]=S[1]}}e.increaseVersion()}}var Rv=Math.sqrt,Oc=Math.sin,Rc=Math.cos,il=Math.PI;function kw(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function qg(e,t){return(e[0]*t[0]+e[1]*t[1])/(kw(e)*kw(t))}function Nw(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(qg(e,t))}function Bw(e,t,r,n,i,a,o,s,l,u,c){var f=l*(il/180),d=Rc(f)*(e-r)/2+Oc(f)*(t-n)/2,h=-1*Oc(f)*(e-r)/2+Rc(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Rv(v),s*=Rv(v));var p=(i===a?-1:1)*Rv((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+Rc(f)*g-Oc(f)*m,_=(t+n)/2+Oc(f)*g+Rc(f)*m,b=Nw([1,0],[(d-g)/o,(h-m)/s]),S=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],x=Nw(S,w);if(qg(S,w)<=-1&&(x=il),qg(S,w)>=1&&(x=0),x<0){var C=Math.round(x/il*1e6)/1e6;x=il*2+C%2*il}c.addData(u,y,_,o,s,b,x,f,a)}var OY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kY(e){var t=new yo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=yo.CMD,l=e.match(OY);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(RY)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=r,T=n,E=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=h[g++],T=h[g++],r=h[g++],n=h[g++],t.addData(d,m,y,C,T,r,n);break;case"s":m=r,y=n,E=t.len(),A=t.data,o===s.C&&(m+=r-A[E-4],y+=n-A[E-3]),d=s.C,C=r+h[g++],T=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,m,y,C,T,r,n);break;case"Q":C=h[g++],T=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"q":C=h[g++]+r,T=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,C,T,r,n);break;case"T":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"t":m=r,y=n,E=t.len(),A=t.data,o===s.Q&&(m+=r-A[E-4],y+=n-A[E-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,m,y,r,n);break;case"A":_=h[g++],b=h[g++],S=h[g++],w=h[g++],x=h[g++],C=r,T=n,r=h[g++],n=h[g++],d=s.A,Bw(C,T,r,n,w,x,_,b,S,d,t);break;case"a":_=h[g++],b=h[g++],S=h[g++],w=h[g++],x=h[g++],C=r,T=n,r+=h[g++],n+=h[g++],d=s.A,Bw(C,T,r,n,w,x,_,b,S,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var H2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ft);function z2(e){return e.setData!=null}function W2(e,t){var r=kY(e),n=se({},t);return n.buildPath=function(i){if(z2(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){IY(r,i),this.dirtyShape()},n}function NY(e,t){return new H2(W2(e,t))}function BY(e,t){var r=W2(e,t),n=function(i){pe(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(H2);return n}function FY(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new ft(t);return o.createPathProxy(),o.buildPath=function(s){if(z2(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var $Y=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),V2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $Y},t.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)},t}(ft);V2.prototype.type="circle";const n0=V2;var HY=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),G2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new HY},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(ft);G2.prototype.type="ellipse";const U2=G2;var j2=Math.PI,kv=j2*2,La=Math.sin,Ho=Math.cos,zY=Math.acos,Zt=Math.atan2,Fw=Math.abs,Yl=Math.sqrt,xl=Math.max,Bn=Math.min,gn=1e-4;function WY(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<gn))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function kc(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Yl(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,p=n+f,g=(d+v)/2,m=(h+p)/2,y=v-d,_=p-h,b=y*y+_*_,S=i-a,w=d*p-v*h,x=(_<0?-1:1)*Yl(xl(0,S*S*b-w*w)),C=(w*_-y*x)/b,T=(-w*y-_*x)/b,E=(w*_+y*x)/b,A=(-w*y+_*x)/b,M=C-g,D=T-m,R=E-g,k=A-m;return M*M+D*D>R*R+k*k&&(C=E,T=A),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(i/S-1),y1:T*(i/S-1)}}function VY(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function GY(e,t){var r,n=xl(t.r,0),i=xl(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=Fw(u-l),v=h>kv&&h%kv;if(v>gn&&(h=v),!(n>gn))e.moveTo(c,f);else if(h>kv-gn)e.moveTo(c+n*Ho(l),f+n*La(l)),e.arc(c,f,n,l,u,!d),i>gn&&(e.moveTo(c+i*Ho(u),f+i*La(u)),e.arc(c,f,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=void 0,T=void 0,E=void 0,A=void 0,M=void 0,D=void 0,R=void 0,k=n*Ho(l),F=n*La(l),K=i*Ho(u),B=i*La(u),N=h>gn;if(N){var j=t.cornerRadius;j&&(r=VY(j),p=r[0],g=r[1],m=r[2],y=r[3]);var re=Fw(n-i)/2;if(_=Bn(re,m),b=Bn(re,y),S=Bn(re,p),w=Bn(re,g),T=x=xl(_,b),E=C=xl(S,w),(x>gn||C>gn)&&(A=n*Ho(u),M=n*La(u),D=i*Ho(l),R=i*La(l),h<j2)){var oe=WY(k,F,D,R,A,M,K,B);if(oe){var _e=k-oe[0],Ee=F-oe[1],V=A-oe[0],J=M-oe[1],W=1/La(zY((_e*V+Ee*J)/(Yl(_e*_e+Ee*Ee)*Yl(V*V+J*J)))/2),Y=Yl(oe[0]*oe[0]+oe[1]*oe[1]);T=Bn(x,(n-Y)/(W+1)),E=Bn(C,(i-Y)/(W-1))}}}if(!N)e.moveTo(c+k,f+F);else if(T>gn){var ue=Bn(m,T),he=Bn(y,T),Q=kc(D,R,k,F,n,ue,d),L=kc(A,M,K,B,n,he,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T<x&&ue===he?e.arc(c+Q.cx,f+Q.cy,T,Zt(Q.y0,Q.x0),Zt(L.y0,L.x0),!d):(ue>0&&e.arc(c+Q.cx,f+Q.cy,ue,Zt(Q.y0,Q.x0),Zt(Q.y1,Q.x1),!d),e.arc(c,f,n,Zt(Q.cy+Q.y1,Q.cx+Q.x1),Zt(L.cy+L.y1,L.cx+L.x1),!d),he>0&&e.arc(c+L.cx,f+L.cy,he,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.moveTo(c+k,f+F),e.arc(c,f,n,l,u,!d);if(!(i>gn)||!N)e.lineTo(c+K,f+B);else if(E>gn){var ue=Bn(p,E),he=Bn(g,E),Q=kc(K,B,A,M,i,-he,d),L=kc(k,F,D,R,i,-ue,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),E<C&&ue===he?e.arc(c+Q.cx,f+Q.cy,E,Zt(Q.y0,Q.x0),Zt(L.y0,L.x0),!d):(he>0&&e.arc(c+Q.cx,f+Q.cy,he,Zt(Q.y0,Q.x0),Zt(Q.y1,Q.x1),!d),e.arc(c,f,i,Zt(Q.cy+Q.y1,Q.cx+Q.x1),Zt(L.cy+L.y1,L.cx+L.x1),d),ue>0&&e.arc(c+L.cx,f+L.cy,ue,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.lineTo(c+K,f+B),e.arc(c,f,i,u,l,d)}e.closePath()}}}var UY=function(){function e(){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 e}(),Y2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new UY},t.prototype.buildPath=function(r,n){GY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ft);Y2.prototype.type="sector";const Ao=Y2;var jY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),q2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jY},t.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)},t}(ft);q2.prototype.type="ring";const K2=q2;function YY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Jo(c,c,e[d]),es(f,f,e[d]);Jo(c,c,n[0]),es(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(mU(e[d]));continue}else l=e[d-1],u=e[d+1];yU(a,u,l),Qh(a,a,t);var p=_g(v,l),g=_g(v,u),m=p+g;m!==0&&(p/=m,g/=m),Qh(o,a,-p),Qh(s,a,g);var y=L1([],v,o),_=L1([],v,s);n&&(es(y,y,c),Jo(y,y,f),es(_,_,c),Jo(_,_,f)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function X2(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=YY(i,n,r,t.smoothConstraint);e.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],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var qY=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Z2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qY},t.prototype.buildPath=function(r,n){X2(r,n,!0)},t}(ft);Z2.prototype.type="polygon";const Q2=Z2;var KY=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),J2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KY},t.prototype.buildPath=function(r,n){X2(r,n,!1)},t}(ft);J2.prototype.type="polyline";const uh=J2;var XY={},ZY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),eE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=x2(XY,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))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(ft);eE.prototype.type="line";const _o=eE;var pr=[],QY=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function $w(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?z1:Gt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?z1:Gt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?W1:Jt)(e.x1,e.cpx1,e.x2,t),(r?W1:Jt)(e.y1,e.cpy1,e.y2,t)]}var tE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QY},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(od(i,l,o,d,pr),l=pr[1],o=pr[2],od(a,u,s,d,pr),u=pr[1],s=pr[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(ad(i,l,c,o,d,pr),l=pr[1],c=pr[2],o=pr[3],ad(a,u,f,s,d,pr),u=pr[1],f=pr[2],s=pr[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return $w(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=$w(this.shape,r,!0);return wU(n,n)},t}(ft);tE.prototype.type="bezier-curve";const rE=tE;var JY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),nE=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JY},t.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,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(ft);nE.prototype.type="arc";const i0=nE;var e7=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.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()},t.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)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ft.prototype.getBoundingRect.call(this)},t}(ft);const t7=e7;var r7=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const iE=r7;var n7=function(e){pe(t,e);function t(r,n,i,a,o,s){var l=e.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 t}(iE);const i7=n7;var a7=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.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 t}(iE);const o7=a7;var Da=[0,0],Ia=[0,0],Nc=new Ne,Bc=new Ne,s7=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ne;for(var n=0;n<2;n++)this._axes[n]=new Ne;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.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);Ne.sub(i[0],n[1],n[0]),Ne.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])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Nc.set(1/0,1/0),Bc.set(0,0),!this._intersectCheckOneSide(this,t,Nc,Bc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Nc,Bc,i,-1)&&(n=!1,i)||i||Ne.copy(r,n?Nc:Bc),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Da),this._getProjMinMaxOnAxis(l,r._corners,Ia),Da[1]<Ia[0]||Da[0]>Ia[1]){if(s=!1,a)return s;var c=Math.abs(Ia[0]-Da[1]),f=Math.abs(Da[0]-Ia[1]);Math.min(c,f)>i.len()&&(c<f?Ne.scale(i,u,-c*o):Ne.scale(i,u,f*o))}else if(n){var c=Math.abs(Ia[0]-Da[1]),f=Math.abs(Da[0]-Ia[1]);Math.min(c,f)<n.len()&&(c<f?Ne.scale(n,u,c*o):Ne.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const hd=s7;var l7=[],u7=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.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])},t.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}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new tt(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(l7)),r.union(a)}this._rect=r}return this._rect},t.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},t}(ec);const c7=u7;var f7=At();function d7(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=qe(n.duration,200),c=qe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Ge(f)&&(f=f(r,i)),Ge(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function a0(e,t,r,n,i,a,o){var s=!1,l;Ge(i)?(o=a,a=i,i=null):De(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=d7(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Er(e,t,r,n,i,a){a0("update",e,t,r,n,i,a)}function $r(e,t,r,n,i,a){a0("enter",e,t,r,n,i,a)}function fs(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function aE(e,t,r,n,i,a){fs(e)||a0("leave",e,t,r,n,i,a)}function Hw(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),aE(e,{style:{opacity:0}},t,r,n)}function vd(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||Hw(i,t,r,n)}):Hw(e,t,r,n)}function oE(e){f7(e).oldStyle=e.style}var pd=Math.max,gd=Math.min,Kg={};function h7(e){return ft.extend(e)}var v7=BY;function p7(e,t){return v7(e,t)}function Dn(e,t){Kg[e]=t}function g7(e){if(Kg.hasOwnProperty(e))return Kg[e]}function o0(e,t,r,n){var i=NY(e,t);return r&&(n==="center"&&(r=lE(r,i.getBoundingRect())),uE(i,r)),i}function sE(e,t,r){var n=new Hs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(lE(t,a))}}});return n}function lE(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var m7=FY;function uE(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function xu(e,t){return x2(e,e,{lineWidth:t}),e}function y7(e){return C2(e.shape,e.shape,e.style),e}var _7=Ja;function b7(e,t){for(var r=zy([]);e&&e!==t;)us(r,e.getLocalTransform(),r),e=e.parent;return r}function s0(e,t,r){return t&&!Ar(t)&&(t=ih.getLocalTransform(t)),r&&(t=nh([],t)),on([],e,t)}function w7(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=s0(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function zw(e){return!e.isGroup}function S7(e){return e.shape!=null}function cE(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){zw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return S7(o)&&(s.shape=se({},o.shape)),s}var a=n(e);t.traverse(function(o){if(zw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Er(o,l,r,ut(o).dataIndex)}}})}function x7(e,t){return Re(e,function(r){var n=r[0];n=pd(n,t.x),n=gd(n,t.x+t.width);var i=r[1];return i=pd(i,t.y),i=gd(i,t.y+t.height),[n,i]})}function C7(e,t){var r=pd(e.x,t.x),n=gd(e.x+e.width,t.x+t.width),i=pd(e.y,t.y),a=gd(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function l0(e,t,r){var n=se({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ct(i,r),new Hs(n)):o0(e.replace("path://",""),n,r,"center")}function T7(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(fE(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function fE(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=Nv(c,f,l,u);if(M7(d))return!1;var h=e-i,v=t-a,p=Nv(h,v,l,u)/d;if(p<0||p>1)return!1;var g=Nv(h,v,c,f)/d;return!(g<0||g>1)}function Nv(e,t,r,n){return e*n-r*t}function M7(e){return e<=1e-6&&e>=-1e-6}function u0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ae(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&O(Ct(l),function(c){Ps(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ut(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ct({content:n,formatterParams:s},i)}}function Ww(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function c0(e,t){if(e)if(ge(e))for(var r=0;r<e.length;r++)Ww(e[r],t);else Ww(e,t)}Dn("circle",n0);Dn("ellipse",U2);Dn("sector",Ao);Dn("ring",K2);Dn("polygon",Q2);Dn("polyline",uh);Dn("rect",Bt);Dn("line",_o);Dn("bezierCurve",rE);Dn("arc",i0);const A7=Object.freeze(Object.defineProperty({__proto__:null,Arc:i0,BezierCurve:rE,BoundingRect:tt,Circle:n0,CompoundPath:t7,Ellipse:U2,Group:cn,Image:Hs,IncrementalDisplayable:c7,Line:_o,LinearGradient:i7,OrientedBoundingRect:hd,Path:ft,Point:Ne,Polygon:Q2,Polyline:uh,RadialGradient:o7,Rect:Bt,Ring:K2,Sector:Ao,Text:dr,applyTransform:s0,clipPointsByRect:x7,clipRectByRect:C7,createIcon:l0,extendPath:p7,extendShape:h7,getShapeClass:g7,getTransform:b7,groupTransition:cE,initProps:$r,isElementRemoved:fs,lineLineIntersect:fE,linePolygonIntersect:T7,makeImage:sE,makePath:o0,mergePath:m7,registerShape:Dn,removeElement:aE,removeElementWithFadeOut:vd,resizePath:uE,setTooltipConfig:u0,subPixelOptimize:_7,subPixelOptimizeLine:xu,subPixelOptimizeRect:y7,transformDirection:w7,traverseElements:c0,updateProps:Er},Symbol.toStringTag,{value:"Module"}));var ch={};function dE(e,t){for(var r=0;r<Zn.length;r++){var n=Zn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Xg(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Ge(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Zn.length;u++){var c=Zn[u],f=t[c];l[c]=qe(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function f0(e,t,r,n){r=r||ch;for(var i=e instanceof dr,a=!1,o=0;o<dd.length;o++){var s=t[dd[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new dr,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Xg(r,t),c=t.normal,f=!!c.getShallow("show"),d=oa(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(Vw(c,r,!1));for(var o=0;o<Zn.length;o++){var h=Zn[o],s=t[h];if(s){var v=l.ensureState(h),p=!!qe(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=oa(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var g=e.ensureState(h);g.textConfig=Vw(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(tc(l).setLabelText=function(m){var y=Xg(r,t,m);dE(l,y)})}else l&&(l.ignore=!0);e.dirty()}function hE(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Zn.length;n++){var i=Zn[n];r[i]=e.getModel([i,t])}return r}function oa(e,t,r,n,i){var a={};return E7(a,e,r,n,i),t&&se(a,t),a}function Vw(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=qe(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.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=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function E7(e,t,r,n,i){r=r||ch;var a=t.ecModel,o=a&&a.option.textStyle,s=P7(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Yw(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Yw(e,t,o,r,n,i,!0,!1)}function P7(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ch).rich;if(r){t=t||{};for(var n=Ct(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var Gw=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Uw=["align","lineHeight","width","height","tag","verticalAlign"],jw=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Yw(e,t,r,n,i,a,o,s){r=!i&&r||ch;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=qe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=qe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=qe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=qe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var p=0;p<Gw.length;p++){var g=Gw[p],m=qe(t.getShallow(g),r[g]);m!=null&&(e[g]=m)}for(var p=0;p<Uw.length;p++){var g=Uw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var y=t.getShallow("baseline");y!=null&&(e.verticalAlign=y)}if(!o||!n.disableBox){for(var p=0;p<jw.length;p++){var g=jw[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function L7(e,t){var r=t&&t.getModel("textStyle");return Gn([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var tc=At();function D7(e,t,r,n){if(e){var i=tc(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function I7(e,t,r,n,i){var a=tc(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=qe(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=sj(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=Xg({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);dE(e,d)}e.percent=0,(a.prevValue==null?$r:Er)(e,{percent:1},n,t,null,u)}var O7=["textStyle","color"],Bv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Fv=new dr,R7=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(O7):null)},e.prototype.getFont=function(){return L7({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Bv.length;n++)r[Bv[n]]=this.getShallow(Bv[n]);return Fv.useStyle(r),Fv.update(),Fv.getBoundingRect()},e}();const k7=R7;var vE=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],N7=Su(vE),B7=function(){function e(){}return e.prototype.getLineStyle=function(t){return N7(this,t)},e}(),pE=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],F7=Su(pE),$7=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return F7(this,t,r)},e}(),Eo=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ot(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Qe(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Ue.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Zy(Eo);hj(Eo);ti(Eo,B7);ti(Eo,$7);ti(Eo,yj);ti(Eo,k7);const rr=Eo;var H7=Math.round(Math.random()*10);function fh(e){return[e||"",H7++].join("_")}function z7(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Un(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Un(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function W7(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(O(a,function(y){d[y]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),O(v.successor,p?m:g)}O(d,function(){var y="";throw new Error(y)});function g(y){c[y].entryCount--,c[y].entryCount===0&&f.push(y)}function m(y){d[y]=!0,g(y)}};function r(a){var o={},s=[];return O(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),O(f,function(d){at(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);at(h.successor,d)<0&&h.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 O(a,function(l){at(o,l)>=0&&s.push(l)}),s}}function gE(e,t){return ot(ot({},e,!0),t,!0)}const V7={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},G7={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:"旭日图"}},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 md="ZH",d0="EN",Cu=d0,kf={},h0={},mE=Ue.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(md)>-1?md:Cu}():Cu;function yE(e,t){e=e.toUpperCase(),h0[e]=new rr(t),kf[e]=t}function U7(e){if(Ae(e)){var t=kf[e.toUpperCase()]||{};return e===md||e===d0?Qe(t):ot(Qe(t),Qe(kf[Cu]),!1)}else return ot(Qe(e),Qe(kf[Cu]),!1)}function j7(e){return h0[e]}function Y7(){return h0[Cu]}yE(d0,V7);yE(md,G7);var v0=1e3,p0=v0*60,ql=p0*60,tn=ql*24,qw=tn*365,Cl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Fc="{yyyy}-{MM}-{dd}",Kw={year:"{yyyy}",month:"{yyyy}-{MM}",day:Fc,hour:Fc+" "+Cl.hour,minute:Fc+" "+Cl.minute,second:Fc+" "+Cl.second,millisecond:Cl.none},$v=["year","month","day","hour","minute","second","millisecond"],_E=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oa(e,t){return e+="","0000".substr(0,t-e.length)+e}function ds(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function q7(e){return e===ds(e)}function K7(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dh(e,t,r,n){var i=bi(e),a=i[g0(r)](),o=i[hs(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[hh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Tu(r)](),f=(c-1)%12+1,d=i[vh(r)](),h=i[ph(r)](),v=i[gh(r)](),p=n instanceof rr?n:j7(n||mE)||Y7(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oa(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oa(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oa(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oa(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oa(v,3)).replace(/{S}/g,v+"")}function X7(e,t,r,n,i){var a=null;if(Ae(r))a=r;else if(Ge(r))a=r(e.value,t,{level:e.level});else{var o=se({},Cl);if(e.level>0)for(var s=0;s<$v.length;++s)o[$v[s]]="{primary|"+o[$v[s]]+"}";var l=r?r.inherit===!1?r:ct(r,o):o,u=bE(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=_E.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return dh(new Date(e.value),a,i,n)}function bE(e,t){var r=bi(e),n=r[hs(t)]()+1,i=r[hh(t)](),a=r[Tu(t)](),o=r[vh(t)](),s=r[ph(t)](),l=r[gh(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Xw(e,t,r){var n=bt(e)?bi(e):e;switch(t=t||bE(e,r),t){case"year":return n[g0(r)]();case"half-year":return n[hs(r)]()>=6?1:0;case"quarter":return Math.floor((n[hs(r)]()+1)/4);case"month":return n[hs(r)]();case"day":return n[hh(r)]();case"half-day":return n[Tu(r)]()/24;case"hour":return n[Tu(r)]();case"minute":return n[vh(r)]();case"second":return n[ph(r)]();case"millisecond":return n[gh(r)]()}}function g0(e){return e?"getUTCFullYear":"getFullYear"}function hs(e){return e?"getUTCMonth":"getMonth"}function hh(e){return e?"getUTCDate":"getDate"}function Tu(e){return e?"getUTCHours":"getHours"}function vh(e){return e?"getUTCMinutes":"getMinutes"}function ph(e){return e?"getUTCSeconds":"getSeconds"}function gh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Z7(e){return e?"setUTCFullYear":"setFullYear"}function wE(e){return e?"setUTCMonth":"setMonth"}function SE(e){return e?"setUTCDate":"setDate"}function xE(e){return e?"setUTCHours":"setHours"}function CE(e){return e?"setUTCMinutes":"setMinutes"}function TE(e){return e?"setUTCSeconds":"setSeconds"}function ME(e){return e?"setUTCMilliseconds":"setMilliseconds"}function AE(e){if(!j9(e))return Ae(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function EE(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var mh=LA;function Zg(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Gn(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?bi(e):e;if(isNaN(+l)){if(s)return"-"}else return dh(l,n,r)}if(t==="ordinal")return mg(e)?i(e):bt(e)&&a(e)?e+"":"-";var u=fd(e);return a(u)?AE(u):mg(e)?i(e):typeof e=="boolean"?e+"":"-"}var Zw=["a","b","c","d","e","f","g"],Hv=function(e,t){return"{"+e+(t??"")+"}"};function PE(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Zw[a];e=e.replace(Hv(o),Hv(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Hv(Zw[l],s),r?Zr(u):u)}return e}function Q7(e,t){var r=Ae(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=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:'+Zr(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Zr(n)+";"+(t||"")+'"></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 Mu(e,t){return t=t||"transparent",Ae(e)?e:De(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Qw(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Nf=O,J7=["left","right","top","bottom","width","height"],$c=[["width","left","right"],["height","top","bottom"]];function m0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Kl=m0;Dt(m0,"vertical");Dt(m0,"horizontal");function Ls(e,t,r){r=mh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),l=pt(e.bottom,i),u=pt(e.width,n),c=pt(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new tt(a+r[3],o+r[0],u,c);return v.margin=r,v}function Au(e){var t=e.layoutMode||e.constructor.layoutMode;return De(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o($c[0],0),a=o($c[1],1);u($c[0],e,i),u($c[1],e,a);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Nf(c,function(_){v[_]=e[_]}),Nf(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var m=0;m<c.length;m++){var y=c[m];if(!s(d,y)&&s(e,y)){d[y]=e[y];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Nf(c,function(h){f[h]=d[h]})}}function yh(e){return eq({},e)}function eq(e,t){return t&&e&&Nf(J7,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var tq=At(),zs=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=fh("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Au(this),a=i?yh(r):{},o=n.getTheme();ot(r,o.get(this.mainType)),ot(r,this.getDefaultOption()),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){ot(this.option,r,!0);var i=Au(this);i&&Ds(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!cj(r))return r.defaultOption;var n=tq(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=ot(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ju(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.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")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(rr);v2(zs,rr);ah(zs);z7(zs);W7(zs,rq);function rq(e){var t=[];return O(zs.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Re(t,function(r){return Un(r).main}),e!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}const wt=zs;var LE="";typeof navigator<"u"&&(LE=navigator.platform||"");var zo="rgba(0, 0, 0, 0.2)";const nq={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LE.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 DE=je(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),dn="original",Pr="arrayRows",In="objectRows",ni="keyedColumns",Zi="typedArray",IE="unknown",vi="column",Ws="row",Vt={Must:1,Might:2,Not:3},OE=At();function iq(e){OE(e).datasetMap=je()}function aq(e,t,r){var n={},i=y0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=OE(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),O(e,function(p,g){var m=De(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});O(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;y<m;y++)p.push(g+y)}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 oq(e,t,r){var n={},i=y0(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===In||a===ni)&&O(o,function(c,f){(De(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var p=kE(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===Vt.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Vt.Not)&&(c.n=h),m(c)&&d[c.n]!==Vt.Not)return c;g||(p===Vt.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(y){return y.v!=null&&y.n!=null}return m(c)?c:m(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function y0(e){var t=e.get("data",!0);if(!t)return Ju(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},xn).models[0]}function sq(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ju(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},xn).models}function RE(e,t){return kE(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function kE(e,t,r,n,i,a){var o,s=5;if(zr(e))return Vt.Not;var l,u;if(n){var c=n[a];De(c)?(l=c.name,u=c.type):Ae(c)&&(l=c)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(t===Pr){var f=e;if(r===Ws){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(o=b(v[a]))!=null)return o}}else if(t===In){var p=e;if(!l)return Vt.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(t===ni){var m=e;if(!l)return Vt.Not;var d=m[l];if(!d||zr(d))return Vt.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(t===dn)for(var y=e,h=0;h<y.length&&h<s;h++){var g=y[h],_=Zu(g);if(!ge(_))return Vt.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=Ae(S);if(S!=null&&isFinite(S)&&S!=="")return w?Vt.Might:Vt.Not;if(w&&S!=="-")return Vt.Must}return Vt.Not}var lq=je();function uq(e,t,r){var n=lq.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Jw=At();At();var _0=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=cr(this.get("color",!0)),a=this.get("colorLayer",!0);return fq(this,Jw,i,a,t,r,n)},e.prototype.clearColorPalette=function(){dq(this,Jw)},e}();function cq(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function fq(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:cq(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function dq(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Hc,al,eS,tS="\0_ec_inner",hq=1,NE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new rr(a),this._locale=new rr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=iS(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,iS(n))},t.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"?eS(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&&O(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=je(),u=n&&n.replaceMergeMainTypeMap;iq(this),O(r,function(f,d){f!=null&&(wt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Qe(f):ot(i[d],f,!0))}),u&&u.each(function(f,d){wt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),c,this);function c(f){var d=uq(this,f,cr(r[f])),h=a.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=K9(h,d,v);rj(p,f,wt),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;O(p,function(b,S){var w=b.existing,x=b.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=f==="series",T=wt.getClass(f,b.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var E=se({componentIndex:S},b.keyInfo);w=new T(x,this,this,E),se(w,E),b.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Hc(this)}this._seriesIndices||Hc(this)},t.prototype.getOption=function(){var r=Qe(this.option);return O(r,function(n,i){if(wt.hasClass(i)){for(var a=cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!wu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[tS],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.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]}}},t.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=[],O(cr(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=rS("id",a,s):o!=null?l=rS("name",o,s):l=Ht(s,function(u){return!!u}),nS(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):Ht(this._componentsMap.get(i),function(u){return!!u});return l(nS(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?Ht(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Ge(r)){var o=n,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Ae(r)?a.get(r):De(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=qn(r,null);return Ht(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return Ht(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ht(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){al(this),O(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){O(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){al(this),O(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return O(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return al(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){al(this);var i=[];O(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=je(i)},t.prototype.restoreData=function(r){Hc(this);var n=this._componentsMap,i=[];n.each(function(a,o){wt.hasClass(o)&&i.push(o)}),wt.topologicalTravel(i,wt.getAllClassMainTypes(),function(a){O(n.get(a),function(o){o&&(a!=="series"||!vq(o,r))&&o.restoreData()})})},t.internalField=function(){Hc=function(r){var n=r._seriesIndices=[];O(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=je(n)},al=function(r){},eS=function(r,n){r.option={},r.option[tS]=hq,r._componentsMap=je({series:[]}),r._componentsCount=je();var i=n.aria;De(i)&&i.enabled==null&&(i.enabled=!0),pq(n,r._theme.option),ot(n,nq,!1),r._mergeOption(n,null)}}(),t}(rr);function vq(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function pq(e,t){var r=e.color&&!e.colorLayer;O(t,function(n,i){i==="colorLayer"&&r||wt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?ot(e[i],n,!1):Qe(n):e[i]==null&&(e[i]=n))})}function rS(e,t,r){if(ge(t)){var n=je();return O(t,function(a){if(a!=null){var o=qn(a,null);o!=null&&n.set(a,!0)}}),Ht(r,function(a){return a&&n.get(a[e])})}else{var i=qn(t,null);return Ht(r,function(a){return a&&i!=null&&a[e]===i})}}function nS(e,t){return t.hasOwnProperty("subType")?Ht(e,function(r){return r&&r.subType===t.subType}):e}function iS(e){var t=je();return e&&O(cr(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}ti(NE,_0);const BE=NE;var gq=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],mq=function(){function e(t){O(gq,function(r){this[r]=_t(t[r],t)},this)}return e}();const FE=mq;var zv={},yq=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];O(zv,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){O(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){zv[t]=r},e.get=function(t){return zv[t]},e}();const b0=yq;var _q=/^(min|max)?(.+)$/,bq=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(O(cr(t.series),function(o){o&&o.data&&zr(o.data)&&yg(o.data)}),O(cr(t.dataset),function(o){o&&o.source&&zr(o.source)&&yg(o.source)})),t=Qe(t);var i=this._optionBackup,a=wq(t,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},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Qe(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Qe(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){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++)Sq(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Cq(o,this._currentMediaIndices)&&(s=Re(o,function(c){return Qe(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function wq(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&ge(u)&&O(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),O(l,function(h){return d(h)}),O(n,function(h){return d(h.option)});function d(h){O(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Sq(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return O(e,function(a,o){var s=o.match(_q);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();xq(n[u],a,l)||(i=!1)}}),i}function xq(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Cq(e,t){return e.join(",")===t.join(",")}const Tq=bq;var hn=O,Eu=De,aS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=aS.length;r<n;r++){var i=aS[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?ot(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?ot(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function er(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,ct(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Tl(e){er(e,"itemStyle"),er(e,"lineStyle"),er(e,"areaStyle"),er(e,"label"),er(e,"labelLine"),er(e,"upperLabel"),er(e,"edgeLabel")}function Pt(e,t){var r=Eu(e)&&e[t],n=Eu(r)&&r.textStyle;if(n)for(var i=0,a=sw.length;i<a;i++){var o=sw[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function qr(e){e&&(Tl(e),Pt(e,"label"),e.emphasis&&Pt(e.emphasis,"label"))}function Mq(e){if(Eu(e)){Wv(e),Tl(e),Pt(e,"label"),Pt(e,"upperLabel"),Pt(e,"edgeLabel"),e.emphasis&&(Pt(e.emphasis,"label"),Pt(e.emphasis,"upperLabel"),Pt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Wv(t),qr(t));var r=e.markLine;r&&(Wv(r),qr(r));var n=e.markArea;n&&qr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!zr(a))for(var o=0;o<a.length;o++)qr(a[o]);O(e.categories,function(u){Tl(u)})}if(i&&!zr(i))for(var o=0;o<i.length;o++)qr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)qr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ge(l[o])?(qr(l[o][0]),qr(l[o][1])):qr(l[o]);e.type==="gauge"?(Pt(e,"axisLabel"),Pt(e,"title"),Pt(e,"detail")):e.type==="treemap"?(er(e.breadcrumb,"itemStyle"),O(e.levels,function(u){Tl(u)})):e.type==="tree"&&Tl(e.leaves)}}function si(e){return ge(e)?e:e?[e]:[]}function oS(e){return(ge(e)?e[0]:e)||{}}function Aq(e,t){hn(si(e.series),function(n){Eu(n)&&Mq(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),hn(r,function(n){hn(si(e[n]),function(i){i&&(Pt(i,"axisLabel"),Pt(i.axisPointer,"label"))})}),hn(si(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Pt(i,"axisLabel"),Pt(i&&i.axisPointer,"label")}),hn(si(e.calendar),function(n){er(n,"itemStyle"),Pt(n,"dayLabel"),Pt(n,"monthLabel"),Pt(n,"yearLabel")}),hn(si(e.radar),function(n){Pt(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)}),hn(si(e.geo),function(n){Eu(n)&&(qr(n),hn(si(n.regions),function(i){qr(i)}))}),hn(si(e.timeline),function(n){qr(n),er(n,"label"),er(n,"itemStyle"),er(n,"controlStyle",!0);var i=n.data;ge(i)&&O(i,function(a){De(a)&&(er(a,"label"),er(a,"itemStyle"))})}),hn(si(e.toolbox),function(n){er(n,"iconStyle"),hn(n.feature,function(i){er(i,"iconStyle")})}),Pt(oS(e.axisPointer),"label"),Pt(oS(e.tooltip).axisPointer,"label")}function Eq(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Pq(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=r)}function sS(e){e&&O(Lq,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Lq=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Dq=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Vv=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ol(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Vv.length;r++){var n=Vv[r][1],i=Vv[r][0];t[n]!=null&&(t[i]=t[n])}}function lS(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function uS(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Iq(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function $E(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&$E(e[r].children,t)}function HE(e,t){Aq(e,t),e.series=cr(e.series),O(e.series,function(r){if(De(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),lS(r.label);var i=r.data;if(i&&!zr(i))for(var a=0;a<i.length;a++)lS(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Eq(r,"pointer.color");o!=null&&Pq(r,"itemStyle.color",o)}else if(n==="bar"){ol(r),ol(r.backgroundStyle),ol(r.emphasis);var i=r.data;if(i&&!zr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(ol(i[a]),ol(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)),uS(r),$E(r.data,uS)}else n==="graph"||n==="sankey"?Iq(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&ct(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),sS(r)}}),e.dataRange&&(e.visualMap=e.dataRange),O(Dq,function(r){var n=e[r];n&&(ge(n)||(n=[n]),O(n,function(i){sS(i)}))})}function Oq(e){var t=je();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.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)}}),t.each(Rq)}function Rq(e){O(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=r-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=V9(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var _h=function(){function e(t){this.data=t.data||(t.sourceFormat===ni?{}:[]),this.sourceFormat=t.sourceFormat||IE,this.seriesLayoutBy=t.seriesLayoutBy||vi,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&RE(this,n)===Vt.Must&&(i.type="ordinal")}}return e}();function w0(e){return e instanceof _h}function Qg(e,t,r){r=r||zE(e);var n=t.seriesLayoutBy,i=Nq(e,r,n,t.sourceHeader,t.dimensions),a=new _h({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Qe(t)});return a}function S0(e){return new _h({data:e,sourceFormat:zr(e)?Zi:dn})}function kq(e){return new _h({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Qe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function zE(e){var t=IE;if(zr(e))t=Zi;else if(ge(e)){e.length===0&&(t=Pr);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ge(i)){t=Pr;break}else if(De(i)){t=In;break}}}}else if(De(e)){for(var a in e)if(Ps(e,a)&&Ar(e[a])){t=ni;break}}return t}function Nq(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:cS(i),startIndex:o,dimensionsDetectedCount:a};if(t===Pr){var s=e;n==="auto"||n==null?fS(function(u){u!=null&&u!=="-"&&(Ae(u)?o==null&&(o=1):o=0)},r,s,10):o=bt(n)?n:n?1:0,!i&&o===1&&(i=[],fS(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Ws?s.length:s[0]?s[0].length:null}else if(t===In)i||(i=Bq(e));else if(t===ni)i||(i=[],O(e,function(u,c){i.push(c)}));else if(t===dn){var l=Zu(e[0]);a=ge(l)&&l.length||1}return{startIndex:o,dimensionsDefine:cS(i),dimensionsDetectedCount:a}}function Bq(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r){var n=[];return O(r,function(i,a){n.push(a)}),n}}function cS(e){if(e){var t=je();return Re(e,function(r,n){r=De(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=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function fS(e,t,r,n){if(t===Ws)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function WE(e){var t=e.sourceFormat;return t===In||t===ni}var Ra,ka,Na,dS,hS,VE=function(){function e(t,r){var n=w0(t)?t:S0(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Zi&&(this._offset=0,this._dimSize=r,this._data=i),hS(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;hS=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=dS[x0(u,c)];if(se(o,h),u===Zi)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=GE(u,c);o.getItem=_t(v,null,s,f,d);var p=UE(u,c);o.count=_t(p,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],y=0;y<g;y++){var _=c[y*f+d];m[o+y]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};dS=(t={},t[Pr+"_"+vi]={pure:!0,appendData:a},t[Pr+"_"+Ws]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[In]={pure:!0,appendData:a},t[ni]={pure:!0,appendData:function(o){var s=this._data;O(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[dn]={appendData:a},t[Zi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),vS=function(e,t,r,n){return e[n]},Fq=(Ra={},Ra[Pr+"_"+vi]=function(e,t,r,n){return e[n+t]},Ra[Pr+"_"+Ws]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Ra[In]=vS,Ra[ni]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},Ra[dn]=vS,Ra);function GE(e,t){var r=Fq[x0(e,t)];return r}var pS=function(e,t,r){return e.length},$q=(ka={},ka[Pr+"_"+vi]=function(e,t,r){return Math.max(0,e.length-t)},ka[Pr+"_"+Ws]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},ka[In]=pS,ka[ni]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},ka[dn]=pS,ka);function UE(e,t){var r=$q[x0(e,t)];return r}var Gv=function(e,t,r){return e[t]},Hq=(Na={},Na[Pr]=Gv,Na[In]=function(e,t,r){return e[r]},Na[ni]=Gv,Na[dn]=function(e,t,r){var n=Zu(e);return n instanceof Array?n[t]:n},Na[Zi]=Gv,Na);function jE(e){var t=Hq[e];return t}function x0(e,t){return e===Pr?e+"_"+t:e}function Is(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return jE(a)(n,o,s)}else{var l=n;return a===dn&&(l=Zu(n)),l}}}}var zq=/\{@(.+?)\}/g,Wq=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ge(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Ge(a))return l.status=r,l.dimensionIndex=i,a(l);if(Ae(a)){var c=PE(a,l);return c.replace(zq,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=Is(s,t,v);if(o&&ge(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Is(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function gS(e){var t,r;return De(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Xl(e){return new Vq(e)}var Vq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.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=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var p=this._progress;if(ge(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,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()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){mS.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:mS.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),ge(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),mS=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function Bf(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!bt(e)&&e!=null&&e!=="-"&&(e=+bi(e)),e==null||e===""?NaN:+e)}je({number:function(e){return parseFloat(e)},time:function(e){return+bi(e)},trim:function(e){return Ae(e)?Gn(e):e}});var Gq=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=bt(t)?t:fd(t),i=bt(r)?r:fd(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Ae(t),l=Ae(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Uq=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Bf(t,r)},e}();function jq(e,t){var r=new Uq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==vi&&br(o);var s=[],l={},u=e.dimensionsDefine;if(u)O(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ps(l,m)&&br(_),l[m]=y}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=GE(i,vi);t.__isBuiltIn&&(r.getRawDataItem=function(p){return f(n,a,s,p)},r.getRawData=_t(Yq,null,e)),r.cloneRawData=_t(qq,null,e);var d=UE(i,vi);r.count=_t(d,null,n,a,s);var h=jE(i);r.retrieveValue=function(p,g){var m=f(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 h(p,g,m.name)}};return r.getDimensionInfo=_t(Kq,null,s,l),r.cloneAllDimensionInfo=_t(Xq,null,s),r}function Yq(e){var t=e.sourceFormat;if(!C0(t)){var r="";br(r)}return e.data}function qq(e){var t=e.sourceFormat,r=e.data;if(!C0(t)){var n="";br(n)}if(t===Pr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===In){for(var i=[],a=0,o=r.length;a<o;a++)i.push(se({},r[a]));return i}}function Kq(e,t,r){if(r!=null){if(bt(r)||!isNaN(r)&&!Ps(t,r))return e[r];if(Ps(t,r))return t[r]}}function Xq(e){return Qe(e)}var YE=je();function Zq(e){e=Qe(e);var t=e.type,r="";t||br(r);var n=t.split(":");n.length!==2&&br(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,YE.set(t,e)}function Qq(e,t,r){var n=cr(e),i=n.length,a="";i||br(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=Jq(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Jq(e,t,r,n){var i="";t.length||br(i),De(e)||br(i);var a=e.type,o=YE.get(a);o||br(i);var s=Re(t,function(u){return jq(u,o)}),l=cr(o.transform({upstream:s[0],upstreamList:s,config:Qe(e.config)}));return Re(l,function(u,c){var f="";De(u)||br(f),u.data||br(f);var d=zE(u.data);C0(d)||br(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:vi,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:vi,sourceHeader:0,dimensions:u.dimensions};return Qg(u.data,h,null)})}function C0(e){return e===Pr||e===In}var bh="undefined",eK=typeof Uint32Array===bh?Array:Uint32Array,tK=typeof Uint16Array===bh?Array:Uint16Array,qE=typeof Int32Array===bh?Array:Int32Array,yS=typeof Float64Array===bh?Array:Float64Array,KE={float:yS,int:qE,ordinal:Array,number:Array,time:yS},Uv;function sl(e){return e>65535?eK:tK}function Wo(){return[1/0,-1/0]}function rK(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function _S(e,t,r,n,i){var a=KE[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var Jg=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=je()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Uv[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],WE(i),this._dimensions=Re(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new KE[r||"float"](this._rawCount),this._rawExtent[a]=Wo(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Wo());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];_S(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var c=i[v],p=Uv.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=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}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Re(o,function(y){return y.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Wo()),_S(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var p=a[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=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=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],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},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=sl(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=sl(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var p=f[c][v];h=r(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Ct(t),a=i.length;if(!a)return this;var o=r.count(),s=sl(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var p=0;if(a===1){for(var g=h[i[0]],m=0;m<n;m++){var y=g[m];(y>=f&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=t[i[1]][0],S=t[i[1]][1],m=0;m<n;m++){var y=g[m],w=_[m];(y>=f&&y<=d||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=h[i[0]][x];(y>=f&&y<=d||isNaN(y))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var C=!0,x=r.getRawIndex(m),T=0;T<a;T++){var E=i[T],y=h[E][x];(y<t[E][0]||y>t[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Wo();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var p=r[c],g=v[c],m=u[p],y=i[p];y&&(y[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(sl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[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,y=0,_=p;_<g;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=g-p;var w=v,x=Math.min(v+l,o),C=v-1,T=a[u];c=-1,d=w;for(var E=-1,A=0,_=w;_<x;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){A++,E<0&&(E=b);continue}f=Math.abs((C-m)*(S-T)-(C-_)*(y-T)),f>c&&(c=f,d=b)}A>0&&A<x-w&&(h[s++]=Math.min(E,d),d=Math.max(E,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=Wo(),d=new(sl(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-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),y=this.getRawIndex(Math.min(v+i(s,m)||0,c-1));u[y]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.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[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Wo();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);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},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&ia(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?rK(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Qe(this._extent),t._rawExtent=Qe(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Bf(r[a],this._dimensions[a])}Uv={arrayRows:t,objectRows:function(r,n,i,a){return Bf(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Bf(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),nK=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(zc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=zr(s)?Zi:dn,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=qe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=qe(f.sourceHeader,d.sourceHeader),p=qe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Qg(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Qg(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&bS(a)}var o,s=[],l=[];return O(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&bS(f),s.push(c),l.push(u._getVersionSign())}),n?o=Qq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[kq(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,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];zc(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Jg,s.initData(new VE(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(zc(t)){var r=y0(t);return r?[r.getSourceManager()]:[]}else return Re(sq(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(zc(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function zc(e){return e.mainType==="series"}function bS(e){throw new Error(e)}var XE="line-height:1";function ZE(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Zr(n+"")+"px;color:"+Zr(r)+";font-weight:"+Zr(i+""),valueStyle:"font-size:"+Zr(o+"")+"px;color:"+Zr(a)+";font-weight:"+Zr(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var iK=[0,10,20,30],aK=["",`
`,`
`,`
`];function Pu(e,t){return t.type=e,t}function em(e){return e.type==="section"}function QE(e){return em(e)?oK:sK}function JE(e){if(em(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return O(e.blocks,function(i){var a=JE(i);a>=t&&(t=a+ +(n&&(!a||em(i)&&!i.noHeader)))}),t}return 0}function oK(e,t,r,n){var i=t.noHeader,a=lK(JE(t)),o=[],s=t.blocks||[];_i(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ps(u,l)){var c=new Gq(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}O(s,function(v,p){var g=t.valueFormatter,m=QE(v)(g?se(se({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):tm(o.join(""),i?r:a.html);if(i)return f;var d=Zg(t.header,"ordinal",e.useUTC),h=ZE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?eP(e,d,h)+a.richText+f:tm('<div style="'+h+";"+XE+';">'+Zr(d)+"</div>"+f,r)}function sK(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Re(b,function(S,w){return Zg(S,ge(h)?h[w]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":Zg(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!a,g=!s&&a,m=ZE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":eP(e,d,y))+(o?"":fK(e,v,p,g,_)):tm((s?"":f)+(a?"":uK(d,!s,y))+(o?"":cK(v,p,g,_)),r)}}function wS(e,t,r,n,i,a){if(e){var o=QE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function lK(e){return{html:iK[e],richText:aK[e]}}function tm(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+XE+';">'+e+r+"</div>"}function uK(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Zr(e)+"</span>"}function cK(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],'<span style="'+a+";"+n+'">'+Re(e,function(o){return Zr(o)}).join("&nbsp;&nbsp;")+"</span>"}function eP(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function fK(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join(" "):t,a)}function dK(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Mu(n)}function tP(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var jv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=l2()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Q7({color:r,type:t,renderMode:n,markerId:i});return Ae(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?O(r,function(a){return se(n,a)}):se(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function hK(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=dK(t,r),c,f,d,h;if(o>1||l&&!o){var v=vK(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=Is(i,r,a[0]),f=p.type}else h=c=l?s[0]:s;var g=Ky(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Pu("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Pu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Gn(_),value:c,valueType:f})].concat(d||[])})}function vK(e,t,r,n,i){var a=t.getData(),o=ia(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?O(n,function(f){c(Is(a,r,f),f)}):O(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Pu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ri=At();function Wc(e,t){return e.getName(t)||e.getId(t)}var pK="__universalTransitionEnabled",wh=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Xl({count:mK,reset:yK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ri(this).sourceManager=new nK(this);a.prepareSource();var o=this.getInitialData(r,i);xS(o,this),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,SS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Au(this),a=i?yh(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),ot(r,n.getTheme().get(this.subType)),ot(r,this.getDefaultOption()),Ng(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=ot(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Au(this);i&&Ds(this.option,r,i);var a=Ri(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);xS(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,SS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!zr(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Ng(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=rm(this);if(n){var i=n.context.data;return r==null?i:i.getLinkedData(r)}else return Ri(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=rm(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Ri(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return je(r)},t.prototype.getSourceManager=function(){return Ri(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ri(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return hK({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(Ue.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=_0.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.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=Wc(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.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)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Ct(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Wc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pK])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.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"){De(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=Wc(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=Wc(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.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)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);ti(wh,Wq);ti(wh,_0);v2(wh,wt);function SS(e){var t=e.name;Ky(e)||(e.name=gK(e)||t)}function gK(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return O(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function mK(e){return e.model.getRawData().count()}function yK(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_K}function _K(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xS(e,t){O(pU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Dt(bK,t))})}function bK(e,t){var r=rm(e);return r&&r.setOutputEnd((t||this).count()),t}function rm(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const bo=wh;var T0=function(){function e(){this.group=new cn,this.uid=fh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Zy(T0);ah(T0);const wi=T0;function rP(){var e=At();return function(t){var r=e(t),n=t.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 nP=At(),wK=rP(),M0=function(){function e(){this.group=new cn,this.uid=fh("viewChart"),this.renderTask=Xl({plan:SK,reset:xK}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&TS(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&TS(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){c0(this.group,t)},e.markUpdateMethod=function(t,r){nP(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function CS(e,t,r){e&&jg(e)&&(t==="emphasis"?zg:Wg)(e,r)}function TS(e,t,r){var n=Qu(e,t),i=t&&t.highlightKey!=null?EY(t.highlightKey):null;n!=null?O(cr(n),function(a){CS(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){CS(a,r,i)})}Zy(M0);ah(M0);function SK(e){return wK(e.model)}function xK(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&nP(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),CK[l]}var CK={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const uo=M0;var yd="\0__throttleOriginMethod",MS="\0__throttleRate",AS="\0__throttleType";function A0(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var p=c||t,g=c||r;c=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function iP(e,t,r,n){var i=e[t];if(i){var a=i[yd]||i,o=i[AS],s=i[MS];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=A0(a,r,n==="debounce"),i[yd]=a,i[AS]=n,i[MS]=r}return i}}function nm(e,t){var r=e[t];r&&r[yd]&&(r.clear&&r.clear(),e[t]=r[yd])}var ES=At(),PS={itemStyle:Su(pE,!0),lineStyle:Su(vE,!0)},TK={lineStyle:"stroke",itemStyle:"fill"};function aP(e,t){var r=e.visualStyleMapper||PS[t];return r||(console.warn("Unknown style type '"+t+"'."),PS.itemStyle)}function oP(e,t){var r=e.visualDrawType||TK[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var MK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=aP(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=oP(e,n),u=o[l],c=Ge(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ge(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ge(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=se({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},ll=new rr,AK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=aP(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ll.option=l[n];var u=i(ll),c=o.ensureUniqueItemVisual(s,"style");se(c,u),ll.option.decal&&(o.setItemVisual(s,"decal",ll.option.decal),ll.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},EK={performRawSeries:!0,overallReset:function(e){var t=je();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),ES(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=ES(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=oP(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Vc=Math.PI;function PK(e,t){t=t||{},ct(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new cn,n=new Bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new dr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Bt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new i0({shape:{startAngle:-Vc/2,endAngle:-Vc/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Vc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Vc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var LK=function(){function e(t,r,n,i){this._stageTaskMap=je(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__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}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=je();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;O(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";_i(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;O(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=je(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Xl({plan:kK,reset:NK,count:FK}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Xl({reset:DK});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=je(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";_i(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,O(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Xl({reset:IK,onDirty:RK})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.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},e.wrapStageHandler=function(t,r){return Ge(t)&&(t={overallReset:t,seriesType:$K(t)}),t.uid=fh("stageHandler"),r&&(t.visualType=r),t},e}();function DK(e){e.overallReset(e.ecModel,e.api,e.payload)}function IK(e){return e.overallProgress&&OK}function OK(){this.agent.dirty(),this.getDownstream().dirty()}function RK(){this.agent&&this.agent.dirty()}function kK(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function NK(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Re(t,function(r,n){return sP(n)}):BK}var BK=sP(0);function sP(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function FK(e){return e.data.count()}function $K(e){_d=null;try{e(Lu,lP)}catch{}return _d}var Lu={},lP={},_d;uP(Lu,BE);uP(lP,FE);Lu.eachSeriesByType=Lu.eachRawSeriesByType=function(e){_d=e};Lu.eachComponent=function(e){e.mainType==="series"&&e.subType&&(_d=e.subType)};function uP(e,t){for(var r in t.prototype)e[r]=Tr}const cP=LK;var LS=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const HK={color:LS,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],LS]};var ar="#B9B8CE",DS="#100C2A",Gc=function(){return{axisLine:{lineStyle:{color:ar}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},IS=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],fP={darkMode:!0,color:IS,backgroundColor:DS,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ar}},textStyle:{color:ar},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ar}},dataZoom:{borderColor:"#71708A",textStyle:{color:ar},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:ar}},timeline:{lineStyle:{color:ar},label:{color:ar},controlStyle:{color:ar,borderColor:ar}},calendar:{itemStyle:{color:DS},dayLabel:{color:ar},monthLabel:{color:ar},yearLabel:{color:ar}},timeAxis:Gc(),logAxis:Gc(),valueAxis:Gc(),categoryAxis:Gc(),line:{symbol:"circle"},graph:{color:IS},gauge:{title:{color:ar},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ar},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};fP.categoryAxis.splitLine.show=!1;const zK=fP;var WK=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Ae(t)){var a=Un(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};O(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,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 c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),im=["symbol","symbolSize","symbolRotate","symbolOffset"],OS=im.concat(["symbolKeepAspect"]),VK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<im.length;o++){var s=im[o],l=e.get(s);Ge(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(se({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Ct(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,i[g](h,v))}}return{dataEach:a?c:null}}},GK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<OS.length;s++){var l=OS[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function UK(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function jK(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function YK(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}O([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=se({},i),o.dispatchAction(se(i,{type:n[1],seriesIndex:r(a,i)}))})})}function Vo(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=Qu(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ge(d)?f.getName(d[0]):f.getName(d),selected:Ae(l)?l:se({},l)})}})}function qK(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Vo("map","selectchanged",t,i,n),Vo("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Vo("map","selected",t,i,n),Vo("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Vo("map","unselected",t,i,n),Vo("pie","unselected",t,i,n))})}function Ml(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var KK=Math.round(Math.random()*9),XK=typeof Object.defineProperty=="function",ZK=function(){function e(){this._id="__ec_inner_"+KK++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return XK?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const QK=ZK;var JK=ft.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),eX=ft.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),tX=ft.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),rX=ft.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),nX={line:_o,rect:Bt,roundRect:Bt,square:Bt,circle:n0,diamond:eX,pin:tX,arrow:rX,triangle:JK},iX={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},am={};O(nX,function(e,t){am[t]=new e});var aX=ft.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=ud(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=am[n];i||(n="rect",i=am[n]),iX[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function oX(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function E0(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=sE(e.slice(8),new tt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=o0(e.slice(7),{},new tt(t,r,n,i),o?"center":"cover"):l=new aX({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=oX,a&&l.setColor(a),l}function sX(e,t){if(e!=null)return ge(e)||(e=[e,e]),[pt(e[0],t[0])||0,pt(qe(e[1],e[0]),t[1])||0]}function eo(e){return isFinite(e)}function lX(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.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=eo(n)?n:0,i=eo(i)?i:1,a=eo(a)?a:0,o=eo(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function uX(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=eo(o)?o:.5,s=eo(s)?s:.5,l=l>=0&&eo(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function om(e,t,r){for(var n=t.type==="radial"?uX(e,t,r):lX(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function cX(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Uc(e){return parseInt(e,10)}function jc(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Uc(s[n])||Uc(e.style[n]))-(Uc(s[a])||0)-(Uc(s[o])||0)|0}function fX(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bt(e)?[e]:ge(e)?e:null}function dP(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&fX(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Re(r,function(a){return a/i}),n/=i)}return[r,n]}var dX=new yo(!0);function bd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function RS(e){return typeof e=="string"&&e!=="none"}function wd(e){var t=e.fill;return t!=null&&t!=="none"}function kS(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function NS(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function sm(e,t,r){var n=p2(t.image,t.__image,r);if(oh(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*gU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function hX(e,t,r,n){var i,a=bd(r),o=wd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||dX,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=f?om(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=f?om(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=f||!t.__canvasFillPattern?sm(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(S=f||!t.__canvasStrokePattern?sm(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(S?e.strokeStyle=S:a=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=dP(t),C=i[0],T=i[1]);var E=!0;(u||f&Ko)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),E=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),E&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&NS(e,r),o&&kS(e,r)):(o&&kS(e,r),a&&NS(e,r))),C&&e.setLineDash([])}function vX(e,t,r){var n=t.__image=p2(r.image,t.__image,t,t.onload);if(!(!n||!oh(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function pX(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||mo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=dP(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(bd(r)&&e.strokeText(i,r.x,r.y),wd(r)&&e.fillText(i,r.x,r.y)):(wd(r)&&e.fillText(i,r.x,r.y),bd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var BS=["shadowBlur","shadowOffsetX","shadowOffsetY"],FS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hP(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){wr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?so.opacity:o}(n||t.blend!==r.blend)&&(a||(wr(e,i),a=!0),e.globalCompositeOperation=t.blend||so.blend);for(var s=0;s<BS.length;s++){var l=BS[s];(n||t[l]!==r[l])&&(a||(wr(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(wr(e,i),a=!0),e.shadowColor=t.shadowColor||so.shadowColor),a}function $S(e,t,r,n,i){var a=Du(t,i.inHover),o=n?null:r&&Du(r,i.inHover)||{};if(a===o)return!1;var s=hP(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(wr(e,i),s=!0),RS(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(wr(e,i),s=!0),RS(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(wr(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(wr(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<FS.length;c++){var f=FS[c],d=f[0];(n||a[d]!==o[d])&&(s||(wr(e,i),s=!0),e[d]=a[d]||f[1])}return s}function gX(e,t,r,n,i){return hP(e,Du(t,i.inHover),r&&Du(r,i.inHover),n,i)}function vP(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function mX(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),vP(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function yX(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var HS=1,zS=2,WS=3,VS=4;function _X(e){var t=wd(e),r=bd(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function wr(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Du(e,t){return t&&e.__hoverStyle||e.style}function pP(e,t){to(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function to(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Or,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||cX(a,o))&&(o&&o.length&&(wr(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(wr(e,r),e.save(),mX(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof ft&&t.autoBatch&&_X(t.style);s||yX(i,u.transform)?(wr(e,r),vP(e,t)):c||wr(e,r);var f=Du(t,r.inHover);t instanceof ft?(r.lastDrawType!==HS&&(l=!0,r.lastDrawType=HS),$S(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),hX(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Hg?(r.lastDrawType!==WS&&(l=!0,r.lastDrawType=WS),$S(e,t,u,l,r),pX(e,t,f)):t instanceof Hs?(r.lastDrawType!==zS&&(l=!0,r.lastDrawType=zS),gX(e,t,u,l,r),vX(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==VS&&(l=!0,r.lastDrawType=VS),bX(e,t,r)),c&&n&&wr(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function bX(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),to(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),to(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Yv=new QK,GS=new Xu(100),US=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function lm(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Yv.delete(e);var a=Yv.get(e);if(a)return a;var o=ct(e,{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,Yv.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<US.length;++d){var h=o[US[d]];if(h!=null&&!ge(h)&&!Ae(h)&&!bt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var p=GS.get(v);p&&(i?u.svgElement=p:u.image=p)}var g=mP(o.dashArrayX),m=wX(o.dashArrayY),y=gP(o.symbol),_=SX(g),b=yP(m),S=!i&&Mo.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=T(),C;S&&(S.width=x.width*r,S.height=x.height*r,C=S.getContext("2d")),E(),f&&GS.put(v,S||w),u.image=S,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function T(){for(var A=1,M=0,D=_.length;M<D;++M)A=aw(A,_[M]);for(var R=1,M=0,D=y.length;M<D;++M)R=aw(R,y[M].length);A*=R;var k=b*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var A=0,M=0;M<m.length;++M)A+=m[M];if(A<=0)return;for(var D=-b,R=0,k=0,F=0;D<x.height;){if(R%2===0){for(var K=k/2%y.length,B=0,N=0,j=0;B<x.width*2;){for(var re=0,M=0;M<g[F].length;++M)re+=g[F][M];if(re<=0)break;if(N%2===0){var oe=(1-o.symbolSize)*.5,_e=B+g[F][N]*oe,Ee=D+m[R]*oe,V=g[F][N]*o.symbolSize,J=m[R]*o.symbolSize,W=j/2%y[K].length;Y(_e,Ee,V,J,y[K][W])}B+=g[F][N],++j,++N,N===g[F].length&&(N=0)}++F,F===g.length&&(F=0)}D+=m[R],++k,++R,R===m.length&&(R=0)}function Y(ue,he,Q,L,I){var z=i?1:r,G=E0(I,ue*z,he*z,Q*z,L*z,o.color,o.symbolKeepAspect);if(i){var q=n.painter.renderOneToVNode(G);q&&w.children.push(q)}else pP(C,G)}}}}function gP(e){if(!e||e.length===0)return[["rect"]];if(Ae(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Ae(e[r])){t=!1;break}if(t)return gP([e]);for(var n=[],r=0;r<e.length;++r)Ae(e[r])?n.push([e[r]]):n.push(e[r]);return n}function mP(e){if(!e||e.length===0)return[[0,0]];if(bt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!bt(e[n])){r=!1;break}if(r)return mP([e]);for(var i=[],n=0;n<e.length;++n)if(bt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Re(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function wX(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(bt(e)){var t=Math.ceil(e);return[t,t]}var r=Re(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function SX(e){return Re(e,function(t){return yP(t)})}function yP(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function xX(e,t){e.eachRawSeries(function(r){if(!e.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=lm(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=lm(i,t)}}})}var CX=new ri;const yn=CX;var _P={};function TX(e,t){_P[e]=t}function MX(e){return _P[e]}var AX=1,EX=800,PX=900,LX=1e3,DX=2e3,IX=5e3,bP=1e3,OX=1100,P0=2e3,wP=3e3,RX=4e3,Sh=4500,kX=4600,NX=5e3,BX=6e3,SP=7e3,FX={PROCESSOR:{FILTER:LX,SERIES_FILTER:EX,STATISTIC:IX},VISUAL:{LAYOUT:bP,PROGRESSIVE_LAYOUT:OX,GLOBAL:P0,CHART:wP,POST_CHART_LAYOUT:kX,COMPONENT:RX,BRUSH:NX,CHART_ITEM:Sh,ARIA:BX,DECAL:SP}},Qt="__flagInMainProcess",gr="__pendingUpdate",qv="__needsUpdateStatus",jS=/^[a-zA-Z0-9_]+$/,Kv="__connectUpdateStatus",YS=0,$X=1,HX=2;function xP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return TP(this,e,t)}}function CP(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return TP(this,e,t)}}function TP(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),ri.prototype[t].apply(e,r)}var MP=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ri),AP=MP.prototype;AP.on=CP("on");AP.off=CP("off");var Go,Xv,Yc,ki,Zv,Qv,Jv,ul,cl,qS,KS,ep,XS,qc,ZS,EP,Gr,QS,PP=function(e){pe(t,e);function t(r,n,i){var a=e.call(this,new WK)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},Ae(n)&&(n=LP[n]),a._dom=r;var o="canvas",s="auto",l=!1,u=a._zr=nw(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:qe(i.useDirtyRect,l),useCoarsePointer:qe(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=A0(_t(u.flush,u),17),n=Qe(n),n&&HE(n,!0),a._theme=n,a._locale=U7(i.locale||mE),a._coordSysMgr=new b0;var c=a._api=ZS(a);function f(d,h){return d.__prio-h.__prio}return Mf(xd,f),Mf(um,f),a._scheduler=new cP(a,c,um,xd),a._messageCenter=new MP,a._initEvents(),a.resize=_t(a.resize,a),u.animation.on("frame",a._onframe,a),qS(u,a),KS(u,a),yg(a),a}return t.prototype._onframe=function(){if(!this._disposed){QS(this);var r=this._scheduler;if(this[gr]){var n=this[gr].silent;this[Qt]=!0;try{Go(this),ki.update.call(this,null,this[gr].updateParams)}catch(l){throw this[Qt]=!1,this[gr]=null,l}this._zr.flush(),this[Qt]=!1,this[gr]=null,ul.call(this,n),cl.call(this,n)}else if(r.unfinished){var i=AX,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Qv(this,a),r.performVisualTasks(a),qc(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Qt]){if(this._disposed){this.id;return}var a,o,s;if(De(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Qt]=!0,!this._model||n){var l=new Tq(this._api),u=this._theme,c=this._model=new BE;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},cm);var f={seriesTransition:s,optionChanged:!0};if(i)this[gr]={silent:a,updateParams:f},this[Qt]=!1,this.getZr().wakeUp();else{try{Go(this),ki.update.call(this,null,f)}catch(d){throw this[gr]=null,this[Qt]=!1,d}this._ssr||this._zr.flush(),this[gr]=null,this[Qt]=!1,ul.call(this,a),cl.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.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()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ue.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return O(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;O(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return O(a,function(l){l.group.ignore=!1}),s},t.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(JS[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();O(Ql,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Qe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:S,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Mo.createCanvas(),m=nw(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return O(d,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Bt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),O(d,function(_){var b=new Hs({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Zv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Zv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=bv(i,r);return O(o,function(s,l){l.indexOf("Models")>=0&&O(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=bv(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?UK(s,l,n):jK(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;O(zX,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ml(s,function(v){var p=ut(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=se({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),O(Zl,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),O(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),qK(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&d2(this.getDom(),D0,"");var n=this,i=n._api,a=n._model;O(n._componentsViews,function(o){o.dispose(a,i)}),O(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 Ql[n.id]},t.prototype.resize=function(r){if(!this[Qt]){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[gr]&&(a==null&&(a=this[gr].silent),i=!0,this[gr]=null),this[Qt]=!0;try{i&&Go(this),ki.update.call(this,{type:"resize",animation:se({duration:0},r&&r.animation)})}catch(o){throw this[Qt]=!1,o}this[Qt]=!1,ul.call(this,a),cl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(De(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!fm[r]){var i=fm[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=se({},r);return n.type=Zl[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(De(n)||(n={silent:!!n}),!!Sd[r.type]&&this._model){if(this[Qt]){this._pendingActions.push(r);return}var i=n.silent;Jv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),ul.call(this,i),cl.call(this,i)}},t.prototype.updateLabelLayout=function(){yn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.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()},t.internalField=function(){Go=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Xv(f,!0),Xv(f,!1),d.plan()},Xv=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,y=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(w,x){w!=="series"&&b(x)}):h.eachSeries(b);function b(w){var x=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,T=!x&&g[C];if(!T){var E=Un(w.type),A=d?wi.getClass(E.main,E.sub):uo.getClass(E.sub);T=new A,T.init(h,y),g[C]=T,p.push(T),m.add(T.group)}w.__viewId=T.__id=C,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!d&&v.prepareView(T,w,h,y)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!d&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Yc=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){O([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var y={mainType:v,query:m};p&&(y.subType=p);var _=h.excludeSeriesId,b;_!=null&&(b=je(),O(cr(_),function(w){var x=qn(w,null);x!=null&&b.set(x,!0)})),g&&g.eachComponent(y,function(w){var x=b&&b.get(w.id)!=null;if(!x)if(Ow(h))if(w instanceof bo)h.type===lo&&!h.notBlur&&!w.get(["emphasis","disabled"])&&bY(w,h,f._api);else{var C=r0(w.mainType,w.componentIndex,h.name,f._api),T=C.focusSelf,E=C.dispatchers;h.type===lo&&T&&!h.notBlur&&Gg(w.mainType,w.componentIndex,f._api),E&&O(E,function(A){h.type===lo?zg(A):Wg(A)})}else Yg(h)&&w instanceof bo&&(xY(w,h,f._api),Dw(w),Gr(f))},f),g&&g.eachComponent(y,function(w){var x=b&&b.get(w.id)!=null;x||S(f[v==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},f);function S(w){w&&w.__alive&&w[d]&&w[d](w.__model,g,f._api,h)}},ki={prepareAndUpdate:function(f){Go(this),ki.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,v),m.performDataProcessorTasks(h,f),Qv(this,h),g.update(h,v),r(h),m.performVisualTasks(h,f),ep(this,h,v,f,d);var y=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(y),_!=null&&_!=="auto"&&p.setDarkMode(_),yn.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,y){if(m!=="series"){var _=d.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,h,v,f);b&&b.update&&p.push(_)}else p.push(_)}});var g=je();h.eachSeries(function(m){var y=d._chartsMap[m.__viewId];if(y.updateTransform){var _=y.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),qc(this,h,v,f,{},g),yn.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),uo.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),ep(this,d,this._api,f,{}),yn.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),uo.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),yn.trigger("afterupdate",h,this._api))},updateLayout:function(f){ki.update.call(this,f)}},Zv=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,y=bv(p,h),_=0;_<g.length;_++){var b=g[_];if(b[d]&&(m=b[d](p,y,v))!=null)return m}},Qv=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},Jv=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=Sd[p],y=m.actionInfo,_=(y.update||"update").split(":"),b=_.pop(),S=_[0]!=null&&Un(_[0]);this[Qt]=!0;var w=[f],x=!1;f.batch&&(x=!0,w=Re(f.batch,function(R){return R=ct(se({},R),f),R.batch=null,R}));var C=[],T,E=Yg(f),A=Ow(f);if(A&&N2(this._api),O(w,function(R){if(T=m.action(R,h._model,h._api),T=T||se({},R),T.type=y.event||T.type,C.push(T),A){var k=Xy(f),F=k.queryOptionMap,K=k.mainTypeSpecified,B=K?F.keys()[0]:"series";Yc(h,b,R,B),Gr(h)}else E?(Yc(h,b,R,"series"),Gr(h)):S&&Yc(h,b,R,S.main,S.sub)}),b!=="none"&&!A&&!E&&!S)try{this[gr]?(Go(this),ki.update.call(this,f),this[gr]=null):ki[b].call(this,f)}catch(R){throw this[Qt]=!1,R}if(x?T={type:y.event||p,escapeConnect:g,batch:C}:T=C[0],this[Qt]=!1,!d){var M=this._messageCenter;if(M.trigger(T.type,T),E){var D={type:"selectchanged",escapeConnect:g,selected:CY(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(D.type,D)}}},ul=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Jv.call(this,h,f)}},cl=function(f){!f&&this.trigger("updated")},qS=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[gr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},KS=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Ml(v,jg);p&&(wY(p,h,d._api),Gr(d))}).on("mouseout",function(h){var v=h.target,p=Ml(v,jg);p&&(SY(p,h,d._api),Gr(d))}).on("click",function(h){var v=h.target,p=Ml(v,function(y){return ut(y).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=ut(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();v=v||!!w,(y==="series"?h:d).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),v){var p=d.concat(h),g,m;Mf(p,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),O(p,function(y){var _=f.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;g!=null&&(b=Math.max(g,b)),S?(b===g&&S!==m&&b++,m=S):m&&(b===g&&b++,m=""),g=b,_.setZLevel(b)})}}ep=function(f,d,h,v,p){n(d),XS(f,d,h,v,p),O(f._chartsViews,function(g){g.__alive=!1}),qc(f,d,h,v,p),O(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},XS=function(f,d,h,v,p,g){O(g||f._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,d,h,v),s(y,m),c(y,m)})},qc=function(f,d,h,v,p,g){var m=f._scheduler;p=se(p||{},{updatedSeries:d.getSeries()}),yn.trigger("series:beforeupdate",d,h,p);var y=!1;d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;m.updatePayload(S,v),u(_,b),g&&g.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),o(_,b),Dw(_)}),m.unfinished=y||m.unfinished,yn.trigger("series:layoutlabels",d,h,p),yn.trigger("series:transition",d,h,p),d.eachSeries(function(_){var b=f._chartsMap[_.__viewId];s(_,b),c(_,b)}),a(f,d),yn.trigger("series:afterupdate",d,h,p)},Gr=function(f){f[qv]=!0,f.getZr().wakeUp()},QS=function(f){f[qv]&&(f.getZr().storage.traverse(function(d){fs(d)||i(d)}),f[qv]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===e0&&f.states.emphasis?d.push("emphasis"):f.hoverState===Jy&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Ue.node&&!Ue.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var y=f.childrenRef(),_=0;_<y.length;_++)v=Math.max(l(y[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var b=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!fs(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(fs(m))return;if(m instanceof ft&&PY(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}ZS=function(f){return new(function(d){pe(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){zg(v,p),Gr(f)},h.prototype.leaveEmphasis=function(v,p){Wg(v,p),Gr(f)},h.prototype.enterBlur=function(v){_Y(v),Gr(f)},h.prototype.leaveBlur=function(v){I2(v),Gr(f)},h.prototype.enterSelect=function(v){O2(v),Gr(f)},h.prototype.leaveSelect=function(v){R2(v),Gr(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(FE))(f)},EP=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Kv]=v}}O(Zl,function(h,v){f._messageCenter.on(v,function(p){if(JS[f.group]&&f[Kv]!==YS){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];O(Ql,function(y){y!==f&&y.group===f.group&&m.push(y)}),d(m,YS),O(m,function(y){y[Kv]!==$X&&y.dispatchAction(g)}),d(m,HX)}})})}}(),t}(ri),L0=PP.prototype;L0.on=xP("on");L0.off=xP("off");L0.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var zX=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Sd={},Zl={},um=[],cm=[],xd=[],LP={},fm={},Ql={},JS={},WX=+new Date-0,D0="_echarts_instance_";function I0(e,t,r){var n=!(r&&r.ssr);if(n){var i=VX(e);if(i)return i}var a=new PP(e,t,r);return a.id="ec_"+WX++,Ql[a.id]=a,n&&d2(e,D0,a.id),EP(a),yn.trigger("afterinit",a),a}function VX(e){return Ql[aj(e,D0)]}function DP(e,t){LP[e]=t}function IP(e){at(cm,e)<0&&cm.push(e)}function OP(e,t){R0(um,e,t,DX)}function GX(e){O0("afterinit",e)}function UX(e){O0("afterupdate",e)}function O0(e,t){yn.on(e,t)}function Vs(e,t,r){Ge(t)&&(r=t,t="");var n=De(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Zl[t]&&(_i(jS.test(n)&&jS.test(t)),Sd[n]||(Sd[n]={action:r,actionInfo:e}),Zl[t]=n)}function jX(e,t){b0.register(e,t)}function YX(e,t){R0(xd,e,t,bP,"layout")}function Po(e,t){R0(xd,e,t,wP,"visual")}var ex=[];function R0(e,t,r,n,i){if((Ge(t)||De(t))&&(r=t,t=n),!(at(ex,r)>=0)){ex.push(r);var a=cP.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function RP(e,t){fm[e]=t}function qX(e,t,r){var n=MX("registerMap");n&&n(e,t,r)}var KX=Zq;Po(P0,MK);Po(Sh,AK);Po(Sh,EK);Po(P0,VK);Po(Sh,GK);Po(SP,xX);IP(HE);OP(PX,Oq);RP("default",PK);Vs({type:lo,event:lo,update:lo},Tr);Vs({type:Of,event:Of,update:Of},Tr);Vs({type:Ul,event:Ul,update:Ul},Tr);Vs({type:Rf,event:Rf,update:Rf},Tr);Vs({type:jl,event:jl,update:jl},Tr);DP("light",HK);DP("dark",zK);function fl(e){return e==null?0:e.length||1}function tx(e){return e}var XX=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||tx,this._newKeyGetter=i||tx,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=fl(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=fl(u),d=fl(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=fl(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}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=fl(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const ZX=XX;var QX=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function JX(e,t){var r={},n=r.encode={},i=je(),a=[],o=[],s={};O(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;tp(n,v)[p]=d,h.isExtraCoord||(i.set(v,1),tZ(h.type)&&(a[0]=d),tp(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}DE.each(function(g,m){var y=tp(n,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Re(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new QX(s,t),r}function tp(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function eZ(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function tZ(e){return!(e==="ordinal"||e==="time")}var rZ=function(){function e(t){this.otherDims={},t!=null&&se(this,t)}return e}();const Ff=rZ;var nZ=At(),iZ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},kP=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=FP(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return qe(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=WE(this.source),n=!$P(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=iZ[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],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)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function NP(e){return e instanceof kP}function BP(e){for(var t=je(),r=0;r<(e||[]).length;r++){var n=e[r],i=De(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function FP(e){var t=nZ(e);return t.dimNameMap||(t.dimNameMap=BP(e.dimensionsDefine))}function $P(e){return e>30}var dl=De,Ni=Re,aZ=typeof Int32Array>"u"?Array:Int32Array,oZ="e\0\0",rx=-1,sZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],lZ=["_approximateExtent"],nx,Kc,hl,vl,rp,Xc,np,uZ=function(){function e(t,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;NP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=Ae(f)?new Ff({name:f}):f instanceof Ff?f:new Ff(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=je();O(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!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},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof Jg&&(a=t),!a){var o=this.dimensions,s=w0(t)||Ar(t)?new VE(t,o.length):t;a=new Jg;var l=Ni(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=JX(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,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&&np(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Zi&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===dn;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&q9(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=qn(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=qn(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)np(this,c);nx(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){dl(t)?se(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=hl(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return Kc(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return ge(t)?i.getValues(Ni(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?rx:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Ge(t)&&(n=r,r=t,t=[]);var i=n||this,a=Ni(vl(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){Ge(t)&&(n=r,r=t,t=[]);var i=n||this,a=Ni(vl(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Ct(t);return O(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Ge(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=Ni(vl(t),this._getStoreDimIndex,this),s=Xc(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=Ni(vl(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Xc(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Xc(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new rr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new ZX(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Kc(t,n)},function(n){return Kc(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},dl(t)?se(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():dl(a)&&(a=se({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,dl(r)?se(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){dl(t)?se(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?se(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;uY(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){O(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ni(this.dimensions,this._getDimInfo,this),this.hostModel)),rp(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Ge(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat($y(arguments)))})},e.internalField=function(){nx=function(t){var r=t._invertedIndicesMap;O(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new aZ(o.categories.length);for(var l=0;l<n.length;l++)n[l]=rx;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},hl=function(t,r,n){return qn(t._getCategory(r,n),null)},Kc=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=hl(t,t._idDimIdx,r)),n==null&&(n=oZ+r),n},vl=function(t){return ge(t)||(t=t!=null?[t]:[]),t},Xc=function(t){var r=new e(t._schema?t._schema:Ni(t.dimensions,t._getDimInfo,t),t.hostModel);return rp(r,t),r},rp=function(t,r){O(sZ.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,O(lZ,function(n){t[n]=Qe(r[n])}),t._calculationInfo=se({},r._calculationInfo)},np=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=hl(t,a,r)),l==null&&o!=null&&(i[r]=l=hl(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const HP=uZ;function zP(e,t){w0(e)||(e=S0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=je(),a=[],o=fZ(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$P(o),l=n===e.dimensionsDefine,u=l?FP(e):BP(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=je(c),d=new qE(o),h=0;h<d.length;h++)d[h]=-1;function v(T){var E=d[T];if(E<0){var A=n[T],M=De(A)?A:{name:A},D=new Ff,R=M.name;R!=null&&u.get(R)!=null&&(D.name=D.displayName=R),M.type!=null&&(D.type=M.type),M.displayName!=null&&(D.displayName=M.displayName);var k=a.length;return d[T]=k,D.storeDimIndex=T,a.push(D),D}return a[E]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(T,E){var A=cr(T).slice();if(A.length===1&&!Ae(A[0])&&A[0]<0){f.set(E,!1);return}var M=f.set(E,[]);O(A,function(D,R){var k=Ae(D)?u.get(D):D;k!=null&&k<o&&(M[R]=k,g(v(k),E,R))})});var p=0;O(r,function(T){var E,A,M,D;if(Ae(T))E=T,D={};else{D=T,E=D.name;var R=D.ordinalMeta;D.ordinalMeta=null,D=se({},D),D.ordinalMeta=R,A=D.dimsDef,M=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var k=f.get(E);if(k!==!1){if(k=cr(k),!k.length)for(var F=0;F<(A&&A.length||1);F++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&k.push(p++)}O(k,function(K,B){var N=v(K);if(l&&D.type!=null&&(N.type=D.type),g(ct(N,D),E,B),N.name==null&&A){var j=A[B];!De(j)&&(j={name:j}),N.name=N.displayName=j.name,N.defaultTooltip=j.defaultTooltip}M&&ct(N.otherDims,M)})}});function g(T,E,A){DE.get(E)!=null?T.otherDims[E]=A:(T.coordDim=E,T.coordDimIndex=A,i.set(E,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var b=m||"value";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)O(a,function(T){S(T)}),a.sort(function(T,E){return T.storeDimIndex-E.storeDimIndex});else for(var w=0;w<o;w++){var x=v(w),C=x.coordDim;C==null&&(x.coordDim=dZ(b,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),S(x),x.type==null&&(RE(e,w)===Vt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return cZ(a),new kP({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function cZ(e){for(var t=je(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function fZ(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return O(t,function(a){var o;De(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function dZ(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var hZ=function(){function e(t){this.coordSysDims=[],this.axisMap=je(),this.categoryAxisMap=je(),this.coordSysName=t}return e}();function vZ(e){var t=e.get("coordinateSystem"),r=new hZ(t),n=pZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var pZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",xn).models[0],a=e.getReferringComponents("yAxis",xn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Uo(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Uo(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",xn).models[0];t.coordSysDims=["single"],r.set("single",i),Uo(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",xn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Uo(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Uo(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();O(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Uo(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Uo(e){return e.get("type")==="category"}function gZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;mZ(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(O(a,function(y,_){Ae(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;O(a,function(y){y.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function mZ(e){return!NP(e.schema)}function WP(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function yZ(e,t){return WP(e,t)?e.getCalculationInfo("stackResultDimension"):t}function _Z(e,t){var r=e.get("coordinateSystem"),n=b0.get(r),i;return t&&t.coordSysDims&&(i=Re(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=eZ(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function bZ(e,t,r){var n,i;return r&&O(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function VP(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=S0(e)):(i=n.getSource(),a=i.sourceFormat===dn);var o=vZ(t),s=_Z(t,o),l=r.useEncodeDefaulter,u=Ge(l)?l:l?Dt(aq,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=zP(i,c),d=bZ(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),v=gZ(t,{schema:f,store:h}),p=new HP(f,t);p.setCalculationInfo(v);var g=d!=null&&wZ(i)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function wZ(e){if(e.sourceFormat===dn){var t=SZ(e.data||[]);return!ge(Zu(t))}}function SZ(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var GP=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();ah(GP);const Mi=GP;var xZ=0,CZ=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++xZ}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Re(n,TZ);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ae(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=je(this.categories))},e}();function TZ(e){return De(e)&&e.value!=null?e.value:e+""}const dm=CZ;function hm(e){return e.type==="interval"||e.type==="log"}function MZ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=s2(a/t,!0);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=UP(o),l=i.niceTickExtent=[It(Math.ceil(e[0]/o)*o,s),It(Math.floor(e[1]/o)*o,s)];return AZ(l,e),i}function ip(e){var t=Math.pow(10,qy(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,It(r*t)}function UP(e){return di(e)+2}function ix(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function AZ(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),ix(e,0,t),ix(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xh(e,t){return e>=t[0]&&e<=t[1]}function Ch(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Th(e,t){return e*(t[1]-t[0])+t[0]}var jP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dm({})),ge(i)&&(i=new dm({categories:Re(i,function(a){return De(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ae(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),xh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ch(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Th(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Mi);Mi.registerClass(jP);const YP=jP;var Ba=It,qP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return xh(r,this._extent)},t.prototype.normalize=function(r){return Ch(r,this._extent)},t.prototype.scale=function(r){return Th(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=UP(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:Ba(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Ba(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Ba(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=Ba(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=di(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ba(r.value,i,!0);return AE(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=MZ(a,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Ba(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Ba(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Mi);Mi.registerClass(qP);const rc=qP;var KP=typeof Float32Array<"u",EZ=KP?Float32Array:Array;function ap(e){return ge(e)?KP?new Float32Array(e):e:new EZ(e)}var PZ="__ec_stack_";function k0(e){return e.get("stack")||PZ+e.seriesIndex}function N0(e){return e.dim+e.index}function XP(e,t){var r=[];return t.eachSeriesByType(e,function(n){QP(n)&&r.push(n)}),r}function LZ(e){var t={};O(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function ZP(e){var t=LZ(e),r=[];return O(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(JP(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:N0(a),stackId:k0(n)})}),DZ(r)}function DZ(e){var t={};O(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return O(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ct(a).length;s=Math.max(35-l*4,15)+"%"}var u=pt(s,o),c=pt(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),O(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,d--}else{var b=h;y&&y<b&&(b=Math.min(y,f)),_&&_>b&&(b=_),b!==h&&(m.width=b,f-=b+c*b,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;O(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;O(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function IZ(e,t,r){if(e&&t){var n=e[N0(t)];return n!=null&&r!=null?n[k0(r)]:n}}function OZ(e,t){var r=XP(e,t),n=ZP(r);O(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=k0(i),u=n[N0(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function RZ(e){return{seriesType:e,plan:rP(),reset:function(t){if(QP(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=WP(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=kZ(i,a),v=JP(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=v&&ap(S*3),x=v&&l&&ap(S*3),C=v&&ap(S),T=n.master.getRect(),E=d?T.width:T.height,A,M=b.getStore(),D=0;(A=_.next())!=null;){var R=M.get(f?g:o,A),k=M.get(s,A),F=h,K=void 0;f&&(K=+R-M.get(o,A));var B=void 0,N=void 0,j=void 0,re=void 0;if(d){var oe=n.dataToPoint([R,k]);if(f){var _e=n.dataToPoint([K,k]);F=_e[0]}B=F,N=oe[1]+y,j=oe[0]-F,re=m,Math.abs(j)<p&&(j=(j<0?-1:1)*p)}else{var oe=n.dataToPoint([k,R]);if(f){var _e=n.dataToPoint([k,K]);F=_e[1]}B=oe[0]+y,N=F,j=m,re=oe[1]-F,Math.abs(re)<p&&(re=(re<=0?-1:1)*p)}v?(w[D]=B,w[D+1]=N,w[D+2]=d?j:re,x&&(x[D]=d?T.x:B,x[D+1]=d?N:T.y,x[D+2]=E),C[A]=A):b.setItemLayout(A,{x:B,y:N,width:j,height:re}),D+=3}v&&b.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function QP(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function JP(e){return e.pipelineContext&&e.pipelineContext.large}function kZ(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var NZ=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},eL=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return dh(r.value,Kw[K7(ds(this._minLevelUnit))]||Kw.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return X7(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=VZ(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=tn,n[1]+=tn),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-tn}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Zc.length,l=Math.min(NZ(Zc,this._approxInterval,0,s),s-1);this._interval=Zc[l][1],this._minLevelUnit=Zc[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return bt(r)?r:+bi(r)},t.prototype.contain=function(r){return xh(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ch(this.parse(r),this._extent)},t.prototype.scale=function(r){return Th(r,this._extent)},t.type="time",t}(rc),Zc=[["second",v0],["minute",p0],["hour",ql],["quarter-day",ql*6],["half-day",ql*12],["day",tn*1.2],["half-week",tn*3.5],["week",tn*7],["month",tn*31],["quarter",tn*95],["half-year",qw/2],["year",qw]];function BZ(e,t,r,n){var i=bi(t),a=bi(r),o=function(v){return Xw(i,v,n)===Xw(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function FZ(e,t){return e/=tn,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function $Z(e){var t=30*tn;return e/=t,e>6?6:e>3?3:e>2?2:1}function HZ(e){return e/=ql,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ax(e,t){return e/=t?p0:v0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function zZ(e){return s2(e,!0)}function WZ(e,t,r){var n=new Date(e);switch(ds(t)){case"year":case"month":n[wE(r)](0);case"day":n[SE(r)](1);case"hour":n[xE(r)](0);case"minute":n[CE(r)](0);case"second":n[TE(r)](0),n[ME(r)](0)}return n.getTime()}function VZ(e,t,r,n){var i=1e4,a=_E,o=0;function s(E,A,M,D,R,k,F){for(var K=new Date(A),B=A,N=K[D]();B<M&&B<=n[1];)F.push({value:B}),N+=E,K[R](N),B=K.getTime();F.push({value:B,notAdd:!0})}function l(E,A,M){var D=[],R=!A.length;if(!BZ(ds(E),n[0],n[1],r)){R&&(A=[{value:WZ(new Date(n[0]),E,r)},{value:n[1]}]);for(var k=0;k<A.length-1;k++){var F=A[k].value,K=A[k+1].value;if(F!==K){var B=void 0,N=void 0,j=void 0,re=!1;switch(E){case"year":B=Math.max(1,Math.round(t/tn/365)),N=g0(r),j=Z7(r);break;case"half-year":case"quarter":case"month":B=$Z(t),N=hs(r),j=wE(r);break;case"week":case"half-week":case"day":B=FZ(t),N=hh(r),j=SE(r),re=!0;break;case"half-day":case"quarter-day":case"hour":B=HZ(t),N=Tu(r),j=xE(r);break;case"minute":B=ax(t,!0),N=vh(r),j=CE(r);break;case"second":B=ax(t,!1),N=ph(r),j=TE(r);break;case"millisecond":B=zZ(t),N=gh(r),j=ME(r);break}s(B,F,K,N,j,re,D),E==="year"&&M.length>1&&k===0&&M.unshift({value:M[0].value-B})}}for(var k=0;k<D.length;k++)M.push(D[k]);return D}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var v=ds(a[h]);if(q7(a[h])){l(a[h],u[u.length-1]||[],c);var p=a[h+1]?ds(a[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(E,A){return E.value-A.value});for(var g=[],m=0;m<c.length;++m){var y=c[m].value;(m===0||c[m-1].value!==y)&&(g.push(c[m]),y>=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===a[h]))break}c=[]}}}for(var b=Ht(Re(u,function(E){return Ht(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),S=[],w=b.length-1,h=0;h<b.length;++h)for(var x=b[h],C=0;C<x.length;++C)S.push({value:x[C].value,level:w-h});S.sort(function(E,A){return E.value-A.value});for(var T=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&T.push(S[h]);return T}Mi.registerClass(eL);const GZ=eL;var ox=Mi.prototype,Jl=rc.prototype,UZ=It,jZ=Math.floor,YZ=Math.ceil,Qc=Math.pow,vn=Math.log,B0=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new rc,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Jl.getTicks.call(this,r);return Re(o,function(s){var l=s.value,u=It(Qc(this.base,l));return u=l===i[0]&&this._fixMin?Jc(u,a[0]):u,u=l===i[1]&&this._fixMax?Jc(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=vn(this.base);r=vn(Math.max(0,r))/i,n=vn(Math.max(0,n))/i,Jl.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=ox.getExtent.call(this);n[0]=Qc(r,n[0]),n[1]=Qc(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Jc(n[0],a[0])),this._fixMax&&(n[1]=Jc(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=vn(r[0])/vn(n),r[1]=vn(r[1])/vn(n),ox.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=U9(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[It(YZ(n[0]/a)*a),It(jZ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Jl.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=vn(r)/vn(this.base),xh(r,this._extent)},t.prototype.normalize=function(r){return r=vn(r)/vn(this.base),Ch(r,this._extent)},t.prototype.scale=function(r){return r=Th(r,this._extent),Qc(this.base,r)},t.type="log",t}(Mi),tL=B0.prototype;tL.getMinorTicks=Jl.getMinorTicks;tL.getLabel=Jl.getLabel;function Jc(e,t){return UZ(e,di(t))}Mi.registerClass(B0);const qZ=B0;var KZ=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=this._modelMinRaw=r.get("min",!0);Ge(a)?this._modelMinNum=ef(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=ef(t,a));var o=this._modelMaxRaw=r.get("max",!0);if(Ge(o)?this._modelMaxNum=ef(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=ef(t,o)),i)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=ge(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[aa(l[0],1),aa(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=nd(s)||nd(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[ZZ[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=XZ[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),XZ={min:"_determinedMin",max:"_determinedMax"},ZZ={min:"_dataMin",max:"_dataMax"};function QZ(e,t,r){var n=e.rawExtentInfo;return n||(n=new KZ(e,t,r),e.rawExtentInfo=n,n)}function ef(e,t){return t==null?null:nd(t)?NaN:e.parse(t)}function rL(e,t){var r=e.type,n=QZ(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=XP("bar",o),l=!1;if(O(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=ZP(s),c=JZ(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function JZ(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=IZ(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;O(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;O(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function sx(e,t){var r=t,n=rL(e,r),i=n.extent,a=r.get("splitNumber");e instanceof qZ&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function eQ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new YP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new GZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mi.getClass(t)||rc)}}function tQ(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function nc(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ae(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Ge(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(F0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function F0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function rQ(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof YP?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=nc(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),v=nQ(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function nQ(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new tt(e.x,e.y,a,o);return s}function $0(e){var t=e.get("interval");return t??"auto"}function nL(e){return e.type==="category"&&$0(e.getLabelModel())===0}function iQ(e,t){var r={};return O(e.mapDimensionsAll(t),function(n){r[yZ(e,n)]=!0}),Ct(r)}var aQ=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),lx=[],oQ={registerPreprocessor:IP,registerProcessor:OP,registerPostInit:GX,registerPostUpdate:UX,registerUpdateLifecycle:O0,registerAction:Vs,registerCoordinateSystem:jX,registerLayout:YX,registerVisual:Po,registerTransform:KX,registerLoading:RP,registerMap:qX,registerImpl:TX,PRIORITY:FX,ComponentModel:wt,ComponentView:wi,SeriesModel:bo,ChartView:uo,registerComponentModel:function(e){wt.registerClass(e)},registerComponentView:function(e){wi.registerClass(e)},registerSeriesModel:function(e){bo.registerClass(e)},registerChartView:function(e){uo.registerClass(e)},registerSubTypeDefaulter:function(e,t){wt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){F9(e,t)}};function sa(e){if(ge(e)){O(e,function(t){sa(t)});return}at(lx,e)>=0||(lx.push(e),Ge(e)&&(e={install:e}),e.install(oQ))}var Iu=At();function sQ(e){return e.type==="category"?uQ(e):fQ(e)}function lQ(e,t){return e.type==="category"?cQ(e,t):{ticks:Re(e.scale.getTicks(),function(r){return r.value})}}function uQ(e){var t=e.getLabelModel(),r=iL(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function iL(e,t){var r=aL(e,"labels"),n=$0(t),i=oL(r,n);if(i)return i;var a,o;return Ge(n)?a=uL(e,n):(o=n==="auto"?dQ(e):n,a=lL(e,o)),sL(r,n,{labels:a,labelCategoryInterval:o})}function cQ(e,t){var r=aL(e,"ticks"),n=$0(t),i=oL(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Ge(n))a=uL(e,n,!0);else if(n==="auto"){var s=iL(e,e.getLabelModel());o=s.labelCategoryInterval,a=Re(s.labels,function(l){return l.tickValue})}else o=n,a=lL(e,o,!0);return sL(r,n,{ticks:a,tickCategoryInterval:o})}function fQ(e){var t=e.scale.getTicks(),r=nc(e);return{labels:Re(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function aL(e,t){return Iu(e)[t]||(Iu(e)[t]=[])}function oL(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function sL(e,t,r){return e.push({key:t,value:r}),r}function dQ(e){var t=Iu(e).autoInterval;return t??(Iu(e).autoInterval=e.calculateCategoryInterval())}function hQ(e){var t=vQ(e),r=nc(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Uy(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Iu(e.model),S=e.getExtent(),w=b.lastAutoInterval,x=b.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=S[0],b.axisExtent1=S[1]),_}function vQ(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function lL(e,t,r){var n=nc(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=nL(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function uL(e,t,r){var n=e.scale,i=nc(e),a=[];return O(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var ux=[0,1],pQ=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return z9(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),cx(n,i.count())),kg(t,ux,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),cx(n,i.count()));var a=kg(t,n,ux,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=lQ(this,r),i=n.ticks,a=Re(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return gQ(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Re(n,function(a){return Re(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return sQ(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return hQ(this)},e}();function cx(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function gQ(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;O(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=It(h),v=It(v),f?h>v:h<v}}const mQ=pQ;var pl=Math.PI*2,Fa=yo.CMD,yQ=["top","right","bottom","left"];function _Q(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function bQ(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%pl<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=ji(i),i=ji(d)}else n=ji(n),i=ji(i);n>i&&(i+=pl);var h=Math.atan2(s,o);if(h<0&&(h+=pl),h>=n&&h<=i||h+pl>=n&&h+pl<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Cd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function cL(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _n=[];function wQ(e,t,r){var n=cL(t.x,t.y,t.width,t.height,e.x,e.y,_n);return r.set(_n[0],_n[1]),n}function SQ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(n=c[h],i=c[h+1],a=n,o=i);var p=u;switch(v){case Fa.M:a=c[h++],o=c[h++],n=a,i=o;break;case Fa.L:p=Cd(n,i,c[h],c[h+1],f,d,_n,!0),n=c[h++],i=c[h++];break;case Fa.C:p=jA(n,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,_n),n=c[h++],i=c[h++];break;case Fa.Q:p=qA(n,i,c[h++],c[h++],c[h],c[h+1],f,d,_n),n=c[h++],i=c[h++];break;case Fa.A:var g=c[h++],m=c[h++],y=c[h++],_=c[h++],b=c[h++],S=c[h++];h+=1;var w=!!(1-c[h++]);s=Math.cos(b)*y+g,l=Math.sin(b)*_+m,h<=1&&(a=s,o=l);var x=(f-g)*_/y+g;p=bQ(g,m,_,b,b+S,w,x,d,_n),n=Math.cos(b+S)*y+g,i=Math.sin(b+S)*_+m;break;case Fa.R:a=n=c[h++],o=i=c[h++];var C=c[h++],T=c[h++];p=cL(a,o,C,T,f,d,_n);break;case Fa.Z:p=Cd(n,i,a,o,f,d,_n,!0),n=a,i=o;break}p<u&&(u=p,r.set(_n[0],_n[1]))}return u}var Cn=new Ne,lt=new Ne,Et=new Ne,jn=new Ne,zn=new Ne;function fx(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||yQ,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&nh([],c),d=t.get("length2")||0;u&&Et.copy(u);for(var h=0;h<o.length;h++){var v=o[h];_Q(v,0,s,Cn,jn),Ne.scaleAndAdd(lt,Cn,jn,d),lt.transform(f);var p=e.getBoundingRect(),g=u?u.distance(lt):e instanceof ft?SQ(lt,e.path,Et):wQ(lt,p,Et);g<l&&(l=g,lt.transform(c),Et.transform(c),Et.toArray(a[0]),lt.toArray(a[1]),Cn.toArray(a[2]))}fL(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var Td=[],sr=new Ne;function fL(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Cn.fromArray(e[0]),lt.fromArray(e[1]),Et.fromArray(e[2]),Ne.sub(jn,Cn,lt),Ne.sub(zn,Et,lt);var r=jn.len(),n=zn.len();if(!(r<.001||n<.001)){jn.scale(1/r),zn.scale(1/n);var i=jn.dot(zn),a=Math.cos(t);if(a<i){var o=Cd(lt.x,lt.y,Et.x,Et.y,Cn.x,Cn.y,Td,!1);sr.fromArray(Td),sr.scaleAndAdd(zn,o/Math.tan(Math.PI-t));var s=Et.x!==lt.x?(sr.x-lt.x)/(Et.x-lt.x):(sr.y-lt.y)/(Et.y-lt.y);if(isNaN(s))return;s<0?Ne.copy(sr,lt):s>1&&Ne.copy(sr,Et),sr.toArray(e[1])}}}}function xQ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Cn.fromArray(e[0]),lt.fromArray(e[1]),Et.fromArray(e[2]),Ne.sub(jn,lt,Cn),Ne.sub(zn,Et,lt);var n=jn.len(),i=zn.len();if(!(n<.001||i<.001)){jn.scale(1/n),zn.scale(1/i);var a=jn.dot(t),o=Math.cos(r);if(a<o){var s=Cd(lt.x,lt.y,Et.x,Et.y,Cn.x,Cn.y,Td,!1);sr.fromArray(Td);var l=Math.PI/2,u=Math.acos(zn.dot(t)),c=l+u-r;if(c>=l)Ne.copy(sr,Et);else{sr.scaleAndAdd(zn,s/Math.tan(Math.PI/2-c));var f=Et.x!==lt.x?(sr.x-lt.x)/(Et.x-lt.x):(sr.y-lt.y)/(Et.y-lt.y);if(isNaN(f))return;f<0?Ne.copy(sr,lt):f>1&&Ne.copy(sr,Et)}sr.toArray(e[1])}}}}function dx(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function CQ(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=bg(n[0],n[1]),a=bg(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Jh([],n[1],n[0],o/i),l=Jh([],n[1],n[2],o/a),u=Jh([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function dL(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<dd.length;l++){var u=dd[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:qe(i.states[u]&&i.states[u].ignore,s);if(h||!qe(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0);continue}n||(n=new uh,e.setTextGuideLine(n),!f&&(s||!o)&&dx(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),dx(n,!1,u,c)}}if(n){ct(n.style,r),n.style.fill=null;var p=a.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=CQ}}function hL(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Zn.length;n++){var i=Zn[n];r[i]=e.getModel([i,t])}return r}function vL(e){for(var t=[],r=0;r<e.length;r++){var n=e[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 c=s?new hd(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function pL(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,T){return C.rect[t]-T.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&a&&S(-c/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&x(-m),y<0&&x(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function b(C,T,E){if(C<0){var A=Math.min(T,-C);if(A>0){S(A*E,0,o);var M=A+C;M<0&&w(-M*E,1)}else w(-C*E,1)}}function S(C,T,E){C!==0&&(u=!0);for(var A=T;A<E;A++){var M=e[A],D=M.rect;D[t]+=C,M.label[t]+=C}}function w(C,T){for(var E=[],A=0,M=1;M<o;M++){var D=e[M-1].rect,R=Math.max(e[M].rect[t]-D[t]-D[r],0);E.push(R),A+=R}if(A){var k=Math.min(Math.abs(C)/A,T);if(C>0)for(var M=0;M<o-1;M++){var F=E[M]*k;S(F,0,M+1)}else for(var M=o-1;M>0;M--){var F=E[M-1]*k;S(-F,M,o)}}}function x(C){var T=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),A=0;A<o-1;A++)if(T>0?S(E,0,A+1):S(-E,o-A-1,o),C-=E,C<=0)return}return u}function TQ(e,t,r,n){return pL(e,"x","width",t,r,n)}function gL(e,t,r,n){return pL(e,"y","height",t,r,n)}function mL(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new tt(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<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new hd(v.localRect,v.transform)),f||(f=new hd(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function MQ(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function AQ(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:MQ(n&&n.shape.points)}}var hx=["align","verticalAlign","width","height","fontSize"],Lr=new ih,op=At(),EQ=At();function tf(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var rf=["x","y","rotation"],PQ=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();tt.applyTransform(c,c,u),u?Lr.setLocalTransform(u):(Lr.x=Lr.y=Lr.rotation=Lr.originX=Lr.originY=0,Lr.scaleX=Lr.scaleY=1);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();tt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:Lr.x,y:Lr.y,scaleX:Lr.scaleX,scaleY:Lr.scaleY,rotation:Lr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Ge(i)||Ct(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=ut(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(_,b){return function(){fx(_,b)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Ge(o.layoutOption)?c=o.layoutOption(AQ(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=pt(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=pt(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=op(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<hx.length;p++){var g=hx[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var m=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);m=y.getItemModel(o.dataIndex)}s.on("drag",i(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=vL(this._labelList),a=Ht(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ht(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});TQ(a,0,r),gL(o,0,n);var s=Ht(i,function(l){return l.layoutOption.hideOverlap});mL(s)},e.prototype.processLabelsOverall=function(){var t=this;O(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=op(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=ut(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style"),c=o.getVisual("drawType");l.stroke=u[c];var f=s.getModel("labelLine");dL(t,hL(s),l),fx(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!fs(t))){var a=op(n),o=a.oldLayout,s=ut(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(at(d,"select")>=0&&n.attr(a.oldLayoutSelect),at(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Er(n,u,r,l)}else if(n.attr(u),!tc(n).valueAnimation){var f=qe(n.style.opacity,1);n.style.opacity=0,$r(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};tf(h,u,rf),tf(h,n.states.select,rf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};tf(v,u,rf),tf(v,n.states.emphasis,rf)}I7(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=EQ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Er(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,$r(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const LQ=PQ;var sp=At();function DQ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=sp(r).labelManager;i||(i=sp(r).labelManager=new LQ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=sp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function IQ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Is(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Is(e,t,r[o]));return a.join(" ")}}function OQ(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ge(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}function RQ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new Bt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=Ge(i)?function(g){i(g,f)}:null;$r(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return f}function kQ(e,t,r){var n=e.getArea(),i=It(n.r0,1),a=It(n.r,1),o=new Ao({shape:{cx:It(e.cx,1),cy:It(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,$r(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function NQ(e,t,r,n,i){if(e){if(e.type==="polar")return kQ(e,t,r);if(e.type==="cartesian2d")return RQ(e,t,r,n,i)}else return null;return null}function yL(e,t){return e.type===t}var BQ={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},FQ=function(e){return Math.round(e.length/2)};function $Q(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;Ae(a)?v=BQ[a]:Ge(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,FQ))}}}}}var _L=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return VP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.dataToPoint(a.clampData(r));if(i)O(a.getAxes(),function(f,d){if(f.type==="category"){var h=f.getTicksCoords(),v=a.clampData(r)[d];n&&(n[d]==="x1"||n[d]==="y1")&&(v+=1),v>h.length-1&&(v=h.length-1),v<0&&(v=0),h[v]&&(o[d]=f.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;o[c]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(bo);bo.registerClass(_L);const vx=_L;var HQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return VP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gE(vx.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(vx);const zQ=HQ;var WQ=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),VQ=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new WQ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),y=Math.sin(f);v?(r.moveTo(p*o+i,g*o+a),r.arc(p*u+i,g*u+a,l,-Math.PI+c,c,!d)):r.moveTo(p*s+i,g*s+a),r.arc(i,a,s,c,f,!d),r.arc(m*u+i,y*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(ft);const px=VQ;function GQ(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return ud(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,y=r?Math.abs(d-h)/2:0,_=Math.cos,b=Math.sin,S=c+d*_(p),w=f+d*b(p),x="left",C="top";switch(s){case"startArc":S=c+(h-l)*_(m),w=f+(h-l)*b(m),x="center",C="top";break;case"insideStartArc":S=c+(h+l)*_(m),w=f+(h+l)*b(m),x="center",C="bottom";break;case"startAngle":S=c+v*_(p)+nf(p,l+y,!1),w=f+v*b(p)+af(p,l+y,!1),x="right",C="middle";break;case"insideStartAngle":S=c+v*_(p)+nf(p,-l+y,!1),w=f+v*b(p)+af(p,-l+y,!1),x="left",C="middle";break;case"middle":S=c+v*_(m),w=f+v*b(m),x="center",C="middle";break;case"endArc":S=c+(d+l)*_(m),w=f+(d+l)*b(m),x="center",C="bottom";break;case"insideEndArc":S=c+(d-l)*_(m),w=f+(d-l)*b(m),x="center",C="top";break;case"endAngle":S=c+v*_(g)+nf(g,l+y,!0),w=f+v*b(g)+af(g,l+y,!0),x="left",C="middle";break;case"insideEndAngle":S=c+v*_(g)+nf(g,-l+y,!0),w=f+v*b(g)+af(g,-l+y,!0),x="right",C="middle";break;default:return ud(n,i,a)}return n=n||{},n.x=S,n.y=w,n.align=x,n.verticalAlign=C,n}}function UQ(e,t,r,n){if(bt(n)){e.setTextConfig({rotation:n});return}else if(ge(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function nf(e,t,r){return t*Math.sin(e)*(r?-1:1)}function af(e,t,r){return t*Math.cos(e)*(r?1:-1)}var lp=Math.max,up=Math.min;function jQ(e,t){var r=e.getArea&&e.getArea();if(yL(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var YQ=function(e){pe(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){c0(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=qQ(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,p=jQ(u,s);o.removeClipPath();var g=r.get("roundCap",!0),m=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function C(A){var M=of[u.type](s,A),D=tJ(u,f,M);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&D.setShape("r",_),b[A]=D,D}s.diff(l).add(function(A){var M=s.getItemModel(A),D=of[u.type](s,A,M);if(m&&C(A),!(!s.hasValue(A)||!bx[u.type](D))){var R=!1;v&&(R=gx[u.type](p,D));var k=mx[u.type](r,s,A,D,f,d,c.model,!1,g);h&&(k.forceLabelAnimation=!0),Sx(k,s,A,M,D,r,f,u.type==="polar"),w?k.attr({shape:D}):h?yx(h,d,k,D,A,f,!1,!1):$r(k,{shape:D},r,A),s.setItemGraphicEl(A,k),o.add(k),k.ignore=R}}).update(function(A,M){var D=s.getItemModel(A),R=of[u.type](s,A,D);if(m){var k=void 0;S.length===0?k=C(M):(k=S[M],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"&&k.setShape("r",_),b[A]=k);var F=of[u.type](s,A),K=wL(f,F,u);Er(k,{shape:K},d,A)}var B=l.getItemGraphicEl(M);if(!s.hasValue(A)||!bx[u.type](R)){o.remove(B);return}var N=!1;if(v&&(N=gx[u.type](p,R),N&&o.remove(B)),B?oE(B):B=mx[u.type](r,s,A,R,f,d,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),x){var j=B.getTextContent();if(j){var re=tc(j);re.prevValue!=null&&(re.prevValue=re.value)}}else Sx(B,s,A,D,R,r,f,u.type==="polar");w?B.attr({shape:R}):h?yx(h,d,B,R,A,f,!0,x):Er(B,{shape:R},r,A,null),s.setItemGraphicEl(A,B),B.ignore=N,o.add(B)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&vd(M,r,A)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new cn);T.removeAll();for(var E=0;E<b.length;++E)T.add(b[E]);o.add(T),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),Cx(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Cx(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&NQ(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Re(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){vd(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(uo),gx={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=lp(t.x,e.x),s=up(t.x+t.width,i),l=lp(t.y,e.y),u=up(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=up(t.r,e.r),a=lp(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},mx={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Bt({shape:se({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?px:Ao,c=new u({shape:n,z2:1});c.name="item";var f=bL(i);if(c.calculateTextPosition=GQ(f,{isRoundCap:u===px}),a){var d=c.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Er:$r)(c,{shape:v},a)}return c}};function qQ(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function yx(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Er:$r)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Er:$r)(r,{shape:u},c,i)}function _x(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var KQ=["x","y","width","height"],XQ=["cx","cy","r","startAngle","endAngle"],bx={cartesian2d:function(e){return!_x(e,KQ)},polar:function(e){return!_x(e,XQ)}},of={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?QQ(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ZQ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function bL(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Sx(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=hE(n);f0(e,f,{labelFetcher:a,labelDataIndex:r,defaultText:IQ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,UQ(e,h==="outside"?c:h,bL(o),n.get(["label","rotate"]))}D7(d,f,a.getRawValue(r),function(p){return OQ(t,p)});var v=n.getModel(["emphasis"]);B2(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),F2(e,n),ZQ(i)&&(e.style.fill="none",e.style.stroke="none",O(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function QQ(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var JQ=function(){function e(){}return e}(),xx=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new JQ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(ft);function Cx(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new xx({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new xx({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),ut(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",Tx),f.on("mousemove",Tx)),r&&r.push(f)}var Tx=A0(function(e){var t=this,r=eJ(t,e.offsetX,e.offsetY);ut(t).dataIndex=r>=0?r:null},30,!1);function eJ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function wL(e,t,r){if(yL(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function tJ(e,t,r){var n=e.type==="polar"?Ao:Bt;return new n({shape:wL(t,r,e),silent:!0,z2:0})}const rJ=YQ;function nJ(e){e.registerChartView(rJ),e.registerSeriesModel(zQ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Dt(OZ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RZ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$Q("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var sf=Math.PI*2,Mx=Math.PI/180;function SL(e,t){return Ls(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xL(e,t){var r=SL(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),l=pt(i[0],s/2),u=pt(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else ge(n)||(n=[n,n]),c=pt(n[0],a)+r.x,f=pt(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function iJ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=SL(n,r),s=xL(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*Mx,h=n.get("minAngle")*Mx,v=0;i.each(a,function(E){!isNaN(E)&&v++});var p=i.getSum(a),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var S=sf,w=0,x=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(E,A){var M;if(isNaN(E)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?M=p===0&&_?g:E*g:M=sf/v,M<h?(M=h,S-=h):w+=E;var D=x+C*M;i.setItemLayout(A,{angle:M,startAngle:x,endAngle:D,clockwise:m,cx:l,cy:u,r0:f,r:y?kg(E,b,[f,c]):c}),x=D}),S<sf&&v)if(S<=.001){var T=sf/v;i.each(a,function(E,A){if(!isNaN(E)){var M=i.getItemLayout(A);M.angle=T,M.startAngle=d+C*A*T,M.endAngle=d+C*(A+1)*T}})}else g=S/w,x=d,i.each(a,function(E,A){if(!isNaN(E)){var M=i.getItemLayout(A),D=M.angle===h?h:E*g;M.startAngle=x,M.endAngle=x+C*D,x+=C*D}})})}function aJ(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var oJ=Math.PI/180;function Ax(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,y=0;y<p.list.length;y++){var _=p.list[y],b=Math.abs(_.label.y-r),S=n+_.len,w=S*S,x=Math.sqrt((1-Math.abs(b*b/m))*w),C=t+(x+_.len2)*i,T=C-_.label.x,E=_.targetTextWidth-T*i;CL(_,E,!0),_.label.x=C}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},y=0;y<p.length;y++)if(p[y].labelAlignTo==="none"){var _=p[y],b=_.label.y>r?m:g,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-t-_.len2*i,x=n+_.len,C=Math.abs(w)<x?Math.sqrt(S*S/(1-w*w/x/x)):x;b.rB=C,b.maxY=S}b.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}gL(e,l,l+o)&&f(e)}function sJ(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;cp(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!cp(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+i-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+i-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+i-h.x-v.bleedMargin,v.targetTextWidth=g,CL(v,g)}}Ax(u,t,r,n,1,i,a,o,s,f),Ax(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!cp(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",y=h.style.padding,_=y?y[1]+y[3]:0,b=h.style.backgroundColor?0:_,S=v.rect.width+b,w=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+S+v.labelDistance:p[2][0]=o+i-v.edgeDistance-S-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=h.y}}}function CL(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-f)/2}}}function cp(e){return e.position==="center"}function lJ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*oJ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),C=x.shape,T=x.getTextContent(),E=x.getTextGuideLine(),A=t.getItemModel(w),M=A.getModel("label"),D=M.get("position")||A.get(["emphasis","label","position"]),R=M.get("distanceToLabelLine"),k=M.get("alignTo"),F=pt(M.get("edgeDistance"),u),K=M.get("bleedMargin"),B=A.getModel("labelLine"),N=B.get("length");N=pt(N,u);var j=B.get("length2");if(j=pt(j,u),Math.abs(C.endAngle-C.startAngle)<o){O(T.states,h),T.ignore=!0,E&&(O(E.states,h),E.ignore=!0);return}if(v(T)){var re=(C.startAngle+C.endAngle)/2,oe=Math.cos(re),_e=Math.sin(re),Ee,V,J,W;n=C.cx,i=C.cy;var Y=D==="inside"||D==="inner";if(D==="center")Ee=C.cx,V=C.cy,W="center";else{var ue=(Y?(C.r+C.r0)/2*oe:C.r*oe)+n,he=(Y?(C.r+C.r0)/2*_e:C.r*_e)+i;if(Ee=ue+oe*3,V=he+_e*3,!Y){var Q=ue+oe*(N+l-C.r),L=he+_e*(N+l-C.r),I=Q+(oe<0?-1:1)*j,z=L;k==="edge"?Ee=oe<0?c+F:c+u-F:Ee=I+(oe<0?-R:R),V=z,J=[[ue,he],[Q,L],[I,z]]}W=Y?"center":k==="edge"?oe>0?"right":"left":oe>0?"left":"right"}var G=Math.PI,q=0,ne=M.get("rotate");if(bt(ne))q=ne*(G/180);else if(D==="center")q=0;else if(ne==="radial"||ne===!0){var de=oe<0?-re+G:-re;q=de}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(oe,_e);te<0&&(te=G*2+te);var ie=_e>0;ie&&(te=G+te),q=te-G}if(a=!!q,T.x=Ee,T.y=V,T.rotation=q,T.setStyle({verticalAlign:"middle"}),Y){T.setStyle({align:W});var ve=T.states.select;ve&&(ve.x+=T.x,ve.y+=T.y)}else{var X=T.getBoundingRect().clone();X.applyTransform(T.getComputedTransform());var we=(T.style.margin||0)+2.1;X.y-=we/2,X.height+=we,r.push({label:T,labelLine:E,position:D,len:N,len2:j,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new Ne(oe,_e),linePoints:J,textAlign:W,labelDistance:R,labelAlignTo:k,edgeDistance:F,bleedMargin:K,rect:X,unconstrainedWidth:X.width,labelStyleWidth:T.style.width})}x.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&sJ(r,n,i,l,u,d,c,f);for(var p=0;p<r.length;p++){var g=r[p],m=g.label,y=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(O(m.states,h),m.ignore=!0);var b=m.states.select;b&&(b.x+=m.x,b.y+=m.y)}if(y){var S=g.linePoints;_||!S?(O(y.states,h),y.ignore=!0):(fL(S,g.minTurnAngle),xQ(S,g.surfaceNormal,g.maxSurfaceAngle),y.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new Ne(S[0][0],S[0][1])})}}}function lf(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ge(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Re(n,function(a){return aa(a,i)})}}var uJ=function(e){pe(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new dr;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=se(lf(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?($r(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,$r(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),$r(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Er(o,{shape:{endAngle:c.endAngle}},s,n))}else oE(o),Er(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),F2(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=se({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},lf(u.getModel("itemStyle"),c)),se(o.ensureState("select"),{x:p,y:g,shape:lf(l.getModel(["select","itemStyle"]),c)}),se(o.ensureState("blur"),{shape:lf(l.getModel(["blur","itemStyle"]),c)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&se(y.ensureState("select"),{x:p,y:g}),se(_.ensureState("select"),{x:p,y:g}),B2(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;f0(a,hE(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new uh,this.setTextGuideLine(h)),dL(this,hL(o),{stroke:u,opacity:Hl(s.get(["lineStyle","opacity"]),c,1)})}},t}(Ao),cJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new Ao({shape:xL(r,i)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new uJ(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);vd(v,r,h)}).execute(),lJ(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(uo);const fJ=cJ;function dJ(e,t,r){t=ge(t)&&{coordDimensions:t}||se({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=zP(n,t).dimensions,a=new HP(i,e);return a.initData(n,r),a}var hJ=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const vJ=hJ;var pJ=At(),gJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new vJ(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return dJ(this,{coordDimensions:["value"],encodeDefaulter:Dt(oq,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=pJ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=W9(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Ng(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(bo);const mJ=gJ;function yJ(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function _J(e){e.registerChartView(fJ),e.registerSeriesModel(mJ),YK("pie",e.registerAction),e.registerLayout(Dt(iJ,"pie")),e.registerProcessor(aJ("pie")),e.registerProcessor(yJ("pie"))}var bJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(wt);const wJ=bJ;var vm=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",xn).models[0]},t.type="cartesian2dAxis",t}(wt);ti(vm,aQ);var TL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},SJ=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},TL),H0=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},TL),xJ=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},H0),CJ=ct({logBase:10},H0);const TJ={category:SJ,value:H0,time:xJ,log:CJ};var MJ={value:1,category:1,time:1,log:1};function Ex(e,t,r,n){O(MJ,function(i,a){var o=ot(ot({},TJ[a],!0),n,!0),s=function(l){pe(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Au(this),h=d?yh(c):{},v=f.getTheme();ot(c,v.get(a+"Axis")),ot(c,this.getDefaultOption()),c.type=Px(c),d&&Ds(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=dm.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Px)}function Px(e){return e.type||(e.data?"category":"value")}var AJ=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Re(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ht(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const EJ=AJ;var pm=["x","y"];function Lx(e){return e.type==="interval"||e.type==="time"}var PJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=pm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Lx(r)||!Lx(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=nh([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new tt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return on(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return on(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new tt(i,a,o,s)},t}(EJ),LJ=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(mQ);const DJ=LJ;function gm(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[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[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),yu(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Dx(e){return e.get("coordinateSystem")==="cartesian2d"}function Ix(e){var t={xAxisModel:null,yAxisModel:null};return O(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,xn).models[0];t[n]=a}),t}var fp=Math.log;function IJ(e,t,r){var n=rc.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=rL(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=fp(e.base);u=[fp(u[0])/d,fp(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=ip(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=ip(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=ip(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=It(g-y),p<0&&u[0]>=0?(p=0,g=It(y)):g>0&&u[1]<=0&&(g=0,p=-It(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,g+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,g-v)}var OJ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pm,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Ct(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;hm(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(sx(p,v),hm(p)&&(s=h))}c.length&&(s||(s=c.pop(),sx(s.scale,s.model)),O(c,function(g){IJ(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};O(n.x,function(o){Ox(n,"y",o,a)}),O(n.y,function(o){Ox(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Ls(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(O(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=rQ(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),O(this._coordsList,function(u){u.calcAffineTransform()});function l(){O(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),RJ(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}De(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",xn).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",xn).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,at(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,O(s.x,function(c,f){O(s.y,function(d,h){var v="x"+f+"y"+h,p=new PJ(v);p.master=i,p.model=t,i._coordsMap[v]=p,i._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(dp(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new DJ(c,eQ(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=d,a._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){O(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(Dx(i)){var a=Ix(i),o=a.xAxisModel,s=a.yAxisModel;if(!dp(o,r)||!dp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){O(iQ(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return O(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);at(r,a)<0&&r.push(a),at(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(Dx(i)){var a=Ix(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=pm,e}();function dp(e,t){return e.getCoordSysModel()===t}function Ox(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Rx(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&Rx(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function Rx(e){return e&&e.type!=="category"&&e.type!=="time"&&tQ(e)}function RJ(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}const kJ=OJ;var Yi=Math.PI,co=function(){function e(t,r){this.group=new cn,this.opt=r,this.axisModel=t,ct(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new cn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!kx[t]},e.prototype.add=function(t){kx[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=o2(r-t),a,o;return cd(i)?(o=n>0?"top":"bottom",a="center"):cd(i-Yi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Yi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),kx={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(on(s,s,o),on(l,l,o));var c=se({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new _o({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});xu(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Ae(d)&&(d=[d,d]),(Ae(h)||bt(h))&&(h=[h,h]);var v=sX(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];O([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.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,y){if(d[y]!=="none"&&d[y]!=null){var _=E0(d[y],-p/2,-g/2,p,g,c.stroke,!0),b=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+b*Math.cos(e.rotation),y:S[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=FJ(r,n,t,e),a=HJ(r,n,t,e);if(BJ(t,a,i),$J(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=vL(Re(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));mL(o)}},axisName:function(e,t,r,n){var i=yu(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,Bx(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Yi/180);var v;Bx(a)?d=co.innerTextLayout(e.rotation,h??e.rotation,o):(d=NJ(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=yu(e.nameTruncateMaxWidth,g.maxWidth,v),_=new dr({x:f[0],y:f[1],rotation:d.rotation,silent:co.isLabelSilent(t),style:oa(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(u0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=co.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ut(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function NJ(e,t,r,n){var i=o2(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return cd(i-Yi/2)?(o=l?"bottom":"top",a="center"):cd(i-Yi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Yi*1.5&&i>Yi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function BJ(e,t,r){if(!nL(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Ur(a),Ur(u)):Nx(a,o)&&(n?(Ur(o),Ur(c)):(Ur(a),Ur(u))),i===!1?(Ur(s),Ur(f)):Nx(l,s)&&(i?(Ur(l),Ur(d)):(Ur(s),Ur(f)))}}function Ur(e){e&&(e.ignore=!0)}function Nx(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=zy([]);return Wy(i,i,-e.rotation),r.applyTransform(us([],i,e.getLocalTransform())),n.applyTransform(us([],i,t.getLocalTransform())),r.intersect(n)}}function Bx(e){return e==="middle"||e==="center"}function ML(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(on(o,o,t),on(s,s,t));var c=new _o({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});xu(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function FJ(e,t,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(),c=ML(u,t.transform,l,ct(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function $J(e,t,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=ct(s.getLineStyle(),ct(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=ML(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function HJ(e,t,r,n){var i=r.axis,a=yu(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(yu(n.labelRotate,o.get("rotate"))||0)*Yi/180,c=co.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=co.isLabelSilent(r),v=r.get("triggerEvent");return O(l,function(p,g){var m=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,y=p.formattedLabel,_=p.rawLabel,b=o;if(f&&f[m]){var S=f[m];De(S)&&S.textStyle&&(b=new rr(S.textStyle,o,r.ecModel))}var w=b.getTextColor()||r.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(m),C=new dr({x,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:oa(b,{text:y,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:Ge(w)?w(i.type==="category"?_:i.type==="value"?m+"":m,g):w})});if(C.anid="label_"+m,v){var T=co.makeAxisEventDataBase(r);T.targetType="axisLabel",T.value=_,T.tickIndex=g,i.type==="category"&&(T.dataIndex=m),ut(C).eventData=T}t.add(C),C.updateTransform(),d.push(C),e.add(C),C.decomposeTransform()}),d}}const AL=co;function zJ(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return WJ(r,e,t),r.seriesInvolved&&GJ(r,e),r}function WJ(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];O(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ou(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(O(s.getAxes(),Dt(p,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&O(v.baseAxes,Dt(p,h?"cross":!0,d)),h&&O(v.otherAxes,Dt(p,"cross",!1))}function p(g,m,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!g&&!mm(_))){m==null&&(m=_.get("triggerTooltip")),_=g?VJ(y,f,i,t,g,m):_;var S=_.get("snap"),w=Ou(y.model),x=m||S||y.type==="category",C=e.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,involveSeries:x,snap:S,useHandle:mm(_),seriesModels:[],linkGroup:null};u[w]=C,e.seriesInvolved=e.seriesInvolved||x;var T=UJ(a,y);if(T!=null){var E=o[T]||(o[T]={axesInfo:{}});E.axesInfo[w]=C,E.mapper=a[T].mapper,C.linkGroup=E}}}})}function VJ(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};O(s,function(d){l[d]=Qe(o.get(d))}),l.snap=e.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 c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&ct(u,f.textStyle)}}return e.model.getModel("axisPointer",new rr(l,r,n))}function GJ(e,t){t.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||O(e.coordSysAxesInfo[Ou(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 UJ(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(hp(a[n+"AxisId"],r.id)||hp(a[n+"AxisIndex"],r.componentIndex)||hp(a[n+"AxisName"],r.name))return i}}function hp(e,t){return e==="all"||ge(e)&&at(e,t)>=0||e===t}function jJ(e){var t=z0(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=mm(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=t.axis.scale.isBlank()?"hide":"show")}}function z0(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ou(e)]}function YJ(e){var t=z0(e);return t&&t.axisPointerModel}function mm(e){return!!e.get(["handle","show"])}function Ou(e){return e.type+"||"+e.id}var Fx={},qJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&jJ(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=YJ(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Fx[r]=n},t.getAxisPointerClass=function(r){return r&&Fx[r]},t.type="axis",t}(wi);const EL=qJ;var ym=At();function KJ(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=ym(e).splitAreaColors,d=je(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=i.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=ge(s)?s:[s];for(var v=1;v<u.length;v++){var y=i.toGlobalCoord(u[v].coord),_=void 0,b=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=g,b=l.y,S=y-_,w=l.height,g=_+S):(_=l.x,b=g,S=l.width,w=y-b,g=b+w);var x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new Bt({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:S,height:w},style:ct({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}ym(e).splitAreaColors=d}}}function XJ(e){ym(e).splitAreaColors=null}var ZJ=["axisLine","axisTickLabel","axisName"],QJ=["splitArea","splitLine","minorSplitLine"],PL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new cn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=gm(s,r),u=new AL(r,se({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(hm(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));O(ZJ,u.add,u),this._axisGroup.add(u.getGroup()),O(QJ,function(f){r.get([f,"show"])&&JJ[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||cE(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){XJ(this)},t.type="cartesianAxis",t}(EL),JJ={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ge(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=i.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,y=f[p].tickValue,_=new _o({anid:y!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:ct({stroke:s[m]},v),silent:!0});xu(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=i.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new _o({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});xu(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){KJ(e,t,r,n)}},LL=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(PL),eee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=LL.type,r}return t.type="yAxis",t}(PL),tee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Bt({shape:r.coordinateSystem.getRect(),style:ct({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(wi),$x={offset:0};function ree(e){e.registerComponentView(tee),e.registerComponentModel(wJ),e.registerCoordinateSystem("cartesian2d",kJ),Ex(e,"x",vm,$x),Ex(e,"y",vm,$x),e.registerComponentView(LL),e.registerComponentView(eee),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Hx(e,t,r){var n=Mo.createCanvas(),i=t.getWidth(),a=t.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",e)),n.width=i*r,n.height=a*r,n}var nee=function(e){pe(t,e);function t(r,n,i){var a=e.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||ld,typeof r=="string"?o=Hx(r,n,i):De(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(OA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=Hx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new tt(0,0,0,0);function c(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new tt(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,w=0,x=0;x<o.length;++x){var C=o[x];if(C.intersect(y)){var T=new tt(0,0,0,0);T.copy(C),T.union(y),o[x]=T,b=!0;break}else if(l){u.copy(y),u.union(C);var E=y.width*y.height,A=C.width*C.height,M=u.width*u.height,D=M-E-A;D<S&&(S=D,w=x)}}if(l&&(o[w].union(y),b=!0),!b){var _=new tt(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&Or||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&Or||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.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))},t.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,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function v(p,g,m,y){if(o.clearRect(p,g,m,y),n&&n!=="transparent"){var _=void 0;if(th(n)){var b=n.global||n.__width===m&&n.__height===y;_=b&&n.__canvasGradient||om(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else fU(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=sm(o,n,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,m,y),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,y),o.restore())}!i||u?v(0,0,s,l):i.length&&O(i,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(ri);const vp=nee;var zx=1e5,$a=314159,uf=.01,iee=.001;function aee(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function oee(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var see=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=se({},n||{}),this.dpr=n.devicePixelRatio||ld,this._singleCanvas=a,this.root=t;var o=t.style;o&&(OA(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new vp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[$a]=h,h.zlevel=$a,s.push($a),this._domRoot=t}else{this._width=jc(t,0,n),this._height=jc(t,1,n);var u=this._domRoot=oee(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,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},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.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=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(zx)),a||(a=n.ctx,a.save()),to(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(zx)},e.prototype.paintOne=function(t,r){pP(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Tg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer($a).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,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 c=!0,f=!1,d=function(p){var g=a[p],m=g.ctx,y=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,b=!n&&g.incremental&&Date.now,S=b&&Date.now(),w=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,y);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||n)&&g.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,T=function(D){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var k=t[C];if(k.__inHover&&(f=!0),i._doPaintEl(k,g,o,D,R,C===g.__endIndex-1),b){var F=Date.now()-S;if(F>15)break}}R.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=h.dpr,A=0;A<y.length;++A){var M=y[A];m.save(),m.beginPath(),m.rect(M.x*E,M.y*E,M.width*E,M.height*E),m.clip(),T(M),m.restore()}else m.save(),T(),m.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<a.length;v++)d(v);return Ue.wxa&&O(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(to(s,t,a,o),t.setPrevPaintRect(l))}else to(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=$a);var n=this._layers[t];return n||(n=new vp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ot(n,this._layerConfig[t],!0):this._layerConfig[t-uf]&&ot(n,this._layerConfig[t-uf],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&aee(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=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=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+iee,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?uf:0),this._needsManuallyCompositing),c.__builtin__||Fy("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Or&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,O(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ot(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+uf){var o=this._layers[a];ot(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(at(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=jc(a,0,i),r=jc(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer($a).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[$a].dom;var r=new vp("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.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 c=s[l];to(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const lee=see;function uee(e){e.registerPainter("canvas",lee)}var qa=At(),Wx=Qe,pp=_t,cee=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,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,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new cn,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Dt(Vx,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Ux(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.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=z0(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=qa(t).pointerEl=new A7[a.type](Wx(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=qa(t).labelEl=new dr(Wx(r.label));t.add(a),Gx(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=qa(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=qa(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Gx(a,i))},e.prototype._renderHandle=function(t){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=l0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){kA(u.event)},onmousedown:pp(this._onHandleDragMove,this,0,0),drift:pp(this._onHandleDragMove,this),ondragend:pp(this._onHandleDragEnd,this)}),n.add(i)),Ux(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,iP(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Vx(this._axisPointerModel,!r&&this._moveAnimation,this._handle,gp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(gp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(gp(i)),qa(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){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}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.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),nm(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function Vx(e,t,r,n){DL(qa(r).lastProp,n)||(qa(r).lastProp=n,t?Er(r,n,e):(r.stopAnimation(),r.attr(n)))}function DL(e,t){if(De(e)&&De(t)){var r=!0;return O(t,function(n,i){r=r&&DL(e[i],n)}),!!r}else return e===t}function Gx(e,t){e[t.get(["label","show"])?"show":"hide"]()}function gp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Ux(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const fee=cee;function dee(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function hee(e,t,r,n,i){var a=r.get("value"),o=IL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mh(s.get("padding")||0),u=s.getFont(),c=Uy(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),vee(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:oa(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function vee(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function IL(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:F0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ae(o)?a=o.replace("{value}",a):Ge(o)&&(a=o(s))}return a}function OL(e,t,r){var n=_u();return Wy(n,n,r.rotation),Cg(n,n,r.position),s0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function pee(e,t,r,n,i,a){var o=AL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),hee(t,n,i,a,{position:OL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gee(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function mee(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var yee=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=jx(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=dee(a),h=_ee[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=gm(l.model,i);pee(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=gm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=OL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=jx(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(fee);function jx(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var _ee={line:function(e,t,r){var n=gee([t,r[0]],[t,r[1]],Yx(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:mee([t-n/2,r[0]],[n,i],Yx(e))}}};function Yx(e){return e.dim==="x"?0:1}const bee=yee;var wee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(wt);const See=wee;var hi=At(),xee=O;function RL(e,t,r){if(!Ue.node){var n=t.getZr();hi(n).records||(hi(n).records={}),Cee(n,t);var i=hi(n).records[e]||(hi(n).records[e]={});i.handler=r}}function Cee(e,t){if(hi(e).initialized)return;hi(e).initialized=!0,r("click",Dt(qx,"click")),r("mousemove",Dt(qx,"mousemove")),r("globalout",Mee);function r(n,i){e.on(n,function(a){var o=Aee(t);xee(hi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Tee(o.pendings,t)})}}function Tee(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Mee(e,t,r){e.handler("leave",null,r)}function qx(e,t,r,n){t.handler(e,r,n)}function Aee(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function _m(e,t){if(!Ue.node){var r=t.getZr(),n=(hi(r).records||{})[e];n&&(hi(r).records[e]=null)}}var Eee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";RL("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})})},t.prototype.remove=function(r,n){_m("axisPointer",n)},t.prototype.dispose=function(r,n){_m("axisPointer",n)},t.type="axisPointer",t}(wi);const Pee=Eee;function kL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Qu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=a.mapDimension(d),p=[];p[h]=a.get(v,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Re(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 Kx=At();function Lee(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){$f(i)&&(i=kL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=$f(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||$f(i),d={},h={},v={list:[],map:{}},p={showPointer:Dt(Iee,h),showTooltip:Dt(Oee,v)};O(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);O(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=Bee(u,b);if(!f&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Xx(b,C,p,!1,d)}})});var g={};return O(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&O(_.axesInfo,function(b,S){var w=h[S];if(b!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Zx(b),Zx(m)))),g[m.key]=x}})}),O(g,function(m,y){Xx(c[y],m,p,!0,d)}),Ree(h,c,d),kee(v,i,e,o),Nee(c,o,r),d}}function Xx(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=Dee(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&se(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Dee(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return O(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,i=f,a.length=0),O(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Iee(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Oee(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ou(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.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 Ree(e,t,r){var n=r.axesInfo=[];O(t,function(i,a){var o=i.axisPointerModel.option,s=e[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 kee(e,t,r,n){if($f(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Nee(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Kx(n)[i]||{},o=Kx(n)[i]={};O(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&O(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];O(a,function(u,c){!o[c]&&l.push(u)}),O(o,function(u,c){!a[c]&&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 Bee(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Zx(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function $f(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function NL(e){EL.registerAxisPointerClass("CartesianAxisPointer",bee),e.registerComponentModel(See),e.registerComponentView(Pee),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=zJ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Lee)}function Fee(e){sa(ree),sa(NL)}function $ee(e,t){var r=mh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Bt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var Hee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(wt);const zee=Hee;function BL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function FL(e){if(Ue.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var $L=FL(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Wee=FL(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function HL(e,t){if(!e)return t;t=EE(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Vee(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var Gee=HL(Wee,"transition"),W0=HL($L,"transform"),Uee="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ue.transform3dSupported?"will-change:transform;":"");function jee(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Yee(e,t,r){if(!Ae(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Mu(t);var a=jee(r),o=Math.max(Math.round(i)*1.5,6),s="",l=W0+":",u;at(["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 c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" 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 qee(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=Ue.transformSupported?","+W0+n:",left"+n+",top"+n),Gee+":"+i}function Qx(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ue.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ue.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+W0+":"+o+";":[["top",0],["left",0],[$L,o]]}function Kee(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),O(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Xee(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=tP(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(qee(i,r)),a&&n.push("background-color:"+a),O(["width","color","radius"],function(h){var v="border-"+h,p=EE(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(Kee(c)),f!=null&&n.push("padding:"+mh(f).join("px ")+"px"),n.join(";")+";"}function Jx(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&AU(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Zee=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;Jx(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Yr(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Vee(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Uee+Xee(t,!this._firstShow,this._longHide)+Qx(a[0],a[1],!0)+("border-color:"+Mu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ae(a)&&n.get("trigger")==="item"&&!BL(n)&&(s=Yee(n,i,a)),Ae(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l<t.length;l++)rd(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(Jx(n,this._zr,this._appendToBody,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Qx(n[0],n[1]);O(a,function(o){i[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",Ue.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const Qee=Zee;var Jee=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),tC(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;De(t)&&br(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new dr({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:tP(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),O(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),O(["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})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=eC(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;tC(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Hi(a.borderWidth||0),s=eC(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Hi(e){return Math.max(0,e)}function eC(e){var t=Hi(e.shadowBlur||0),r=Hi(e.shadowOffsetX||0),n=Hi(e.shadowOffsetY||0);return{left:Hi(t-r),right:Hi(t+r),top:Hi(t-n),bottom:Hi(t+n)}}function tC(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const ete=Jee;var tte=new Bt({shape:{x:-1,y:-1,width:2,height:2}}),rte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(Ue.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=oj(i.get("renderMode"));this._tooltipContent=a==="richText"?new ete(n):new Qee(n.getDom(),n,{appendToBody:i.get("appendToBody",!0)})}},t.prototype.render=function(r,n,i){if(!(Ue.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i,this._alwaysShowContent=r.get("alwaysShowContent");var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?iP(this,"_updatePosition",50,"fixRate"):nm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");RL("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.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})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Ue.node||!i.getDom())){var o=rC(a,i);this._ticket="";var s=a.dataByCoordSys,l=ote(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 c=tte;c.x=a.x,c.y=a.y,c.update(),ut(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},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 f=kL(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(rC(a,i))},t.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 c=u.getData(),f=gl([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.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){this._lastDataByCoordSys=null;var s,l;Ml(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=gl([n.tooltipOption],a),l=this._renderMode,u=[],c=Pu("section",{blocks:[],noHeader:!0}),f=[],d=new jv;O(r,function(y){O(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var w=IL(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Pu("section",{header:w,noHeader:!Gn(w),sortBlocks:!0,blocks:[]});c.blocks.push(x),O(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=T.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=F0(b.axis,{value:S}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Mu(A.color),l);var M=gS(T.formatTooltip(E,!0,null)),D=M.frag;if(D){var R=gl([T],a).get("valueFormatter");x.blocks.push(R?se({valueFormatter:R},D):D)}M.text&&f.push(M.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),p=wS(c,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,p=gl([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),y=new jv;m.marker=y.makeTooltipMarker("item",Mu(m.color),h);var _=gS(u.formatTooltip(c,!1,f)),b=p.get("order"),S=p.get("valueFormatter"),w=_.frag,x=w?wS(S?se({valueFormatter:S},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(Ae(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=gl(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new jv;this._showOrMove(d,function(){var g=Qe(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(Ae(d)){var g=r.ecModel.get("useUTC"),m=ge(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=dh(m.axisValue,h,g)),h=PE(h,i,!0)}else if(Ge(d)){var _=_t(function(b,S){b===this._ticket&&(f.setContent(S,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ge(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=pt(n[0],u),a=pt(n[1],c);else if(De(n)){var p=n;p.width=f[0],p.height=f[1];var g=Ls(p,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(Ae(n)&&l){var m=ate(n,v,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=nte(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=nC(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=nC(h)?f[1]/2:h==="bottom"?f[1]:0),BL(r)){var m=ite(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&O(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&O(u,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&O(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&O(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ue.node||!n.getDom()||(nm(this,"_updatePosition"),this._tooltipContent.dispose(),_m("itemTooltip",n))},t.type="tooltip",t}(wi);function gl(e,t,r){var n=t.ecModel,i;r?(i=new rr(r,n,n),i=new rr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof rr&&(o=o.get("tooltip",!0)),Ae(o)&&(o={formatter:o}),o&&(i=new rr(o,i,n)))}return i}function rC(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function nte(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function ite(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function ate(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function nC(e){return e==="center"||e==="middle"}function ote(e,t,r){var n=Xy(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ju(t,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 c=ut(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const ste=rte;function lte(e){sa(NL),e.registerComponentModel(zee),e.registerComponentView(ste),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tr)}var ute=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(wt),cte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.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=qe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new dr({style:oa(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new dr({style:oa(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){Qw(v,"_"+r.get("target"))}),p&&h.on("click",function(){Qw(p,"_"+r.get("subtarget"))}),ut(c).eventData=ut(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ls(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var S=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var x=new Bt({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(wi);function fte(e){e.registerComponentModel(ute),e.registerComponentView(cte)}var dte=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},hte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ge(n)&&O(n,function(a,o){Ae(a)&&(a={type:a}),n[o]=ot(a,dte(i,a.type))})},t.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"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&Ky(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=je(),s=Re(a,function(l){return(Ae(l)||bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new rr(l,this,this.ecModel))},this);this._data=Ht(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;O(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;O(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&at(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(wt);const bm=hte;var jo=Dt,wm=O,cf=cn,vte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new cf),this.group.add(this._selectorGroup=new cf),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.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 c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ls(c,f,d),v=this.layoutInner(r,o,h,a,l,u),p=Ls(ct({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$ee(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=je(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),wm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new cf;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,S,b,f,a);w.on("click",jo(iC,p,null,a,d)).on("mouseover",jo(Sm,m.name,null,a,d)).on("mouseout",jo(xm,m.name,null,a,d)),c.set(p,!0)}else i.eachRawSeries(function(x){if(!c.get(p)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),E=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),M=oo(E.fill);M&&M[3]===0&&(M[3]=.2,E=se(se({},E),{fill:Vy(M,"rgba")}));var D=this._createItem(x,p,v,h,n,r,{},E,A,f,a);D.on("click",jo(iC,null,p,a,d)).on("mouseover",jo(Sm,null,p,a,d)).on("mouseout",jo(xm,null,p,a,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();wm(r,function(u){var c=u.type,f=new dr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);f0(f,{normal:d,emphasis:h},{defaultText:u.title}),Ug(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=pte(c,a,l,u,h,g,d),S=new cf,w=a.getModel("textStyle");if(Ge(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(gte({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,T=s,E=o.get("formatter"),A=n;Ae(E)&&E?A=E.replace("{name}",n??""):Ge(E)&&(A=E(n));var M=a.get("inactiveColor");S.add(new dr({style:oa(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():M,align:T,verticalAlign:"middle"})}));var D=new Bt({shape:S.getBoundingRect(),invisible:!0}),R=a.getModel("tooltip");return R.get("show")&&u0({el:D,componentModel:o,itemName:n,itemTooltipOption:R.option}),S.add(D),S.eachChild(function(k){k.silent=!0}),D.silent=!f,this.getContentGroup().add(S),Ug(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Kl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Kl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(wi);function pte(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),wm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:lm(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function gte(e){var t=e.icon||"roundRect",r=E0(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function iC(e,t,r,n){xm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Sm(e,t,r,n)}function zL(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Sm(e,t,r,n){zL(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function xm(e,t,r,n){zL(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const WL=vte;function mte(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function ml(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();O(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function yte(e){e.registerAction("legendToggleSelect","legendselectchanged",Dt(ml,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Dt(ml,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Dt(ml,"inverseSelect")),e.registerAction("legendSelect","legendselected",Dt(ml,"select")),e.registerAction("legendUnSelect","legendunselected",Dt(ml,"unSelect"))}function VL(e){e.registerComponentModel(bm),e.registerComponentView(WL),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,mte),e.registerSubTypeDefaulter("legend",function(){return"plain"}),yte(e)}var _te=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=yh(r);e.prototype.init.call(this,r,n,i),aC(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),aC(this,this.option,r)},t.type="legend.scroll",t.defaultOption=gE(bm.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}),t}(bm);function aC(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Ds(t,r,{type:"box",ignoreSize:!!i})}const bte=_te;var oC=cn,mp=["width","height"],yp=["x","y"],wte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new oC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new oC)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ge(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new dr({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",y=l0(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:_t(u._pageGo,u,m,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=mp[u],f=yp[u],d=mp[1-u],h=yp[1-u];o&&Kl("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Qe(i);o&&(m[c]=i[c]-p[c]-v);var y=this._layoutContentAndController(r,a,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=y[c]+v;else{var _=p[c]+v;g[u]-=_,y[f]-=_}y[c]+=p[c]+v,g[1-u]+=y[h]+y[d]/2-p[d]/2,y[d]=Math.max(y[d],p[d]),y[h]=Math.min(y[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Kl(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Kl("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>i[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=qe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),f.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=S[s],f.setClipPath(new Bt({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Er(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),S},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;O(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"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}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=mp[o],l=yp[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=b(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(c[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(c[g]),(!_||!S(y,_.s))&&m.i<y.i&&(y=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function b(w){if(w){var x=w.getBoundingRect(),C=x[l]+w[l];return{s:C,e:C+x[s],i:w.__legendDataIndex}}}function S(w,x){return w.e>=x&&w.s<=x+a}},t.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},t.type="legend.scroll",t}(WL);const Ste=wte;function xte(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Cte(e){sa(VL),e.registerComponentModel(bte),e.registerComponentView(Ste),xte(e)}function Tte(e){sa(VL),sa(Cte)}sa([_J,nJ,uee,DQ,fte,lte,Tte,Fee]);function Mte(e,t,r){const n=I0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return na.fileSize(a.data.value)+" ("+a.percent+"%)"}},legend:{orient:"vertical",left:"left",data:["Traffic In","Traffic Out"]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[{value:t,name:"Traffic In"},{value:r,name:"Traffic Out"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};n.setOption(i),n.hideLoading()}function Ate(e,t){const r=I0(document.getElementById(e),"macarons");r.showLoading();const n={title:{text:"Proxies",subtext:"now",left:"center"},tooltip:{trigger:"item",formatter:function(i){return String(i.data.value)}},legend:{orient:"vertical",left:"left",data:[]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.proxy_type_count.tcp!=null&&t.proxy_type_count.tcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.tcp,name:"TCP"}),n.legend.data.push("TCP")),t.proxy_type_count.udp!=null&&t.proxy_type_count.udp!=0&&(n.series[0].data.push({value:t.proxy_type_count.udp,name:"UDP"}),n.legend.data.push("UDP")),t.proxy_type_count.http!=null&&t.proxy_type_count.http!=0&&(n.series[0].data.push({value:t.proxy_type_count.http,name:"HTTP"}),n.legend.data.push("HTTP")),t.proxy_type_count.https!=null&&t.proxy_type_count.https!=0&&(n.series[0].data.push({value:t.proxy_type_count.https,name:"HTTPS"}),n.legend.data.push("HTTPS")),t.proxy_type_count.stcp!=null&&t.proxy_type_count.stcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.stcp,name:"STCP"}),n.legend.data.push("STCP")),t.proxy_type_count.sudp!=null&&t.proxy_type_count.sudp!=0&&(n.series[0].data.push({value:t.proxy_type_count.sudp,name:"SUDP"}),n.legend.data.push("SUDP")),t.proxy_type_count.xtcp!=null&&t.proxy_type_count.xtcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.xtcp,name:"XTCP"}),n.legend.data.push("XTCP")),r.setOption(n),r.hideLoading()}function Ete(e,t,r){const n={width:"600px",height:"400px"},i=I0(document.getElementById(e),"macarons",n);i.showLoading(),t=t.reverse(),r=r.reverse();let a=new Date;a=new Date(a.getFullYear(),a.getMonth(),a.getDate()-6);const o=[];for(let l=0;l<7;l++)o.push(a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()),a=new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);const s={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(l){let u="";l.length>0&&(u+=l[0].name+"<br/>");for(const c of l){const f='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+c.color+'"></span>';u+=f+c.seriesName+": "+na.fileSize(c.value)+"<br/>"}return u}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:o}],yAxis:[{type:"value",axisLabel:{formatter:function(l){return na.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const sC=ce({__name:"LongSpan",props:{content:null,length:null},setup(e){return(t,r)=>{const n=Yu;return U(),ye(yt,null,[ee(n,{content:e.content,placement:"top"},{default:Z(()=>[qt(ae("span",null,Me(e.content.slice(0,e.length))+"...",513),[[mi,e.content.length>e.length]])]),_:1},8,["content"]),qt(ae("span",null,Me(e.content),513),[[mi,e.content.length<30]])],64)}}}),Pte={class:"source"},Lte=ae("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),Dte=ae("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),Ite=ce({__name:"ServerOverview",setup(e){let t=H({version:"",bind_port:0,bind_udp_port:0,kcp_bind_port:0,quic_bind_port:0,vhost_http_port:0,vhost_https_port:0,tcpmux_httpconnect_port:0,subdomain_host:"",max_pool_count:0,max_ports_per_client:"",allow_ports_str:"",tls_only:!1,heart_beat_timeout:0,client_counts:0,cur_conns:0,proxy_counts:0});return(()=>{fetch("../api/serverinfo",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value.version=n.version,t.value.bind_port=n.bind_port,t.value.bind_udp_port=n.bind_udp_port,t.value.kcp_bind_port=n.kcp_bind_port,t.value.quic_bind_port=n.quic_bind_port,t.value.vhost_http_port=n.vhost_http_port,t.value.vhost_https_port=n.vhost_https_port,t.value.tcpmux_httpconnect_port=n.tcpmux_httpconnect_port,t.value.subdomain_host=n.subdomain_host,t.value.max_pool_count=n.max_pool_count,t.value.max_ports_per_client=n.max_ports_per_client,t.value.max_ports_per_client=="0"&&(t.value.max_ports_per_client="no limit"),t.value.allow_ports_str=n.allow_ports_str,t.value.tls_only=n.tls_only,t.value.heart_beat_timeout=n.heart_beat_timeout,t.value.client_counts=n.client_counts,t.value.cur_conns=n.cur_conns,t.value.proxy_counts=0,n.proxy_type_count!=null&&(n.proxy_type_count.tcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.tcp),n.proxy_type_count.udp!=null&&(t.value.proxy_counts+=n.proxy_type_count.udp),n.proxy_type_count.http!=null&&(t.value.proxy_counts+=n.proxy_type_count.http),n.proxy_type_count.https!=null&&(t.value.proxy_counts+=n.proxy_type_count.https),n.proxy_type_count.stcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.stcp),n.proxy_type_count.sudp!=null&&(t.value.proxy_counts+=n.proxy_type_count.sudp),n.proxy_type_count.xtcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.xtcp)),Mte("traffic",n.total_traffic_in,n.total_traffic_out),Ate("proxies",n)}).catch(()=>{pA({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=ZM,o=XM,s=YM,l=rA;return U(),ye("div",null,[ee(l,null,{default:Z(()=>[ee(s,{md:12},{default:Z(()=>[ae("div",Pte,[ee(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:Z(()=>[ee(a,{label:"Version"},{default:Z(()=>[ae("span",null,Me(P(t).version),1)]),_:1}),ee(a,{label:"BindPort"},{default:Z(()=>[ae("span",null,Me(P(t).bind_port),1)]),_:1}),P(t).bind_udp_port!=0?(U(),me(a,{key:0,label:"Bind UDP Port"},{default:Z(()=>[ae("span",null,Me(P(t).bind_udp_port),1)]),_:1})):ke("",!0),P(t).kcp_bind_port!=0?(U(),me(a,{key:1,label:"KCP Bind Port"},{default:Z(()=>[ae("span",null,Me(P(t).kcp_bind_port),1)]),_:1})):ke("",!0),P(t).quic_bind_port!=0?(U(),me(a,{key:2,label:"QUIC Bind Port"},{default:Z(()=>[ae("span",null,Me(P(t).quic_bind_port),1)]),_:1})):ke("",!0),P(t).vhost_http_port!=0?(U(),me(a,{key:3,label:"Http Port"},{default:Z(()=>[ae("span",null,Me(P(t).vhost_http_port),1)]),_:1})):ke("",!0),P(t).vhost_https_port!=0?(U(),me(a,{key:4,label:"Https Port"},{default:Z(()=>[ae("span",null,Me(P(t).vhost_https_port),1)]),_:1})):ke("",!0),P(t).tcpmux_httpconnect_port!=0?(U(),me(a,{key:5,label:"TCPMux HTTPConnect Port"},{default:Z(()=>[ae("span",null,Me(P(t).tcpmux_httpconnect_port),1)]),_:1})):ke("",!0),P(t).subdomain_host!=""?(U(),me(a,{key:6,label:"Subdomain Host"},{default:Z(()=>[ee(sC,{content:P(t).subdomain_host,length:30},null,8,["content"])]),_:1})):ke("",!0),ee(a,{label:"Max PoolCount"},{default:Z(()=>[ae("span",null,Me(P(t).max_pool_count),1)]),_:1}),ee(a,{label:"Max Ports Per Client"},{default:Z(()=>[ae("span",null,Me(P(t).max_ports_per_client),1)]),_:1}),P(t).allow_ports_str!=""?(U(),me(a,{key:7,label:"Allow Ports"},{default:Z(()=>[ee(sC,{content:P(t).allow_ports_str,length:30},null,8,["content"])]),_:1})):ke("",!0),P(t).tls_only===!0?(U(),me(a,{key:8,label:"TLS Only"},{default:Z(()=>[ae("span",null,Me(P(t).tls_only),1)]),_:1})):ke("",!0),ee(a,{label:"HeartBeat Timeout"},{default:Z(()=>[ae("span",null,Me(P(t).heart_beat_timeout),1)]),_:1}),ee(a,{label:"Client Counts"},{default:Z(()=>[ae("span",null,Me(P(t).client_counts),1)]),_:1}),ee(a,{label:"Current Connections"},{default:Z(()=>[ae("span",null,Me(P(t).cur_conns),1)]),_:1}),ee(a,{label:"Proxy Counts"},{default:Z(()=>[ae("span",null,Me(P(t).proxy_counts),1)]),_:1})]),_:1})])]),_:1}),ee(s,{md:12},{default:Z(()=>[Lte,Dte]),_:1})]),_:1})])}}});class Gs{constructor(t){$t(this,"name");$t(this,"type");$t(this,"encryption");$t(this,"compression");$t(this,"conns");$t(this,"traffic_in");$t(this,"traffic_out");$t(this,"last_start_time");$t(this,"last_close_time");$t(this,"status");$t(this,"client_version");$t(this,"addr");$t(this,"port");$t(this,"custom_domains");$t(this,"host_header_rewrite");$t(this,"locations");$t(this,"subdomain");this.name=t.name,this.type="",t.conf!=null?(this.encryption=t.conf.use_encryption,this.compression=t.conf.use_compression):(this.encryption=!1,this.compression=!1),this.conns=t.cur_conns,this.traffic_in=t.today_traffic_in,this.traffic_out=t.today_traffic_out,this.last_start_time=t.last_start_time,this.last_close_time=t.last_close_time,this.status=t.status,this.client_version=t.client_version,this.addr="",this.port=0,this.custom_domains="",this.host_header_rewrite="",this.locations="",this.subdomain=""}}class Ote extends Gs{constructor(t){super(t),this.type="tcp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class Rte extends Gs{constructor(t){super(t),this.type="udp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class kte extends Gs{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,this.host_header_rewrite=t.conf.host_header_rewrite,this.locations=t.conf.locations,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.host_header_rewrite="",this.subdomain="",this.locations="")}}class Nte extends Gs{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.subdomain="")}}class Bte extends Gs{constructor(t){super(t),this.type="stcp"}}class Fte extends Gs{constructor(t){super(t),this.type="sudp"}}const $te=["id"],Hte=ce({__name:"Traffic",props:{proxy_name:null},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxy_name;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{Ete(t.proxy_name,i.traffic_in,i.traffic_out)}).catch(i=>{pA({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(U(),ye("div",{id:e.proxy_name,style:{width:"600px",height:"400px"}},null,8,$te))}}),zte=ce({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=ZM,i=XM;return e.proxyType==="http"||e.proxyType==="https"?(U(),me(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Domains"},{default:Z(()=>[ae("span",null,Me(e.row.custom_domains),1)]),_:1}),ee(n,{label:"SubDomain"},{default:Z(()=>[ae("span",null,Me(e.row.subdomain),1)]),_:1}),ee(n,{label:"locations"},{default:Z(()=>[ae("span",null,Me(e.row.locations),1)]),_:1}),ee(n,{label:"HostRewrite"},{default:Z(()=>[ae("span",null,Me(e.row.host_header_rewrite),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.last_close_time),1)]),_:1})]),_:1})):(U(),me(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Addr"},{default:Z(()=>[ae("span",null,Me(e.row.addr),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.last_close_time),1)]),_:1})]),_:1}))}}}),Us=ce({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(o,s)=>na.fileSize(o.traffic_in),r=(o,s)=>na.fileSize(o.traffic_out),n=H(),i=H(),a=()=>{var o,s;(s=(o=P(i).popoverTraffic)==null?void 0:o.delayHide)==null||s.call(o)};return(o,s)=>{const l=Hte,u=Q8,c=Oz,f=SV,d=h6,h=wV,v=Hm("click-outside");return U(),ye("div",null,[ee(h,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:Z(()=>[ee(f,{type:"expand"},{default:Z(p=>[ee(u,{ref_key:"popoverTraffic",ref:i,"virtual-ref":n.value,placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click","virtual-triggering":""},{default:Z(()=>[ee(l,{proxy_name:p.row.name},null,8,["proxy_name"])]),_:2},1032,["virtual-ref"]),qt((U(),me(c,{ref_key:"buttonTraffic",ref:n,type:"primary",size:"large",name:p.row.name,style:{"margin-bottom":"10px"}},{default:Z(()=>[Nt("Traffic Statistics ")]),_:2},1032,["name"])),[[v,a]]),ee(zte,{row:p.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),ee(f,{label:"Name",prop:"name",sortable:""}),ee(f,{label:"Port",prop:"port",sortable:""}),ee(f,{label:"Connections",prop:"conns",sortable:""}),ee(f,{label:"Traffic In",prop:"traffic_in",formatter:t,sortable:""}),ee(f,{label:"Traffic Out",prop:"traffic_out",formatter:r,sortable:""}),ee(f,{label:"ClientVersion",prop:"client_version",sortable:""}),ee(f,{label:"Status",prop:"status",sortable:""},{default:Z(p=>[p.row.status==="online"?(U(),me(d,{key:0,type:"success"},{default:Z(()=>[Nt(Me(p.row.status),1)]),_:2},1024)):(U(),me(d,{key:1,type:"danger"},{default:Z(()=>[Nt(Me(p.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),Wte=ce({__name:"ProxiesTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Ote(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"tcp"},null,8,["proxies"]))}}),Vte=ce({__name:"ProxiesUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Rte(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"udp"},null,8,["proxies"]))}}),Gte=ce({__name:"ProxiesHTTP",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_http_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/http",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new kte(s,n,i))})})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"http"},null,8,["proxies"]))}}),Ute=ce({__name:"ProxiesHTTPS",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_https_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/https",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new Nte(s,n,i))})})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"https"},null,8,["proxies"]))}}),jte=ce({__name:"ProxiesSTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Bte(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"stcp"},null,8,["proxies"]))}}),Yte=ce({__name:"ProxiesSUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Fte(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"sudp"},null,8,["proxies"]))}}),qte=YG({history:uG(),routes:[{path:"/",name:"ServerOverview",component:Ite},{path:"/proxies/tcp",name:"ProxiesTCP",component:Wte},{path:"/proxies/udp",name:"ProxiesUDP",component:Vte},{path:"/proxies/http",name:"ProxiesHTTP",component:Gte},{path:"/proxies/https",name:"ProxiesHTTPS",component:Ute},{path:"/proxies/stcp",name:"ProxiesSTCP",component:jte},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Yte}]}),GL=TO(GV);GL.use(qte);GL.mount("#app")});export default Kte();