You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

281 lines
2.2 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

var WJ=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Kct=WJ((Ua,ja)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function _A(e,t){const n=Object.create(null),r=e.split(",");for(let a=0;a<r.length;a++)n[r[a]]=!0;return t?a=>!!n[a.toLowerCase()]:a=>!!n[a]}function Ke(e){if(Ze(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=dt(r)?YJ(r):Ke(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(dt(e))return e;if(It(e))return e}}const UJ=/;(?![^(]*\))/g,jJ=/:([^]+)/,KJ=/\/\*.*?\*\//gs;function YJ(e){const t={};return e.replace(KJ,"").split(UJ).forEach(n=>{if(n){const r=n.split(jJ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function j(e){let t="";if(dt(e))t=e;else if(Ze(e))for(let n=0;n<e.length;n++){const r=j(e[n]);r&&(t+=r+" ")}else if(It(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ji(e){if(!e)return null;let{class:t,style:n}=e;return t&&!dt(t)&&(e.class=j(t)),n&&(e.style=Ke(n)),e}const qJ="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",XJ=_A(qJ);function S6(e){return!!e||e===""}function ZJ(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Md(e[r],t[r]);return n}function Md(e,t){if(e===t)return!0;let n=Vc(e),r=Vc(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Tv(e),r=Tv(t),n||r)return e===t;if(n=Ze(e),r=Ze(t),n||r)return n&&r?ZJ(e,t):!1;if(n=It(e),r=It(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)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 x6(e,t){return e.findIndex(n=>Md(n,t))}const $e=e=>dt(e)?e:e==null?"":Ze(e)||It(e)&&(e.toString===T6||!ft(e.toString))?JSON.stringify(e,C6,2):String(e),C6=(e,t)=>t&&t.__v_isRef?C6(e,t.value):fd(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:K1(t)?{[`Set(${t.size})`]:[...t.values()]}:It(t)&&!Ze(t)&&!k6(t)?String(t):t,Hn={},cd=[],un=()=>{},JJ=()=>!1,QJ=/^on[^a-z]/,j1=e=>QJ.test(e),wA=e=>e.startsWith("onUpdate:"),Cr=Object.assign,SA=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},eQ=Object.prototype.hasOwnProperty,Vt=(e,t)=>eQ.call(e,t),Ze=Array.isArray,fd=e=>Vg(e)==="[object Map]",K1=e=>Vg(e)==="[object Set]",Vc=e=>Vg(e)==="[object Date]",ft=e=>typeof e=="function",dt=e=>typeof e=="string",Tv=e=>typeof e=="symbol",It=e=>e!==null&&typeof e=="object",kv=e=>It(e)&&ft(e.then)&&ft(e.catch),T6=Object.prototype.toString,Vg=e=>T6.call(e),_0=e=>Vg(e).slice(8,-1),k6=e=>Vg(e)==="[object Object]",xA=e=>dt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,w0=_A(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Y1=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},tQ=/-(\w)/g,Si=Y1(e=>e.replace(tQ,(t,n)=>n?n.toUpperCase():"")),nQ=/\B([A-Z])/g,ru=Y1(e=>e.replace(nQ,"-$1").toLowerCase()),zg=Y1(e=>e.charAt(0).toUpperCase()+e.slice(1)),S0=Y1(e=>e?`on${zg(e)}`:""),Av=(e,t)=>!Object.is(e,t),x0=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},mb=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ZC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},rQ=e=>{const t=dt(e)?Number(e):NaN;return isNaN(t)?e:t};let tD;const aQ=()=>tD||(tD=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Na;class A6{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Na,!t&&Na&&(this.index=(Na.scopes||(Na.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Na;try{return Na=this,t()}finally{Na=n}}}on(){Na=this}off(){Na=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function iQ(e){return new A6(e)}function oQ(e,t=Na){t&&t.active&&t.effects.push(e)}function CA(){return Na}function TA(e){Na&&Na.cleanups.push(e)}const kA=e=>{const t=new Set(e);return t.w=0,t.n=0,t},M6=e=>(e.w&Gl)>0,P6=e=>(e.n&Gl)>0,sQ=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Gl},lQ=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const a=t[r];M6(a)&&!P6(a)?a.delete(e):t[n++]=a,a.w&=~Gl,a.n&=~Gl}t.length=n}},yb=new WeakMap;let Ip=0,Gl=1;const JC=30;let Ui;const Tc=Symbol(""),QC=Symbol("");class AA{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,oQ(this,r)}run(){if(!this.active)return this.fn();let t=Ui,n=Il;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ui,Ui=this,Il=!0,Gl=1<<++Ip,Ip<=JC?sQ(this):nD(this),this.fn()}finally{Ip<=JC&&lQ(this),Gl=1<<--Ip,Ui=this.parent,Il=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ui===this?this.deferStop=!0:this.active&&(nD(this),this.onStop&&this.onStop(),this.active=!1)}}function nD(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Il=!0;const E6=[];function ih(){E6.push(Il),Il=!1}function oh(){const e=E6.pop();Il=e===void 0?!0:e}function Da(e,t,n){if(Il&&Ui){let r=yb.get(e);r||yb.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=kA()),I6(a)}}function I6(e,t){let n=!1;Ip<=JC?P6(e)||(e.n|=Gl,n=!M6(e)):n=!e.has(Ui),n&&(e.add(Ui),Ui.deps.push(e))}function Is(e,t,n,r,a,i){const o=yb.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&Ze(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),t){case"add":Ze(e)?xA(n)&&s.push(o.get("length")):(s.push(o.get(Tc)),fd(e)&&s.push(o.get(QC)));break;case"delete":Ze(e)||(s.push(o.get(Tc)),fd(e)&&s.push(o.get(QC)));break;case"set":fd(e)&&s.push(o.get(Tc));break}if(s.length===1)s[0]&&e2(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);e2(kA(l))}}function e2(e,t){const n=Ze(e)?e:[...e];for(const r of n)r.computed&&rD(r);for(const r of n)r.computed||rD(r)}function rD(e,t){(e!==Ui||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function uQ(e,t){var n;return(n=yb.get(e))===null||n===void 0?void 0:n.get(t)}const cQ=_A("__proto__,__v_isRef,__isVue"),D6=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Tv)),fQ=MA(),dQ=MA(!1,!0),hQ=MA(!0),aD=pQ();function pQ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=on(this);for(let i=0,o=this.length;i<o;i++)Da(r,"get",i+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(on)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ih();const r=on(this)[t].apply(this,n);return oh(),r}}),e}function vQ(e){const t=on(this);return Da(t,"has",e),t.hasOwnProperty(e)}function MA(e=!1,t=!1){return function(r,a,i){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&i===(e?t?IQ:N6:t?O6:R6).get(r))return r;const o=Ze(r);if(!e){if(o&&Vt(aD,a))return Reflect.get(aD,a,i);if(a==="hasOwnProperty")return vQ}const s=Reflect.get(r,a,i);return(Tv(a)?D6.has(a):cQ(a))||(e||Da(r,"get",a),t)?s:vn(s)?o&&xA(a)?s:s.value:It(s)?e?sh(s):vt(s):s}}const gQ=L6(),mQ=L6(!0);function L6(e=!1){return function(n,r,a,i){let o=n[r];if(Pd(o)&&vn(o)&&!vn(a))return!1;if(!e&&(!bb(a)&&!Pd(a)&&(o=on(o),a=on(a)),!Ze(n)&&vn(o)&&!vn(a)))return o.value=a,!0;const s=Ze(n)&&xA(r)?Number(r)<n.length:Vt(n,r),l=Reflect.set(n,r,a,i);return n===on(i)&&(s?Av(a,o)&&Is(n,"set",r,a):Is(n,"add",r,a)),l}}function yQ(e,t){const n=Vt(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Is(e,"delete",t,void 0),r}function bQ(e,t){const n=Reflect.has(e,t);return(!Tv(t)||!D6.has(t))&&Da(e,"has",t),n}function _Q(e){return Da(e,"iterate",Ze(e)?"length":Tc),Reflect.ownKeys(e)}const $6={get:fQ,set:gQ,deleteProperty:yQ,has:bQ,ownKeys:_Q},wQ={get:hQ,set(e,t){return!0},deleteProperty(e,t){return!0}},SQ=Cr({},$6,{get:dQ,set:mQ}),PA=e=>e,q1=e=>Reflect.getPrototypeOf(e);function Lm(e,t,n=!1,r=!1){e=e.__v_raw;const a=on(e),i=on(t);n||(t!==i&&Da(a,"get",t),Da(a,"get",i));const{has:o}=q1(a),s=r?PA:n?DA:Mv;if(o.call(a,t))return s(e.get(t));if(o.call(a,i))return s(e.get(i));e!==a&&e.get(t)}function $m(e,t=!1){const n=this.__v_raw,r=on(n),a=on(e);return t||(e!==a&&Da(r,"has",e),Da(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Rm(e,t=!1){return e=e.__v_raw,!t&&Da(on(e),"iterate",Tc),Reflect.get(e,"size",e)}function iD(e){e=on(e);const t=on(this);return q1(t).has.call(t,e)||(t.add(e),Is(t,"add",e,e)),this}function oD(e,t){t=on(t);const n=on(this),{has:r,get:a}=q1(n);let i=r.call(n,e);i||(e=on(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?Av(t,o)&&Is(n,"set",e,t):Is(n,"add",e,t),this}function sD(e){const t=on(this),{has:n,get:r}=q1(t);let a=n.call(t,e);a||(e=on(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Is(t,"delete",e,void 0),i}function lD(){const e=on(this),t=e.size!==0,n=e.clear();return t&&Is(e,"clear",void 0,void 0),n}function Om(e,t){return function(r,a){const i=this,o=i.__v_raw,s=on(o),l=t?PA:e?DA:Mv;return!e&&Da(s,"iterate",Tc),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Nm(e,t,n){return function(...r){const a=this.__v_raw,i=on(a),o=fd(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?PA:t?DA:Mv;return!t&&Da(i,"iterate",l?QC:Tc),{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 Js(e){return function(...t){return e==="delete"?!1:this}}function xQ(){const e={get(i){return Lm(this,i)},get size(){return Rm(this)},has:$m,add:iD,set:oD,delete:sD,clear:lD,forEach:Om(!1,!1)},t={get(i){return Lm(this,i,!1,!0)},get size(){return Rm(this)},has:$m,add:iD,set:oD,delete:sD,clear:lD,forEach:Om(!1,!0)},n={get(i){return Lm(this,i,!0)},get size(){return Rm(this,!0)},has(i){return $m.call(this,i,!0)},add:Js("add"),set:Js("set"),delete:Js("delete"),clear:Js("clear"),forEach:Om(!0,!1)},r={get(i){return Lm(this,i,!0,!0)},get size(){return Rm(this,!0)},has(i){return $m.call(this,i,!0)},add:Js("add"),set:Js("set"),delete:Js("delete"),clear:Js("clear"),forEach:Om(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Nm(i,!1,!1),n[i]=Nm(i,!0,!1),t[i]=Nm(i,!1,!0),r[i]=Nm(i,!0,!0)}),[e,n,t,r]}const[CQ,TQ,kQ,AQ]=xQ();function EA(e,t){const n=t?e?AQ:kQ:e?TQ:CQ;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(Vt(n,a)&&a in r?n:r,a,i)}const MQ={get:EA(!1,!1)},PQ={get:EA(!1,!0)},EQ={get:EA(!0,!1)},R6=new WeakMap,O6=new WeakMap,N6=new WeakMap,IQ=new WeakMap;function DQ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function LQ(e){return e.__v_skip||!Object.isExtensible(e)?0:DQ(_0(e))}function vt(e){return Pd(e)?e:IA(e,!1,$6,MQ,R6)}function B6(e){return IA(e,!1,SQ,PQ,O6)}function sh(e){return IA(e,!0,wQ,EQ,N6)}function IA(e,t,n,r,a){if(!It(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=LQ(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function dd(e){return Pd(e)?dd(e.__v_raw):!!(e&&e.__v_isReactive)}function Pd(e){return!!(e&&e.__v_isReadonly)}function bb(e){return!!(e&&e.__v_isShallow)}function F6(e){return dd(e)||Pd(e)}function on(e){const t=e&&e.__v_raw;return t?on(t):e}function kc(e){return mb(e,"__v_skip",!0),e}const Mv=e=>It(e)?vt(e):e,DA=e=>It(e)?sh(e):e;function V6(e){Il&&Ui&&(e=on(e),I6(e.dep||(e.dep=kA())))}function LA(e,t){e=on(e);const n=e.dep;n&&e2(n)}function vn(e){return!!(e&&e.__v_isRef===!0)}function U(e){return z6(e,!1)}function gn(e){return z6(e,!0)}function z6(e,t){return vn(e)?e:new $Q(e,t)}class $Q{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:on(t),this._value=n?t:Mv(t)}get value(){return V6(this),this._value}set value(t){const n=this.__v_isShallow||bb(t)||Pd(t);t=n?t:on(t),Av(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Mv(t),LA(this))}}function Rh(e){LA(e)}function y(e){return vn(e)?e.value:e}const RQ={get:(e,t,n)=>y(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return vn(a)&&!vn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function H6(e){return dd(e)?e:new Proxy(e,RQ)}function or(e){const t=Ze(e)?new Array(e.length):{};for(const n in e)t[n]=Qt(e,n);return t}class OQ{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,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}get dep(){return uQ(on(this._object),this._key)}}function Qt(e,t,n){const r=e[t];return vn(r)?r:new OQ(e,t,n)}var G6;class NQ{constructor(t,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[G6]=!1,this._dirty=!0,this.effect=new AA(t,()=>{this._dirty||(this._dirty=!0,LA(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=on(this);return V6(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}G6="__v_isReadonly";function W6(e,t,n=!1){let r,a;const i=ft(e);return i?(r=e,a=un):(r=e.get,a=e.set),new NQ(r,a,i||!a,n)}function BQ(e,...t){}function Dl(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){X1(i,t,n)}return a}function bi(e,t,n,r){if(ft(e)){const i=Dl(e,t,n,r);return i&&kv(i)&&i.catch(o=>{X1(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(bi(e[i],t,n,r));return a}function X1(e,t,n,r=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Dl(l,null,10,[e,o,s]);return}}FQ(e,n,a,r)}function FQ(e,t,n,r=!0){console.error(e)}let Pv=!1,t2=!1;const Ur=[];let Do=0;const hd=[];let gs=null,ec=0;const U6=Promise.resolve();let $A=null;function Xe(e){const t=$A||U6;return e?t.then(this?e.bind(this):e):t}function VQ(e){let t=Do+1,n=Ur.length;for(;t<n;){const r=t+n>>>1;Ev(Ur[r])<e?t=r+1:n=r}return t}function RA(e){(!Ur.length||!Ur.includes(e,Pv&&e.allowRecurse?Do+1:Do))&&(e.id==null?Ur.push(e):Ur.splice(VQ(e.id),0,e),j6())}function j6(){!Pv&&!t2&&(t2=!0,$A=U6.then(Y6))}function zQ(e){const t=Ur.indexOf(e);t>Do&&Ur.splice(t,1)}function HQ(e){Ze(e)?hd.push(...e):(!gs||!gs.includes(e,e.allowRecurse?ec+1:ec))&&hd.push(e),j6()}function uD(e,t=Pv?Do+1:0){for(;t<Ur.length;t++){const n=Ur[t];n&&n.pre&&(Ur.splice(t,1),t--,n())}}function K6(e){if(hd.length){const t=[...new Set(hd)];if(hd.length=0,gs){gs.push(...t);return}for(gs=t,gs.sort((n,r)=>Ev(n)-Ev(r)),ec=0;ec<gs.length;ec++)gs[ec]();gs=null,ec=0}}const Ev=e=>e.id==null?1/0:e.id,GQ=(e,t)=>{const n=Ev(e)-Ev(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Y6(e){t2=!1,Pv=!0,Ur.sort(GQ);const t=un;try{for(Do=0;Do<Ur.length;Do++){const n=Ur[Do];n&&n.active!==!1&&Dl(n,null,14)}}finally{Do=0,Ur.length=0,K6(),Pv=!1,$A=null,(Ur.length||hd.length)&&Y6()}}function WQ(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Hn;let a=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||Hn;d&&(a=n.map(h=>dt(h)?h.trim():h)),f&&(a=n.map(ZC))}let s,l=r[s=S0(t)]||r[s=S0(Si(t))];!l&&i&&(l=r[s=S0(ru(t))]),l&&bi(l,e,6,a);const u=r[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,bi(u,e,6,a)}}function q6(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!ft(e)){const l=u=>{const c=q6(u,t,!0);c&&(s=!0,Cr(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(It(e)&&r.set(e,null),null):(Ze(i)?i.forEach(l=>o[l]=null):Cr(o,i),It(e)&&r.set(e,o),o)}function Z1(e,t){return!e||!j1(t)?!1:(t=t.slice(2).replace(/Once$/,""),Vt(e,t[0].toLowerCase()+t.slice(1))||Vt(e,ru(t))||Vt(e,t))}let Ir=null,J1=null;function _b(e){const t=Ir;return Ir=e,J1=e&&e.type.__scopeId||null,t}function OA(e){J1=e}function NA(){J1=null}function fe(e,t=Ir,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&_D(-1);const i=_b(t);let o;try{o=e(...a)}finally{_b(i),r._d&&_D(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Fw(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=e;let g,m;const _=_b(e);try{if(n.shapeFlag&4){const w=a||r;g=Io(c.call(w,w,f,i,h,d,p)),m=l}else{const w=t;g=Io(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),m=t.props?l:UQ(l)}}catch(w){Xp.length=0,X1(w,e,1),g=V(ia)}let b=g;if(m&&v!==!1){const w=Object.keys(m),{shapeFlag:S}=b;w.length&&S&7&&(o&&w.some(wA)&&(m=jQ(m,o)),b=$s(b,m))}return n.dirs&&(b=$s(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,_b(_),g}const UQ=e=>{let t;for(const n in e)(n==="class"||n==="style"||j1(n))&&((t||(t={}))[n]=e[n]);return t},jQ=(e,t)=>{const n={};for(const r in e)(!wA(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function KQ(e,t,n){const{props:r,children:a,component:i}=e,{props:o,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?cD(r,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]!==r[d]&&!Z1(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?cD(r,o,u):!0:!!o;return!1}function cD(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(t[i]!==e[i]&&!Z1(n,i))return!0}return!1}function YQ({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const qQ=e=>e.__isSuspense;function XQ(e,t){t&&t.pendingBranch?Ze(e)?t.effects.push(...e):t.effects.push(e):HQ(e)}function $t(e,t){if(Jn){let n=Jn.provides;const r=Jn.parent&&Jn.parent.provides;r===n&&(n=Jn.provides=Object.create(r)),n[e]=t}}function Ye(e,t,n=!1){const r=Jn||Ir;if(r){const a=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&ft(t)?t.call(r.proxy):t}}function Ka(e,t){return Q1(e,null,t)}function ZQ(e,t){return Q1(e,null,{flush:"post"})}const Bm={};function Ae(e,t,n){return Q1(e,t,n)}function Q1(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=Hn){const s=CA()===(Jn==null?void 0:Jn.scope)?Jn:null;let l,u=!1,c=!1;if(vn(e)?(l=()=>e.value,u=bb(e)):dd(e)?(l=()=>e,r=!0):Ze(e)?(c=!0,u=e.some(b=>dd(b)||bb(b)),l=()=>e.map(b=>{if(vn(b))return b.value;if(dd(b))return uc(b);if(ft(b))return Dl(b,s,2)})):ft(e)?t?l=()=>Dl(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),bi(e,s,3,[d])}:l=un,t&&r){const b=l;l=()=>uc(b())}let f,d=b=>{f=m.onStop=()=>{Dl(b,s,4)}},h;if($v)if(d=un,t?n&&bi(t,s,3,[l(),c?[]:void 0,d]):l(),a==="sync"){const b=Nee();h=b.__watcherHandles||(b.__watcherHandles=[])}else return un;let p=c?new Array(e.length).fill(Bm):Bm;const v=()=>{if(m.active)if(t){const b=m.run();(r||u||(c?b.some((w,S)=>Av(w,p[S])):Av(b,p)))&&(f&&f(),bi(t,s,3,[b,p===Bm?void 0:c&&p[0]===Bm?[]:p,d]),p=b)}else m.run()};v.allowRecurse=!!t;let g;a==="sync"?g=v:a==="post"?g=()=>Ca(v,s&&s.suspense):(v.pre=!0,s&&(v.id=s.uid),g=()=>RA(v));const m=new AA(l,g);t?n?v():p=m.run():a==="post"?Ca(m.run.bind(m),s&&s.suspense):m.run();const _=()=>{m.stop(),s&&s.scope&&SA(s.scope.effects,m)};return h&&h.push(_),_}function JQ(e,t,n){const r=this.proxy,a=dt(e)?e.includes(".")?X6(r,e):()=>r[e]:e.bind(r,r);let i;ft(t)?i=t:(i=t.handler,n=t);const o=Jn;Ed(this);const s=Q1(a,i.bind(r),n);return o?Ed(o):Ac(),s}function X6(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function uc(e,t){if(!It(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),vn(e))uc(e.value,t);else if(Ze(e))for(let n=0;n<e.length;n++)uc(e[n],t);else if(K1(e)||fd(e))e.forEach(n=>{uc(n,t)});else if(k6(e))for(const n in e)uc(e[n],t);return e}function Z6(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),pn(()=>{e.isUnmounting=!0}),e}const ni=[Function,Array],QQ={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ni,onEnter:ni,onAfterEnter:ni,onEnterCancelled:ni,onBeforeLeave:ni,onLeave:ni,onAfterLeave:ni,onLeaveCancelled:ni,onBeforeAppear:ni,onAppear:ni,onAfterAppear:ni,onAppearCancelled:ni},setup(e,{slots:t}){const n=St(),r=Z6();let a;return()=>{const i=t.default&&BA(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==ia){o=v;break}}const s=on(e),{mode:l}=s;if(r.isLeaving)return Vw(o);const u=fD(o);if(!u)return Vw(o);const c=Iv(u,s,r,n);Dv(u,c);const f=n.subTree,d=f&&fD(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();a===void 0?a=v:v!==a&&(a=v,h=!0)}if(d&&d.type!==ia&&(!tc(u,d)||h)){const v=Iv(d,s,r,n);if(Dv(d,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Vw(o);l==="in-out"&&u.type!==ia&&(v.delayLeave=(g,m,_)=>{const b=Q6(r,d);b[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=_})}return o}}},J6=QQ;function Q6(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Iv(e,t,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:m,onAppearCancelled:_}=t,b=String(e.key),w=Q6(n,e),S=(T,k)=>{T&&bi(T,r,9,k)},x=(T,k)=>{const A=k[1];S(T,k),Ze(T)?T.every(M=>M.length<=1)&&A():T.length<=1&&A()},C={mode:i,persisted:o,beforeEnter(T){let k=s;if(!n.isMounted)if(a)k=v||s;else return;T._leaveCb&&T._leaveCb(!0);const A=w[b];A&&tc(e,A)&&A.el._leaveCb&&A.el._leaveCb(),S(k,[T])},enter(T){let k=l,A=u,M=c;if(!n.isMounted)if(a)k=g||l,A=m||u,M=_||c;else return;let I=!1;const E=T._enterCb=L=>{I||(I=!0,L?S(M,[T]):S(A,[T]),C.delayedLeave&&C.delayedLeave(),T._enterCb=void 0)};k?x(k,[T,E]):E()},leave(T,k){const A=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return k();S(f,[T]);let M=!1;const I=T._leaveCb=E=>{M||(M=!0,k(),E?S(p,[T]):S(h,[T]),T._leaveCb=void 0,w[A]===e&&delete w[A])};w[A]=e,d?x(d,[T,I]):I()},clone(T){return Iv(T,t,n,r)}};return C}function Vw(e){if(e_(e))return e=$s(e),e.children=null,e}function fD(e){return e_(e)?e.children?e.children[0]:void 0:e}function Dv(e,t){e.shapeFlag&6&&e.component?Dv(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 BA(e,t=!1,n){let r=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===He?(o.patchFlag&128&&a++,r=r.concat(BA(o.children,t,s))):(t||o.type!==ia)&&r.push(s!=null?$s(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ge(e){return ft(e)?{setup:e,name:e.name}:e}const jp=e=>!!e.type.__asyncLoader,e_=e=>e.type.__isKeepAlive;function ez(e,t){tz(e,"a",t)}function FA(e,t){tz(e,"da",t)}function tz(e,t,n=Jn){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(t_(t,r,n),n){let a=n.parent;for(;a&&a.parent;)e_(a.parent.vnode)&&eee(r,t,n,a),a=a.parent}}function eee(e,t,n,r){const a=t_(t,e,r,!0);Ja(()=>{SA(r[t],a)},n)}function t_(e,t,n=Jn,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ih(),Ed(n);const s=bi(t,n,e,o);return Ac(),oh(),s});return r?a.unshift(i):a.push(i),i}}const Gs=e=>(t,n=Jn)=>(!$v||e==="sp")&&t_(e,(...r)=>t(...r),n),n_=Gs("bm"),nt=Gs("m"),nz=Gs("bu"),Ws=Gs("u"),pn=Gs("bum"),Ja=Gs("um"),tee=Gs("sp"),nee=Gs("rtg"),ree=Gs("rtc");function aee(e,t=Jn){t_("ec",e,t)}function pt(e,t){const n=Ir;if(n===null)return e;const r=o_(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=Hn]=t[i];o&&(ft(o)&&(o={mounted:o,updated:o}),o.deep&&uc(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function vu(e,t,n,r){const a=e.dirs,i=t&&t.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[r];l&&(ih(),bi(l,n,8,[e.el,s,e,t]),oh())}}const VA="components",iee="directives";function Fe(e,t){return zA(VA,e,!0,t)||e}const rz=Symbol();function Lt(e){return dt(e)?zA(VA,e,!1)||e:e||rz}function Ds(e){return zA(iee,e)}function zA(e,t,n=!0,r=!1){const a=Ir||Jn;if(a){const i=a.type;if(e===VA){const s=$ee(i,!1);if(s&&(s===t||s===Si(t)||s===zg(Si(t))))return i}const o=dD(a[e]||i[e],t)||dD(a.appContext[e],t);return!o&&r?i:o}}function dD(e,t){return e&&(e[t]||e[Si(t)]||e[zg(Si(t))])}function ct(e,t,n,r){let a;const i=n&&n[r];if(Ze(e)||dt(e)){a=new Array(e.length);for(let o=0,s=e.length;o<s;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(It(e))if(e[Symbol.iterator])a=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(e[u],u,s,i&&i[s])}}else a=[];return n&&(n[r]=a),a}function Ls(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ze(r))for(let a=0;a<r.length;a++)e[r[a].name]=r[a].fn;else r&&(e[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function ke(e,t,n={},r,a){if(Ir.isCE||Ir.parent&&jp(Ir.parent)&&Ir.parent.isCE)return t!=="default"&&(n.name=t),V("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),O();const o=i&&az(i(n)),s=we(He,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function az(e){return e.some(t=>$n(t)?!(t.type===ia||t.type===He&&!az(t.children)):!0)?e:null}function oee(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:S0(r)]=e[r];return n}const n2=e=>e?vz(e)?o_(e)||e.proxy:n2(e.parent):null,Kp=Cr(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=>n2(e.parent),$root:e=>n2(e.root),$emit:e=>e.emit,$options:e=>HA(e),$forceUpdate:e=>e.f||(e.f=()=>RA(e.update)),$nextTick:e=>e.n||(e.n=Xe.bind(e.proxy)),$watch:e=>JQ.bind(e)}),zw=(e,t)=>e!==Hn&&!e.__isScriptSetup&&Vt(e,t),see={get({_:e},t){const{ctx:n,setupState:r,data:a,props:i,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 r[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(zw(r,t))return o[t]=1,r[t];if(a!==Hn&&Vt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Vt(u,t))return o[t]=3,i[t];if(n!==Hn&&Vt(n,t))return o[t]=4,n[t];r2&&(o[t]=0)}}const c=Kp[t];let f,d;if(c)return t==="$attrs"&&Da(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Hn&&Vt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,Vt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return zw(a,t)?(a[t]=n,!0):r!==Hn&&Vt(r,t)?(r[t]=n,!0):Vt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==Hn&&Vt(e,o)||zw(t,o)||(s=i[0])&&Vt(s,o)||Vt(r,o)||Vt(Kp,o)||Vt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Vt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let r2=!0;function lee(e){const t=HA(e),n=e.proxy,r=e.ctx;r2=!1,t.beforeCreate&&hD(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:m,beforeUnmount:_,destroyed:b,unmounted:w,render:S,renderTracked:x,renderTriggered:C,errorCaptured:T,serverPrefetch:k,expose:A,inheritAttrs:M,components:I,directives:E,filters:L}=t;if(u&&uee(u,r,null,e.appContext.config.unwrapInjectedRef),o)for(const P in o){const R=o[P];ft(R)&&(r[P]=R.bind(n))}if(a){const P=a.call(n,n);It(P)&&(e.data=vt(P))}if(r2=!0,i)for(const P in i){const R=i[P],D=ft(R)?R.bind(n,n):ft(R.get)?R.get.bind(n,n):un,B=!ft(R)&&ft(R.set)?R.set.bind(n):un,H=F({get:D,set:B});Object.defineProperty(r,P,{enumerable:!0,configurable:!0,get:()=>H.value,set:G=>H.value=G})}if(s)for(const P in s)iz(s[P],r,n,P);if(l){const P=ft(l)?l.call(n):l;Reflect.ownKeys(P).forEach(R=>{$t(R,P[R])})}c&&hD(c,e,"c");function $(P,R){Ze(R)?R.forEach(D=>P(D.bind(n))):R&&P(R.bind(n))}if($(n_,f),$(nt,d),$(nz,h),$(Ws,p),$(ez,v),$(FA,g),$(aee,T),$(ree,x),$(nee,C),$(pn,_),$(Ja,w),$(tee,k),Ze(A))if(A.length){const P=e.exposed||(e.exposed={});A.forEach(R=>{Object.defineProperty(P,R,{get:()=>n[R],set:D=>n[R]=D})})}else e.exposed||(e.exposed={});S&&e.render===un&&(e.render=S),M!=null&&(e.inheritAttrs=M),I&&(e.components=I),E&&(e.directives=E)}function uee(e,t,n=un,r=!1){Ze(e)&&(e=a2(e));for(const a in e){const i=e[a];let o;It(i)?"default"in i?o=Ye(i.from||a,i.default,!0):o=Ye(i.from||a):o=Ye(i),vn(o)&&r?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[a]=o}}function hD(e,t,n){bi(Ze(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function iz(e,t,n,r){const a=r.includes(".")?X6(n,r):()=>n[r];if(dt(e)){const i=t[e];ft(i)&&Ae(a,i)}else if(ft(e))Ae(a,e.bind(n));else if(It(e))if(Ze(e))e.forEach(i=>iz(i,t,n,r));else{const i=ft(e.handler)?e.handler.bind(n):t[e.handler];ft(i)&&Ae(a,i,e)}}function HA(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let l;return s?l=s:!a.length&&!n&&!r?l=t:(l={},a.length&&a.forEach(u=>wb(l,u,o,!0)),wb(l,t,o)),It(t)&&i.set(t,l),l}function wb(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&wb(e,i,n,!0),a&&a.forEach(o=>wb(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=cee[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const cee={data:pD,props:Uu,emits:Uu,methods:Uu,computed:Uu,beforeCreate:ea,created:ea,beforeMount:ea,mounted:ea,beforeUpdate:ea,updated:ea,beforeDestroy:ea,beforeUnmount:ea,destroyed:ea,unmounted:ea,activated:ea,deactivated:ea,errorCaptured:ea,serverPrefetch:ea,components:Uu,directives:Uu,watch:dee,provide:pD,inject:fee};function pD(e,t){return t?e?function(){return Cr(ft(e)?e.call(this,this):e,ft(t)?t.call(this,this):t)}:t:e}function fee(e,t){return Uu(a2(e),a2(t))}function a2(e){if(Ze(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ea(e,t){return e?[...new Set([].concat(e,t))]:t}function Uu(e,t){return e?Cr(Cr(Object.create(null),e),t):t}function dee(e,t){if(!e)return t;if(!t)return e;const n=Cr(Object.create(null),e);for(const r in t)n[r]=ea(e[r],t[r]);return n}function hee(e,t,n,r=!1){const a={},i={};mb(i,r_,1),e.propsDefaults=Object.create(null),oz(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:B6(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function pee(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=on(a),[l]=e.propsOptions;let u=!1;if((r||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(Z1(e.emitsOptions,d))continue;const h=t[d];if(l)if(Vt(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const p=Si(d);a[p]=i2(l,s,p,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{oz(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!Vt(t,f)&&((c=ru(f))===f||!Vt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=i2(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!Vt(t,f))&&(delete i[f],u=!0)}u&&Is(e,"set","$attrs")}function oz(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(w0(l))continue;const u=t[l];let c;a&&Vt(a,c=Si(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:Z1(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=on(n),u=s||Hn;for(let c=0;c<i.length;c++){const f=i[c];n[f]=i2(a,l,f,u[f],e,!Vt(u,f))}}return o}function i2(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=Vt(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&ft(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(Ed(a),r=u[n]=l.call(null,t),Ac())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===ru(n))&&(r=!0))}return r}function sz(e,t,n=!1){const r=t.propsCache,a=r.get(e);if(a)return a;const i=e.props,o={},s=[];let l=!1;if(!ft(e)){const c=f=>{l=!0;const[d,h]=sz(f,t,!0);Cr(o,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return It(e)&&r.set(e,cd),cd;if(Ze(i))for(let c=0;c<i.length;c++){const f=Si(i[c]);vD(f)&&(o[f]=Hn)}else if(i)for(const c in i){const f=Si(c);if(vD(f)){const d=i[c],h=o[f]=Ze(d)||ft(d)?{type:d}:Object.assign({},d);if(h){const p=yD(Boolean,h.type),v=yD(String,h.type);h[0]=p>-1,h[1]=v<0||p<v,(p>-1||Vt(h,"default"))&&s.push(f)}}}const u=[o,s];return It(e)&&r.set(e,u),u}function vD(e){return e[0]!=="$"}function gD(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function mD(e,t){return gD(e)===gD(t)}function yD(e,t){return Ze(t)?t.findIndex(n=>mD(n,e)):ft(t)&&mD(t,e)?0:-1}const lz=e=>e[0]==="_"||e==="$stable",GA=e=>Ze(e)?e.map(Io):[Io(e)],vee=(e,t,n)=>{if(t._n)return t;const r=fe((...a)=>GA(t(...a)),n);return r._c=!1,r},uz=(e,t,n)=>{const r=e._ctx;for(const a in e){if(lz(a))continue;const i=e[a];if(ft(i))t[a]=vee(a,i,r);else if(i!=null){const o=GA(i);t[a]=()=>o}}},cz=(e,t)=>{const n=GA(t);e.slots.default=()=>n},gee=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=on(t),mb(t,"_",n)):uz(t,e.slots={})}else e.slots={},t&&cz(e,t);mb(e.slots,r_,1)},mee=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Hn;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Cr(a,t),!n&&s===1&&delete a._):(i=!t.$stable,uz(t,a)),o=t}else t&&(cz(e,t),o={default:1});if(i)for(const s in a)!lz(s)&&!(s in o)&&delete a[s]};function fz(){return{app:null,config:{isNativeTag:JJ,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 yee=0;function bee(e,t){return function(r,a=null){ft(r)||(r=Object.assign({},r)),a!=null&&!It(a)&&(a=null);const i=fz(),o=new Set;let s=!1;const l=i.app={_uid:yee++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:Bee,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&ft(u.install)?(o.add(u),u.install(l,...c)):ft(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!s){const d=V(r,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,o_(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l}};return l}}function o2(e,t,n,r,a=!1){if(Ze(e)){e.forEach((d,h)=>o2(d,t&&(Ze(t)?t[h]:t),n,r,a));return}if(jp(r)&&!a)return;const i=r.shapeFlag&4?o_(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Hn?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(dt(u)?(c[u]=null,Vt(f,u)&&(f[u]=null)):vn(u)&&(u.value=null)),ft(l))Dl(l,s,12,[o,c]);else{const d=dt(l),h=vn(l);if(d||h){const p=()=>{if(e.f){const v=d?Vt(f,l)?f[l]:c[l]:l.value;a?Ze(v)&&SA(v,i):Ze(v)?v.includes(i)||v.push(i):d?(c[l]=[i],Vt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,Vt(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(p.id=-1,Ca(p,n)):p()}}}const Ca=XQ;function _ee(e){return wee(e)}function wee(e,t){const n=aQ();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=un,insertStaticContent:p}=e,v=(z,Y,ee,oe=null,ve=null,Z=null,ce=!1,q=null,ae=!!Y.dynamicChildren)=>{if(z===Y)return;z&&!tc(z,Y)&&(oe=Q(z),G(z,ve,Z,!0),z=null),Y.patchFlag===-2&&(ae=!1,Y.dynamicChildren=null);const{type:ne,ref:de,shapeFlag:me}=Y;switch(ne){case lh:g(z,Y,ee,oe);break;case ia:m(z,Y,ee,oe);break;case qp:z==null&&_(Y,ee,oe,ce);break;case He:I(z,Y,ee,oe,ve,Z,ce,q,ae);break;default:me&1?S(z,Y,ee,oe,ve,Z,ce,q,ae):me&6?E(z,Y,ee,oe,ve,Z,ce,q,ae):(me&64||me&128)&&ne.process(z,Y,ee,oe,ve,Z,ce,q,ae,se)}de!=null&&ve&&o2(de,z&&z.ref,Z,Y||z,!Y)},g=(z,Y,ee,oe)=>{if(z==null)r(Y.el=s(Y.children),ee,oe);else{const ve=Y.el=z.el;Y.children!==z.children&&u(ve,Y.children)}},m=(z,Y,ee,oe)=>{z==null?r(Y.el=l(Y.children||""),ee,oe):Y.el=z.el},_=(z,Y,ee,oe)=>{[z.el,z.anchor]=p(z.children,Y,ee,oe,z.el,z.anchor)},b=({el:z,anchor:Y},ee,oe)=>{let ve;for(;z&&z!==Y;)ve=d(z),r(z,ee,oe),z=ve;r(Y,ee,oe)},w=({el:z,anchor:Y})=>{let ee;for(;z&&z!==Y;)ee=d(z),a(z),z=ee;a(Y)},S=(z,Y,ee,oe,ve,Z,ce,q,ae)=>{ce=ce||Y.type==="svg",z==null?x(Y,ee,oe,ve,Z,ce,q,ae):k(z,Y,ve,Z,ce,q,ae)},x=(z,Y,ee,oe,ve,Z,ce,q)=>{let ae,ne;const{type:de,props:me,shapeFlag:pe,transition:Se,dirs:Pe}=z;if(ae=z.el=o(z.type,Z,me&&me.is,me),pe&8?c(ae,z.children):pe&16&&T(z.children,ae,null,oe,ve,Z&&de!=="foreignObject",ce,q),Pe&&vu(z,null,oe,"created"),C(ae,z,z.scopeId,ce,oe),me){for(const Ne in me)Ne!=="value"&&!w0(Ne)&&i(ae,Ne,null,me[Ne],Z,z.children,oe,ve,le);"value"in me&&i(ae,"value",null,me.value),(ne=me.onVnodeBeforeMount)&&So(ne,oe,z)}Pe&&vu(z,null,oe,"beforeMount");const Oe=(!ve||ve&&!ve.pendingBranch)&&Se&&!Se.persisted;Oe&&Se.beforeEnter(ae),r(ae,Y,ee),((ne=me&&me.onVnodeMounted)||Oe||Pe)&&Ca(()=>{ne&&So(ne,oe,z),Oe&&Se.enter(ae),Pe&&vu(z,null,oe,"mounted")},ve)},C=(z,Y,ee,oe,ve)=>{if(ee&&h(z,ee),oe)for(let Z=0;Z<oe.length;Z++)h(z,oe[Z]);if(ve){let Z=ve.subTree;if(Y===Z){const ce=ve.vnode;C(z,ce,ce.scopeId,ce.slotScopeIds,ve.parent)}}},T=(z,Y,ee,oe,ve,Z,ce,q,ae=0)=>{for(let ne=ae;ne<z.length;ne++){const de=z[ne]=q?ml(z[ne]):Io(z[ne]);v(null,de,Y,ee,oe,ve,Z,ce,q)}},k=(z,Y,ee,oe,ve,Z,ce)=>{const q=Y.el=z.el;let{patchFlag:ae,dynamicChildren:ne,dirs:de}=Y;ae|=z.patchFlag&16;const me=z.props||Hn,pe=Y.props||Hn;let Se;ee&&gu(ee,!1),(Se=pe.onVnodeBeforeUpdate)&&So(Se,ee,Y,z),de&&vu(Y,z,ee,"beforeUpdate"),ee&&gu(ee,!0);const Pe=ve&&Y.type!=="foreignObject";if(ne?A(z.dynamicChildren,ne,q,ee,oe,Pe,Z):ce||R(z,Y,q,null,ee,oe,Pe,Z,!1),ae>0){if(ae&16)M(q,Y,me,pe,ee,oe,ve);else if(ae&2&&me.class!==pe.class&&i(q,"class",null,pe.class,ve),ae&4&&i(q,"style",me.style,pe.style,ve),ae&8){const Oe=Y.dynamicProps;for(let Ne=0;Ne<Oe.length;Ne++){const Te=Oe[Ne],Me=me[Te],Ce=pe[Te];(Ce!==Me||Te==="value")&&i(q,Te,Me,Ce,ve,z.children,ee,oe,le)}}ae&1&&z.children!==Y.children&&c(q,Y.children)}else!ce&&ne==null&&M(q,Y,me,pe,ee,oe,ve);((Se=pe.onVnodeUpdated)||de)&&Ca(()=>{Se&&So(Se,ee,Y,z),de&&vu(Y,z,ee,"updated")},oe)},A=(z,Y,ee,oe,ve,Z,ce)=>{for(let q=0;q<Y.length;q++){const ae=z[q],ne=Y[q],de=ae.el&&(ae.type===He||!tc(ae,ne)||ae.shapeFlag&70)?f(ae.el):ee;v(ae,ne,de,null,oe,ve,Z,ce,!0)}},M=(z,Y,ee,oe,ve,Z,ce)=>{if(ee!==oe){if(ee!==Hn)for(const q in ee)!w0(q)&&!(q in oe)&&i(z,q,ee[q],null,ce,Y.children,ve,Z,le);for(const q in oe){if(w0(q))continue;const ae=oe[q],ne=ee[q];ae!==ne&&q!=="value"&&i(z,q,ne,ae,ce,Y.children,ve,Z,le)}"value"in oe&&i(z,"value",ee.value,oe.value)}},I=(z,Y,ee,oe,ve,Z,ce,q,ae)=>{const ne=Y.el=z?z.el:s(""),de=Y.anchor=z?z.anchor:s("");let{patchFlag:me,dynamicChildren:pe,slotScopeIds:Se}=Y;Se&&(q=q?q.concat(Se):Se),z==null?(r(ne,ee,oe),r(de,ee,oe),T(Y.children,ee,de,ve,Z,ce,q,ae)):me>0&&me&64&&pe&&z.dynamicChildren?(A(z.dynamicChildren,pe,ee,ve,Z,ce,q),(Y.key!=null||ve&&Y===ve.subTree)&&WA(z,Y,!0)):R(z,Y,ee,de,ve,Z,ce,q,ae)},E=(z,Y,ee,oe,ve,Z,ce,q,ae)=>{Y.slotScopeIds=q,z==null?Y.shapeFlag&512?ve.ctx.activate(Y,ee,oe,ce,ae):L(Y,ee,oe,ve,Z,ce,ae):N(z,Y,ae)},L=(z,Y,ee,oe,ve,Z,ce)=>{const q=z.component=Eee(z,oe,ve);if(e_(z)&&(q.ctx.renderer=se),Iee(q),q.asyncDep){if(ve&&ve.registerDep(q,$),!z.el){const ae=q.subTree=V(ia);m(null,ae,Y,ee)}return}$(q,z,Y,ee,ve,Z,ce)},N=(z,Y,ee)=>{const oe=Y.component=z.component;if(KQ(z,Y,ee))if(oe.asyncDep&&!oe.asyncResolved){P(oe,Y,ee);return}else oe.next=Y,zQ(oe.update),oe.update();else Y.el=z.el,oe.vnode=Y},$=(z,Y,ee,oe,ve,Z,ce)=>{const q=()=>{if(z.isMounted){let{next:de,bu:me,u:pe,parent:Se,vnode:Pe}=z,Oe=de,Ne;gu(z,!1),de?(de.el=Pe.el,P(z,de,ce)):de=Pe,me&&x0(me),(Ne=de.props&&de.props.onVnodeBeforeUpdate)&&So(Ne,Se,de,Pe),gu(z,!0);const Te=Fw(z),Me=z.subTree;z.subTree=Te,v(Me,Te,f(Me.el),Q(Me),z,ve,Z),de.el=Te.el,Oe===null&&YQ(z,Te.el),pe&&Ca(pe,ve),(Ne=de.props&&de.props.onVnodeUpdated)&&Ca(()=>So(Ne,Se,de,Pe),ve)}else{let de;const{el:me,props:pe}=Y,{bm:Se,m:Pe,parent:Oe}=z,Ne=jp(Y);if(gu(z,!1),Se&&x0(Se),!Ne&&(de=pe&&pe.onVnodeBeforeMount)&&So(de,Oe,Y),gu(z,!0),me&&re){const Te=()=>{z.subTree=Fw(z),re(me,z.subTree,z,ve,null)};Ne?Y.type.__asyncLoader().then(()=>!z.isUnmounted&&Te()):Te()}else{const Te=z.subTree=Fw(z);v(null,Te,ee,oe,z,ve,Z),Y.el=Te.el}if(Pe&&Ca(Pe,ve),!Ne&&(de=pe&&pe.onVnodeMounted)){const Te=Y;Ca(()=>So(de,Oe,Te),ve)}(Y.shapeFlag&256||Oe&&jp(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&z.a&&Ca(z.a,ve),z.isMounted=!0,Y=ee=oe=null}},ae=z.effect=new AA(q,()=>RA(ne),z.scope),ne=z.update=()=>ae.run();ne.id=z.uid,gu(z,!0),ne()},P=(z,Y,ee)=>{Y.component=z;const oe=z.vnode.props;z.vnode=Y,z.next=null,pee(z,Y.props,oe,ee),mee(z,Y.children,ee),ih(),uD(),oh()},R=(z,Y,ee,oe,ve,Z,ce,q,ae=!1)=>{const ne=z&&z.children,de=z?z.shapeFlag:0,me=Y.children,{patchFlag:pe,shapeFlag:Se}=Y;if(pe>0){if(pe&128){B(ne,me,ee,oe,ve,Z,ce,q,ae);return}else if(pe&256){D(ne,me,ee,oe,ve,Z,ce,q,ae);return}}Se&8?(de&16&&le(ne,ve,Z),me!==ne&&c(ee,me)):de&16?Se&16?B(ne,me,ee,oe,ve,Z,ce,q,ae):le(ne,ve,Z,!0):(de&8&&c(ee,""),Se&16&&T(me,ee,oe,ve,Z,ce,q,ae))},D=(z,Y,ee,oe,ve,Z,ce,q,ae)=>{z=z||cd,Y=Y||cd;const ne=z.length,de=Y.length,me=Math.min(ne,de);let pe;for(pe=0;pe<me;pe++){const Se=Y[pe]=ae?ml(Y[pe]):Io(Y[pe]);v(z[pe],Se,ee,null,ve,Z,ce,q,ae)}ne>de?le(z,ve,Z,!0,!1,me):T(Y,ee,oe,ve,Z,ce,q,ae,me)},B=(z,Y,ee,oe,ve,Z,ce,q,ae)=>{let ne=0;const de=Y.length;let me=z.length-1,pe=de-1;for(;ne<=me&&ne<=pe;){const Se=z[ne],Pe=Y[ne]=ae?ml(Y[ne]):Io(Y[ne]);if(tc(Se,Pe))v(Se,Pe,ee,null,ve,Z,ce,q,ae);else break;ne++}for(;ne<=me&&ne<=pe;){const Se=z[me],Pe=Y[pe]=ae?ml(Y[pe]):Io(Y[pe]);if(tc(Se,Pe))v(Se,Pe,ee,null,ve,Z,ce,q,ae);else break;me--,pe--}if(ne>me){if(ne<=pe){const Se=pe+1,Pe=Se<de?Y[Se].el:oe;for(;ne<=pe;)v(null,Y[ne]=ae?ml(Y[ne]):Io(Y[ne]),ee,Pe,ve,Z,ce,q,ae),ne++}}else if(ne>pe)for(;ne<=me;)G(z[ne],ve,Z,!0),ne++;else{const Se=ne,Pe=ne,Oe=new Map;for(ne=Pe;ne<=pe;ne++){const je=Y[ne]=ae?ml(Y[ne]):Io(Y[ne]);je.key!=null&&Oe.set(je.key,ne)}let Ne,Te=0;const Me=pe-Pe+1;let Ce=!1,ye=0;const _e=new Array(Me);for(ne=0;ne<Me;ne++)_e[ne]=0;for(ne=Se;ne<=me;ne++){const je=z[ne];if(Te>=Me){G(je,ve,Z,!0);continue}let gt;if(je.key!=null)gt=Oe.get(je.key);else for(Ne=Pe;Ne<=pe;Ne++)if(_e[Ne-Pe]===0&&tc(je,Y[Ne])){gt=Ne;break}gt===void 0?G(je,ve,Z,!0):(_e[gt-Pe]=ne+1,gt>=ye?ye=gt:Ce=!0,v(je,Y[gt],ee,null,ve,Z,ce,q,ae),Te++)}const Le=Ce?See(_e):cd;for(Ne=Le.length-1,ne=Me-1;ne>=0;ne--){const je=Pe+ne,gt=Y[je],Ee=je+1<de?Y[je+1].el:oe;_e[ne]===0?v(null,gt,ee,Ee,ve,Z,ce,q,ae):Ce&&(Ne<0||ne!==Le[Ne]?H(gt,ee,Ee,2):Ne--)}}},H=(z,Y,ee,oe,ve=null)=>{const{el:Z,type:ce,transition:q,children:ae,shapeFlag:ne}=z;if(ne&6){H(z.component.subTree,Y,ee,oe);return}if(ne&128){z.suspense.move(Y,ee,oe);return}if(ne&64){ce.move(z,Y,ee,se);return}if(ce===He){r(Z,Y,ee);for(let me=0;me<ae.length;me++)H(ae[me],Y,ee,oe);r(z.anchor,Y,ee);return}if(ce===qp){b(z,Y,ee);return}if(oe!==2&&ne&1&&q)if(oe===0)q.beforeEnter(Z),r(Z,Y,ee),Ca(()=>q.enter(Z),ve);else{const{leave:me,delayLeave:pe,afterLeave:Se}=q,Pe=()=>r(Z,Y,ee),Oe=()=>{me(Z,()=>{Pe(),Se&&Se()})};pe?pe(Z,Pe,Oe):Oe()}else r(Z,Y,ee)},G=(z,Y,ee,oe=!1,ve=!1)=>{const{type:Z,props:ce,ref:q,children:ae,dynamicChildren:ne,shapeFlag:de,patchFlag:me,dirs:pe}=z;if(q!=null&&o2(q,null,ee,z,!0),de&256){Y.ctx.deactivate(z);return}const Se=de&1&&pe,Pe=!jp(z);let Oe;if(Pe&&(Oe=ce&&ce.onVnodeBeforeUnmount)&&So(Oe,Y,z),de&6)ie(z.component,ee,oe);else{if(de&128){z.suspense.unmount(ee,oe);return}Se&&vu(z,null,Y,"beforeUnmount"),de&64?z.type.remove(z,Y,ee,ve,se,oe):ne&&(Z!==He||me>0&&me&64)?le(ne,Y,ee,!1,!0):(Z===He&&me&384||!ve&&de&16)&&le(ae,Y,ee),oe&&X(z)}(Pe&&(Oe=ce&&ce.onVnodeUnmounted)||Se)&&Ca(()=>{Oe&&So(Oe,Y,z),Se&&vu(z,null,Y,"unmounted")},ee)},X=z=>{const{type:Y,el:ee,anchor:oe,transition:ve}=z;if(Y===He){ue(ee,oe);return}if(Y===qp){w(z);return}const Z=()=>{a(ee),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(z.shapeFlag&1&&ve&&!ve.persisted){const{leave:ce,delayLeave:q}=ve,ae=()=>ce(ee,Z);q?q(z.el,Z,ae):ae()}else Z()},ue=(z,Y)=>{let ee;for(;z!==Y;)ee=d(z),a(z),z=ee;a(Y)},ie=(z,Y,ee)=>{const{bum:oe,scope:ve,update:Z,subTree:ce,um:q}=z;oe&&x0(oe),ve.stop(),Z&&(Z.active=!1,G(ce,z,Y,ee)),q&&Ca(q,Y),Ca(()=>{z.isUnmounted=!0},Y),Y&&Y.pendingBranch&&!Y.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===Y.pendingId&&(Y.deps--,Y.deps===0&&Y.resolve())},le=(z,Y,ee,oe=!1,ve=!1,Z=0)=>{for(let ce=Z;ce<z.length;ce++)G(z[ce],Y,ee,oe,ve)},Q=z=>z.shapeFlag&6?Q(z.component.subTree):z.shapeFlag&128?z.suspense.next():d(z.anchor||z.el),J=(z,Y,ee)=>{z==null?Y._vnode&&G(Y._vnode,null,null,!0):v(Y._vnode||null,z,Y,null,null,null,ee),uD(),K6(),Y._vnode=z},se={p:v,um:G,m:H,r:X,mt:L,mc:T,pc:R,pbc:A,n:Q,o:e};let he,re;return t&&([he,re]=t(se)),{render:J,hydrate:he,createApp:bee(J,he)}}function gu({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function WA(e,t,n=!1){const r=e.children,a=t.children;if(Ze(r)&&Ze(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=ml(a[i]),s.el=o.el),n||WA(o,s)),s.type===lh&&(s.el=o.el)}}function See(e){const t=e.slice(),n=[0];let r,a,i,o,s;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(a=n[n.length-1],e[a]<u){t[r]=a,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<u?i=s+1:o=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const xee=e=>e.__isTeleport,Yp=e=>e&&(e.disabled||e.disabled===""),bD=e=>typeof SVGElement<"u"&&e instanceof SVGElement,s2=(e,t)=>{const n=e&&e.to;return dt(n)?t?t(n):null:n},Cee={__isTeleport:!0,process(e,t,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,m=Yp(t.props);let{shapeFlag:_,children:b,dynamicChildren:w}=t;if(e==null){const S=t.el=v(""),x=t.anchor=v("");h(S,n,r),h(x,n,r);const C=t.target=s2(t.props,p),T=t.targetAnchor=v("");C&&(h(T,C),o=o||bD(C));const k=(A,M)=>{_&16&&c(b,A,M,a,i,o,s,l)};m?k(n,x):C&&k(C,T)}else{t.el=e.el;const S=t.anchor=e.anchor,x=t.target=e.target,C=t.targetAnchor=e.targetAnchor,T=Yp(e.props),k=T?n:x,A=T?S:C;if(o=o||bD(x),w?(d(e.dynamicChildren,w,k,a,i,o,s),WA(e,t,!0)):l||f(e,t,k,A,a,i,o,s,!1),m)T||Fm(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=s2(t.props,p);M&&Fm(t,M,null,u,0)}else T&&Fm(t,x,C,u,1)}dz(t)},remove(e,t,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&i(c),(o||!Yp(d))&&(i(u),s&16))for(let h=0;h<l.length;h++){const p=l[h];a(p,t,n,!0,!!p.dynamicChildren)}},move:Fm,hydrate:Tee};function Fm(e,t,n,{o:{insert:r},m:a},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&r(o,t,n),(!f||Yp(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function Tee(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=s2(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Yp(t.props))t.anchor=u(o(e),t,s(e),n,r,a,i),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,n,r,a,i)}dz(t)}return t.anchor&&o(t.anchor)}const Hg=Cee;function dz(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const He=Symbol(void 0),lh=Symbol(void 0),ia=Symbol(void 0),qp=Symbol(void 0),Xp=[];let Ki=null;function O(e=!1){Xp.push(Ki=e?null:[])}function kee(){Xp.pop(),Ki=Xp[Xp.length-1]||null}let Lv=1;function _D(e){Lv+=e}function hz(e){return e.dynamicChildren=Lv>0?Ki||cd:null,kee(),Lv>0&&Ki&&Ki.push(e),e}function K(e,t,n,r,a,i){return hz(W(e,t,n,r,a,i,!0))}function we(e,t,n,r,a){return hz(V(e,t,n,r,a,!0))}function $n(e){return e?e.__v_isVNode===!0:!1}function tc(e,t){return e.type===t.type&&e.key===t.key}const r_="__vInternal",pz=({key:e})=>e??null,C0=({ref:e,ref_key:t,ref_for:n})=>e!=null?dt(e)||vn(e)||ft(e)?{i:Ir,r:e,k:t,f:!!n}:e:null;function W(e,t=null,n=null,r=0,a=null,i=e===He?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pz(t),ref:t&&C0(t),scopeId:J1,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Ir};return s?(UA(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=dt(n)?8:16),Lv>0&&!o&&Ki&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ki.push(l),l}const V=Aee;function Aee(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===rz)&&(e=ia),$n(e)){const s=$s(e,t,!0);return n&&UA(s,n),Lv>0&&!i&&Ki&&(s.shapeFlag&6?Ki[Ki.indexOf(e)]=s:Ki.push(s)),s.patchFlag|=-2,s}if(Ree(e)&&(e=e.__vccOpts),t){t=a_(t);let{class:s,style:l}=t;s&&!dt(s)&&(t.class=j(s)),It(l)&&(F6(l)&&!Ze(l)&&(l=Cr({},l)),t.style=Ke(l))}const o=dt(e)?1:qQ(e)?128:xee(e)?64:It(e)?4:ft(e)?2:0;return W(e,t,n,r,a,o,i,!0)}function a_(e){return e?F6(e)||r_ in e?Cr({},e):e:null}function $s(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?Dt(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&pz(s),ref:t&&t.ref?n&&a?Ze(a)?a.concat(C0(t)):[a,C0(t)]:C0(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$s(e.ssContent),ssFallback:e.ssFallback&&$s(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function yt(e=" ",t=0){return V(lh,null,e,t)}function i_(e,t){const n=V(qp,null,e);return n.staticCount=t,n}function be(e="",t=!1){return t?(O(),we(ia,null,e)):V(ia,null,e)}function Io(e){return e==null||typeof e=="boolean"?V(ia):Ze(e)?V(He,null,e.slice()):typeof e=="object"?ml(e):V(lh,null,String(e))}function ml(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$s(e)}function UA(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ze(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),UA(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(r_ in t)?t._ctx=Ir:a===3&&Ir&&(Ir.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ft(t)?(t={default:t,_ctx:Ir},n=32):(t=String(t),r&64?(n=16,t=[yt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=j([t.class,r.class]));else if(a==="style")t.style=Ke([t.style,r.style]);else if(j1(a)){const i=t[a],o=r[a];o&&i!==o&&!(Ze(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function So(e,t,n,r=null){bi(e,t,7,[n,r])}const Mee=fz();let Pee=0;function Eee(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||Mee,i={uid:Pee++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new A6(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sz(r,a),emitsOptions:q6(r,a),emit:null,emitted:null,propsDefaults:Hn,inheritAttrs:r.inheritAttrs,ctx:Hn,data:Hn,props:Hn,attrs:Hn,slots:Hn,refs:Hn,setupState:Hn,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=WQ.bind(null,i),e.ce&&e.ce(i),i}let Jn=null;const St=()=>Jn||Ir,Ed=e=>{Jn=e,e.scope.on()},Ac=()=>{Jn&&Jn.scope.off(),Jn=null};function vz(e){return e.vnode.shapeFlag&4}let $v=!1;function Iee(e,t=!1){$v=t;const{props:n,children:r}=e.vnode,a=vz(e);hee(e,n,a,t),gee(e,r);const i=a?Dee(e,t):void 0;return $v=!1,i}function Dee(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=kc(new Proxy(e.ctx,see));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?mz(e):null;Ed(e),ih();const i=Dl(r,e,0,[e.props,a]);if(oh(),Ac(),kv(i)){if(i.then(Ac,Ac),t)return i.then(o=>{wD(e,o,t)}).catch(o=>{X1(o,e,0)});e.asyncDep=i}else wD(e,i,t)}else gz(e,t)}function wD(e,t,n){ft(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:It(t)&&(e.setupState=H6(t)),gz(e,n)}let SD;function gz(e,t,n){const r=e.type;if(!e.render){if(!t&&SD&&!r.render){const a=r.template||HA(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Cr(Cr({isCustomElement:i,delimiters:s},o),l);r.render=SD(a,u)}}e.render=r.render||un}Ed(e),ih(),lee(e),oh(),Ac()}function Lee(e){return new Proxy(e.attrs,{get(t,n){return Da(e,"get","$attrs"),t[n]}})}function mz(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Lee(e))},slots:e.slots,emit:e.emit,expose:t}}function o_(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(H6(kc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kp)return Kp[n](e)},has(t,n){return n in t||n in Kp}}))}function $ee(e,t=!0){return ft(e)?e.displayName||e.name:e.name||t&&e.__name}function Ree(e){return ft(e)&&"__vccOpts"in e}const F=(e,t)=>W6(e,t,$v);function Tr(){return yz().slots}function uh(){return yz().attrs}function yz(){const e=St();return e.setupContext||(e.setupContext=mz(e))}function et(e,t,n){const r=arguments.length;return r===2?It(t)&&!Ze(t)?$n(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&$n(n)&&(n=[n]),V(e,t,n))}const Oee=Symbol(""),Nee=()=>Ye(Oee),Bee="3.2.47",Fee="http://www.w3.org/2000/svg",nc=typeof document<"u"?document:null,xD=nc&&nc.createElement("template"),Vee={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const a=t?nc.createElementNS(Fee,e):nc.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>nc.createTextNode(e),createComment:e=>nc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,a,i){const o=n?n.previousSibling:t.lastChild;if(a&&(a===i||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{xD.innerHTML=r?`<svg>${e}</svg>`:e;const s=xD.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function zee(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Hee(e,t,n){const r=e.style,a=dt(n);if(n&&!a){if(t&&!dt(t))for(const i in t)n[i]==null&&l2(r,i,"");for(const i in n)l2(r,i,n[i])}else{const i=r.display;a?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const CD=/\s*!important$/;function l2(e,t,n){if(Ze(n))n.forEach(r=>l2(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Gee(e,t);CD.test(n)?e.setProperty(ru(r),n.replace(CD,""),"important"):e[r]=n}}const TD=["Webkit","Moz","ms"],Hw={};function Gee(e,t){const n=Hw[t];if(n)return n;let r=Si(t);if(r!=="filter"&&r in e)return Hw[t]=r;r=zg(r);for(let a=0;a<TD.length;a++){const i=TD[a]+r;if(i in e)return Hw[t]=i}return t}const kD="http://www.w3.org/1999/xlink";function Wee(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(kD,t.slice(6,t.length)):e.setAttributeNS(kD,t,n);else{const i=XJ(t);n==null||i&&!S6(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Uee(e,t,n,r,a,i,o){if(t==="innerHTML"||t==="textContent"){r&&o(r,a,i),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=S6(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function wl(e,t,n,r){e.addEventListener(t,n,r)}function jee(e,t,n,r){e.removeEventListener(t,n,r)}function Kee(e,t,n,r,a=null){const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[s,l]=Yee(t);if(r){const u=i[t]=Zee(r,a);wl(e,s,u,l)}else o&&(jee(e,s,o,l),i[t]=void 0)}}const AD=/(?:Once|Passive|Capture)$/;function Yee(e){let t;if(AD.test(e)){t={};let r;for(;r=e.match(AD);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ru(e.slice(2)),t]}let Gw=0;const qee=Promise.resolve(),Xee=()=>Gw||(qee.then(()=>Gw=0),Gw=Date.now());function Zee(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;bi(Jee(r,n.value),t,5,[r])};return n.value=e,n.attached=Xee(),n}function Jee(e,t){if(Ze(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const MD=/^on[a-z]/,Qee=(e,t,n,r,a=!1,i,o,s,l)=>{t==="class"?zee(e,r,a):t==="style"?Hee(e,n,r):j1(t)?wA(t)||Kee(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ete(e,t,r,a))?Uee(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Wee(e,t,r,a))};function ete(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&MD.test(t)&&ft(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||MD.test(t)&&dt(n)?!1:t in e}function Gg(e){const t=St();if(!t)return;const n=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>c2(i,a))},r=()=>{const a=e(t.proxy);u2(t.subTree,a),n(a)};ZQ(r),nt(()=>{const a=new MutationObserver(r);a.observe(t.subTree.el.parentNode,{childList:!0}),Ja(()=>a.disconnect())})}function u2(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{u2(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)c2(e.el,t);else if(e.type===He)e.children.forEach(n=>u2(n,t));else if(e.type===qp){let{el:n,anchor:r}=e;for(;n&&(c2(n,t),n!==r);)n=n.nextSibling}}function c2(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Qs="transition",Oh="animation",Kn=(e,{slots:t})=>et(J6,_z(e),t);Kn.displayName="Transition";const bz={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},tte=Kn.props=Cr({},J6.props,bz),mu=(e,t=[])=>{Ze(e)?e.forEach(n=>n(...t)):e&&e(...t)},PD=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function _z(e){const t={};for(const I in e)I in bz||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=nte(a),v=p&&p[0],g=p&&p[1],{onBeforeEnter:m,onEnter:_,onEnterCancelled:b,onLeave:w,onLeaveCancelled:S,onBeforeAppear:x=m,onAppear:C=_,onAppearCancelled:T=b}=t,k=(I,E,L)=>{fl(I,E?c:s),fl(I,E?u:o),L&&L()},A=(I,E)=>{I._isLeaving=!1,fl(I,f),fl(I,h),fl(I,d),E&&E()},M=I=>(E,L)=>{const N=I?C:_,$=()=>k(E,I,L);mu(N,[E,$]),ED(()=>{fl(E,I?l:i),ps(E,I?c:s),PD(N)||ID(E,r,v,$)})};return Cr(t,{onBeforeEnter(I){mu(m,[I]),ps(I,i),ps(I,o)},onBeforeAppear(I){mu(x,[I]),ps(I,l),ps(I,u)},onEnter:M(!1),onAppear:M(!0),onLeave(I,E){I._isLeaving=!0;const L=()=>A(I,E);ps(I,f),Sz(),ps(I,d),ED(()=>{I._isLeaving&&(fl(I,f),ps(I,h),PD(w)||ID(I,r,g,L))}),mu(w,[I,L])},onEnterCancelled(I){k(I,!1),mu(b,[I])},onAppearCancelled(I){k(I,!0),mu(T,[I])},onLeaveCancelled(I){A(I),mu(S,[I])}})}function nte(e){if(e==null)return null;if(It(e))return[Ww(e.enter),Ww(e.leave)];{const t=Ww(e);return[t,t]}}function Ww(e){return rQ(e)}function ps(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function fl(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ED(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rte=0;function ID(e,t,n,r){const a=e._endId=++rte,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=wz(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},s+1),e.addEventListener(u,d)}function wz(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),a=r(`${Qs}Delay`),i=r(`${Qs}Duration`),o=DD(a,i),s=r(`${Oh}Delay`),l=r(`${Oh}Duration`),u=DD(s,l);let c=null,f=0,d=0;t===Qs?o>0&&(c=Qs,f=o,d=i.length):t===Oh?u>0&&(c=Oh,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Qs:Oh:null,d=c?c===Qs?i.length:l.length:0);const h=c===Qs&&/\b(transform|all)(,|$)/.test(r(`${Qs}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function DD(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>LD(n)+LD(e[r])))}function LD(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Sz(){return document.body.offsetHeight}const xz=new WeakMap,Cz=new WeakMap,Tz={name:"TransitionGroup",props:Cr({},tte,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=St(),r=Z6();let a,i;return Ws(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!lte(a[0].el,n.vnode.el,o))return;a.forEach(ite),a.forEach(ote);const s=a.filter(ste);Sz(),s.forEach(l=>{const u=l.el,c=u.style;ps(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,fl(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=on(e),s=_z(o);let l=o.tag||He;a=i,i=t.default?BA(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Dv(c,Iv(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Dv(c,Iv(c,s,r,n)),xz.set(c,c.el.getBoundingClientRect())}return V(l,null,i)}}},ate=e=>delete e.mode;Tz.props;const kz=Tz;function ite(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ote(e){Cz.set(e,e.el.getBoundingClientRect())}function ste(e){const t=xz.get(e),n=Cz.get(e),r=t.left-n.left,a=t.top-n.top;if(r||a){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",e}}function lte(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:i}=wz(r);return a.removeChild(r),i}const Id=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?n=>x0(t,n):t};function ute(e){e.target.composing=!0}function $D(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const jA={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Id(a);const i=r||a.props&&a.props.type==="number";wl(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=ZC(s)),e._assign(s)}),n&&wl(e,"change",()=>{e.value=e.value.trim()}),t||(wl(e,"compositionstart",ute),wl(e,"compositionend",$D),wl(e,"change",$D))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=Id(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&ZC(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Sb={deep:!0,created(e,t,n){e._assign=Id(n),wl(e,"change",()=>{const r=e._modelValue,a=Mz(e),i=e.checked,o=e._assign;if(Ze(r)){const s=x6(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(K1(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(Pz(e,i))})},mounted:RD,beforeUpdate(e,t,n){e._assign=Id(n),RD(e,t,n)}};function RD(e,{value:t,oldValue:n},r){e._modelValue=t,Ze(t)?e.checked=x6(t,r.props.value)>-1:K1(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Md(t,Pz(e,!0)))}const Az={created(e,{value:t},n){e.checked=Md(t,n.props.value),e._assign=Id(n),wl(e,"change",()=>{e._assign(Mz(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Id(r),t!==n&&(e.checked=Md(t,r.props.value))}};function Mz(e){return"_value"in e?e._value:e.value}function Pz(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const cte=["ctrl","shift","alt","meta"],fte={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)=>cte.some(n=>e[`${n}Key`]&&!t.includes(n))},st=(e,t)=>(n,...r)=>{for(let a=0;a<t.length;a++){const i=fte[t[a]];if(i&&i(n,t))return}return e(n,...r)},dte={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wt=(e,t)=>n=>{if(!("key"in n))return;const r=ru(n.key);if(t.some(a=>a===r||dte[a]===r))return e(n)},Yt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Nh(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Nh(e,!0),r.enter(e)):r.leave(e,()=>{Nh(e,!1)}):Nh(e,t))},beforeUnmount(e,{value:t}){Nh(e,t)}};function Nh(e,t){e.style.display=t?e._vod:"none"}const hte=Cr({patchProp:Qee},Vee);let OD;function Ez(){return OD||(OD=_ee(hte))}const Dd=(...e)=>{Ez().render(...e)},Iz=(...e)=>{const t=Ez().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=pte(r);if(!a)return;const i=t._component;!ft(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function pte(e){return dt(e)?document.querySelector(e):e}var Dz=(e=>(e.transparent="rgba(0,0,0,0)",e.black="#000000",e.silver="#C0C0C0",e.gray="#808080",e.white="#FFFFFF",e.maroon="#800000",e.red="#FF0000",e.purple="#800080",e.fuchsia="#FF00FF",e.green="#008000",e.lime="#00FF00",e.olive="#808000",e.yellow="#FFFF00",e.navy="#000080",e.blue="#0000FF",e.teal="#008080",e.aqua="#00FFFF",e.aliceblue="#f0f8ff",e.antiquewhite="#faebd7",e.aquamarine="#7fffd4",e.azure="#f0ffff",e.beige="#f5f5dc",e.bisque="#ffe4c4",e.blanchedalmond="#ffebcd",e.blueviolet="#8a2be2",e.brown="#a52a2a",e.burlywood="#deb887",e.cadetblue="#5f9ea0",e.chartreuse="#7fff00",e.chocolate="#d2691e",e.coral="#ff7f50",e.cornflowerblue="#6495ed",e.cornsilk="#fff8dc",e.crimson="#dc143c",e.cyan="#00ffff",e.darkblue="#00008b",e.darkcyan="#008b8b",e.darkgoldenrod="#b8860b",e.darkgray="#a9a9a9",e.darkgreen="#006400",e.darkgrey="#a9a9a9",e.darkkhaki="#bdb76b",e.darkmagenta="#8b008b",e.darkolivegreen="#556b2f",e.darkorange="#ff8c00",e.darkorchid="#9932cc",e.darkred="#8b0000",e.darksalmon="#e9967a",e.darkseagreen="#8fbc8f",e.darkslateblue="#483d8b",e.darkslategray="#2f4f4f",e.darkslategrey="#2f4f4f",e.darkturquoise="#00ced1",e.darkviolet="#9400d3",e.deeppink="#ff1493",e.deepskyblue="#00bfff",e.dimgray="#696969",e.dimgrey="#696969",e.dodgerblue="#1e90ff",e.firebrick="#b22222",e.floralwhite="#fffaf0",e.forestgreen="#228b22",e.gainsboro="#dcdcdc",e.ghostwhite="#f8f8ff",e.gold="#ffd700",e.goldenrod="#daa520",e.greenyellow="#adff2f",e.grey="#808080",e.honeydew="#f0fff0",e.hotpink="#ff69b4",e.indianred="#cd5c5c",e.indigo="#4b0082",e.ivory="#fffff0",e.khaki="#f0e68c",e.lavender="#e6e6fa",e.lavenderblush="#fff0f5",e.lawngreen="#7cfc00",e.lemonchiffon="#fffacd",e.lightblue="#add8e6",e.lightcoral="#f08080",e.lightcyan="#e0ffff",e.lightgoldenrodyellow="#fafad2",e.lightgray="#d3d3d3",e.lightgreen="#90ee90",e.lightgrey="#d3d3d3",e.lightpink="#ffb6c1",e.lightsalmon="#ffa07a",e.lightseagreen="#20b2aa",e.lightskyblue="#87cefa",e.lightslategray="#778899",e.lightslategrey="#778899",e.lightsteelblue="#b0c4de",e.lightyellow="#ffffe0",e.limegreen="#32cd32",e.linen="#faf0e6",e.magenta="#ff00ff",e.mediumaquamarine="#66cdaa",e.mediumblue="#0000cd",e.mediumorchid="#ba55d3",e.mediumpurple="#9370db",e.mediumseagreen="#3cb371",e.mediumslateblue="#7b68ee",e.mediumspringgreen="#00fa9a",e.mediumturquoise="#48d1cc",e.mediumvioletred="#c71585",e.midnightblue="#191970",e.mintcream="#f5fffa",e.mistyrose="#ffe4e1",e.moccasin="#ffe4b5",e.navajowhite="#ffdead",e.oldlace="#fdf5e6",e.olivedrab="#6b8e23",e.orange="#ffa500",e.orangered="#ff4500",e.orchid="#da70d6",e.palegoldenrod="#eee8aa",e.palegreen="#98fb98",e.paleturquoise="#afeeee",e.palevioletred="#db7093",e.papayawhip="#ffefd5",e.peachpuff="#ffdab9",e.peru="#cd853f",e.pink="#ffc0cb",e.plum="#dda0dd",e.powderblue="#b0e0e6",e.rosybrown="#bc8f8f",e.royalblue="#4169e1",e.saddlebrown="#8b4513",e.salmon="#fa8072",e.sandybrown="#f4a460",e.seagreen="#2e8b57",e.seashell="#fff5ee",e.sienna="#a0522d",e.skyblue="#87ceeb",e.slateblue="#6a5acd",e.slategray="#708090",e.snow="#fffafa",e.springgreen="#00ff7f",e.steelblue="#4682b4",e.tan="#d2b48c",e.thistle="#d8bfd8",e.tomato="#ff6347",e.turquoise="#40e0d0",e.violet="#ee82ee",e.wheat="#f5deb3",e.whitesmoke="#f5f5f5",e.yellowgreen="#9acd32",e))(Dz||{});function s_(e){return typeof e!="string"?!1:(e=e.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))}function vte(e){return typeof e!="string"?!1:(e=e.toLowerCase(),/^(rgb\(|RGB\()/.test(e))}function Lz(e){return typeof e!="string"?!1:(e=e.toLowerCase(),/^(rgba|RGBA)/.test(e))}function $z(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)}function gte(e){return Dz[e]}function Rz(e){if(s_(e)||$z(e))return e;const t=gte(e);if(!t)throw new Error(`Color: Invalid Input of ${e}`);return t}function mte(e){e=e.replace("#",""),e.length===3&&(e=Array.from(e).map(n=>n+n).join(""));const t=e.split("");return new Array(3).fill(0).map((n,r)=>parseInt(`0x${t[r*2]}${t[r*2+1]}`))}function yte(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(t=>parseInt(t))}function Wg(e){const t=Rz(e).toLowerCase();return s_(t)?mte(t):yte(t)}function Oz(e){const t=Rz(e);return Lz(t)?Number(t.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function KA(e){const t=Wg(e);return t&&[...t,Oz(e)]}function bte(e,t){const n=Wg(e);return typeof t=="number"?`rgba(${n.join(",")},${t})`:`rgb(${n.join(",")})`}function _te(e){if(s_(e))return e;const t=Wg(e),n=r=>Number(r).toString(16).padStart(2,"0");return`#${t.map(n).join("")}`}function l_(e){if(!Array.isArray(e))throw new Error(`getColorFromRgbValue: ${e} is not an array`);const{length:t}=e;if(t!==3&&t!==4)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(t===3?"rgb(":"rgba(")+e.join(",")+")"}function wte(e,t=0){let n=KA(e);return n=n.map((r,a)=>a===3?r:r-Math.ceil(2.55*t)).map(r=>r<0?0:r),l_(n)}function f2(e,t=0){let n=KA(e);return n=n.map((r,a)=>a===3?r:r+Math.ceil(2.55*t)).map(r=>r>255?255:r),l_(n)}function wr(e,t=100){const n=Wg(e);return l_([...n,t/100])}const Ste=Object.freeze(Object.defineProperty({__proto__:null,darken:wte,fade:wr,getColorFromRgbValue:l_,getOpacity:Oz,getRgbValue:Wg,getRgbaValue:KA,isHex:s_,isRgb:vte,isRgbOrRgba:$z,isRgba:Lz,lighten:f2,toHex:_te,toRgb:bte},Symbol.toStringTag,{value:"Module"})),au=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},xte={},Cte={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"},Tte=W("g",{style:{transform:"translate(2px, 2px)"}},[W("g",null,[W("path",{"data-type":"shape",d:"M0,0 L0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-bg"})]),W("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19",class:"dv-button-svg-line"})],-1),kte=[Tte];function Ate(e,t){return O(),K("svg",Cte,kte)}const Mte=au(xte,[["render",Ate]]),Pte={},Ete={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"},Ite=i_('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L164.1,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L0,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M1.1,34 L1.1,0" class="dv-button-svg-line"></path></g>',1),Dte=[Ite];function Lte(e,t){return O(),K("svg",Ete,Dte)}const $te=au(Pte,[["render",Lte]]),Rte={},Ote={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"},Nte=i_('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M1,1 L1,33 L162,33 L162,1" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L0,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,0 L10,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,0 L153,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L163,10" class="dv-button-svg-line"></path><path data-type="polyline" d="M164.1,34 L153,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L163,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L0,24" class="dv-button-svg-line"></path><path data-type="polyline" d="M-1.1,34 L10,34" class="dv-button-svg-line"></path></g>',1),Bte=[Nte];function Fte(e,t){return O(),K("svg",Ote,Bte)}const Vte=au(Rte,[["render",Fte]]),zte={},Hte={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"},Gte=W("g",{style:{transform:"translate(2px, 2px)"}},[W("g",null,[W("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L0,0",class:"dv-button-svg-bg"})]),W("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),W("path",{"data-type":"polyline",d:"M184.1,0 L0,0 L0,34.7",class:"dv-button-svg-line"})],-1),Wte=[Gte];function Ute(e,t){return O(),K("svg",Hte,Wte)}const jte=au(zte,[["render",Ute]]),Kte={},Yte={viewBox:"0 0 187 38",preserveAspectRatio:"none",class:"dv-button-svg"},qte=W("g",{style:{transform:"translate(2px, 2px)"}},[W("g",null,[W("path",{"data-type":"shape",d:"M0,34 L168,34 L183,19 L183,0 L15,0 L0,15",class:"dv-button-svg-bg"})]),W("path",{"data-type":"polyline",d:"M0,34 L168,34 L183,19 L183,0",class:"dv-button-svg-line"}),W("path",{"data-type":"polyline",d:"M183,0 L15,0 L0,15 L0,34",class:"dv-button-svg-line"})],-1),Xte=[qte];function Zte(e,t){return O(),K("svg",Yte,Xte)}const Jte=au(Kte,[["render",Zte]]),Qte={},ene={viewBox:"0 0 167 38",preserveAspectRatio:"none",class:"dv-button-svg"},tne=i_('<g style="transform:translate(2px, 2px);"><g><path data-type="shape" d="M0,0 L0,34 L163,34 L163,0" class="dv-button-svg-bg"></path></g><path data-type="polyline" d="M0,0 L81.6,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,0 L81.4,0" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,34 L81.6,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,34 L81.4,34" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,1 L10,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,1 L153,1" class="dv-button-svg-line"></path><path data-type="polyline" d="M0,33 L10,33" class="dv-button-svg-line"></path><path data-type="polyline" d="M163,33 L153,33" class="dv-button-svg-line"></path></g>',1),nne=[tne];function rne(e,t){return O(),K("svg",ene,nne)}const ane=au(Qte,[["render",rne]]),ine={class:"dv-button-wrapper"},one={class:"dv-button"},sne={class:"dv-button-svg-container"},lne={class:"dv-button-text"},une=ge({components:{Border1:Mte,Border2:$te,Border3:Vte,Border4:jte,Border5:Jte,Border6:ane},__name:"index",props:{color:{default:"#2058c7"},fontColor:{default:""},bg:{type:Boolean,default:!0},border:{default:"Border1"},fontSize:{default:14}},setup(e){Gg(s=>({"3d5503d0":y(o),abf4b98a:s.color,"353d4ca1":y(r),"22d70eaf":y(n),"49fc34c0":y(a),"0b0bf6d6":y(i)}));const t=e,n=F(()=>f2(t.color,40)),r=F(()=>t.fontColor===""?t.color:t.fontColor),a=F(()=>f2(r.value,40)),i=F(()=>t.bg?.1:0),o=F(()=>`${t.fontSize}px`);return(s,l)=>(O(),K("div",ine,[W("button",one,[W("div",sne,[(O(),we(Lt(s.border)))]),W("div",lne,[ke(s.$slots,"default")])])]))}}),ND={install(e){e.component("DvButton",une)}};function cne(e){return CA()?(TA(e),!0):!1}function xb(e){return typeof e=="function"?e():y(e)}const fne=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const dne=Object.prototype.toString,hne=e=>dne.call(e)==="[object Object]",d2=()=>{};function pne(e,t){function n(...r){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(i)})}return n}function vne(e,t={}){let n,r,a=d2;const i=o=>{clearTimeout(o),a(),a=d2};return o=>{const s=xb(e),l=xb(t.maxWait);return n&&i(n),s<=0||l!==void 0&&l<=0?(r&&(i(r),r=null),Promise.resolve(o())):new Promise((u,c)=>{a=t.rejectOnCancel?c:u,l&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(o())},l)),n=setTimeout(()=>{r&&i(r),r=null,u(o())},s)})}}function gne(e,t=200,n={}){return pne(vne(t,n),e)}function mne(e){var t;const n=xb(e);return(t=n==null?void 0:n.$el)!=null?t:n}const yne=fne?window:void 0;function bne(...e){let t,n,r,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,a]=e,t=yne):[t,n,r,a]=e,!t)return d2;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Ae(()=>[mne(t),xb(a)],([c,f])=>{if(o(),!c)return;const d=hne(f)?{...f}:f;i.push(...n.flatMap(h=>r.map(p=>s(c,h,p,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return cne(u),u}function Rv(e,t){return arguments.length===1?Number.parseInt((Math.random()*e+1).toString(),10):Number.parseInt((Math.random()*(t-e+1)+e).toString(),10)}function _ne(e,t){const n=window.MutationObserver,r=new n(t);return r.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),r}function Cb(e,t){const n=Math.abs(e[0]-t[0]),r=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+r*r)}function yf(e,t,n,r){return[e+Math.cos(r)*n,t+Math.sin(r)*n]}function wne(e){return e.filter(t=>typeof t=="number")}function Sne(e){return e=wne(e),e.reduce((t,n)=>t+n,0)}function xne(e,t){const n=Math.abs(e.x-t.x),r=Math.abs(e.y-t.y);return Math.sqrt(n*n+r*r)}function BD(e){const t=Array.from({length:e.length-1}).fill(0).map((n,r)=>[e[r],e[r+1]]).map(n=>xne(n[0],n[1]));return Sne(t)}function Cne(e){return`${e.x},${e.y}`}function FD(e){return e.map(Cne).join(" ")}function po(e){return(e?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t==="x"?n:n&3|8).toString(16)})}function xn(e,t){for(const n in t){if(e[n]&&typeof e[n]=="object"){xn(e[n],t[n]);continue}if(typeof t[n]=="object"){e[n]=Mn(t[n],!0);continue}e[n]=t[n]}return e}function Mn(e,t){if(!e)return e;const{parse:n,stringify:r}=JSON;if(!t)return n(r(e));const a=Array.isArray(e)?[]:{};if(e&&typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]&&typeof e[i]=="object"?a[i]=Mn(e[i],!0):a[i]=e[i]);return a}function wn(e,t,n){const r=U(0),a=U(0);let i,o=null,s=null;const l=(h=!0)=>new Promise(p=>{Xe(()=>{s=e.value,r.value=e.value?e.value.clientWidth:0,a.value=e.value?e.value.clientHeight:0,e.value?(!r.value||!a.value)&&console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),typeof t=="function"&&h&&t(),p(!0)})}),u=()=>{i=gne(l,200)},c=()=>{o=_ne(s,i),bne(window,"resize",i)},f=()=>{o&&(o.disconnect(),o.takeRecords(),o=null)},d=async()=>{await l(!1),u(),c(),typeof n=="function"&&n()};return nt(()=>{d()}),Ja(()=>{f()}),ez(d),FA(f),{width:r,height:a,initWH:l}}const Tne=["width","height"],kne=["d","fill"],Ane=["fill","x","y"],Mne=["xlink:href","width","height","x","y"],Pne=["fill","x","y"],Ene={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(e){Gg(h=>({"0be443fc":y(o)}));const t=e,n=U(null),{width:r,height:a}=wn(n,l,s),i=vt({defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1,sort:!0},mergedConfig:null,column:[]}),o=F(()=>`${t.config.fontSize?t.config.fontSize:i.defaultConfig.fontSize}px`);Ae(()=>t.config,()=>{u()},{deep:!0});function s(){u()}function l(){u()}function u(){c(),f(),d()}function c(){i.mergedConfig=xn(Mn(i.defaultConfig,!0),t.config||{})}function f(){let{data:h}=i.mergedConfig;const{sort:p}=i.mergedConfig;h=Mn(h,!0),p&&h.sort(({value:g},{value:m})=>g>m?-1:g<m?1:0);const v=Math.max(...h.map(g=>g.value));h=h.map(g=>({...g,percent:v===0?0:g.value/v})),i.mergedConfig.data=h}function d(){const{imgSideLength:h,fontSize:p,data:v}=i.mergedConfig,g=v.length,m=r.value/(g+1),_=a.value-h-p-5,b=a.value-p-5;i.column=v.map((w,S)=>{const{percent:x}=w,C=m*(S+1),T=m*S,k=m*(S+2),A=b-_*x,M=_*x*.6+A,I=`
M${T}, ${b}
Q${C}, ${M} ${C},${A}
M${C},${A}
Q${C}, ${M} ${k},${b}
L${T}, ${b}
Z
`,E=(b+A)/2+p/2;return{...w,d:I,x:C,y:A,textY:E}})}return(h,p)=>(O(),K("div",{ref_key:"conicalColumnChart",ref:n,class:"dv-conical-column-chart"},[(O(),K("svg",{width:y(r),height:y(a)},[(O(!0),K(He,null,ct(y(i).column,(v,g)=>(O(),K("g",{key:g},[W("path",{d:v.d,fill:y(i).mergedConfig.columnColor},null,8,kne),W("text",{fill:y(i).mergedConfig.textColor,x:v.x,y:y(a)-4},$e(v.name),9,Ane),y(i).mergedConfig.img.length?(O(),K("image",{key:0,"xlink:href":y(i).mergedConfig.img[g%y(i).mergedConfig.img.length],width:y(i).mergedConfig.imgSideLength,height:y(i).mergedConfig.imgSideLength,x:v.x-y(i).mergedConfig.imgSideLength/2,y:v.y-y(i).mergedConfig.imgSideLength},null,8,Mne)):be("",!0),y(i).mergedConfig.showValue?(O(),K("text",{key:1,fill:y(i).mergedConfig.textColor,x:v.x,y:v.textY},$e(v.value),9,Pne)):be("",!0)]))),128))],8,Tne))],512))}},VD={install(e){e.component("DvConicalColumnChart",Ene)}},Ine=["id"],Dne=["offset","stop-color"],Lne=["id","x2"],$ne=["offset","stop-color"],Rne=["x","y","rx","ry","stroke-width","stroke","width","height"],One=["stroke-width","stroke-dasharray","stroke","points"],Nne=["stroke","fill","x","y"],Bne={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(e){const t=e,n=po(),r=U(null),a=vt({gradientId1:`percent-pond-gradientId1-${n}`,gradientId2:`percent-pond-gradientId2-${n}`,width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}),i=F(()=>{if(!a.mergedConfig)return 0;const{borderWidth:g}=a.mergedConfig;return a.width-g}),o=F(()=>{if(!a.mergedConfig)return 0;const{borderWidth:g}=a.mergedConfig;return a.height-g}),s=F(()=>{const g=a.height/2;if(!a.mergedConfig)return`0, ${g} 0, ${g}`;const{borderWidth:m,borderGap:_,value:b}=a.mergedConfig,w=(a.width-(m+_)*2)/100*b;return`
${m+_}, ${g}
${m+_+w}, ${g+.001}
`}),l=F(()=>{if(!a.mergedConfig)return 0;const{borderWidth:g,borderGap:m}=a.mergedConfig;return a.height-(g+m)*2}),u=F(()=>{if(!a.mergedConfig)return[];const{colors:g}=a.mergedConfig,m=100/(g.length-1);return g.map((_,b)=>[m*b,_])}),c=F(()=>a.mergedConfig&&a.mergedConfig.localGradient?a.gradientId1:a.gradientId2),f=F(()=>{if(!a.mergedConfig)return"100%";const{value:g}=a.mergedConfig;return`${200-g}%`}),d=F(()=>{if(!a.mergedConfig)return"";const{value:g,formatter:m}=a.mergedConfig;return m.replace("{value}",g)});Ae(()=>t.config,()=>{v()},{deep:!0}),nt(()=>{h()});async function h(){await p(),t.config&&v()}async function p(){await Xe();const{clientWidth:g,clientHeight:m}=r.value;a.width=g,a.height=m}function v(){a.mergedConfig=xn(Mn(a.defaultConfig,!0),t.config||{})}return(g,m)=>(O(),K("div",{ref_key:"percentPond",ref:r,class:"dv-percent-pond"},[(O(),K("svg",null,[W("defs",null,[W("linearGradient",{id:y(a).gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(O(!0),K(He,null,ct(y(u),_=>(O(),K("stop",{key:_[0],offset:`${_[0]}%`,"stop-color":_[1]},null,8,Dne))),128))],8,Ine),W("linearGradient",{id:y(a).gradientId2,x1:"0%",y1:"0%",x2:y(f),y2:"0%"},[(O(!0),K(He,null,ct(y(u),_=>(O(),K("stop",{key:_[0],offset:`${_[0]}%`,"stop-color":_[1]},null,8,$ne))),128))],8,Lne)]),W("rect",{x:y(a).mergedConfig?y(a).mergedConfig.borderWidth/2:"0",y:y(a).mergedConfig?y(a).mergedConfig.borderWidth/2:"0",rx:y(a).mergedConfig?y(a).mergedConfig.borderRadius:"0",ry:y(a).mergedConfig?y(a).mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":y(a).mergedConfig?y(a).mergedConfig.borderWidth:"0",stroke:`url(#${y(a).gradientId1})`,width:y(i)>0?y(i):0,height:y(o)>0?y(o):0},null,8,Rne),W("polyline",{"stroke-width":y(l),"stroke-dasharray":y(a).mergedConfig?y(a).mergedConfig.lineDash.join(","):"0",stroke:`url(#${y(c)})`,points:y(s)},null,8,One),W("text",{stroke:y(a).mergedConfig?y(a).mergedConfig.textColor:"#fff",fill:y(a).mergedConfig?y(a).mergedConfig.textColor:"#fff",x:y(a).width/2,y:y(a).height/2},$e(y(d)),9,Nne)]))],512))}},zD={install(e){e.component("DvPercentPond",Bne)}};function Nz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Fne(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var u_={},Bz={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Bz);var Fn=Bz.exports,HD={},GD={exports:{}},WD={exports:{}},UD={exports:{}},jD;function Zr(){return jD||(jD=1,function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(UD)),UD.exports}var KD={exports:{}},YD;function Vne(){return YD||(YD=1,function(e){var t=Zr().default;function n(r,a){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var o=i.call(r,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(KD)),KD.exports}var qD;function zne(){return qD||(qD=1,function(e){var t=Zr().default,n=Vne();function r(a){var i=n(a,"string");return t(i)=="symbol"?i:String(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(WD)),WD.exports}var XD;function vo(){return XD||(XD=1,function(e){var t=zne();function n(r,a,i){return a=t(a),a in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(GD)),GD.exports}var ZD={exports:{}},JD={exports:{}},QD={exports:{}},eL;function Fz(){return eL||(eL=1,function(e){function t(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=n[a];return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(QD)),QD.exports}var tL;function Hne(){return tL||(tL=1,function(e){var t=Fz();function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(JD)),JD.exports}var nL={exports:{}},rL;function Gne(){return rL||(rL=1,function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(nL)),nL.exports}var aL={exports:{}},iL;function Vz(){return iL||(iL=1,function(e){var t=Fz();function n(r,a){if(r){if(typeof r=="string")return t(r,a);var i=Object.prototype.toString.call(r).slice(8,-1);if(i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set")return Array.from(r);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return t(r,a)}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(aL)),aL.exports}var oL={exports:{}},sL;function Wne(){return sL||(sL=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(oL)),oL.exports}var lL;function kr(){return lL||(lL=1,function(e){var t=Hne(),n=Gne(),r=Vz(),a=Wne();function i(o){return t(o)||n(o)||r(o)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(ZD)),ZD.exports}var uL={exports:{}},cL;function Ug(){return cL||(cL=1,function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(uL)),uL.exports}const jg=Fne(Ste);var fL={},dL={},hL={exports:{}},pL={exports:{}},vL;function Une(){return vL||(vL=1,function(e){function t(n){if(Array.isArray(n))return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(pL)),pL.exports}var gL={exports:{}},mL;function jne(){return mL||(mL=1,function(e){function t(n,r){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var i,o,s,l,u=[],c=!0,f=!1;try{if(s=(a=a.call(n)).next,r===0){if(Object(a)!==a)return;c=!1}else for(;!(c=(i=s.call(a)).done)&&(u.push(i.value),u.length!==r);c=!0);}catch(d){f=!0,o=d}finally{try{if(!c&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(f)throw o}}return u}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gL)),gL.exports}var yL={exports:{}},bL;function Kne(){return bL||(bL=1,function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yL)),yL.exports}var _L;function ma(){return _L||(_L=1,function(e){var t=Une(),n=jne(),r=Vz(),a=Kne();function i(o,s){return t(o)||n(o,s)||r(o,s)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(hL)),hL.exports}var wL;function Yne(){return wL||(wL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.bezierCurveToPolyline=m,e.getBezierCurveLength=_,e.default=void 0;var n=t(ma()),r=t(kr()),a=Math.sqrt,i=Math.pow,o=Math.ceil,s=Math.abs,l=50;function u(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,x=w.length-1,C=w[0],T=w[x][2],k=w.slice(1),A=k.map(function(L,N){var $=N===0?C:k[N-1][2];return c.apply(void 0,[$].concat((0,r.default)(L)))}),M=new Array(x).fill(l),I=p(A,M),E=g(I,A,k,S);return E.segmentPoints.push(T),E}function c(w,S,x,C){return function(T){var k=1-T,A=i(k,3),M=i(k,2),I=i(T,3),E=i(T,2);return[w[0]*A+3*S[0]*T*M+3*x[0]*E*k+C[0]*I,w[1]*A+3*S[1]*T*M+3*x[1]*E*k+C[1]*I]}}function f(w,S){var x=(0,n.default)(w,2),C=x[0],T=x[1],k=(0,n.default)(S,2),A=k[0],M=k[1];return a(i(C-A,2)+i(T-M,2))}function d(w){return w.reduce(function(S,x){return S+x},0)}function h(w){return w.map(function(S,x){return new Array(S.length-1).fill(0).map(function(C,T){return f(S[T],S[T+1])})})}function p(w,S){return w.map(function(x,C){var T=1/S[C];return new Array(S[C]).fill("").map(function(k,A){return x(A*T)})})}function v(w,S){return w.map(function(x){return x.map(function(C){return s(C-S)})}).map(function(x){return d(x)}).reduce(function(x,C){return x+C},0)}function g(w,S,x,C){var T=4,k=1,A=function(){var I=w.reduce(function(G,X){return G+X.length},0);w.forEach(function(G,X){return G.push(x[X][2])});var E=h(w),L=E.reduce(function(G,X){return G+X.length},0),N=E.map(function(G){return d(G)}),$=d(N),P=$/L,R=v(E,P);if(R<=C)return"break";I=o(P/C*I*1.1);var D=N.map(function(G){return o(G/$*I)});w=p(S,D),I=w.reduce(function(G,X){return G+X.length},0);var B=JSON.parse(JSON.stringify(w));B.forEach(function(G,X){return G.push(x[X][2])}),E=h(B),L=E.reduce(function(G,X){return G+X.length},0),N=E.map(function(G){return d(G)}),$=d(N),P=$/L;var H=1/I/10;S.forEach(function(G,X){for(var ue=D[X],ie=new Array(ue).fill("").map(function(re,z){return z/D[X]}),le=0;le<T;le++)for(var Q=h([w[X]])[0],J=Q.map(function(re){return re-P}),se=0,he=0;he<ue;he++){if(he===0)return;se+=J[he-1],ie[he]-=H*se,ie[he]>1&&(ie[he]=1),ie[he]<0&&(ie[he]=0),w[X][he]=G(ie[he])}}),T*=4,k++};do{var M=A();if(M==="break")break}while(T<=1025);return w=w.reduce(function(I,E){return I.concat(E)},[]),{segmentPoints:w,cycles:k,rounds:T}}function m(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!w)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(w instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if(typeof S!="number")return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var x=u(w,S),C=x.segmentPoints;return C}function _(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;if(!w)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(w instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if(typeof S!="number")return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var x=u(w,S),C=x.segmentPoints,T=h([C])[0],k=d(T);return k}var b=m;e.default=b}(dL)),dL}var SL={},xL;function qne(){return xL||(xL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(ma()),r=t(kr());function a(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.25,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25;if(!(u instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(u.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var h=u[0],p=u.length-1,v=new Array(p).fill(0).map(function(g,m){return[].concat((0,r.default)(i(u,m,c,f,d)),[u[m+1]])});return c&&o(v,h),v.unshift(u[0]),v}function i(u,c){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.25,p=u.length;if(!(p<3||c>=p)){var v=c-1;v<0&&(v=f?p+v:0);var g=c+1;g>=p&&(g=f?g-p:p-1);var m=c+2;m>=p&&(m=f?m-p:p-1);var _=u[v],b=u[c],w=u[g],S=u[m];return[[b[0]+d*(w[0]-_[0]),b[1]+d*(w[1]-_[1])],[w[0]-h*(S[0]-b[0]),w[1]-h*(S[1]-b[1])]]}}function o(u,c){var f=u[0],d=u.slice(-1)[0];return u.push([s(d[1],d[2]),s(f[0],c),c]),u}function s(u,c){var f=(0,n.default)(u,2),d=f[0],h=f[1],p=(0,n.default)(c,2),v=p[0],g=p[1],m=v-d,_=g-h;return[v+m,g+_]}var l=a;e.default=l}(SL)),SL}var CL;function YA(){return CL||(CL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"bezierCurveToPolyline",{enumerable:!0,get:function(){return n.bezierCurveToPolyline}}),Object.defineProperty(e,"getBezierCurveLength",{enumerable:!0,get:function(){return n.getBezierCurveLength}}),Object.defineProperty(e,"polylineToBezierCurve",{enumerable:!0,get:function(){return r.default}}),e.default=void 0;var n=Yne(),r=t(qne()),a={bezierCurveToPolyline:n.bezierCurveToPolyline,getBezierCurveLength:n.getBezierCurveLength,polylineToBezierCurve:r.default};e.default=a}(fL)),fL}var TL={},kL;function Fr(){return kL||(kL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.deepClone=d,e.eliminateBlur=h,e.checkPointIsInCircle=p,e.getTwoPointDistance=v,e.checkPointIsInPolygon=g,e.checkPointIsInSector=m,e.checkPointIsNearPolyline=b,e.checkPointIsInRect=w,e.getRotatePointPos=S,e.getScalePointPos=x,e.getTranslatePointPos=C,e.getDistanceBetweenPointAndLine=T,e.getCircleRadianPoint=k,e.getRegularPolygonPoints=A,e.default=void 0;var n=t(kr()),r=t(ma()),a=t(Zr()),i=Math.abs,o=Math.sqrt,s=Math.sin,l=Math.cos,u=Math.max,c=Math.min,f=Math.PI;function d(I){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!I)return I;var L=JSON.parse,N=JSON.stringify;if(!E)return L(N(I));var $=I instanceof Array?[]:{};if(I&&(0,a.default)(I)==="object")for(var P in I)I.hasOwnProperty(P)&&(I[P]&&(0,a.default)(I[P])==="object"?$[P]=d(I[P],!0):$[P]=I[P]);return $}function h(I){return I.map(function(E){var L=(0,r.default)(E,2),N=L[0],$=L[1];return[parseInt(N)+.5,parseInt($)+.5]})}function p(I,E,L,N){return v(I,[E,L])<=N}function v(I,E){var L=(0,r.default)(I,2),N=L[0],$=L[1],P=(0,r.default)(E,2),R=P[0],D=P[1],B=i(N-R),H=i($-D);return o(B*B+H*H)}function g(I,E){for(var L=0,N=(0,r.default)(I,2),$=N[0],P=N[1],R=E.length,D=1,B=E[0];D<=R;D++){var H=E[D%R];if($>c(B[0],H[0])&&$<=u(B[0],H[0])&&P<=u(B[1],H[1])&&B[0]!==H[0]){var G=($-B[0])*(H[1]-B[1])/(H[0]-B[0])+B[1];(B[1]===H[1]||P<=G)&&L++}B=H}return L%2===1}function m(I,E,L,N,$,P,R){if(!I||v(I,[E,L])>N)return!1;if(!R){var D=d([P,$]),B=(0,r.default)(D,2);$=B[0],P=B[1]}var H=$>P;if(H){var G=[P,$];$=G[0],P=G[1]}var X=P-$;if(X>=f*2)return!0;var ue=(0,r.default)(I,2),ie=ue[0],le=ue[1],Q=k(E,L,N,$),J=(0,r.default)(Q,2),se=J[0],he=J[1],re=k(E,L,N,P),z=(0,r.default)(re,2),Y=z[0],ee=z[1],oe=[ie-E,le-L],ve=[se-E,he-L],Z=[Y-E,ee-L],ce=X>f;if(ce){var q=d([Z,ve]),ae=(0,r.default)(q,2);ve=ae[0],Z=ae[1]}var ne=_(ve,oe)&&!_(Z,oe);return ce&&(ne=!ne),H&&(ne=!ne),ne}function _(I,E){var L=(0,r.default)(I,2),N=L[0],$=L[1],P=(0,r.default)(E,2),R=P[0],D=P[1];return-$*R+N*D>0}function b(I,E,L){var N=L/2,$=E.map(function(D){var B=(0,r.default)(D,2),H=B[0],G=B[1];return[H,G-N]}),P=E.map(function(D){var B=(0,r.default)(D,2),H=B[0],G=B[1];return[H,G+N]}),R=[].concat((0,n.default)($),(0,n.default)(P.reverse()));return g(I,R)}function w(I,E,L,N,$){var P=(0,r.default)(I,2),R=P[0],D=P[1];return!(R<E||D<L||R>E+N||D>L+$)}function S(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,E=arguments.length>1?arguments[1]:void 0,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!E)return!1;if(I%360===0)return E;var N=(0,r.default)(E,2),$=N[0],P=N[1],R=(0,r.default)(L,2),D=R[0],B=R[1];return I*=f/180,[($-D)*l(I)-(P-B)*s(I)+D,($-D)*s(I)+(P-B)*l(I)+B]}function x(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[1,1],E=arguments.length>1?arguments[1]:void 0,L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0,0];if(!E)return!1;if(I===1)return E;var N=(0,r.default)(E,2),$=N[0],P=N[1],R=(0,r.default)(L,2),D=R[0],B=R[1],H=(0,r.default)(I,2),G=H[0],X=H[1],ue=$-D,ie=P-B;return[ue*G+D,ie*X+B]}function C(I,E){if(!I||!E)return!1;var L=(0,r.default)(E,2),N=L[0],$=L[1],P=(0,r.default)(I,2),R=P[0],D=P[1];return[N+R,$+D]}function T(I,E,L){if(!I||!E||!L)return!1;var N=(0,r.default)(I,2),$=N[0],P=N[1],R=(0,r.default)(E,2),D=R[0],B=R[1],H=(0,r.default)(L,2),G=H[0],X=H[1],ue=X-B,ie=D-G,le=B*(G-D)-D*(X-B),Q=i(ue*$+ie*P+le),J=o(ue*ue+ie*ie);return Q/J}function k(I,E,L,N){return[I+l(N)*L,E+s(N)*L]}function A(I,E,L,N){var $=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f*-.5,P=f*2/N,R=new Array(N).fill("").map(function(D,B){return B*P+$});return R.map(function(D){return k(I,E,L,D)})}var M={deepClone:d,eliminateBlur:h,checkPointIsInCircle:p,checkPointIsInPolygon:g,checkPointIsInSector:m,checkPointIsNearPolyline:b,getTwoPointDistance:v,getRotatePointPos:S,getScalePointPos:x,getTranslatePointPos:C,getCircleRadianPoint:k,getRegularPolygonPoints:A,getDistanceBetweenPointAndLine:T};e.default=M}(TL)),TL}var AL={},ML={},PL;function Xne(){return PL||(PL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.drawPolylinePath=r,e.drawBezierCurvePath=a,e.default=void 0;var n=t(kr());function r(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!o||s.length<2)return!1;l&&o.beginPath(),s.forEach(function(c,f){return c&&(f===0?o.moveTo.apply(o,(0,n.default)(c)):o.lineTo.apply(o,(0,n.default)(c)))}),u&&o.closePath()}function a(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o||!s)return!1;u&&o.beginPath(),l&&o.moveTo.apply(o,(0,n.default)(l)),s.forEach(function(f){return f&&o.bezierCurveTo.apply(o,(0,n.default)(f[0]).concat((0,n.default)(f[1]),(0,n.default)(f[2])))}),c&&o.closePath()}var i={drawPolylinePath:r,drawBezierCurvePath:a};e.default=i}(ML)),ML}var EL;function qA(){return EL||(EL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.extendNewGraph=x,e.default=e.text=e.bezierCurve=e.smoothline=e.polyline=e.regPolygon=e.sector=e.arc=e.ring=e.rect=e.ellipse=e.circle=void 0;var n=t(kr()),r=t(ma()),a=t(YA()),i=Fr(),o=Xne(),s=a.default.polylineToBezierCurve,l=a.default.bezierCurveToPolyline,u={shape:{rx:0,ry:0,r:0},validator:function(C){var T=C.shape,k=T.rx,A=T.ry,M=T.r;return typeof k!="number"||typeof A!="number"||typeof M!="number"?(console.error("Circle shape configuration is abnormal!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape;k.beginPath();var M=A.rx,I=A.ry,E=A.r;k.arc(M,I,E>0?E:.01,0,Math.PI*2),k.fill(),k.stroke(),k.closePath()},hoverCheck:function(C,T){var k=T.shape,A=k.rx,M=k.ry,I=k.r;return(0,i.checkPointIsInCircle)(C,A,M,I)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry;A.graphCenter=[M,I]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape;this.attr("shape",{rx:M.rx+k,ry:M.ry+A})}};e.circle=u;var c={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(C){var T=C.shape,k=T.rx,A=T.ry,M=T.hr,I=T.vr;return typeof k!="number"||typeof A!="number"||typeof M!="number"||typeof I!="number"?(console.error("Ellipse shape configuration is abnormal!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape;k.beginPath();var M=A.rx,I=A.ry,E=A.hr,L=A.vr;k.ellipse(M,I,E>0?E:.01,L>0?L:.01,0,0,Math.PI*2),k.fill(),k.stroke(),k.closePath()},hoverCheck:function(C,T){var k=T.shape,A=k.rx,M=k.ry,I=k.hr,E=k.vr,L=Math.max(I,E),N=Math.min(I,E),$=Math.sqrt(L*L-N*N),P=[A-$,M],R=[A+$,M],D=(0,i.getTwoPointDistance)(C,P)+(0,i.getTwoPointDistance)(C,R);return D<=2*L},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry;A.graphCenter=[M,I]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape;this.attr("shape",{rx:M.rx+k,ry:M.ry+A})}};e.ellipse=c;var f={shape:{x:0,y:0,w:0,h:0},validator:function(C){var T=C.shape,k=T.x,A=T.y,M=T.w,I=T.h;return typeof k!="number"||typeof A!="number"||typeof M!="number"||typeof I!="number"?(console.error("Rect shape configuration is abnormal!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape;k.beginPath();var M=A.x,I=A.y,E=A.w,L=A.h;k.rect(M,I,E,L),k.fill(),k.stroke(),k.closePath()},hoverCheck:function(C,T){var k=T.shape,A=k.x,M=k.y,I=k.w,E=k.h;return(0,i.checkPointIsInRect)(C,A,M,I,E)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.x,I=k.y,E=k.w,L=k.h;A.graphCenter=[M+E/2,I+L/2]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape;this.attr("shape",{x:M.x+k,y:M.y+A})}};e.rect=f;var d={shape:{rx:0,ry:0,r:0},validator:function(C){var T=C.shape,k=T.rx,A=T.ry,M=T.r;return typeof k!="number"||typeof A!="number"||typeof M!="number"?(console.error("Ring shape configuration is abnormal!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape;k.beginPath();var M=A.rx,I=A.ry,E=A.r;k.arc(M,I,E>0?E:.01,0,Math.PI*2),k.stroke(),k.closePath()},hoverCheck:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry,E=k.r,L=A.lineWidth,N=L/2,$=E-N,P=E+N,R=(0,i.getTwoPointDistance)(C,[M,I]);return R>=$&&R<=P},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry;A.graphCenter=[M,I]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape;this.attr("shape",{rx:M.rx+k,ry:M.ry+A})}};e.ring=d;var h={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(C){var T=C.shape,k=["rx","ry","r","startAngle","endAngle"];return k.find(function(A){return typeof T[A]!="number"})?(console.error("Arc shape configuration is abnormal!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape;k.beginPath();var M=A.rx,I=A.ry,E=A.r,L=A.startAngle,N=A.endAngle,$=A.clockWise;k.arc(M,I,E>0?E:.001,L,N,!$),k.stroke(),k.closePath()},hoverCheck:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry,E=k.r,L=k.startAngle,N=k.endAngle,$=k.clockWise,P=A.lineWidth,R=P/2,D=E-R,B=E+R;return!(0,i.checkPointIsInSector)(C,M,I,D,L,N,$)&&(0,i.checkPointIsInSector)(C,M,I,B,L,N,$)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry;A.graphCenter=[M,I]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape;this.attr("shape",{rx:M.rx+k,ry:M.ry+A})}};e.arc=h;var p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(C){var T=C.shape,k=["rx","ry","r","startAngle","endAngle"];return k.find(function(A){return typeof T[A]!="number"})?(console.error("Sector shape configuration is abnormal!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape;k.beginPath();var M=A.rx,I=A.ry,E=A.r,L=A.startAngle,N=A.endAngle,$=A.clockWise;k.arc(M,I,E>0?E:.01,L,N,!$),k.lineTo(M,I),k.closePath(),k.stroke(),k.fill()},hoverCheck:function(C,T){var k=T.shape,A=k.rx,M=k.ry,I=k.r,E=k.startAngle,L=k.endAngle,N=k.clockWise;return(0,i.checkPointIsInSector)(C,A,M,I,E,L,N)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry;A.graphCenter=[M,I]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape,I=M.rx,E=M.ry;this.attr("shape",{rx:I+k,ry:E+A})}};e.sector=p;var v={shape:{rx:0,ry:0,r:0,side:0},validator:function(C){var T=C.shape,k=T.side,A=["rx","ry","r","side"];return A.find(function(M){return typeof T[M]!="number"})?(console.error("RegPolygon shape configuration is abnormal!"),!1):k<3?(console.error("RegPolygon at least trigon!"),!1):!0},draw:function(C,T){var k=C.ctx,A=T.shape,M=T.cache;k.beginPath();var I=A.rx,E=A.ry,L=A.r,N=A.side;if(!M.points||M.rx!==I||M.ry!==E||M.r!==L||M.side!==N){var $=(0,i.getRegularPolygonPoints)(I,E,L,N);Object.assign(M,{points:$,rx:I,ry:E,r:L,side:N})}var P=M.points;(0,o.drawPolylinePath)(k,P),k.closePath(),k.stroke(),k.fill()},hoverCheck:function(C,T){var k=T.cache,A=k.points;return(0,i.checkPointIsInPolygon)(C,A)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.rx,I=k.ry;A.graphCenter=[M,I]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape,I=T.cache,E=M.rx,L=M.ry;I.rx+=k,I.ry+=A,this.attr("shape",{rx:E+k,ry:L+A}),I.points=I.points.map(function(N){var $=(0,r.default)(N,2),P=$[0],R=$[1];return[P+k,R+A]})}};e.regPolygon=v;var g={shape:{points:[],close:!1},validator:function(C){var T=C.shape,k=T.points;return k instanceof Array?!0:(console.error("Polyline points should be an array!"),!1)},draw:function(C,T){var k=C.ctx,A=T.shape,M=T.style.lineWidth;k.beginPath();var I=A.points,E=A.close;M===1&&(I=(0,i.eliminateBlur)(I)),(0,o.drawPolylinePath)(k,I),E&&(k.closePath(),k.fill()),k.stroke()},hoverCheck:function(C,T){var k=T.shape,A=T.style,M=k.points,I=k.close,E=A.lineWidth;return I?(0,i.checkPointIsInPolygon)(C,M):(0,i.checkPointIsNearPolyline)(C,M,E)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.points;A.graphCenter=M[0]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape,I=M.points,E=I.map(function(L){var N=(0,r.default)(L,2),$=N[0],P=N[1];return[$+k,P+A]});this.attr("shape",{points:E})}};e.polyline=g;var m={shape:{points:[],close:!1},validator:function(C){var T=C.shape,k=T.points;return k instanceof Array?!0:(console.error("Smoothline points should be an array!"),!1)},draw:function(C,T){var k=C.ctx,A=T.shape,M=T.cache,I=A.points,E=A.close;if(!M.points||M.points.toString()!==I.toString()){var L=s(I,E),N=l(L);Object.assign(M,{points:(0,i.deepClone)(I,!0),bezierCurve:L,hoverPoints:N})}var $=M.bezierCurve;k.beginPath(),(0,o.drawBezierCurvePath)(k,$.slice(1),$[0]),E&&(k.closePath(),k.fill()),k.stroke()},hoverCheck:function(C,T){var k=T.cache,A=T.shape,M=T.style,I=k.hoverPoints,E=A.close,L=M.lineWidth;return E?(0,i.checkPointIsInPolygon)(C,I):(0,i.checkPointIsNearPolyline)(C,I,L)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.points;A.graphCenter=M[0]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape,I=T.cache,E=M.points,L=E.map(function(D){var B=(0,r.default)(D,2),H=B[0],G=B[1];return[H+k,G+A]});I.points=L;var N=(0,r.default)(I.bezierCurve[0],2),$=N[0],P=N[1],R=I.bezierCurve.slice(1);I.bezierCurve=[[$+k,P+A]].concat((0,n.default)(R.map(function(D){return D.map(function(B){var H=(0,r.default)(B,2),G=H[0],X=H[1];return[G+k,X+A]})}))),I.hoverPoints=I.hoverPoints.map(function(D){var B=(0,r.default)(D,2),H=B[0],G=B[1];return[H+k,G+A]}),this.attr("shape",{points:L})}};e.smoothline=m;var _={shape:{points:[],close:!1},validator:function(C){var T=C.shape,k=T.points;return k instanceof Array?!0:(console.error("BezierCurve points should be an array!"),!1)},draw:function(C,T){var k=C.ctx,A=T.shape,M=T.cache,I=A.points,E=A.close;if(!M.points||M.points.toString()!==I.toString()){var L=l(I,20);Object.assign(M,{points:(0,i.deepClone)(I,!0),hoverPoints:L})}k.beginPath(),(0,o.drawBezierCurvePath)(k,I.slice(1),I[0]),E&&(k.closePath(),k.fill()),k.stroke()},hoverCheck:function(C,T){var k=T.cache,A=T.shape,M=T.style,I=k.hoverPoints,E=A.close,L=M.lineWidth;return E?(0,i.checkPointIsInPolygon)(C,I):(0,i.checkPointIsNearPolyline)(C,I,L)},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.points;A.graphCenter=M[0]},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape,I=T.cache,E=M.points,L=(0,r.default)(E[0],2),N=L[0],$=L[1],P=E.slice(1),R=[[N+k,$+A]].concat((0,n.default)(P.map(function(D){return D.map(function(B){var H=(0,r.default)(B,2),G=H[0],X=H[1];return[G+k,X+A]})})));I.points=R,I.hoverPoints=I.hoverPoints.map(function(D){var B=(0,r.default)(D,2),H=B[0],G=B[1];return[H+k,G+A]}),this.attr("shape",{points:R})}};e.bezierCurve=_;var b={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(C){var T=C.shape,k=T.content,A=T.position,M=T.rowGap;return typeof k!="string"?(console.error("Text content should be a string!"),!1):A instanceof Array?typeof M!="number"?(console.error("Text rowGap should be a number!"),!1):!0:(console.error("Text position should be an array!"),!1)},draw:function(C,T){var k=C.ctx,A=T.shape,M=A.content,I=A.position,E=A.maxWidth,L=A.rowGap,N=k.textBaseline,$=k.font,P=parseInt($.replace(/\D/g,"")),R=I,D=(0,r.default)(R,2),B=D[0],H=D[1];M=M.split(`
`);var G=M.length,X=P+L,ue=G*X-L,ie=0;N==="middle"&&(ie=ue/2,H+=P/2),N==="bottom"&&(ie=ue,H+=P),I=new Array(G).fill(0).map(function(le,Q){return[B,H+Q*X-ie]}),k.beginPath(),M.forEach(function(le,Q){k.fillText.apply(k,[le].concat((0,n.default)(I[Q]),[E])),k.strokeText.apply(k,[le].concat((0,n.default)(I[Q]),[E]))}),k.closePath()},hoverCheck:function(C,T){return T.shape,T.style,!1},setGraphCenter:function(C,T){var k=T.shape,A=T.style,M=k.position;A.graphCenter=(0,n.default)(M)},move:function(C,T){var k=C.movementX,A=C.movementY,M=T.shape,I=(0,r.default)(M.position,2),E=I[0],L=I[1];this.attr("shape",{position:[E+k,L+A]})}};e.text=b;var w=new Map([["circle",u],["ellipse",c],["rect",f],["ring",d],["arc",h],["sector",p],["regPolygon",v],["polyline",g],["smoothline",m],["bezierCurve",_],["text",b]]),S=w;e.default=S;function x(C,T){if(!C||!T){console.error("ExtendNewGraph Missing Parameters!");return}if(!T.shape){console.error("Required attribute of shape to extendNewGraph!");return}if(!T.validator){console.error("Required function of validator to extendNewGraph!");return}if(!T.draw){console.error("Required function of draw to extendNewGraph!");return}w.set(C,T)}}(AL)),AL}var IL={},DL={exports:{}},LL;function Zne(){return LL||(LL=1,function(e){var t=Zr().default;function n(){e.exports=n=function(){return a},e.exports.__esModule=!0,e.exports.default=e.exports;var r,a={},i=Object.prototype,o=i.hasOwnProperty,s=Object.defineProperty||function(D,B,H){D[B]=H.value},l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",f=l.toStringTag||"@@toStringTag";function d(D,B,H){return Object.defineProperty(D,B,{value:H,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{d({},"")}catch{d=function(D,B,H){return D[B]=H}}function h(D,B,H,G){var X=B&&B.prototype instanceof w?B:w,ue=Object.create(X.prototype),ie=new P(G||[]);return s(ue,"_invoke",{value:E(D,H,ie)}),ue}function p(D,B,H){try{return{type:"normal",arg:D.call(B,H)}}catch(G){return{type:"throw",arg:G}}}a.wrap=h;var v="suspendedStart",g="suspendedYield",m="executing",_="completed",b={};function w(){}function S(){}function x(){}var C={};d(C,u,function(){return this});var T=Object.getPrototypeOf,k=T&&T(T(R([])));k&&k!==i&&o.call(k,u)&&(C=k);var A=x.prototype=w.prototype=Object.create(C);function M(D){["next","throw","return"].forEach(function(B){d(D,B,function(H){return this._invoke(B,H)})})}function I(D,B){function H(X,ue,ie,le){var Q=p(D[X],D,ue);if(Q.type!=="throw"){var J=Q.arg,se=J.value;return se&&t(se)=="object"&&o.call(se,"__await")?B.resolve(se.__await).then(function(he){H("next",he,ie,le)},function(he){H("throw",he,ie,le)}):B.resolve(se).then(function(he){J.value=he,ie(J)},function(he){return H("throw",he,ie,le)})}le(Q.arg)}var G;s(this,"_invoke",{value:function(X,ue){function ie(){return new B(function(le,Q){H(X,ue,le,Q)})}return G=G?G.then(ie,ie):ie()}})}function E(D,B,H){var G=v;return function(X,ue){if(G===m)throw new Error("Generator is already running");if(G===_){if(X==="throw")throw ue;return{value:r,done:!0}}for(H.method=X,H.arg=ue;;){var ie=H.delegate;if(ie){var le=L(ie,H);if(le){if(le===b)continue;return le}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(G===v)throw G=_,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);G=m;var Q=p(D,B,H);if(Q.type==="normal"){if(G=H.done?_:g,Q.arg===b)continue;return{value:Q.arg,done:H.done}}Q.type==="throw"&&(G=_,H.method="throw",H.arg=Q.arg)}}}function L(D,B){var H=B.method,G=D.iterator[H];if(G===r)return B.delegate=null,H==="throw"&&D.iterator.return&&(B.method="return",B.arg=r,L(D,B),B.method==="throw")||H!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+H+"' method")),b;var X=p(G,D.iterator,B.arg);if(X.type==="throw")return B.method="throw",B.arg=X.arg,B.delegate=null,b;var ue=X.arg;return ue?ue.done?(B[D.resultName]=ue.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=r),B.delegate=null,b):ue:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,b)}function N(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function $(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function P(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(N,this),this.reset(!0)}function R(D){if(D||D===""){var B=D[u];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var H=-1,G=function X(){for(;++H<D.length;)if(o.call(D,H))return X.value=D[H],X.done=!1,X;return X.value=r,X.done=!0,X};return G.next=G}}throw new TypeError(t(D)+" is not iterable")}return S.prototype=x,s(A,"constructor",{value:x,configurable:!0}),s(x,"constructor",{value:S,configurable:!0}),S.displayName=d(x,f,"GeneratorFunction"),a.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return!!B&&(B===S||(B.displayName||B.name)==="GeneratorFunction")},a.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,x):(D.__proto__=x,d(D,f,"GeneratorFunction")),D.prototype=Object.create(A),D},a.awrap=function(D){return{__await:D}},M(I.prototype),d(I.prototype,c,function(){return this}),a.AsyncIterator=I,a.async=function(D,B,H,G,X){X===void 0&&(X=Promise);var ue=new I(h(D,B,H,G),X);return a.isGeneratorFunction(B)?ue:ue.next().then(function(ie){return ie.done?ie.value:ue.next()})},M(A),d(A,f,"Generator"),d(A,u,function(){return this}),d(A,"toString",function(){return"[object Generator]"}),a.keys=function(D){var B=Object(D),H=[];for(var G in B)H.push(G);return H.reverse(),function X(){for(;H.length;){var ue=H.pop();if(ue in B)return X.value=ue,X.done=!1,X}return X.done=!0,X}},a.values=R,P.prototype={constructor:P,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach($),!D)for(var B in this)B.charAt(0)==="t"&&o.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=r)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var B=this;function H(Q,J){return ue.type="throw",ue.arg=D,B.next=Q,J&&(B.method="next",B.arg=r),!!J}for(var G=this.tryEntries.length-1;G>=0;--G){var X=this.tryEntries[G],ue=X.completion;if(X.tryLoc==="root")return H("end");if(X.tryLoc<=this.prev){var ie=o.call(X,"catchLoc"),le=o.call(X,"finallyLoc");if(ie&&le){if(this.prev<X.catchLoc)return H(X.catchLoc,!0);if(this.prev<X.finallyLoc)return H(X.finallyLoc)}else if(ie){if(this.prev<X.catchLoc)return H(X.catchLoc,!0)}else{if(!le)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return H(X.finallyLoc)}}}},abrupt:function(D,B){for(var H=this.tryEntries.length-1;H>=0;--H){var G=this.tryEntries[H];if(G.tryLoc<=this.prev&&o.call(G,"finallyLoc")&&this.prev<G.finallyLoc){var X=G;break}}X&&(D==="break"||D==="continue")&&X.tryLoc<=B&&B<=X.finallyLoc&&(X=null);var ue=X?X.completion:{};return ue.type=D,ue.arg=B,X?(this.method="next",this.next=X.finallyLoc,b):this.complete(ue)},complete:function(D,B){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&B&&(this.next=B),b},finish:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.finallyLoc===D)return this.complete(H.completion,H.afterLoc),$(H),b}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var H=this.tryEntries[B];if(H.tryLoc===D){var G=H.completion;if(G.type==="throw"){var X=G.arg;$(H)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,H){return this.delegate={iterator:R(D),resultName:B,nextLoc:H},this.method==="next"&&(this.arg=r),b}},a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(DL)),DL.exports}var Uw,$L;function Jne(){if($L)return Uw;$L=1;var e=Zne()();Uw=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return Uw}var RL={exports:{}},OL;function Qne(){return OL||(OL=1,function(e){function t(r,a,i,o,s,l,u){try{var c=r[l](u),f=c.value}catch(d){i(d);return}c.done?a(f):Promise.resolve(f).then(o,s)}function n(r){return function(){var a=this,i=arguments;return new Promise(function(o,s){var l=r.apply(a,i);function u(f){t(l,o,s,u,c,"next",f)}function c(f){t(l,o,s,u,c,"throw",f)}u(void 0)})}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(RL)),RL.exports}var NL={},BL;function ere(){return BL||(BL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(kr()),r=t(Ug()),a=jg,i=Fr(),o=function h(p){(0,r.default)(this,h),this.colorProcessor(p);var v={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,v,p)};e.default=o,o.prototype.colorProcessor=function(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=p?a.getColorFromRgbValue:a.getRgbaValue,g=["fill","stroke","shadowColor"],m=Object.keys(h),_=m.filter(function(x){return g.find(function(C){return C===x})});_.forEach(function(x){return h[x]=v(h[x])});var b=h.gradientColor,w=h.colors;if(b&&(h.gradientColor=b.map(function(x){return v(x)})),w){var S=Object.keys(w);S.forEach(function(x){return w[x]=v(w[x])})}},o.prototype.initStyle=function(h){s(h,this),u(h,this),c(h,this)};function s(h,p){h.save();var v=p.graphCenter,g=p.rotate,m=p.scale,_=p.translate;v instanceof Array&&(h.translate.apply(h,(0,n.default)(v)),g&&h.rotate(g*Math.PI/180),m instanceof Array&&h.scale.apply(h,(0,n.default)(m)),_&&h.translate.apply(h,(0,n.default)(_)),h.translate(-v[0],-v[1]))}var l=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function u(h,p){var v=p.fill,g=p.stroke,m=p.shadowColor,_=p.opacity;l.forEach(function(A){(A||typeof A=="number")&&(h[A]=p[A])}),v=(0,n.default)(v),g=(0,n.default)(g),m=(0,n.default)(m),v[3]*=_,g[3]*=_,m[3]*=_,h.fillStyle=(0,a.getColorFromRgbValue)(v),h.strokeStyle=(0,a.getColorFromRgbValue)(g),h.shadowColor=(0,a.getColorFromRgbValue)(m);var b=p.lineDash,w=p.shadowBlur;b&&(b=b.map(function(A){return A>=0?A:0}),h.setLineDash(b)),typeof w=="number"&&(h.shadowBlur=w>0?w:.001);var S=p.fontStyle,x=p.fontVarient,C=p.fontWeight,T=p.fontSize,k=p.fontFamily;h.font=S+" "+x+" "+C+" "+T+"px "+k}function c(h,p){if(f(p)){var v=p.gradientColor,g=p.gradientParams,m=p.gradientType,_=p.gradientWith,b=p.gradientStops,w=p.opacity;v=v.map(function(x){var C=x[3]*w,T=(0,n.default)(x);return T[3]=C,T}),v=v.map(function(x){return(0,a.getColorFromRgbValue)(x)}),b==="auto"&&(b=d(v));var S=h["create".concat(m.slice(0,1).toUpperCase()+m.slice(1),"Gradient")].apply(h,(0,n.default)(g));b.forEach(function(x,C){return S.addColorStop(x,v[C])}),h["".concat(_,"Style")]=S}}function f(h){var p=h.gradientColor,v=h.gradientParams,g=h.gradientType,m=h.gradientWith,_=h.gradientStops;if(!p||!v)return!1;if(p.length===1)return console.warn("The gradient needs to provide at least two colors"),!1;if(g!=="linear"&&g!=="radial")return console.warn("GradientType only supports linear or radial, current value is "+g),!1;var b=v.length;return g==="linear"&&b!==4||g==="radial"&&b!==6?(console.warn("The expected length of gradientParams is "+(g==="linear"?"4":"6")),!1):m!=="fill"&&m!=="stroke"?(console.warn("GradientWith only supports fill or stroke, current value is "+m),!1):_!=="auto"&&!(_ instanceof Array)?(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+_),!1):!0}function d(h){var p=1/(h.length-1);return h.map(function(v,g){return p*g})}o.prototype.restoreTransform=function(h){h.restore()},o.prototype.update=function(h){this.colorProcessor(h),Object.assign(this,h)},o.prototype.getStyle=function(){var h=(0,i.deepClone)(this,!0);return this.colorProcessor(h,!0),h}}(NL)),NL}var FL={},VL={},zL;function tre(){return zL||(zL=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.easeInOutBounce=e.easeOutBounce=e.easeInBounce=e.easeInOutElastic=e.easeOutElastic=e.easeInElastic=e.easeInOutBack=e.easeOutBack=e.easeInBack=e.easeInOutQuint=e.easeOutQuint=e.easeInQuint=e.easeInOutQuart=e.easeOutQuart=e.easeInQuart=e.easeInOutCubic=e.easeOutCubic=e.easeInCubic=e.easeInOutQuad=e.easeOutQuad=e.easeInQuad=e.easeInOutSine=e.easeOutSine=e.easeInSine=e.linear=void 0;var t=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];e.linear=t;var n=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];e.easeInSine=n;var r=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];e.easeOutSine=r;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];e.easeInOutSine=a;var i=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];e.easeInQuad=i;var o=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];e.easeOutQuad=o;var s=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];e.easeInOutQuad=s;var l=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];e.easeInCubic=l;var u=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];e.easeOutCubic=u;var c=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];e.easeInOutCubic=c;var f=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];e.easeInQuart=f;var d=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];e.easeOutQuart=d;var h=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];e.easeInOutQuart=h;var p=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];e.easeInQuint=p;var v=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];e.easeOutQuint=v;var g=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];e.easeInOutQuint=g;var m=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];e.easeInBack=m;var _=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];e.easeOutBack=_;var b=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];e.easeInOutBack=b;var w=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];e.easeInElastic=w;var S=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];e.easeOutElastic=S;var x=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];e.easeInOutElastic=x;var C=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];e.easeInBounce=C;var T=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];e.easeOutBounce=T;var k=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];e.easeInOutBounce=k;var A=new Map([["linear",t],["easeInSine",n],["easeOutSine",r],["easeInOutSine",a],["easeInQuad",i],["easeOutQuad",o],["easeInOutQuad",s],["easeInCubic",l],["easeOutCubic",u],["easeInOutCubic",c],["easeInQuart",f],["easeOutQuart",d],["easeInOutQuart",h],["easeInQuint",p],["easeOutQuint",v],["easeInOutQuint",g],["easeInBack",m],["easeOutBack",_],["easeInOutBack",b],["easeInElastic",w],["easeOutElastic",S],["easeInOutElastic",x],["easeInBounce",C],["easeOutBounce",T],["easeInOutBounce",k]]);e.default=A}(VL)),VL}var HL;function nre(){return HL||(HL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.transition=o,e.injectNewCurve=b,e.default=void 0;var n=t(ma()),r=t(Zr()),a=t(tre()),i="linear";function o(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!s.apply(void 0,arguments))return!1;try{var A=l(S),M=u(A,T);return!k||typeof C=="number"?p(x,C,M):_(x,C,M)}catch{return console.warn("Transition parameter may be abnormal!"),[C]}}function s(S){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:30;if(!S||x===!1||C===!1||!T)return console.error("transition: Missing Parameters!"),!1;if((0,r.default)(x)!==(0,r.default)(C))return console.error("transition: Inconsistent Status Types!"),!1;var k=(0,r.default)(C);return k==="string"||k==="boolean"||!S.length?(console.error("transition: Unsupported Data Type of State!"),!1):(!a.default.has(S)&&!(S instanceof Array)&&console.warn("transition: Transition curve not found, default curve will be used!"),!0)}function l(S){var x="";return a.default.has(S)?x=a.default.get(S):S instanceof Array?x=S:x=a.default.get(i),x}function u(S,x){var C=1/(x-1),T=new Array(x).fill(0).map(function(A,M){return M*C}),k=T.map(function(A){return c(S,A)});return k}function c(S,x){var C=f(S,x),T=d(C,x);return h(C,T)}function f(S,x){var C=S.length-1,T="",k="";S.findIndex(function(L,N){if(N!==C){T=L,k=S[N+1];var $=T[0][0],P=k[0][0];return x>=$&&x<P}});var A=T[0],M=T[2]||T[0],I=k[1]||k[0],E=k[0];return[A,M,I,E]}function d(S,x){var C=S[0][0],T=S[3][0],k=T-C,A=x-C;return A/k}function h(S,x){var C=(0,n.default)(S,4),T=(0,n.default)(C[0],2),k=T[1],A=(0,n.default)(C[1],2),M=A[1],I=(0,n.default)(C[2],2),E=I[1],L=(0,n.default)(C[3],2),N=L[1],$=Math.pow,P=1-x,R=k*$(P,3),D=3*M*x*$(P,2),B=3*E*$(x,2)*P,H=N*$(x,3);return 1-(R+D+B+H)}function p(S,x,C){var T="object";return typeof S=="number"&&(T="number"),S instanceof Array&&(T="array"),T==="number"?v(S,x,C):T==="array"?g(S,x,C):T==="object"?m(S,x,C):C.map(function(k){return x})}function v(S,x,C){var T=x-S;return C.map(function(k){return S+T*k})}function g(S,x,C){var T=x.map(function(k,A){return typeof k!="number"?!1:k-S[A]});return C.map(function(k){return T.map(function(A,M){return A===!1?x[M]:S[M]+A*k})})}function m(S,x,C){var T=Object.keys(x),k=T.map(function(I){return S[I]}),A=T.map(function(I){return x[I]}),M=g(k,A,C);return M.map(function(I){var E={};return I.forEach(function(L,N){return E[T[N]]=L}),E})}function _(S,x,C){var T=p(S,x,C),k=function(I){var E=S[I],L=x[I];if((0,r.default)(L)!=="object")return"continue";var N=_(E,L,C);T.forEach(function($,P){return $[I]=N[P]})};for(var A in x)var M=k(A);return T}function b(S,x){if(!S||!x){console.error("InjectNewCurve Missing Parameters!");return}a.default.set(S,x)}var w=o;e.default=w}(FL)),FL}var GL;function rre(){return GL||(GL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Jne()),r=t(Qne()),a=t(Zr()),i=t(kr()),o=t(Ug()),s=t(ere()),l=t(nre()),u=Fr(),c=function d(h,p){(0,o.default)(this,d),p=(0,u.deepClone)(p,!0);var v={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null},g={status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}};p.shape||(p.shape={}),p.style||(p.style={});var m=Object.assign({},h.shape,p.shape);Object.assign(v,p,g),Object.assign(this,h,v),this.shape=m,this.style=new s.default(p.style),this.addedProcessor()};e.default=c,c.prototype.addedProcessor=function(){typeof this.setGraphCenter=="function"&&this.setGraphCenter(null,this),typeof this.added=="function"&&this.added(this)},c.prototype.drawProcessor=function(d,h){var p=d.ctx;h.style.initStyle(p),typeof this.beforeDraw=="function"&&this.beforeDraw(this,d),h.draw(d,h),typeof this.drawed=="function"&&this.drawed(this,d),h.style.restoreTransform(p)},c.prototype.hoverCheckProcessor=function(d,h){var p=h.hoverRect,v=h.style,g=h.hoverCheck,m=v.graphCenter,_=v.rotate,b=v.scale,w=v.translate;return m&&(_&&(d=(0,u.getRotatePointPos)(-_,d,m)),b&&(d=(0,u.getScalePointPos)(b.map(function(S){return 1/S}),d,m)),w&&(d=(0,u.getTranslatePointPos)(w.map(function(S){return S*-1}),d))),p?u.checkPointIsInRect.apply(void 0,[d].concat((0,i.default)(p))):g(d,this)},c.prototype.moveProcessor=function(d){this.move(d,this),typeof this.beforeMove=="function"&&this.beforeMove(d,this),typeof this.setGraphCenter=="function"&&this.setGraphCenter(d,this),typeof this.moved=="function"&&this.moved(d,this)},c.prototype.attr=function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(!d||h===void 0)return!1;var p=(0,a.default)(this[d])==="object";p&&(h=(0,u.deepClone)(h,!0));var v=this.render;d==="style"?this.style.update(h):p?Object.assign(this[d],h):this[d]=h,d==="index"&&v.sortGraphsByIndex(),v.drawAllGraph()},c.prototype.animation=function(){var d=(0,r.default)(n.default.mark(function h(p,v){var g,m,_,b,w,S,x,C,T,k=arguments;return n.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(g=k.length>2&&k[2]!==void 0?k[2]:!1,!(p!=="shape"&&p!=="style")){A.next=4;break}return console.error("Only supported shape and style animation!"),A.abrupt("return");case 4:if(v=(0,u.deepClone)(v,!0),p==="style"&&this.style.colorProcessor(v),m=this[p],_=Object.keys(v),b={},_.forEach(function(M){return b[M]=m[M]}),w=this.animationFrame,S=this.animationCurve,x=this.animationDelay,C=(0,l.default)(S,b,v,w,!0),this.animationRoot.push(m),this.animationKeys.push(_),this.animationFrameState.push(C),!g){A.next=17;break}return A.abrupt("return");case 17:if(!(x>0)){A.next=20;break}return A.next=20,f(x);case 20:return T=this.render,A.abrupt("return",new Promise(function(){var M=(0,r.default)(n.default.mark(function I(E){return n.default.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,T.launchAnimation();case 2:E();case 3:case"end":return L.stop()}},I)}));return function(I){return M.apply(this,arguments)}}()));case 22:case"end":return A.stop()}},h,this)}));return function(h,p){return d.apply(this,arguments)}}(),c.prototype.turnNextAnimationFrame=function(d){var h=this.animationDelay,p=this.animationRoot,v=this.animationKeys,g=this.animationFrameState,m=this.animationPause;m||Date.now()-d<h||(p.forEach(function(_,b){v[b].forEach(function(w){_[w]=g[b][0][w]})}),g.forEach(function(_,b){_.shift();var w=_.length===0;w&&(p[b]=null),w&&(v[b]=null)}),this.animationFrameState=g.filter(function(_){return _.length}),this.animationRoot=p.filter(function(_){return _}),this.animationKeys=v.filter(function(_){return _}))},c.prototype.animationEnd=function(){var d=this.animationFrameState,h=this.animationKeys,p=this.animationRoot,v=this.render;return p.forEach(function(g,m){var _=h[m],b=d[m].pop();_.forEach(function(w){return g[w]=b[w]})}),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],v.drawAllGraph()},c.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},c.prototype.playAnimation=function(){var d=this.render;return this.attr("animationPause",!1),new Promise(function(){var h=(0,r.default)(n.default.mark(function p(v){return n.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,d.launchAnimation();case 2:v();case 3:case"end":return g.stop()}},p)}));return function(p){return h.apply(this,arguments)}}())},c.prototype.delProcessor=function(d){var h=this,p=d.graphs,v=p.findIndex(function(g){return g===h});v!==-1&&(typeof this.beforeDelete=="function"&&this.beforeDelete(this),p.splice(v,1,null),typeof this.deleted=="function"&&this.deleted(this))};function f(d){return new Promise(function(h){setTimeout(h,d)})}}(IL)),IL}var WL;function are(){return WL||(WL=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(vo()),r=t(kr()),a=t(Ug()),i=t(jg),o=t(YA()),s=Fr(),l=t(qA()),u=t(rre());function c(_,b){var w=Object.keys(_);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(_);b&&(S=S.filter(function(x){return Object.getOwnPropertyDescriptor(_,x).enumerable})),w.push.apply(w,S)}return w}function f(_){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?c(w,!0).forEach(function(S){(0,n.default)(_,S,w[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(w)):c(w).forEach(function(S){Object.defineProperty(_,S,Object.getOwnPropertyDescriptor(w,S))})}return _}var d=function _(b){if((0,a.default)(this,_),!b){console.error("CRender Missing parameters!");return}var w=b.getContext("2d"),S=b.clientWidth,x=b.clientHeight,C=[S,x];b.setAttribute("width",S),b.setAttribute("height",x),this.ctx=w,this.area=C,this.animationStatus=!1,this.graphs=[],this.color=i.default,this.bezierCurve=o.default,b.addEventListener("mousedown",v.bind(this)),b.addEventListener("mousemove",g.bind(this)),b.addEventListener("mouseup",m.bind(this))};e.default=d,d.prototype.clearArea=function(){var _,b=this.area;(_=this.ctx).clearRect.apply(_,[0,0].concat((0,r.default)(b)))},d.prototype.add=function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=_.name;if(!b){console.error("add Missing parameters!");return}var w=l.default.get(b);if(!w){console.warn("No corresponding graph configuration found!");return}var S=new u.default(w,_);if(S.validator(S))return S.render=this,this.graphs.push(S),this.sortGraphsByIndex(),this.drawAllGraph(),S},d.prototype.sortGraphsByIndex=function(){var _=this.graphs;_.sort(function(b,w){if(b.index>w.index)return 1;if(b.index===w.index)return 0;if(b.index<w.index)return-1})},d.prototype.delGraph=function(_){typeof _.delProcessor=="function"&&(_.delProcessor(this),this.graphs=this.graphs.filter(function(b){return b}),this.drawAllGraph())},d.prototype.delAllGraph=function(){var _=this;this.graphs.forEach(function(b){return b.delProcessor(_)}),this.graphs=this.graphs.filter(function(b){return b}),this.drawAllGraph()},d.prototype.drawAllGraph=function(){var _=this;this.clearArea(),this.graphs.filter(function(b){return b&&b.visible}).forEach(function(b){return b.drawProcessor(_,b)})},d.prototype.launchAnimation=function(){var _=this,b=this.animationStatus;if(!b)return this.animationStatus=!0,new Promise(function(w){h.call(_,function(){_.animationStatus=!1,w()},Date.now())})};function h(_,b){var w=this.graphs;if(!p(w)){_();return}w.forEach(function(S){return S.turnNextAnimationFrame(b)}),this.drawAllGraph(),requestAnimationFrame(h.bind(this,_,b))}function p(_){return _.find(function(b){return!b.animationPause&&b.animationFrameState.length})}function v(_){var b=this.graphs,w=b.find(function(S){return S.status==="hover"});w&&(w.status="active")}function g(_){var b=_.offsetX,w=_.offsetY,S=[b,w],x=this.graphs,C=x.find(function(E){return E.status==="active"||E.status==="drag"});if(C){if(!C.drag)return;if(typeof C.move!="function"){console.error("No move method is provided, cannot be dragged!");return}C.moveProcessor(_),C.status="drag";return}var T=x.find(function(E){return E.status==="hover"}),k=x.filter(function(E){return E.hover&&(typeof E.hoverCheck=="function"||E.hoverRect)}),A=k.find(function(E){return E.hoverCheckProcessor(S,E)});A?document.body.style.cursor=A.style.hoverCursor:document.body.style.cursor="default";var M=!1,I=!1;if(T&&(M=typeof T.mouseOuter=="function"),A&&(I=typeof A.mouseEnter=="function"),!(!A&&!T)){if(!A&&T){M&&T.mouseOuter(_,T),T.status="static";return}if(!(A&&A===T)){if(A&&!T){I&&A.mouseEnter(_,A),A.status="hover";return}A&&T&&A!==T&&(M&&T.mouseOuter(_,T),T.status="static",I&&A.mouseEnter(_,A),A.status="hover")}}}function m(_){var b=this.graphs,w=b.find(function(x){return x.status==="active"}),S=b.find(function(x){return x.status==="drag"});w&&typeof w.click=="function"&&w.click(_,w),b.forEach(function(x){return x&&(x.status="static")}),w&&(w.status="hover"),S&&(S.status="hover")}d.prototype.clone=function(_){var b=_.style.getStyle(),w=f({},_,{style:b});return delete w.render,w=(0,s.deepClone)(w,!0),this.add(w)}}(HD)),HD}(function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CRender",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"extendNewGraph",{enumerable:!0,get:function(){return r.extendNewGraph}}),e.default=void 0;var n=t(are()),r=qA(),a=n.default;e.default=a})(u_);const zz=Nz(u_),ire={class:"dv-water-pond-level"},ore={key:0},sre=["id"],lre=["offset","stop-color"],ure=["stroke","fill","x","y"],cre=["cx","cy","rx","ry","stroke"],fre=["rx","ry","width","height","stroke"],dre={__name:"index",props:{config:Object,default:()=>({})},setup(e){const t=e,n=po(),r=U(null),a=vt({gradientId:`water-level-pond-${n}`,defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}),i=F(()=>{const{shape:b}=a.mergedConfig;return b==="round"?"50%":b==="rect"?"0":b==="roundRect"?"10px":"0"}),o=F(()=>{const{shape:b}=a.mergedConfig;return b||"rect"});Ae(()=>t.config,()=>{a.renderer.delAllGraph(),a.waves=[],setTimeout(u,0)},{deep:!0}),nt(()=>{s()}),pn(()=>{a.renderer.delAllGraph(),a.waves=[]});function s(){l(),t.config&&u()}function l(){a.renderer=new zz(r.value)}function u(){c(),f(),d(),h(),_()}function c(){a.mergedConfig=xn(Mn(a.defaultConfig,!0),t.config)}function f(){const{colors:b}=a.mergedConfig,w=100/(b.length-1);a.svgBorderGradient=b.map((S,x)=>[w*x,S])}function d(){const{data:b,formatter:w}=a.mergedConfig;if(!b.length){a.details="";return}const S=Math.max(...b);a.details=w.replace("{value}",S)}function h(){const b=p(),w=g();a.waves=b.map(S=>a.renderer.add({name:"smoothline",animationFrame:300,shape:S,style:w,drawed:m}))}function p(){const{waveNum:b,waveHeight:w,data:S}=a.mergedConfig,[x,C]=a.renderer.area,T=b*4+4,k=x/b/2;return S.map(A=>{let M=Array.from({length:T}).fill(0).map((I,E)=>{const L=x-k*E,N=(1-A/100)*C,$=E%2===0?N:N-w;return[L,$]});return M=M.map(I=>v(I,[k*2,0])),{points:M}})}function v([b,w],[S,x]){return[b+S,w+x]}function g(){const b=a.renderer.area[1];return{gradientColor:a.mergedConfig.colors,gradientType:"linear",gradientParams:[0,0,0,b],gradientWith:"fill",opacity:a.mergedConfig.waveOpacity,translate:[0,0]}}function m({shape:{points:b}},{ctx:w,area:S}){const x=b[0],C=b.slice(-1)[0],T=S[1];w.lineTo(C[0],T),w.lineTo(x[0],T),w.closePath(),w.fill()}async function _(b=1){if(a.animation)return;a.animation=!0;const w=a.renderer.area[0];a.waves.forEach(S=>{S.attr("style",{translate:[0,0]}),S.animation("style",{translate:[w,0]},!0)}),await a.renderer.launchAnimation(),a.animation=!1,a.renderer.graphs.length&&_(b+1)}return(b,w)=>(O(),K("div",ire,[y(a).renderer?(O(),K("svg",ore,[W("defs",null,[W("linearGradient",{id:y(a).gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[(O(!0),K(He,null,ct(y(a).svgBorderGradient,S=>(O(),K("stop",{key:S[0],offset:S[0],"stop-color":S[1]},null,8,lre))),128))],8,sre)]),y(a).renderer?(O(),K("text",{key:0,stroke:`url(#${y(a).gradientId})`,fill:`url(#${y(a).gradientId})`,x:y(a).renderer.area[0]/2+8,y:y(a).renderer.area[1]/2+8},$e(y(a).details),9,ure)):be("",!0),!y(o)||y(o)==="round"?(O(),K("ellipse",{key:1,cx:y(a).renderer.area[0]/2+8,cy:y(a).renderer.area[1]/2+8,rx:y(a).renderer.area[0]/2+5,ry:y(a).renderer.area[1]/2+5,stroke:`url(#${y(a).gradientId})`},null,8,cre)):(O(),K("rect",{key:2,x:"2",y:"2",rx:y(o)==="roundRect"?10:0,ry:y(o)==="roundRect"?10:0,width:y(a).renderer.area[0]+12,height:y(a).renderer.area[1]+12,stroke:`url(#${y(a).gradientId})`},null,8,fre))])):be("",!0),W("canvas",{ref_key:"waterPondLevel",ref:r,style:Ke(`border-radius: ${y(i)};`)},null,4)]))}},UL={install(e){e.component("DvWaterLevelPond",dre)}},hre={},pre={class:"dv-loading"},vre=i_('<svg width="50px" height="50px"><circle cx="25" cy="25" r="20" fill="transparent" stroke-width="3" stroke-dasharray="31.415, 31.415" stroke="#02bcfe" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="0, 25 25;360, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#02bcfe;#3be6cb;#02bcfe" dur="3s" repeatCount="indefinite"></animate></circle><circle cx="25" cy="25" r="10" fill="transparent" stroke-width="3" stroke-dasharray="15.7, 15.7" stroke="#3be6cb" stroke-linecap="round"><animateTransform attributeName="transform" type="rotate" values="360, 25 25;0, 25 25" dur="1.5s" repeatCount="indefinite"></animateTransform><animate attributeName="stroke" values="#3be6cb;#02bcfe;#3be6cb" dur="3s" repeatCount="indefinite"></animate></circle></svg>',1),gre={class:"loading-tip"};function mre(e,t){return O(),K("div",pre,[vre,W("div",gre,[ke(e.$slots,"default")])])}const yre=au(hre,[["render",mre]]),jL={install(e){e.component("DvLoading",yre)}},bre=["width","height"],_re=["id"],wre=W("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),Sre=W("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1),xre=[wre,Sre],Cre=["id"],Tre=W("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),kre=W("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1),Are=[Tre,kre],Mre=["id","cx","cy"],Pre=["values","dur"],Ere=["dur"],Ire=["id"],Dre=["xlink:href","fill"],Lre=["xlink:href","fill","mask"],$re=["xlink:href","width","height","x","y"],Rre=["fill","x","y"],Ore=["id","d"],Nre=["xlink:href","stroke-width","stroke"],Bre=["id"],Fre=["r","fill"],Vre=["dur","path"],zre=["xlink:href","stroke-width","stroke","mask"],Hre=["from","to","dur"],Gre={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(e){const t=e,n=po(),r=U(null),{width:a,height:i}=wn(r,u,l),o=vt({unique:Math.random(),flylineGradientId:`flyline-gradient-id-${n}`,haloGradientId:`halo-gradient-id-${n}`,defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null});let s;nt(()=>{s=St()}),Ae(()=>t.config,()=>{c()},{deep:!0});function l(){c()}function u(){c()}async function c(){f(),d(),h(),await m()}function f(){const b=xn(Mn(o.defaultConfig,!0),t.config||{}),{points:w,lines:S,halo:x,text:C,icon:T,line:k}=b;b.points=w.map(A=>(A.halo=xn(Mn(x,!0),A.halo||{}),A.text=xn(Mn(C,!0),A.text||{}),A.icon=xn(Mn(T,!0),A.icon||{}),A)),b.lines=S.map(A=>xn(Mn(k,!0),A)),o.mergedConfig=b}function d(){const{relative:b,points:w}=o.mergedConfig;o.flylinePoints=w.map((S,x)=>{const{coordinate:[C,T],halo:k,icon:A,text:M}=S;b&&(S.coordinate=[C*a.value,T*i.value]),S.halo.time=Rv(...k.duration)/10;const{width:I,height:E}=A;S.icon.x=S.coordinate[0]-I/2,S.icon.y=S.coordinate[1]-E/2;const[L,N]=M.offset;return S.text.x=S.coordinate[0]+L,S.text.y=S.coordinate[1]+N,S.key=`${S.coordinate.toString()}${x}`,S})}function h(){const{points:b,lines:w}=o.mergedConfig;o.flylines=w.map(S=>{const{source:x,target:C,duration:T}=S,k=b.find(({name:N})=>N===x).coordinate,A=b.find(({name:N})=>N===C).coordinate,M=p(k,A).map(N=>N.map($=>Number.parseFloat($.toFixed(10)))),I=`M${M[0].toString()} Q${M[1].toString()} ${M[2].toString()}`,E=`path${M.toString()}`,L=Rv(...T)/10;return{...S,path:M,key:E,d:I,time:L}})}function p(b,w){const S=v(b,w);return[b,S,w]}function v([b,w],[S,x]){const{curvature:C,k:T}=o.mergedConfig,[k,A]=[(b+S)/2,(w+x)/2],M=Cb([b,w],[S,x])/C,I=M/2;let[E,L]=[k,A];do E+=I,L=g(T,[k,A],E)[1];while(Cb([k,A],[E,L])<M);return[E,L]}function g(b,[w,S],x){const C=S-b*w+b*x;return[x,C]}async function m(){await Xe(),o.flylineLengths=o.flylines.map(({key:b})=>s.proxy.$refs[b][0].getTotalLength())}function _({offsetX:b,offsetY:w}){if(!t.dev)return;const S=(b/a.value).toFixed(2),x=(w/i.value).toFixed(2);console.warn(`dv-flyline-chart-enhanced DEV:
Click Position is [${b}, ${w}]
Relative Position is [${S}, ${x}]`)}return(b,w)=>(O(),K("div",{ref_key:"flylineChartEnhanced",ref:r,class:"dv-flyline-chart-enhanced",style:Ke(`background-image: url(${y(o).mergedConfig?y(o).mergedConfig.bgImgSrc:""})`),onClick:_},[y(o).flylines.length?(O(),K("svg",{key:0,width:y(a),height:y(i)},[W("defs",null,[W("radialGradient",{id:y(o).flylineGradientId,cx:"50%",cy:"50%",r:"50%"},xre,8,_re),W("radialGradient",{id:y(o).haloGradientId,cx:"50%",cy:"50%",r:"50%"},Are,8,Cre)]),(O(!0),K(He,null,ct(y(o).flylinePoints,S=>(O(),K("g",{key:S.key+Math.random()},[W("defs",null,[S.halo.show?(O(),K("circle",{key:0,id:`halo${y(o).unique}${S.key}`,cx:S.coordinate[0],cy:S.coordinate[1]},[W("animate",{attributeName:"r",values:`1;${S.halo.radius}`,dur:`${S.halo.time}s`,repeatCount:"indefinite"},null,8,Pre),W("animate",{attributeName:"opacity",values:"1;0",dur:`${S.halo.time}s`,repeatCount:"indefinite"},null,8,Ere)],8,Mre)):be("",!0)]),W("mask",{id:`mask${y(o).unique}${S.key}`},[S.halo.show?(O(),K("use",{key:0,"xlink:href":`#halo${y(o).unique}${S.key}`,fill:`url(#${y(o).haloGradientId})`},null,8,Dre)):be("",!0)],8,Ire),S.halo.show?(O(),K("use",{key:0,"xlink:href":`#halo${y(o).unique}${S.key}`,fill:S.halo.color,mask:`url(#mask${y(o).unique}${S.key})`},null,8,Lre)):be("",!0),S.icon.show?(O(),K("image",{key:1,"xlink:href":S.icon.src,width:S.icon.width,height:S.icon.height,x:S.icon.x,y:S.icon.y},null,8,$re)):be("",!0),S.text.show?(O(),K("text",{key:2,style:Ke(`fontSize:${S.text.fontSize}px;color:${S.text.color}`),fill:S.text.color,x:S.text.x,y:S.text.y},$e(S.name),13,Rre)):be("",!0)]))),128)),(O(!0),K(He,null,ct(y(o).flylines,(S,x)=>(O(),K("g",{key:S.key+Math.random()},[W("defs",null,[W("path",{id:S.key,ref_for:!0,ref:S.key,d:S.d,fill:"transparent"},null,8,Ore)]),W("use",{"xlink:href":`#${S.key}`,"stroke-width":S.width,stroke:S.orbitColor},null,8,Nre),W("mask",{id:`mask${y(o).unique}${S.key}`},[W("circle",{cx:"0",cy:"0",r:S.radius,fill:`url(#${y(o).flylineGradientId})`},[W("animateMotion",{dur:S.time,path:S.d,rotate:"auto",repeatCount:"indefinite"},null,8,Vre)],8,Fre)],8,Bre),y(o).flylineLengths[x]?(O(),K("use",{key:0,"xlink:href":`#${S.key}`,"stroke-width":S.width,stroke:S.color,mask:`url(#mask${y(o).unique}${S.key})`},[W("animate",{attributeName:"stroke-dasharray",from:`0, ${y(o).flylineLengths[x]}`,to:`${y(o).flylineLengths[x]}, 0`,dur:S.time,repeatCount:"indefinite"},null,8,Hre)],8,zre)):be("",!0)]))),128))],8,bre)):be("",!0)],4))}},KL={install(e){e.component("DvFlylineChartEnhanced",Gre)}},Wre=["width","height"],Ure=["id"],jre=W("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),Kre=W("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1),Yre=[jre,Kre],qre=["id"],Xre=W("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"0"},null,-1),Zre=W("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"1"},null,-1),Jre=[Xre,Zre],Qre=["id","cx","cy"],eae=["values","dur"],tae=["dur"],nae=["xlink:href","width","height","x","y"],rae=["id"],aae=["xlink:href","fill"],iae=["xlink:href","fill","mask"],oae=["id","d"],sae=["xlink:href","stroke-width","stroke"],lae=["xlink:href","stroke-width","stroke","mask"],uae=["from","to","dur"],cae=["id"],fae=["r","fill"],dae=["dur","path"],hae=["xlink:href","width","height","x","y"],pae=["fill","x","y"],vae={__name:"index",props:{config:{type:Object,default:()=>({})},dev:{type:Boolean,default:!1}},setup(e){const t=e,n=po(),r=U(null),{width:a,height:i}=wn(r,u,l),o=vt({unique:Math.random(),maskId:`flyline-mask-id-${n}`,maskCircleId:`mask-circle-id-${n}`,gradientId:`gradient-id-${n}`,gradient2Id:`gradient2-id-${n}`,defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]});let s;nt(()=>{s=St()}),Ae(()=>t.config,()=>{c()},{deep:!0});function l(){c()}function u(){c()}async function c(){f(),d(),await g(),m(),_()}function f(){const w=xn(Mn(o.defaultConfig,!0),t.config||{}),{points:S}=w;w.points=S.map(x=>Array.isArray(x)?{position:x,text:""}:x),o.mergedConfig=w}function d(){let{centerPoint:w,points:S}=o.mergedConfig;const{relative:x}=o.mergedConfig;S=S.map(({position:C})=>C),x&&(w=[a.value*w[0],i.value*w[1]],S=S.map(([C,T])=>[a.value*C,i.value*T])),o.paths=S.map(C=>h(w,C))}function h(w,S){const x=p(w,S);return[S,x,w]}function p([w,S],[x,C]){const{curvature:T,k}=o.mergedConfig,[A,M]=[(w+x)/2,(S+C)/2],I=Cb([w,S],[x,C])/T,E=I/2;let[L,N]=[A,M];do L+=E,N=v(k,[A,M],L)[1];while(Cb([A,M],[L,N])<I);return[L,N]}function v(w,[S,x],C){const T=x-w*S+w*C;return[C,T]}async function g(){await Xe(),o.lengths=o.paths.map((w,S)=>s.proxy.$refs[`path${S}`][0].getTotalLength())}function m(){const{duration:w,points:S}=o.mergedConfig;o.times=S.map(()=>Rv(...w)/10)}function _(){const{points:w}=o.mergedConfig;o.texts=w.map(({text:S})=>S)}function b({offsetX:w,offsetY:S}){if(!t.dev)return;const x=(w/a.value).toFixed(2),C=(S/i.value).toFixed(2);console.warn(`dv-flyline-chart DEV:
Click Position is [${w}, ${S}]
Relative Position is [${x}, ${C}]`)}return(w,S)=>(O(),K("div",{ref_key:"flylineChart",ref:r,class:"dv-flyline-chart",style:Ke(`background-image: url(${y(o).mergedConfig?y(o).mergedConfig.bgImgUrl:""})`),onClick:b},[y(o).mergedConfig?(O(),K("svg",{key:0,width:y(a),height:y(i)},[W("defs",null,[W("radialGradient",{id:y(o).gradientId,cx:"50%",cy:"50%",r:"50%"},Yre,8,Ure),W("radialGradient",{id:y(o).gradient2Id,cx:"50%",cy:"50%",r:"50%"},Jre,8,qre),y(o).paths[0]?(O(),K("circle",{key:0,id:`circle${y(o).paths[0].toString()}`,cx:y(o).paths[0][2][0],cy:y(o).paths[0][2][1]},[W("animate",{attributeName:"r",values:`1;${y(o).mergedConfig.halo.radius}`,dur:`${y(o).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,eae),W("animate",{attributeName:"opacity",values:"1;0",dur:`${y(o).mergedConfig.halo.duration/10}s`,repeatCount:"indefinite"},null,8,tae)],8,Qre)):be("",!0)]),y(o).paths[0]?(O(),K("image",{key:0,"xlink:href":y(o).mergedConfig.centerPointImg.url,width:y(o).mergedConfig.centerPointImg.width,height:y(o).mergedConfig.centerPointImg.height,x:y(o).paths[0][2][0]-y(o).mergedConfig.centerPointImg.width/2,y:y(o).paths[0][2][1]-y(o).mergedConfig.centerPointImg.height/2},null,8,nae)):be("",!0),W("mask",{id:`maskhalo${y(o).paths[0].toString()}`},[y(o).paths[0]?(O(),K("use",{key:0,"xlink:href":`#circle${y(o).paths[0].toString()}`,fill:`url(#${y(o).gradient2Id})`},null,8,aae)):be("",!0)],8,rae),y(o).paths[0]&&y(o).mergedConfig.halo.show?(O(),K("use",{key:1,"xlink:href":`#circle${y(o).paths[0].toString()}`,fill:y(o).mergedConfig.halo.color,mask:`url(#maskhalo${y(o).paths[0].toString()})`},null,8,iae)):be("",!0),(O(!0),K(He,null,ct(y(o).paths,(x,C)=>(O(),K("g",{key:C},[W("defs",null,[W("path",{id:`path${x.toString()}`,ref_for:!0,ref:`path${C}`,d:`M${x[0].toString()} Q${x[1].toString()} ${x[2].toString()}`,fill:"transparent"},null,8,oae)]),W("use",{"xlink:href":`#path${x.toString()}`,"stroke-width":y(o).mergedConfig.lineWidth,stroke:y(o).mergedConfig.orbitColor},null,8,sae),y(o).lengths[C]?(O(),K("use",{key:0,"xlink:href":`#path${x.toString()}`,"stroke-width":y(o).mergedConfig.lineWidth,stroke:y(o).mergedConfig.flylineColor,mask:`url(#mask${y(o).unique}${x.toString()})`},[W("animate",{attributeName:"stroke-dasharray",from:`0, ${y(o).lengths[C]}`,to:`${y(o).lengths[C]}, 0`,dur:y(o).times[C]||0,repeatCount:"indefinite"},null,8,uae)],8,lae)):be("",!0),W("mask",{id:`mask${y(o).unique}${x.toString()}`},[W("circle",{cx:"0",cy:"0",r:y(o).mergedConfig.flylineRadius,fill:`url(#${y(o).gradientId})`},[W("animateMotion",{dur:y(o).times[C]||0,path:`M${x[0].toString()} Q${x[1].toString()} ${x[2].toString()}`,rotate:"auto",repeatCount:"indefinite"},null,8,dae)],8,fae)],8,cae),W("image",{"xlink:href":y(o).mergedConfig.pointsImg.url,width:y(o).mergedConfig.pointsImg.width,height:y(o).mergedConfig.pointsImg.height,x:x[0][0]-y(o).mergedConfig.pointsImg.width/2,y:x[0][1]-y(o).mergedConfig.pointsImg.height/2},null,8,hae),W("text",{style:Ke(`fontSize:${y(o).mergedConfig.text.fontSize}px;`),fill:y(o).mergedConfig.text.color,x:x[0][0]+y(o).mergedConfig.text.offset[0],y:x[0][1]+y(o).mergedConfig.text.offset[1]},$e(y(o).texts[C]),13,pae)]))),128))],8,Wre)):be("",!0)],4))}},YL={install(e){e.component("DvFlylineChart",vae)}},gae=e=>(OA("data-v-d220255c"),e=e(),NA(),e),mae={class:"ranking-info"},yae={class:"rank"},bae=["innerHTML"],_ae={class:"ranking-value"},wae={class:"ranking-column"},Sae=gae(()=>W("div",{class:"shine"},null,-1)),xae=[Sae],Cae={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(e){Gg(_=>({"01413bf0":y(o),"10122c43":y(i),"41a52d43":y(l),"193a1454":y(s)}));const t=e,n=U(null),{height:r}=wn(n,c,u),a=vt({defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null,textColor:"#fff",color:"#1370fb",fontSize:13},mergedConfig:null,rowsData:[],rows:[],heights:[],avgHeight:0,animationIndex:0,animationHandler:"",updater:0});Ae(()=>t.config,()=>{m(),f()},{deep:!0});const i=F(()=>t.config.textColor?t.config.textColor:a.defaultConfig.textColor),o=F(()=>t.config.color?t.config.color:a.defaultConfig.color),s=F(()=>wr(o.value,50)),l=F(()=>`${t.config.fontSize?t.config.fontSize:a.defaultConfig.fontSize}px`);Ja(()=>{m()});function u(){f()}function c(){a.mergedConfig&&p(!0)}function f(){d(),h(),p(),g(!0)}function d(){a.mergedConfig=xn(Mn(a.defaultConfig,!0),t.config||{})}function h(){let{data:_}=a.mergedConfig;const{rowNum:b,sort:w}=a.mergedConfig;w&&_.sort(({value:A},{value:M})=>A>M?-1:A<M?1:0);const S=_.map(({value:A})=>A),x=Math.min(...S)||0,C=Math.abs(x),T=(Math.max(...S)||0)+C;_=_.map((A,M)=>({...A,ranking:M+1,percent:(A.value+C)/T*100}));const k=_.length;k>b&&k<2*b&&(_=[..._,..._]),_=_.map((A,M)=>({...A,scroll:M})),a.rowsData=_,a.rows=_}function p(_=!1){const{rowNum:b,data:w}=a.mergedConfig,S=r.value/b;a.avgHeight=S,_||(a.heights=Array.from({length:w.length}).fill(S))}const v=F(()=>a.mergedConfig.carousel==="single");async function g(_=!1){const{waitTime:b,rowNum:w}=a.mergedConfig,S=a.rowsData.length;if(w>=S)return;const{updater:x}=a;if(_&&(await new Promise(A=>setTimeout(A,b)),x!==a.updater))return;const C=v.value?1:w,T=a.rowsData.slice(a.animationIndex);if(T.push(...a.rowsData.slice(0,a.animationIndex)),a.rows=T.slice(0,v.value?w+1:w*2),a.heights=Array.from({length:S}).fill(a.avgHeight),await new Promise(A=>setTimeout(A,300)),x!==a.updater)return;a.heights.fill(0,0,C),a.animationIndex+=C;const k=a.animationIndex-S;k>=0&&(a.animationIndex=k),a.animationHandler=setTimeout(g,b-300)}function m(){a.updater=(a.updater+1)%999999,a.animationHandler&&clearTimeout(a.animationHandler)}return(_,b)=>(O(),K("div",{ref_key:"scrollRankingBoard",ref:n,class:"dv-scroll-ranking-board"},[(O(!0),K(He,null,ct(y(a).rows,(w,S)=>(O(),K("div",{key:w.toString()+w.scroll,class:"row-item",style:Ke(`height: ${y(a).heights[S]}px;`)},[W("div",mae,[W("div",yae," No."+$e(w.ranking),1),W("div",{class:"info-name",innerHTML:w.name},null,8,bae),W("div",_ae,$e(y(a).mergedConfig.valueFormatter?y(a).mergedConfig.valueFormatter(w):w.value+y(a).mergedConfig.unit),1)]),W("div",wae,[W("div",{class:"inside-column",style:Ke(`width: ${w.percent}%;`)},xae,4)])],4))),128))],512))}},Tae=au(Cae,[["__scopeId","data-v-d220255c"]]),qL={install(e){e.component("DvScrollRankingBoard",Tae)}},kae=["align","innerHTML"],Aae=["align","onClick","onMouseenter","innerHTML"],Mae={__name:"index",props:{config:{type:Object,default:()=>({})}},emits:["mouseover","click","getFirstRow"],setup(e,{expose:t,emit:n}){const r=e,a=n,i=U(null),{width:o,height:s}=wn(i,d,f),l=vt({defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1});Ae(()=>r.config,()=>{S(),h()},{deep:!0}),Ja(()=>{S()}),t({updateRows:x});function u(C,T,k,A){const{ceils:M,rowIndex:I}=k;a("click",{row:M,ceil:A,rowIndex:I,columnIndex:T})}function c(C,T,k,A,M){if(C){const{ceils:I,rowIndex:E}=A;a("mouseover",{row:I,ceil:M,rowIndex:E,columnIndex:k})}l.mergedConfig.hoverPause&&(C?S():w(!0))}function f(){h()}function d(){l.mergedConfig&&(m(),_())}function h(){p(),v(),g(),m(),_(),b(),w(!0)}function p(){l.mergedConfig=xn(Mn(l.defaultConfig,!0),r.config||{})}function v(){let{header:C}=l.mergedConfig;const{index:T,indexHeader:k}=l.mergedConfig;if(!C.length){C=[];return}C=[...C],T&&C.unshift(k),l.header=C}function g(){let{data:C}=l.mergedConfig;const{index:T,headerBGC:k,rowNum:A}=l.mergedConfig;T&&(C=C.map((I,E)=>{I=[...I];const L=`<span class="index" style="background-color: ${k};">${E+1}</span>`;return I.unshift(L),I})),C=C.map((I,E)=>({ceils:I,rowIndex:E}));const M=C.length;M>A&&M<2*A&&(C=[...C,...C]),C=C.map((I,E)=>({...I,scroll:E})),l.rowsData=C,l.rows=C}function m(){const{columnWidth:C,header:T}=l.mergedConfig,k=C.reduce((E,L)=>E+L,0);let A=0;l.rowsData[0]?A=l.rowsData[0].ceils.length:T.length&&(A=T.length);const M=(o.value-k)/(A-C.length),I=Array.from({length:A}).fill(M);l.widths=xn(I,C)}function _(C=!1){const{headerHeight:T,rowNum:k,data:A}=l.mergedConfig;let M=s.value;l.header.length&&(M-=T);const I=M/k;l.avgHeight=I,C||(l.heights=Array.from({length:A.length}).fill(I))}function b(){const C=l.header.length,T=Array.from({length:C}).fill("left"),{align:k}=l.mergedConfig;l.aligns=xn(T,k)}async function w(C=!1){l.needCalc&&(g(),_(),l.needCalc=!1);const{waitTime:T,carousel:k,rowNum:A}=l.mergedConfig,{updater:M}=l,I=l.rowsData.length;if(A>=I||(C&&await new Promise($=>setTimeout($,T)),M!==l.updater))return;const E=k==="single"?1:A,L=l.rowsData.slice(l.animationIndex);if(L.push(...l.rowsData.slice(0,l.animationIndex)),l.rows=L.slice(0,k==="page"?A*2:A+1),l.heights=Array.from({length:I}).fill(l.avgHeight),await new Promise($=>setTimeout($,300)),M!==l.updater)return;l.heights.splice(0,E,...Array.from({length:E}).fill(0)),l.animationIndex+=E;const N=l.animationIndex-I;N>=0&&(l.animationIndex=N),l.animationHandler=setTimeout(w,T-300),a("getFirstRow",L[1])}function S(){l.updater=(l.updater+1)%999999,l.animationHandler&&clearTimeout(l.animationHandler)}function x(C,T){l.mergedConfig={...l.mergedConfig,data:[...C]},l.needCalc=!0,typeof T=="number"&&(l.animationIndex=T),l.animationHandler||w(!0)}return(C,T)=>(O(),K("div",{ref_key:"scrollBoard",ref:i,class:"dv-scroll-board"},[y(l).header.length&&y(l).mergedConfig?(O(),K("div",{key:0,class:"header",style:Ke(`background-color: ${y(l).mergedConfig.headerBGC};`)},[(O(!0),K(He,null,ct(y(l).header,(k,A)=>(O(),K("div",{key:`${k}${A}`,class:"header-item",style:Ke(`
height: ${y(l).mergedConfig.headerHeight}px;
line-height: ${y(l).mergedConfig.headerHeight}px;
width: ${y(l).widths[A]}px;
`),align:y(l).aligns[A],innerHTML:k},null,12,kae))),128))],4)):be("",!0),y(l).mergedConfig?(O(),K("div",{key:1,class:"rows",style:Ke(`height: ${y(s)-(y(l).header.length?y(l).mergedConfig.headerHeight:0)}px;`)},[(O(!0),K(He,null,ct(y(l).rows,(k,A)=>(O(),K("div",{key:`${k.toString()}${k.scroll}`,class:"row-item",style:Ke(`
height: ${y(l).heights[A]}px;
line-height: ${y(l).heights[A]}px;
background-color: ${y(l).mergedConfig[k.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]};
`)},[(O(!0),K(He,null,ct(k.ceils,(M,I)=>(O(),K("div",{key:`${M}${A}${I}`,class:"ceil",style:Ke(`width: ${y(l).widths[I]}px;`),align:y(l).aligns[I],onClick:E=>u(A,I,k,M),onMouseenter:E=>c(!0,A,I,k,M),onMouseleave:T[0]||(T[0]=E=>c(!1)),innerHTML:M},null,44,Aae))),128))],4))),128))],4)):be("",!0)],512))}},XL={install(e){e.component("DvScrollBoard",Mae)}};var Hz={},ZL={},$a={},JL;function Qa(){if(JL)return $a;JL=1;var e=Fn;Object.defineProperty($a,"__esModule",{value:!0}),$a.filterNonNumber=a,$a.deepMerge=i,$a.mulAdd=o,$a.mergeSameStackData=s,$a.getTwoPointDistance=l,$a.getLinearGradientColor=u,$a.getPolylineLength=c,$a.getPointToLineDistance=f,$a.initNeedSeries=d,$a.radianToAngle=h;var t=e(kr()),n=e(Zr()),r=Fr();function a(p){return p.filter(function(v){return typeof v=="number"})}function i(p,v){for(var g in v){if(p[g]&&(0,n.default)(p[g])==="object"){i(p[g],v[g]);continue}if((0,n.default)(v[g])==="object"){p[g]=(0,r.deepClone)(v[g],!0);continue}p[g]=v[g]}return p}function o(p){return p=a(p),p.reduce(function(v,g){return v+g},0)}function s(p,v){var g=p.stack;if(!g)return(0,t.default)(p.data);var m=v.filter(function(S){var x=S.stack;return x===g}),_=m.findIndex(function(S){var x=S.data;return x===p.data}),b=m.splice(0,_+1).map(function(S){var x=S.data;return x}),w=b[0].length;return new Array(w).fill(0).map(function(S,x){return o(b.map(function(C){return C[x]}))})}function l(p,v){var g=Math.abs(p[0]-v[0]),m=Math.abs(p[1]-v[1]);return Math.sqrt(g*g+m*m)}function u(p,v,g,m){if(!(!p||!v||!g||!m.length)){var _=m;typeof _=="string"&&(_=[m,m]);var b=p.createLinearGradient.apply(p,(0,t.default)(v).concat((0,t.default)(g))),w=1/(_.length-1);return _.forEach(function(S,x){return b.addColorStop(w*x,S)}),b}}function c(p){var v=new Array(p.length-1).fill(0).map(function(m,_){return[p[_],p[_+1]]}),g=v.map(function(m){return l.apply(void 0,(0,t.default)(m))});return o(g)}function f(p,v,g){var m=l(p,v),_=l(p,g),b=l(v,g);return .5*Math.sqrt((m+_+b)*(m+_-b)*(m+b-_)*(_+b-m))/b}function d(p,v,g){return p=p.filter(function(m){var _=m.type;return _===g}),p=p.map(function(m){return i((0,r.deepClone)(v,!0),m)}),p.filter(function(m){var _=m.show;return _})}function h(p){return p/Math.PI*180}return $a}var Gz=Fn,Pae=Gz(vo()),QL=Gz(kr()),c_=u_,Eae=qA(),Ov=Fr(),Iae=jg,Dae=Qa();function e$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function t$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e$(Object(n),!0).forEach(function(r){(0,Pae.default)(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Lae={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","ir","or","startAngle","endAngle"];return n.find(function(r){return typeof t[r]!="number"})?(console.error("Pie shape configuration is abnormal!"),!1):!0},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var a=r.rx,i=r.ry,o=r.ir,s=r.or,l=r.startAngle,u=r.endAngle,c=r.clockWise;a=parseInt(a)+.5,i=parseInt(i)+.5,n.arc(a,i,o>0?o:0,l,u,!c);var f=(0,Ov.getCircleRadianPoint)(a,i,s,u).map(function(h){return parseInt(h)+.5}),d=(0,Ov.getCircleRadianPoint)(a,i,o,l).map(function(h){return parseInt(h)+.5});n.lineTo.apply(n,(0,QL.default)(f)),n.arc(a,i,s>0?s:0,u,l,c),n.lineTo.apply(n,(0,QL.default)(d)),n.closePath(),n.stroke(),n.fill()}},$ae={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return n.find(function(r){return typeof t[r]!="number"})?(console.error("AgArc shape configuration is abnormal!"),!1):!0},draw:function(e,t){var n=e.ctx,r=t.shape,a=t.style,i=a.gradient;i=i.map(function(x){return(0,Iae.getColorFromRgbValue)(x)}),i.length===1&&(i=[i[0],i[0]]);var o=i.length-1,s=r.gradientStartAngle,l=r.gradientEndAngle,u=r.startAngle,c=r.endAngle,f=r.r,d=r.rx,h=r.ry;s===null&&(s=u),l===null&&(l=c);var p=(l-s)/o;p===Math.PI*2&&(p=Math.PI*2-.001);for(var v=0;v<o;v++){n.beginPath();var g=(0,Ov.getCircleRadianPoint)(d,h,f,u+p*v),m=(0,Ov.getCircleRadianPoint)(d,h,f,u+p*(v+1)),_=(0,Dae.getLinearGradientColor)(n,g,m,[i[v],i[v+1]]),b=u+p*v,w=u+p*(v+1),S=!1;if(w>c&&(w=c,S=!0),n.arc(d,h,f,b,w),n.strokeStyle=_,n.stroke(),S)break}}},Rae={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,r=t.content,a=t.position;return!(n instanceof Array)||typeof r!="string"||!(a instanceof Array)?(console.error("NumberText shape configuration is abnormal!"),!1):!0},draw:function(e,t){var n=e.ctx,r=t.shape,a=r.number,i=r.content,o=r.toFixed,s=r.rowGap,l=r.formatter,u=i.split("{nt}"),c="";u.forEach(function(f,d){var h=a[d];typeof h!="number"&&(h=""),typeof h=="number"&&(h=h.toFixed(o),typeof l=="function"&&(h=l(h))),c+=f+(h||"")}),Eae.text.draw({ctx:n},{shape:t$(t$({},r),{},{content:c,rowGap:s})})}},Oae={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,r=t.y,a=t.w,i=t.h;return typeof n!="number"||typeof r!="number"||typeof a!="number"||typeof i!="number"?(console.error("lineIcon shape configuration is abnormal!"),!1):!0},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var a=r.x,i=r.y,o=r.w,s=r.h,l=s/2;n.strokeStyle=n.fillStyle,n.moveTo(a,i+l),n.lineTo(a+o,i+l),n.lineWidth=1,n.stroke(),n.beginPath();var u=l-5*2;u<=0&&(u=3),n.arc(a+o/2,i+l,u,0,Math.PI*2),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,r=n.x,a=n.y,i=n.w,o=n.h;return(0,Ov.checkPointIsInRect)(e,r,a,i,o)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,a=n.x,i=n.y,o=n.w,s=n.h;r.graphCenter=[a+o/2,i+s/2]}};(0,c_.extendNewGraph)("pie",Lae);(0,c_.extendNewGraph)("agArc",$ae);(0,c_.extendNewGraph)("numberText",Rae);(0,c_.extendNewGraph)("lineIcon",Oae);var n$={},Vm={},r$={},Bh={},a$;function Nae(){if(a$)return Bh;a$=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.colorConfig=void 0;var e=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];return Bh.colorConfig=e,Bh}var Fh={},i$;function Bae(){if(i$)return Fh;i$=1,Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.gridConfig=void 0;var e={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};return Fh.gridConfig=e,Fh}var yu={},o$;function Fae(){if(o$)return yu;o$=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.yAxisConfig=yu.xAxisConfig=void 0;var e={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};yu.xAxisConfig=e;var t={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};return yu.yAxisConfig=t,yu}var Vh={},s$;function Vae(){if(s$)return Vh;s$=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.titleConfig=void 0;var e={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return Vh.titleConfig=e,Vh}var zh={},l$;function zae(){if(l$)return zh;l$=1,Object.defineProperty(zh,"__esModule",{value:!0}),zh.lineConfig=void 0;var e={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return zh.lineConfig=e,zh}var Hh={},u$;function Hae(){if(u$)return Hh;u$=1,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.barConfig=void 0;var e={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};return Hh.barConfig=e,Hh}var Gh={},c$;function Wz(){if(c$)return Gh;c$=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.pieConfig=void 0;var e={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};return Gh.pieConfig=e,Gh}var Wh={},f$;function Gae(){if(f$)return Wh;f$=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.radarAxisConfig=void 0;var e={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};return Wh.radarAxisConfig=e,Wh}var Uh={},d$;function Wae(){if(d$)return Uh;d$=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.radarConfig=void 0;var e={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};return Uh.radarConfig=e,Uh}var jh={},h$;function Uz(){if(h$)return jh;h$=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.gaugeConfig=void 0;var e={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-(Math.PI/4)*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};return jh.gaugeConfig=e,jh}var Kh={},p$;function Uae(){if(p$)return Kh;p$=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.legendConfig=void 0;var e={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};return Kh.legendConfig=e,Kh}var v$;function ns(){return v$||(v$=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.changeDefaultConfig=p,Object.defineProperty(e,"colorConfig",{enumerable:!0,get:function(){return t.colorConfig}}),Object.defineProperty(e,"gridConfig",{enumerable:!0,get:function(){return n.gridConfig}}),Object.defineProperty(e,"xAxisConfig",{enumerable:!0,get:function(){return r.xAxisConfig}}),Object.defineProperty(e,"yAxisConfig",{enumerable:!0,get:function(){return r.yAxisConfig}}),Object.defineProperty(e,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(e,"lineConfig",{enumerable:!0,get:function(){return i.lineConfig}}),Object.defineProperty(e,"barConfig",{enumerable:!0,get:function(){return o.barConfig}}),Object.defineProperty(e,"pieConfig",{enumerable:!0,get:function(){return s.pieConfig}}),Object.defineProperty(e,"radarAxisConfig",{enumerable:!0,get:function(){return l.radarAxisConfig}}),Object.defineProperty(e,"radarConfig",{enumerable:!0,get:function(){return u.radarConfig}}),Object.defineProperty(e,"gaugeConfig",{enumerable:!0,get:function(){return c.gaugeConfig}}),Object.defineProperty(e,"legendConfig",{enumerable:!0,get:function(){return f.legendConfig}}),e.keys=void 0;var t=Nae(),n=Bae(),r=Fae(),a=Vae(),i=zae(),o=Hae(),s=Wz(),l=Gae(),u=Wae(),c=Uz(),f=Uae(),d=Qa(),h={colorConfig:t.colorConfig,gridConfig:n.gridConfig,xAxisConfig:r.xAxisConfig,yAxisConfig:r.yAxisConfig,titleConfig:a.titleConfig,lineConfig:i.lineConfig,barConfig:o.barConfig,pieConfig:s.pieConfig,radarAxisConfig:l.radarAxisConfig,radarConfig:u.radarConfig,gaugeConfig:c.gaugeConfig,legendConfig:f.legendConfig};function p(g,m){if(!h["".concat(g,"Config")]){console.warn("Change default config Error - Invalid key!");return}(0,d.deepMerge)(h["".concat(g,"Config")],m)}var v=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];e.keys=v}(r$)),r$}var g$;function jae(){if(g$)return Vm;g$=1,Object.defineProperty(Vm,"__esModule",{value:!0}),Vm.mergeColor=r;var e=ns(),t=Fr(),n=Qa();function r(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=(0,t.deepClone)(e.colorConfig,!0),s=i.color,l=i.series;if(l||(l=[]),s||(s=[]),i.color=s=(0,n.deepMerge)(o,s),!!l.length){var u=s.length;l.forEach(function(h,p){h.color||(h.color=s[p%u])});var c=l.filter(function(h){var p=h.type;return p==="pie"});c.forEach(function(h){return h.data.forEach(function(p,v){return p.color=s[v%u]})});var f=l.filter(function(h){var p=h.type;return p==="gauge"});f.forEach(function(h){return h.data.forEach(function(p,v){return p.color=s[v%u]})});var d=l.filter(function(h){var p=h.type,v=h.independentColor;return p==="bar"&&v});d.forEach(function(h){h.independentColors||(h.independentColors=s)})}}return Vm}var zm={},bf={},m$;function rs(){if(m$)return bf;m$=1;var e=Fn;Object.defineProperty(bf,"__esModule",{value:!0}),bf.doUpdate=c,bf.Updater=void 0;var t=e(kr()),n=e(Zr()),r=e(Ug()),a=function f(d,h){(0,r.default)(this,f);var p=d.chart,v=d.key,g=d.getGraphConfig;if(typeof g!="function"){console.warn("Updater need function getGraphConfig!");return}p[v]||(this.graphs=p[v]=[]),Object.assign(this,d),this.update(h)};bf.Updater=a,a.prototype.update=function(f){var d=this,h=this.graphs,p=this.beforeUpdate;if(i(this,f),!!f.length){var v=(0,n.default)(p);f.forEach(function(g,m){v==="function"&&p(h,g,m,d);var _=h[m];_?o(_,g,m,d):l(h,g,m,d)})}};function i(f,d){var h=f.graphs,p=f.chart.render,v=h.length,g=d.length;if(v>g){var m=h.splice(g);m.forEach(function(_){return _.forEach(function(b){return p.delGraph(b)})})}}function o(f,d,h,p){var v=p.getGraphConfig,g=p.chart.render,m=p.beforeChange,_=v(d,p);s(f,_,g),f.forEach(function(b,w){var S=_[w];typeof m=="function"&&m(b,S),u(b,S)})}function s(f,d,h){var p=f.length,v=d.length;if(v>p){var g=f.slice(-1)[0],m=v-p,_=new Array(m).fill(0).map(function(w){return h.clone(g)});f.push.apply(f,(0,t.default)(_))}else if(v<p){var b=f.splice(v);b.forEach(function(w){return h.delGraph(w)})}}function l(f,d,h,p){var v=p.getGraphConfig,g=p.getStartGraphConfig,m=p.chart,_=m.render,b=null;typeof g=="function"&&(b=g(d,p));var w=v(d,p);if(w.length){b?(f[h]=b.map(function(x){return _.add(x)}),f[h].forEach(function(x,C){var T=w[C];u(x,T)})):f[h]=w.map(function(x){return _.add(x)});var S=p.afterAddGraph;typeof S=="function"&&S(f[h])}}function u(f,d){var h=Object.keys(d);h.forEach(function(p){p==="shape"||p==="style"?f.animation(p,d[p],!0):f[p]=d[p]})}function c(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=f.chart,h=f.series,p=f.key,v=f.getGraphConfig,g=f.getStartGraphConfig,m=f.beforeChange,_=f.beforeUpdate,b=f.afterAddGraph;d[p]?d[p].update(h):d[p]=new a({chart:d,key:p,getGraphConfig:v,getStartGraphConfig:g,beforeChange:m,beforeUpdate:_,afterAddGraph:b},h)}return bf}var y$;function Kae(){if(y$)return zm;y$=1;var e=Fn;Object.defineProperty(zm,"__esModule",{value:!0}),zm.title=o;var t=e(ma()),n=rs(),r=Fr(),a=ns(),i=Qa();function o(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=[];f.title&&(d[0]=(0,i.deepMerge)((0,r.deepClone)(a.titleConfig,!0),f.title)),(0,n.doUpdate)({chart:c,series:d,key:"title",getGraphConfig:s})}function s(c,f){var d=a.titleConfig.animationCurve,h=a.titleConfig.animationFrame,p=a.titleConfig.rLevel,v=l(c,f),g=u(c);return[{name:"text",index:p,visible:c.show,animationCurve:d,animationFrame:h,shape:v,style:g}]}function l(c,f){var d=c.offset,h=c.text,p=f.chart.gridArea,v=p.x,g=p.y,m=p.w,_=(0,t.default)(d,2),b=_[0],w=_[1];return{content:h,position:[v+m/2+b,g+w]}}function u(c){var f=c.style;return f}return zm}var Hm={},b$;function Yae(){if(b$)return Hm;b$=1;var e=Fn;Object.defineProperty(Hm,"__esModule",{value:!0}),Hm.grid=u;var t=e(ma()),n=e(vo()),r=rs(),a=Fr(),i=ns(),o=Qa();function s(p,v){var g=Object.keys(p);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(p);v&&(m=m.filter(function(_){return Object.getOwnPropertyDescriptor(p,_).enumerable})),g.push.apply(g,m)}return g}function l(p){for(var v=1;v<arguments.length;v++){var g=arguments[v]!=null?arguments[v]:{};v%2?s(Object(g),!0).forEach(function(m){(0,n.default)(p,m,g[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(g)):s(Object(g)).forEach(function(m){Object.defineProperty(p,m,Object.getOwnPropertyDescriptor(g,m))})}return p}function u(p){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=v.grid;g=(0,o.deepMerge)((0,a.deepClone)(i.gridConfig,!0),g||{}),(0,r.doUpdate)({chart:p,series:[g],key:"grid",getGraphConfig:c})}function c(p,v){var g=p.animationCurve,m=p.animationFrame,_=p.rLevel,b=f(p,v),w=h(p);return v.chart.gridArea=l({},b),[{name:"rect",index:_,animationCurve:g,animationFrame:m,shape:b,style:w}]}function f(p,v){var g=(0,t.default)(v.chart.render.area,2),m=g[0],_=g[1],b=d(p.left,m),w=d(p.right,m),S=d(p.top,_),x=d(p.bottom,_),C=m-b-w,T=_-S-x;return{x:b,y:S,w:C,h:T}}function d(p,v){return typeof p=="number"?p:typeof p!="string"?0:v*parseInt(p)/100}function h(p){var v=p.style;return v}return Hm}var Gm={},_$;function qae(){if(_$)return Gm;_$=1;var e=Fn;Object.defineProperty(Gm,"__esModule",{value:!0}),Gm.axis=p;var t=e(Zr()),n=e(ma()),r=e(vo()),a=e(kr()),i=rs(),o=ns(),s=Qa(),l=Fr();function u(q,ae){var ne=Object.keys(q);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(q);ae&&(de=de.filter(function(me){return Object.getOwnPropertyDescriptor(q,me).enumerable})),ne.push.apply(ne,de)}return ne}function c(q){for(var ae=1;ae<arguments.length;ae++){var ne=arguments[ae]!=null?arguments[ae]:{};ae%2?u(Object(ne),!0).forEach(function(de){(0,r.default)(q,de,ne[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(ne)):u(Object(ne)).forEach(function(de){Object.defineProperty(q,de,Object.getOwnPropertyDescriptor(ne,de))})}return q}var f={xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig},d=Math.abs,h=Math.pow;function p(q){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=ae.xAxis,de=ae.yAxis,me=ae.series,pe=[];ne&&de&&me&&(pe=v(ne,de),pe=g(pe),pe=pe.filter(function(Se){var Pe=Se.show;return Pe}),pe=m(pe),pe=_(pe,me),pe=N(pe),pe=$(pe,q),pe=P(pe),pe=D(pe),pe=B(pe,q)),(0,i.doUpdate)({chart:q,series:pe,key:"axisLine",getGraphConfig:H}),(0,i.doUpdate)({chart:q,series:pe,key:"axisTick",getGraphConfig:ue}),(0,i.doUpdate)({chart:q,series:pe,key:"axisLabel",getGraphConfig:Q}),(0,i.doUpdate)({chart:q,series:pe,key:"axisName",getGraphConfig:z}),(0,i.doUpdate)({chart:q,series:pe,key:"splitLine",getGraphConfig:ve}),q.axisData=pe}function v(q,ae){var ne=[],de=[];if(q instanceof Array){var me;(me=ne).push.apply(me,(0,a.default)(q))}else ne.push(q);if(ae instanceof Array){var pe;(pe=de).push.apply(pe,(0,a.default)(ae))}else de.push(ae);return ne.splice(2),de.splice(2),ne=ne.map(function(Se,Pe){return c(c({},Se),{},{index:Pe,axis:"x"})}),de=de.map(function(Se,Pe){return c(c({},Se),{},{index:Pe,axis:"y"})}),[].concat((0,a.default)(ne),(0,a.default)(de))}function g(q){var ae=q.filter(function(de){var me=de.axis;return me==="x"}),ne=q.filter(function(de){var me=de.axis;return me==="y"});return ae=ae.map(function(de){return(0,s.deepMerge)((0,l.deepClone)(o.xAxisConfig),de)}),ne=ne.map(function(de){return(0,s.deepMerge)((0,l.deepClone)(o.yAxisConfig),de)}),[].concat((0,a.default)(ae),(0,a.default)(ne))}function m(q){var ae=q.filter(function(de){var me=de.data;return me==="value"}),ne=q.filter(function(de){var me=de.data;return me!=="value"});return ae.forEach(function(de){typeof de.boundaryGap!="boolean"&&(de.boundaryGap=!1)}),ne.forEach(function(de){typeof de.boundaryGap!="boolean"&&(de.boundaryGap=!0)}),[].concat((0,a.default)(ae),(0,a.default)(ne))}function _(q,ae){var ne=q.filter(function(me){var pe=me.data;return pe==="value"}),de=q.filter(function(me){var pe=me.data;return pe instanceof Array});return ne=b(ne,ae),de=E(de),[].concat((0,a.default)(ne),(0,a.default)(de))}function b(q,ae){return q.map(function(ne){var de=w(ne,ae),me=C(ne,de),pe=(0,n.default)(me,2),Se=pe[0],Pe=pe[1],Oe=L(Se,Pe,ne),Ne=ne.axisLabel.formatter,Te=[];return Se<0&&Pe>0?Te=A(Se,Pe,Oe):Te=M(Se,Pe,Oe),Te=Te.map(function(Me){return parseFloat(Me.toFixed(2))}),c(c({},ne),{},{maxValue:Te.slice(-1)[0],minValue:Te[0],label:I(Te,Ne)})})}function w(q,ae){if(ae=ae.filter(function(Se){var Pe=Se.show,Oe=Se.type;return!(Pe===!1||Oe==="pie")}),ae.length===0)return[0,0];var ne=q.index,de=q.axis;ae=x(ae);var me=de+"Axis",pe=ae.filter(function(Se){return Se[me]===ne});return pe.length||(pe=ae),S(pe)}function S(q){if(q){var ae=Math.min.apply(Math,(0,a.default)(q.map(function(de){var me=de.data;return Math.min.apply(Math,(0,a.default)((0,s.filterNonNumber)(me)))}))),ne=Math.max.apply(Math,(0,a.default)(q.map(function(de){var me=de.data;return Math.max.apply(Math,(0,a.default)((0,s.filterNonNumber)(me)))})));return[ae,ne]}}function x(q){var ae=(0,l.deepClone)(q,!0);return q.forEach(function(ne,de){var me=(0,s.mergeSameStackData)(ne,q);ae[de].data=me}),ae}function C(q,ae){var ne=q.min,de=q.max,me=q.axis,pe=(0,n.default)(ae,2),Se=pe[0],Pe=pe[1],Oe=(0,t.default)(ne),Ne=(0,t.default)(de);if(k(ne)||(ne=f[me+"AxisConfig"].min,Oe="string"),k(de)||(de=f[me+"AxisConfig"].max,Ne="string"),Oe==="string"){ne=parseInt(Se-d(Se*parseFloat(ne)/100));var Te=T(ne);ne=parseFloat((ne/Te-.1).toFixed(1))*Te}if(Ne==="string"){de=parseInt(Pe+d(Pe*parseFloat(de)/100));var Me=T(de);de=parseFloat((de/Me+.1).toFixed(1))*Me}return[ne,de]}function T(q){var ae=d(q).toString(),ne=ae.length,de=ae.replace(/0*$/g,"").indexOf("0"),me=ne-1;return de!==-1&&(me-=de),h(10,me)}function k(q){var ae=(0,t.default)(q),ne=ae==="string"&&/^\d+%$/.test(q),de=ae==="number";return ne||de}function A(q,ae,ne){var de=[],me=[],pe=0,Se=0;do de.push(pe-=ne);while(pe>q);do me.push(Se+=ne);while(Se<ae);return[].concat((0,a.default)(de.reverse()),[0],(0,a.default)(me))}function M(q,ae,ne){var de=[q],me=q;do de.push(me+=ne);while(me<ae);return de}function I(q,ae){return ae&&(typeof ae=="string"&&(q=q.map(function(ne){return ae.replace("{value}",ne)})),typeof ae=="function"&&(q=q.map(function(ne,de){return ae({value:ne,index:de})}))),q}function E(q){return q.map(function(ae){var ne=ae.data,de=ae.axisLabel.formatter;return c(c({},ae),{},{label:I(ne,de)})})}function L(q,ae,ne){var de=ne.interval,me=ne.minInterval,pe=ne.maxInterval,Se=ne.splitNumber,Pe=ne.axis,Oe=f[Pe+"AxisConfig"];if(typeof de!="number"&&(de=Oe.interval),typeof me!="number"&&(me=Oe.minInterval),typeof pe!="number"&&(pe=Oe.maxInterval),typeof Se!="number"&&(Se=Oe.splitNumber),typeof de=="number")return de;var Ne=parseInt((ae-q)/(Se-1));return Ne.toString().length>1&&(Ne=parseInt(Ne.toString().replace(/\d$/,"0"))),Ne===0&&(Ne=1),typeof me=="number"&&Ne<me?me:typeof pe=="number"&&Ne>pe?pe:Ne}function N(q){var ae=q.filter(function(de){var me=de.axis;return me==="x"}),ne=q.filter(function(de){var me=de.axis;return me==="y"});return ae[0]&&!ae[0].position&&(ae[0].position=o.xAxisConfig.position),ae[1]&&!ae[1].position&&(ae[1].position=ae[0].position==="bottom"?"top":"bottom"),ne[0]&&!ne[0].position&&(ne[0].position=o.yAxisConfig.position),ne[1]&&!ne[1].position&&(ne[1].position=ne[0].position==="left"?"right":"left"),[].concat((0,a.default)(ae),(0,a.default)(ne))}function $(q,ae){var ne=ae.gridArea,de=ne.x,me=ne.y,pe=ne.w,Se=ne.h;return q=q.map(function(Pe){var Oe=Pe.position,Ne=[];return Oe==="left"?Ne=[[de,me],[de,me+Se]].reverse():Oe==="right"?Ne=[[de+pe,me],[de+pe,me+Se]].reverse():Oe==="top"?Ne=[[de,me],[de+pe,me]]:Oe==="bottom"&&(Ne=[[de,me+Se],[de+pe,me+Se]]),c(c({},Pe),{},{linePosition:Ne})}),q}function P(q,ae){return q.map(function(ne){var de=ne.axis,me=ne.linePosition,pe=ne.position,Se=ne.label,Pe=ne.boundaryGap;typeof Pe!="boolean"&&(Pe=f[de+"AxisConfig"].boundaryGap);var Oe=Se.length,Ne=(0,n.default)(me,2),Te=(0,n.default)(Ne[0],2),Me=Te[0],Ce=Te[1],ye=(0,n.default)(Ne[1],2),_e=ye[0],Le=ye[1],je=de==="x"?_e-Me:Le-Ce,gt=je/(Pe?Oe:Oe-1),Ee=new Array(Oe).fill(0).map(function(xt,wt){return de==="x"?[Me+gt*(Pe?wt+.5:wt),Ce]:[Me,Ce+gt*(Pe?wt+.5:wt)]}),qe=R(de,Pe,pe,Ee,gt);return c(c({},ne),{},{tickPosition:Ee,tickLinePosition:qe,tickGap:gt})})}function R(q,ae,ne,de,me){var pe=q==="x"?1:0,Se=5;q==="x"&&ne==="top"&&(Se=-5),q==="y"&&ne==="left"&&(Se=-5);var Pe=de.map(function(Oe){var Ne=(0,l.deepClone)(Oe);return Ne[pe]+=Se,[(0,l.deepClone)(Oe),Ne]});return ae&&(pe=q==="x"?0:1,Se=me/2,Pe.forEach(function(Oe){var Ne=(0,n.default)(Oe,2),Te=Ne[0],Me=Ne[1];Te[pe]+=Se,Me[pe]+=Se})),Pe}function D(q,ae){return q.map(function(ne){var de=ne.nameGap,me=ne.nameLocation,pe=ne.position,Se=ne.linePosition,Pe=(0,n.default)(Se,2),Oe=Pe[0],Ne=Pe[1],Te=(0,a.default)(Oe);me==="end"&&(Te=(0,a.default)(Ne)),me==="center"&&(Te[0]=(Oe[0]+Ne[0])/2,Te[1]=(Oe[1]+Ne[1])/2);var Me=0;pe==="top"&&me==="center"&&(Me=1),pe==="bottom"&&me==="center"&&(Me=1),pe==="left"&&me!=="center"&&(Me=1),pe==="right"&&me!=="center"&&(Me=1);var Ce=de;return pe==="top"&&me!=="end"&&(Ce*=-1),pe==="left"&&me!=="start"&&(Ce*=-1),pe==="bottom"&&me==="start"&&(Ce*=-1),pe==="right"&&me==="end"&&(Ce*=-1),Te[Me]+=Ce,c(c({},ne),{},{namePosition:Te})})}function B(q,ae){var ne=ae.gridArea,de=ne.w,me=ne.h;return q.map(function(pe){var Se=pe.tickLinePosition,Pe=pe.position,Oe=pe.boundaryGap,Ne=0,Te=de;(Pe==="top"||Pe==="bottom")&&(Ne=1),(Pe==="top"||Pe==="bottom")&&(Te=me),(Pe==="right"||Pe==="bottom")&&(Te*=-1);var Me=Se.map(function(Ce){var ye=(0,n.default)(Ce,1),_e=ye[0],Le=(0,a.default)(_e);return Le[Ne]+=Te,[(0,a.default)(_e),Le]});return Oe||Me.shift(),c(c({},pe),{},{splitLinePosition:Me})})}function H(q){var ae=q.animationCurve,ne=q.animationFrame,de=q.rLevel;return[{name:"polyline",index:de,visible:q.axisLine.show,animationCurve:ae,animationFrame:ne,shape:G(q),style:X(q)}]}function G(q){var ae=q.linePosition;return{points:ae}}function X(q){return q.axisLine.style}function ue(q){var ae=q.animationCurve,ne=q.animationFrame,de=q.rLevel,me=ie(q),pe=le(q);return me.map(function(Se){return{name:"polyline",index:de,visible:q.axisTick.show,animationCurve:ae,animationFrame:ne,shape:Se,style:pe}})}function ie(q){var ae=q.tickLinePosition;return ae.map(function(ne){return{points:ne}})}function le(q){return q.axisTick.style}function Q(q){var ae=q.animationCurve,ne=q.animationFrame,de=q.rLevel,me=J(q),pe=he(q,me);return me.map(function(Se,Pe){return{name:"text",index:de,visible:q.axisLabel.show,animationCurve:ae,animationFrame:ne,shape:Se,style:pe[Pe],setGraphCenter:function(){}}})}function J(q){var ae=q.label,ne=q.tickPosition,de=q.position;return ne.map(function(me,pe){return{position:se(me,de),content:ae[pe].toString()}})}function se(q,ae){var ne=0,de=10;return(ae==="top"||ae==="bottom")&&(ne=1),(ae==="top"||ae==="left")&&(de=-10),q=(0,l.deepClone)(q),q[ne]+=de,q}function he(q,ae){var ne=q.position,de=q.axisLabel.style,me=re(ne);de=(0,s.deepMerge)(me,de);var pe=ae.map(function(Se){var Pe=Se.position;return c(c({},de),{},{graphCenter:Pe})});return pe}function re(q){if(q==="left")return{textAlign:"right",textBaseline:"middle"};if(q==="right")return{textAlign:"left",textBaseline:"middle"};if(q==="top")return{textAlign:"center",textBaseline:"bottom"};if(q==="bottom")return{textAlign:"center",textBaseline:"top"}}function z(q){var ae=q.animationCurve,ne=q.animationFrame,de=q.rLevel;return[{name:"text",index:de,animationCurve:ae,animationFrame:ne,shape:Y(q),style:ee(q)}]}function Y(q){var ae=q.name,ne=q.namePosition;return{content:ae,position:ne}}function ee(q){var ae=q.nameLocation,ne=q.position,de=q.nameTextStyle,me=oe(ne,ae);return(0,s.deepMerge)(me,de)}function oe(q,ae){if(q==="top"&&ae==="start"||q==="bottom"&&ae==="start"||q==="left"&&ae==="center")return{textAlign:"right",textBaseline:"middle"};if(q==="top"&&ae==="end"||q==="bottom"&&ae==="end"||q==="right"&&ae==="center")return{textAlign:"left",textBaseline:"middle"};if(q==="top"&&ae==="center"||q==="left"&&ae==="end"||q==="right"&&ae==="end")return{textAlign:"center",textBaseline:"bottom"};if(q==="bottom"&&ae==="center"||q==="left"&&ae==="start"||q==="right"&&ae==="start")return{textAlign:"center",textBaseline:"top"}}function ve(q){var ae=q.animationCurve,ne=q.animationFrame,de=q.rLevel,me=Z(q),pe=ce(q);return me.map(function(Se){return{name:"polyline",index:de,visible:q.splitLine.show,animationCurve:ae,animationFrame:ne,shape:Se,style:pe}})}function Z(q){var ae=q.splitLinePosition;return ae.map(function(ne){return{points:ne}})}function ce(q){return q.splitLine.style}return Gm}var Wm={},w$;function Xae(){if(w$)return Wm;w$=1;var e=Fn;Object.defineProperty(Wm,"__esModule",{value:!0}),Wm.line=h;var t=e(Zr()),n=e(ma()),r=e(kr()),a=e(vo()),i=rs(),o=ns(),s=e(YA()),l=Qa();function u(Q,J){var se=Object.keys(Q);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(Q);J&&(he=he.filter(function(re){return Object.getOwnPropertyDescriptor(Q,re).enumerable})),se.push.apply(se,he)}return se}function c(Q){for(var J=1;J<arguments.length;J++){var se=arguments[J]!=null?arguments[J]:{};J%2?u(Object(se),!0).forEach(function(he){(0,a.default)(Q,he,se[he])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Q,Object.getOwnPropertyDescriptors(se)):u(Object(se)).forEach(function(he){Object.defineProperty(Q,he,Object.getOwnPropertyDescriptor(se,he))})}return Q}var f=s.default.polylineToBezierCurve,d=s.default.getBezierCurveLength;function h(Q){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=J.xAxis,he=J.yAxis,re=J.series,z=[];se&&he&&re&&(z=(0,l.initNeedSeries)(re,o.lineConfig,"line"),z=p(z,Q)),(0,i.doUpdate)({chart:Q,series:z,key:"lineArea",getGraphConfig:b,getStartGraphConfig:T,beforeUpdate:k,beforeChange:A}),(0,i.doUpdate)({chart:Q,series:z,key:"line",getGraphConfig:M,getStartGraphConfig:N,beforeUpdate:k,beforeChange:A}),(0,i.doUpdate)({chart:Q,series:z,key:"linePoint",getGraphConfig:$,getStartGraphConfig:D}),(0,i.doUpdate)({chart:Q,series:z,key:"lineLabel",getGraphConfig:B})}function p(Q,J){var se=J.axisData;return Q.map(function(he){var re=(0,l.mergeSameStackData)(he,Q);re=v(he,re);var z=g(he,se),Y=m(re,z),ee=_(z);return c(c({},he),{},{linePosition:Y.filter(function(oe){return oe}),lineFillBottomPos:ee})})}function v(Q,J){var se=Q.data;return J.map(function(he,re){return typeof se[re]=="number"?he:null})}function g(Q,J){var se=Q.xAxisIndex,he=Q.yAxisIndex,re=J.find(function(Y){var ee=Y.axis,oe=Y.index;return ee==="x"&&oe===se}),z=J.find(function(Y){var ee=Y.axis,oe=Y.index;return ee==="y"&&oe===he});return[re,z]}function m(Q,J){var se=J.findIndex(function(pe){var Se=pe.data;return Se==="value"}),he=J[se],re=J[1-se],z=he.linePosition,Y=he.axis,ee=re.tickPosition,oe=ee.length,ve=Y==="x"?0:1,Z=z[0][ve],ce=z[1][ve],q=ce-Z,ae=he.maxValue,ne=he.minValue,de=ae-ne,me=new Array(oe).fill(0).map(function(pe,Se){var Pe=Q[Se];if(typeof Pe!="number")return null;var Oe=(Pe-ne)/de;return de===0&&(Oe=0),Oe*q+Z});return me.map(function(pe,Se){if(Se>=oe||typeof pe!="number")return null;var Pe=[pe,ee[Se][1-ve]];return ve===0||Pe.reverse(),Pe})}function _(Q){var J=Q.find(function(ce){var q=ce.data;return q==="value"}),se=J.axis,he=J.linePosition,re=J.minValue,z=J.maxValue,Y=se==="x"?0:1,ee=he[0][Y];if(re<0&&z>0){var oe=z-re,ve=Math.abs(he[0][Y]-he[1][Y]),Z=Math.abs(re)/oe*ve;se==="y"&&(Z*=-1),ee+=Z}return{changeIndex:Y,changeValue:ee}}function b(Q){var J=Q.animationCurve,se=Q.animationFrame,he=Q.lineFillBottomPos,re=Q.rLevel;return[{name:I(Q),index:re,animationCurve:J,animationFrame:se,visible:Q.lineArea.show,lineFillBottomPos:he,shape:w(Q),style:S(Q),drawed:C}]}function w(Q){var J=Q.linePosition;return{points:J}}function S(Q){var J=Q.lineArea,se=Q.color,he=J.gradient,re=J.style,z=[re.fill||se],Y=(0,l.deepMerge)(z,he);Y.length===1&&Y.push(Y[0]);var ee=x(Q);return re=c(c({},re),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,l.deepMerge)({gradientColor:Y,gradientParams:ee,gradientType:"linear",gradientWith:"fill"},re)}function x(Q){var J=Q.lineFillBottomPos,se=Q.linePosition,he=J.changeIndex,re=J.changeValue,z=se.map(function(ve){return ve[he]}),Y=Math.max.apply(Math,(0,r.default)(z)),ee=Math.min.apply(Math,(0,r.default)(z)),oe=Y;return he===1&&(oe=ee),he===1?[0,oe,0,re]:[oe,0,re,0]}function C(Q,J){var se=Q.lineFillBottomPos,he=Q.shape,re=J.ctx,z=he.points,Y=se.changeIndex,ee=se.changeValue,oe=(0,r.default)(z[z.length-1]),ve=(0,r.default)(z[0]);oe[Y]=ee,ve[Y]=ee,re.lineTo.apply(re,(0,r.default)(oe)),re.lineTo.apply(re,(0,r.default)(ve)),re.closePath(),re.fill()}function T(Q){var J=b(Q)[0],se=c({},J.style);return se.opacity=0,J.style=se,[J]}function k(Q,J,se,he){var re=Q[se];if(re){var z=I(J),Y=he.chart.render,ee=re[0].name,oe=z!==ee;oe&&(re.forEach(function(ve){return Y.delGraph(ve)}),Q[se]=null)}}function A(Q,J){var se=J.shape.points,he=Q.shape.points,re=he.length,z=se.length;if(z>re){var Y=he.slice(-1)[0],ee=new Array(z-re).fill(0).map(function(oe){return(0,r.default)(Y)});he.push.apply(he,(0,r.default)(ee))}else z<re&&he.splice(z)}function M(Q){var J=Q.animationCurve,se=Q.animationFrame,he=Q.rLevel;return[{name:I(Q),index:he+1,animationCurve:J,animationFrame:se,shape:w(Q),style:E(Q)}]}function I(Q){var J=Q.smooth;return J?"smoothline":"polyline"}function E(Q){var J=Q.lineStyle,se=Q.color,he=Q.smooth,re=Q.linePosition,z=L(re,he);return(0,l.deepMerge)({stroke:se,lineDash:[z,0]},J)}function L(Q){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!J)return(0,l.getPolylineLength)(Q);var se=f(Q);return d(se)}function N(Q){var J=Q.lineStyle.lineDash,se=M(Q)[0],he=se.style.lineDash;return J?he=[0,0]:he=(0,r.default)(he).reverse(),se.style.lineDash=he,[se]}function $(Q){var J=Q.animationCurve,se=Q.animationFrame,he=Q.rLevel,re=P(Q),z=R(Q);return re.map(function(Y){return{name:"circle",index:he+2,visible:Q.linePoint.show,animationCurve:J,animationFrame:se,shape:Y,style:z}})}function P(Q){var J=Q.linePosition,se=Q.linePoint.radius;return J.map(function(he){var re=(0,n.default)(he,2),z=re[0],Y=re[1];return{r:se,rx:z,ry:Y}})}function R(Q){var J=Q.color,se=Q.linePoint.style;return(0,l.deepMerge)({stroke:J},se)}function D(Q){var J=$(Q);return J.forEach(function(se){se.shape.r=.1}),J}function B(Q){var J=Q.animationCurve,se=Q.animationFrame,he=Q.rLevel,re=H(Q),z=le(Q);return re.map(function(Y,ee){return{name:"text",index:he+3,visible:Q.label.show,animationCurve:J,animationFrame:se,shape:Y,style:z}})}function H(Q){var J=ie(Q),se=G(Q);return J.map(function(he,re){return{content:he,position:se[re]}})}function G(Q){var J=Q.linePosition,se=Q.lineFillBottomPos,he=Q.label,re=he.position,z=he.offset,Y=se.changeIndex,ee=se.changeValue;return J.map(function(oe){if(re==="bottom"&&(oe=(0,r.default)(oe),oe[Y]=ee),re==="center"){var ve=(0,r.default)(oe);ve[Y]=ee,oe=ue(oe,ve)}return X(oe,z)})}function X(Q,J){var se=(0,n.default)(Q,2),he=se[0],re=se[1],z=(0,n.default)(J,2),Y=z[0],ee=z[1];return[he+Y,re+ee]}function ue(Q,J){var se=(0,n.default)(Q,2),he=se[0],re=se[1],z=(0,n.default)(J,2),Y=z[0],ee=z[1];return[(he+Y)/2,(re+ee)/2]}function ie(Q){var J=Q.data,se=Q.label.formatter;if(J=J.filter(function(re){return typeof re=="number"}).map(function(re){return re.toString()}),!se)return J;var he=(0,t.default)(se);return he==="string"?J.map(function(re){return se.replace("{value}",re)}):he==="function"?J.map(function(re,z){return se({value:re,index:z})}):J}function le(Q){var J=Q.color,se=Q.label.style;return(0,l.deepMerge)({fill:J},se)}return Wm}var Um={},S$;function Zae(){if(S$)return Um;S$=1;var e=Fn;Object.defineProperty(Um,"__esModule",{value:!0}),Um.bar=f;var t=e(Zr()),n=e(vo()),r=e(ma()),a=e(kr()),i=rs(),o=ns(),s=Fr(),l=Qa();function u(Z,ce){var q=Object.keys(Z);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(Z);ce&&(ae=ae.filter(function(ne){return Object.getOwnPropertyDescriptor(Z,ne).enumerable})),q.push.apply(q,ae)}return q}function c(Z){for(var ce=1;ce<arguments.length;ce++){var q=arguments[ce]!=null?arguments[ce]:{};ce%2?u(Object(q),!0).forEach(function(ae){(0,n.default)(Z,ae,q[ae])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Z,Object.getOwnPropertyDescriptors(q)):u(Object(q)).forEach(function(ae){Object.defineProperty(Z,ae,Object.getOwnPropertyDescriptor(q,ae))})}return Z}function f(Z){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=ce.xAxis,ae=ce.yAxis,ne=ce.series,de=[];q&&ae&&ne&&(de=(0,l.initNeedSeries)(ne,o.barConfig,"bar"),de=d(de,Z),de=h(de),de=C(de)),(0,i.doUpdate)({chart:Z,series:de.slice(-1),key:"backgroundBar",getGraphConfig:L}),de.reverse(),(0,i.doUpdate)({chart:Z,series:de,key:"bar",getGraphConfig:R,getStartGraphConfig:le,beforeUpdate:he}),(0,i.doUpdate)({chart:Z,series:de,key:"barLabel",getGraphConfig:re})}function d(Z,ce){var q=ce.axisData;return Z.forEach(function(ae){var ne=ae.xAxisIndex,de=ae.yAxisIndex;typeof ne!="number"&&(ne=0),typeof de!="number"&&(de=0);var me=q.find(function(Oe){var Ne=Oe.axis,Te=Oe.index;return"".concat(Ne).concat(Te)==="x".concat(ne)}),pe=q.find(function(Oe){var Ne=Oe.axis,Te=Oe.index;return"".concat(Ne).concat(Te)==="y".concat(de)}),Se=[me,pe],Pe=Se.findIndex(function(Oe){var Ne=Oe.data;return Ne==="value"});ae.valueAxis=Se[Pe],ae.labelAxis=Se[1-Pe]}),Z}function h(Z,ce){var q=v(Z);return q.forEach(function(ae){p(ae),m(ae),_(ae),b(ae),x(ae)}),Z}function p(Z){var ce=g(Z);ce=ce.map(function(ae){return{stack:ae,index:-1}});var q=0;Z.forEach(function(ae){var ne=ae.stack;if(!ne)ae.barIndex=q,q++;else{var de=ce.find(function(me){var pe=me.stack;return pe===ne});de.index===-1&&(de.index=q,q++),ae.barIndex=de.index}})}function v(Z){var ce=Z.map(function(q){var ae=q.labelAxis,ne=ae.axis,de=ae.index;return ne+de});return ce=(0,a.default)(new Set(ce)),ce.map(function(q){return Z.filter(function(ae){var ne=ae.labelAxis,de=ne.axis,me=ne.index;return de+me===q})})}function g(Z){var ce=[];return Z.forEach(function(q){var ae=q.stack;ae&&ce.push(ae)}),(0,a.default)(new Set(ce))}function m(Z){var ce=(0,a.default)(new Set(Z.map(function(q){var ae=q.barIndex;return ae}))).length;Z.forEach(function(q){return q.barNum=ce})}function _(Z){var ce=Z.slice(-1)[0],q=ce.barCategoryGap,ae=ce.labelAxis.tickGap,ne=0;typeof q=="number"?ne=q:ne=(1-parseInt(q)/100)*ae,Z.forEach(function(de){return de.barCategoryWidth=ne})}function b(Z){var ce=Z.slice(-1)[0],q=ce.barCategoryWidth,ae=ce.barWidth,ne=ce.barGap,de=ce.barNum,me=[];typeof ae=="number"||ae!=="auto"?me=w(q,ae,ne):ae==="auto"&&(me=S(q,ae,ne,de));var pe=me,Se=(0,r.default)(pe,2),Pe=Se[0],Oe=Se[1];Z.forEach(function(Ne){Ne.barWidth=Pe,Ne.barGap=Oe})}function w(Z,ce,q){var ae=0,ne=0;return typeof ce=="number"?ae=ce:ae=parseInt(ce)/100*Z,typeof q=="number"?ne=q:ne=parseInt(q)/100*ae,[ae,ne]}function S(Z,ce,q,ae){var ne=0,de=0,me=Z/ae;if(typeof q=="number")de=q,ne=me-de;else{var pe=10+parseInt(q)/10;pe===0?(ne=me*2,de=-ne):(ne=me/pe*10,de=me-ne)}return[ne,de]}function x(Z){var ce=Z.slice(-1)[0],q=ce.barGap,ae=ce.barWidth,ne=ce.barNum,de=(q+ae)*ne-q;Z.forEach(function(me){return me.barAllWidthAndGap=de})}function C(Z,ce){return Z=k(Z),Z=T(Z),Z=M(Z),Z=I(Z),Z}function T(Z){return Z.map(function(ce){var q=ce.labelAxis,ae=ce.barAllWidthAndGap,ne=ce.barGap,de=ce.barWidth,me=ce.barIndex,pe=q.tickGap,Se=q.tickPosition,Pe=q.axis,Oe=Pe==="x"?0:1,Ne=Se.map(function(Te,Me){var Ce=Se[Me][Oe]-pe/2,ye=Ce+(pe-ae)/2;return ye+(me+.5)*de+me*ne});return c(c({},ce),{},{barLabelAxisPos:Ne})})}function k(Z){return Z.map(function(ce){var q=(0,l.mergeSameStackData)(ce,Z);q=A(ce,q);var ae=ce.valueAxis,ne=ae.axis,de=ae.minValue,me=ae.maxValue,pe=ae.linePosition,Se=E(de,me,de<0?0:de,pe,ne),Pe=q.map(function(Ne){return E(de,me,Ne,pe,ne)}),Oe=Pe.map(function(Ne){return[Se,Ne]});return c(c({},ce),{},{barValueAxisPos:Oe})})}function A(Z,ce){var q=Z.data;return ce.map(function(ae,ne){return typeof q[ne]=="number"?ae:null}).filter(function(ae){return ae!==null})}function M(Z){return Z.map(function(ce){var q=ce.barLabelAxisPos,ae=ce.data;return ae.forEach(function(ne,de){typeof ne!="number"&&(q[de]=null)}),c(c({},ce),{},{barLabelAxisPos:q.filter(function(ne){return ne!==null})})})}function I(Z){return Z.forEach(function(ce){var q=ce.data,ae=ce.barLabelAxisPos,ne=ce.barValueAxisPos,de=q.filter(function(pe){return typeof pe=="number"}).length,me=ae.length;me>de&&(ae.splice(de),ne.splice(de))}),Z}function E(Z,ce,q,ae,ne){if(typeof q!="number")return null;var de=ce-Z,me=ne==="x"?0:1,pe=ae[1][me]-ae[0][me],Se=(q-Z)/de;de===0&&(Se=0);var Pe=Se*pe;return Pe+ae[0][me]}function L(Z){var ce=Z.animationCurve,q=Z.animationFrame,ae=Z.rLevel,ne=N(Z),de=P(Z);return ne.map(function(me){return{name:"rect",index:ae,visible:Z.backgroundBar.show,animationCurve:ce,animationFrame:q,shape:me,style:de}})}function N(Z){var ce=Z.labelAxis,q=Z.valueAxis,ae=ce.tickPosition,ne=q.axis,de=q.linePosition,me=$(Z),pe=me/2,Se=ne==="x"?0:1,Pe=ae.map(function(Me){return Me[1-Se]}),Oe=[de[0][Se],de[1][Se]],Ne=Oe[0],Te=Oe[1];return Pe.map(function(Me){return ne==="x"?{x:Ne,y:Me-pe,w:Te-Ne,h:me}:{x:Me-pe,y:Te,w:me,h:Ne-Te}})}function $(Z){var ce=Z.barAllWidthAndGap,q=Z.barCategoryWidth,ae=Z.backgroundBar,ne=ae.width;return typeof ne=="number"?ne:ne==="auto"?ce:parseInt(ne)/100*q}function P(Z){return Z.backgroundBar.style}function R(Z){var ce=Z.barLabelAxisPos,q=Z.animationCurve,ae=Z.animationFrame,ne=Z.rLevel,de=D(Z);return ce.map(function(me,pe){return{name:de,index:ne,animationCurve:q,animationFrame:ae,shape:B(Z,pe),style:ue(Z,pe)}})}function D(Z){var ce=Z.shapeType;return ce==="leftEchelon"||ce==="rightEchelon"?"polyline":"rect"}function B(Z,ce){var q=Z.shapeType;return q==="leftEchelon"?H(Z,ce):q==="rightEchelon"?G(Z,ce):X(Z,ce)}function H(Z,ce){var q=Z.barValueAxisPos,ae=Z.barLabelAxisPos,ne=Z.barWidth,de=Z.echelonOffset,me=(0,r.default)(q[ce],2),pe=me[0],Se=me[1],Pe=ae[ce],Oe=ne/2,Ne=Z.valueAxis.axis,Te=[];return Ne==="x"?(Te[0]=[Se,Pe-Oe],Te[1]=[Se,Pe+Oe],Te[2]=[pe,Pe+Oe],Te[3]=[pe+de,Pe-Oe],Se-pe<de&&Te.splice(3,1)):(Te[0]=[Pe-Oe,Se],Te[1]=[Pe+Oe,Se],Te[2]=[Pe+Oe,pe],Te[3]=[Pe-Oe,pe-de],pe-Se<de&&Te.splice(3,1)),{points:Te,close:!0}}function G(Z,ce){var q=Z.barValueAxisPos,ae=Z.barLabelAxisPos,ne=Z.barWidth,de=Z.echelonOffset,me=(0,r.default)(q[ce],2),pe=me[0],Se=me[1],Pe=ae[ce],Oe=ne/2,Ne=Z.valueAxis.axis,Te=[];return Ne==="x"?(Te[0]=[Se,Pe+Oe],Te[1]=[Se,Pe-Oe],Te[2]=[pe,Pe-Oe],Te[3]=[pe+de,Pe+Oe],Se-pe<de&&Te.splice(2,1)):(Te[0]=[Pe+Oe,Se],Te[1]=[Pe-Oe,Se],Te[2]=[Pe-Oe,pe],Te[3]=[Pe+Oe,pe-de],pe-Se<de&&Te.splice(2,1)),{points:Te,close:!0}}function X(Z,ce){var q=Z.barValueAxisPos,ae=Z.barLabelAxisPos,ne=Z.barWidth,de=(0,r.default)(q[ce],2),me=de[0],pe=de[1],Se=ae[ce],Pe=Z.valueAxis.axis,Oe={};return Pe==="x"?(Oe.x=me,Oe.y=Se-ne/2,Oe.w=pe-me,Oe.h=ne):(Oe.x=Se-ne/2,Oe.y=pe,Oe.w=ne,Oe.h=me-pe),Oe}function ue(Z,ce){var q=Z.barStyle,ae=Z.gradient,ne=Z.color,de=Z.independentColor,me=Z.independentColors,pe=[q.fill||ne],Se=(0,l.deepMerge)(pe,ae.color);if(de){var Pe=me[ce%me.length];Se=Pe instanceof Array?Pe:[Pe]}Se.length===1&&Se.push(Se[0]);var Oe=ie(Z,ce);return(0,l.deepMerge)({gradientColor:Se,gradientParams:Oe,gradientType:"linear",gradientWith:"fill"},q)}function ie(Z,ce){var q=Z.barValueAxisPos,ae=Z.barLabelAxisPos,ne=Z.data,de=Z.valueAxis,me=de.linePosition,pe=de.axis,Se=(0,r.default)(q[ce],2),Pe=Se[0],Oe=Se[1],Ne=ae[ce],Te=ne[ce],Me=(0,r.default)(me,2),Ce=Me[0],ye=Me[1],_e=pe==="x"?0:1,Le=Oe;return Z.gradient.local||(Le=Te<0?Ce[_e]:ye[_e]),pe==="y"?[Ne,Le,Ne,Pe]:[Le,Ne,Pe,Ne]}function le(Z){var ce=R(Z),q=Z.shapeType;return ce.forEach(function(ae){var ne=ae.shape;q==="leftEchelon"?ne=Q(ne,Z):q==="rightEchelon"?ne=J(ne,Z):ne=se(ne,Z),ae.shape=ne}),ce}function Q(Z,ce){var q=ce.valueAxis.axis;Z=(0,s.deepClone)(Z);var ae=Z,ne=ae.points,de=q==="x"?0:1,me=ne[2][de];return ne.forEach(function(pe){return pe[de]=me}),Z}function J(Z,ce){var q=ce.valueAxis.axis;Z=(0,s.deepClone)(Z);var ae=Z,ne=ae.points,de=q==="x"?0:1,me=ne[2][de];return ne.forEach(function(pe){return pe[de]=me}),Z}function se(Z,ce){var q=ce.valueAxis.axis,ae=Z.x,ne=Z.y,de=Z.w,me=Z.h;return q==="x"?de=0:(ne=ne+me,me=0),{x:ae,y:ne,w:de,h:me}}function he(Z,ce,q,ae){var ne=ae.chart.render,de=D(ce);Z[q]&&Z[q][0].name!==de&&(Z[q].forEach(function(me){return ne.delGraph(me)}),Z[q]=null)}function re(Z){var ce=Z.animationCurve,q=Z.animationFrame,ae=Z.rLevel,ne=z(Z),de=ve(Z);return ne.map(function(me){return{name:"text",index:ae,visible:Z.label.show,animationCurve:ce,animationFrame:q,shape:me,style:de}})}function z(Z){var ce=Y(Z),q=ee(Z);return q.map(function(ae,ne){return{position:ae,content:ce[ne]}})}function Y(Z){var ce=Z.data,q=Z.label,ae=q.formatter;if(ce=ce.filter(function(de){return typeof de=="number"}).map(function(de){return de.toString()}),!ae)return ce;var ne=(0,t.default)(ae);return ne==="string"?ce.map(function(de){return ae.replace("{value}",de)}):ne==="function"?ce.map(function(de,me){return ae({value:de,index:me})}):ce}function ee(Z){var ce=Z.label,q=Z.barValueAxisPos,ae=Z.barLabelAxisPos,ne=ce.position,de=ce.offset,me=Z.valueAxis.axis;return q.map(function(pe,Se){var Pe=(0,r.default)(pe,2),Oe=Pe[0],Ne=Pe[1],Te=ae[Se],Me=[Ne,Te];return ne==="bottom"&&(Me=[Oe,Te]),ne==="center"&&(Me=[(Oe+Ne)/2,Te]),me==="y"&&Me.reverse(),oe(Me,de)})}function oe(Z,ce){var q=(0,r.default)(Z,2),ae=q[0],ne=q[1],de=(0,r.default)(ce,2),me=de[0],pe=de[1];return[ae+me,ne+pe]}function ve(Z){var ce=Z.color,q=Z.label.style,ae=Z.gradient.color;return ae.length&&(ce=ae[0]),q=(0,l.deepMerge)({fill:ce},q),q}return Um}var jm={},x$;function Jae(){if(x$)return jm;x$=1;var e=Fn;Object.defineProperty(jm,"__esModule",{value:!0}),jm.pie=f;var t=e(vo()),n=e(Zr()),r=e(ma()),a=e(kr()),i=rs(),o=Wz(),s=Fr(),l=Qa();function u(z,Y){var ee=Object.keys(z);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(z);Y&&(oe=oe.filter(function(ve){return Object.getOwnPropertyDescriptor(z,ve).enumerable})),ee.push.apply(ee,oe)}return ee}function c(z){for(var Y=1;Y<arguments.length;Y++){var ee=arguments[Y]!=null?arguments[Y]:{};Y%2?u(Object(ee),!0).forEach(function(oe){(0,t.default)(z,oe,ee[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ee)):u(Object(ee)).forEach(function(oe){Object.defineProperty(z,oe,Object.getOwnPropertyDescriptor(ee,oe))})}return z}function f(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=Y.series;ee||(ee=[]);var oe=(0,l.initNeedSeries)(ee,o.pieConfig,"pie");oe=d(oe,z),oe=h(oe,z),oe=v(oe),oe=_(oe),oe=S(oe),oe=C(oe),oe=k(oe),oe=A(oe),(0,i.doUpdate)({chart:z,series:oe,key:"pie",getGraphConfig:$,getStartGraphConfig:P,beforeChange:R}),(0,i.doUpdate)({chart:z,series:oe,key:"pieInsideLabel",getGraphConfig:H}),(0,i.doUpdate)({chart:z,series:oe,key:"pieOutsideLabelLine",getGraphConfig:ue,getStartGraphConfig:ie}),(0,i.doUpdate)({chart:z,series:oe,key:"pieOutsideLabel",getGraphConfig:J,getStartGraphConfig:se})}function d(z,Y){var ee=Y.render.area;return z.forEach(function(oe){var ve=oe.center;ve=ve.map(function(Z,ce){return typeof Z=="number"?Z:parseInt(Z)/100*ee[ce]}),oe.center=ve}),z}function h(z,Y){var ee=Math.min.apply(Math,(0,a.default)(Y.render.area))/2;return z.forEach(function(oe){var ve=oe.radius,Z=oe.data;ve=p(ve,ee),Z.forEach(function(ce){var q=ce.radius;q||(q=ve),q=p(q,ee),ce.radius=q}),oe.radius=ve}),z}function p(z,Y){return z instanceof Array||(z=[0,z]),z=z.map(function(ee){return typeof ee=="number"?ee:parseInt(ee)/100*Y}),z}function v(z,Y){var ee=z.filter(function(oe){var ve=oe.roseType;return ve});return ee.forEach(function(oe){var ve=oe.radius,Z=oe.data,ce=oe.roseSort,q=m(oe),ae=(0,a.default)(Z);Z=g(Z),Z.forEach(function(ne,de){ne.radius[1]=ve[1]-q*de}),ce?Z.reverse():oe.data=ae,oe.roseIncrement=q}),z}function g(z){return z.sort(function(Y,ee){var oe=Y.value,ve=ee.value;if(oe===ve)return 0;if(oe>ve)return-1;if(oe<ve)return 1})}function m(z){var Y=z.radius,ee=z.roseIncrement;if(typeof ee=="number")return ee;if(ee==="auto"){var oe=z.data,ve=oe.reduce(function(q,ae){var ne=ae.radius;return[].concat((0,a.default)(q),(0,a.default)(ne))},[]),Z=Math.min.apply(Math,(0,a.default)(ve)),ce=Math.max.apply(Math,(0,a.default)(ve));return(ce-Z)*.6/(oe.length-1||1)}return parseInt(ee)/100*Y[1]}function _(z){return z.forEach(function(Y){var ee=Y.data,oe=Y.percentToFixed,ve=w(ee);ee.forEach(function(ce){var q=ce.value;ce.percent=q/ve*100,ce.percentForLabel=b(q/ve*100,oe)});var Z=(0,l.mulAdd)(ee.slice(0,-1).map(function(ce){var q=ce.percent;return q}));ee.slice(-1)[0].percent=100-Z,ee.slice(-1)[0].percentForLabel=b(100-Z,oe)}),z}function b(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=z.toString(),oe=ee.split("."),ve=oe[1]||"0",Z=ve.slice(0,Y);return oe[1]=Z,parseFloat(oe.join("."))}function w(z){return(0,l.mulAdd)(z.map(function(Y){var ee=Y.value;return ee}))}function S(z){return z.forEach(function(Y){var ee=Y.startAngle,oe=Y.data;oe.forEach(function(ve,Z){var ce=x(oe,Z),q=(0,r.default)(ce,2),ae=q[0],ne=q[1];ve.startAngle=ee+ae,ve.endAngle=ee+ne})}),z}function x(z,Y){var ee=Math.PI*2,oe=z.slice(0,Y+1),ve=(0,l.mulAdd)(oe.map(function(q){var ae=q.percent;return ae})),Z=z[Y].percent,ce=ve-Z;return[ee*ce/100,ee*ve/100]}function C(z){return z.forEach(function(Y){var ee=Y.data;ee.forEach(function(oe){oe.insideLabelPos=T(Y,oe)})}),z}function T(z,Y){var ee=z.center,oe=Y.startAngle,ve=Y.endAngle,Z=(0,r.default)(Y.radius,2),ce=Z[0],q=Z[1],ae=(ce+q)/2,ne=(oe+ve)/2;return s.getCircleRadianPoint.apply(void 0,(0,a.default)(ee).concat([ae,ne]))}function k(z){return z.forEach(function(Y){var ee=Y.data,oe=Y.center;ee.forEach(function(ve){var Z=ve.startAngle,ce=ve.endAngle,q=ve.radius,ae=(Z+ce)/2,ne=s.getCircleRadianPoint.apply(void 0,(0,a.default)(oe).concat([q[1],ae]));ve.edgeCenterPos=ne})}),z}function A(z){return z.forEach(function(Y){var ee=E(Y),oe=E(Y,!1);ee=L(ee),oe=L(oe),N(ee,Y),N(oe,Y,!1)}),z}function M(z){var Y=z.outsideLabel.labelLineBendGap,ee=I(z);return typeof Y!="number"&&(Y=parseInt(Y)/100*ee),Y+ee}function I(z){var Y=z.data,ee=Y.map(function(oe){var ve=(0,r.default)(oe.radius,2);ve[0];var Z=ve[1];return Z});return Math.max.apply(Math,(0,a.default)(ee))}function E(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ee=z.data,oe=z.center,ve=oe[0];return ee.filter(function(Z){var ce=Z.edgeCenterPos,q=ce[0];return Y?q<=ve:q>ve})}function L(z){return z.sort(function(Y,ee){var oe=(0,r.default)(Y.edgeCenterPos,2);oe[0];var ve=oe[1],Z=(0,r.default)(ee.edgeCenterPos,2);Z[0];var ce=Z[1];if(ve>ce)return 1;if(ve<ce)return-1;if(ve===ce)return 0}),z}function N(z,Y){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,oe=Y.center,ve=Y.outsideLabel,Z=M(Y);z.forEach(function(ce){var q=ce.edgeCenterPos,ae=ce.startAngle,ne=ce.endAngle,de=ve.labelLineEndLength,me=(ae+ne)/2,pe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(oe).concat([Z,me])),Se=(0,a.default)(pe);Se[0]+=de*(ee?-1:1),ce.labelLine=[q,pe,Se],ce.labelLineLength=(0,l.getPolylineLength)(ce.labelLine),ce.align={textAlign:"left",textBaseline:"middle"},ee&&(ce.align.textAlign="right")})}function $(z){var Y=z.data,ee=z.animationCurve,oe=z.animationFrame,ve=z.rLevel;return Y.map(function(Z,ce){return{name:"pie",index:ve,animationCurve:ee,animationFrame:oe,shape:D(z,ce),style:B(z,ce)}})}function P(z){var Y=z.animationDelayGap,ee=z.startAnimationCurve,oe=$(z);return oe.forEach(function(ve,Z){ve.animationCurve=ee,ve.animationDelay=Z*Y,ve.shape.or=ve.shape.ir}),oe}function R(z){z.animationDelay=0}function D(z,Y){var ee=z.center,oe=z.data,ve=oe[Y],Z=ve.radius,ce=ve.startAngle,q=ve.endAngle;return{startAngle:ce,endAngle:q,ir:Z[0],or:Z[1],rx:ee[0],ry:ee[1]}}function B(z,Y){var ee=z.pieStyle,oe=z.data,ve=oe[Y],Z=ve.color;return(0,l.deepMerge)({fill:Z},ee)}function H(z){var Y=z.animationCurve,ee=z.animationFrame,oe=z.data,ve=z.rLevel;return oe.map(function(Z,ce){return{name:"text",index:ve,visible:z.insideLabel.show,animationCurve:Y,animationFrame:ee,shape:G(z,ce),style:X(z)}})}function G(z,Y){var ee=z.insideLabel,oe=z.data,ve=ee.formatter,Z=oe[Y],ce=(0,n.default)(ve),q="";return ce==="string"&&(q=ve.replace("{name}",Z.name),q=q.replace("{percent}",Z.percentForLabel),q=q.replace("{value}",Z.value)),ce==="function"&&(q=ve(Z)),{content:q,position:Z.insideLabelPos}}function X(z,Y){var ee=z.insideLabel.style;return ee}function ue(z){var Y=z.animationCurve,ee=z.animationFrame,oe=z.data,ve=z.rLevel;return oe.map(function(Z,ce){return{name:"polyline",index:ve,visible:z.outsideLabel.show,animationCurve:Y,animationFrame:ee,shape:le(z,ce),style:Q(z,ce)}})}function ie(z){var Y=z.data,ee=ue(z);return ee.forEach(function(oe,ve){oe.style.lineDash=[0,Y[ve].labelLineLength]}),ee}function le(z,Y){var ee=z.data,oe=ee[Y];return{points:oe.labelLine}}function Q(z,Y){var ee=z.outsideLabel,oe=z.data,ve=ee.labelLineStyle,Z=oe[Y].color;return(0,l.deepMerge)({stroke:Z,lineDash:[oe[Y].labelLineLength,0]},ve)}function J(z){var Y=z.animationCurve,ee=z.animationFrame,oe=z.data,ve=z.rLevel;return oe.map(function(Z,ce){return{name:"text",index:ve,visible:z.outsideLabel.show,animationCurve:Y,animationFrame:ee,shape:he(z,ce),style:re(z,ce)}})}function se(z){var Y=z.data,ee=J(z);return ee.forEach(function(oe,ve){oe.shape.position=Y[ve].labelLine[1]}),ee}function he(z,Y){var ee=z.outsideLabel,oe=z.data,ve=ee.formatter,Z=oe[Y],ce=Z.labelLine,q=Z.name,ae=Z.percentForLabel,ne=Z.value,de=(0,n.default)(ve),me="";return de==="string"&&(me=ve.replace("{name}",q),me=me.replace("{percent}",ae),me=me.replace("{value}",ne)),de==="function"&&(me=ve(oe[Y])),{content:me,position:ce[2]}}function re(z,Y){var ee=z.outsideLabel,oe=z.data,ve=oe[Y],Z=ve.color,ce=ve.align,q=ee.style;return(0,l.deepMerge)(c({fill:Z},ce),q)}return jm}var Km={},C$;function Qae(){if(C$)return Km;C$=1;var e=Fn;Object.defineProperty(Km,"__esModule",{value:!0}),Km.radarAxis=c;var t=e(ma()),n=e(vo()),r=e(kr()),a=rs(),i=ns(),o=Fr(),s=Qa();function l(P,R){var D=Object.keys(P);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(P);R&&(B=B.filter(function(H){return Object.getOwnPropertyDescriptor(P,H).enumerable})),D.push.apply(D,B)}return D}function u(P){for(var R=1;R<arguments.length;R++){var D=arguments[R]!=null?arguments[R]:{};R%2?l(Object(D),!0).forEach(function(B){(0,n.default)(P,B,D[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(D)):l(Object(D)).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(D,B))})}return P}function c(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=R.radar,B=[];D&&(B=f(D),B=d(B,P),B=h(B,P),B=p(B),B=v(B),B=g(B),B=[B]);var H=B;B.length&&!B[0].show&&(H=[]),(0,a.doUpdate)({chart:P,series:H,key:"radarAxisSplitArea",getGraphConfig:m,beforeUpdate:w,beforeChange:S}),(0,a.doUpdate)({chart:P,series:H,key:"radarAxisSplitLine",getGraphConfig:x,beforeUpdate:k,beforeChange:A}),(0,a.doUpdate)({chart:P,series:H,key:"radarAxisLine",getGraphConfig:M}),(0,a.doUpdate)({chart:P,series:H,key:"radarAxisLable",getGraphConfig:L}),P.radarAxis=B[0]}function f(P){return(0,s.deepMerge)((0,o.deepClone)(i.radarAxisConfig),P)}function d(P,R){var D=R.render.area,B=P.center;return P.centerPos=B.map(function(H,G){return typeof H=="number"?H:parseInt(H)/100*D[G]}),P}function h(P,R){var D=R.render.area,B=P.splitNum,H=P.radius,G=Math.min.apply(Math,(0,r.default)(D))/2;typeof H!="number"&&(H=parseInt(H)/100*G);var X=H/B;return P.ringRadius=new Array(B).fill(0).map(function(ue,ie){return X*(ie+1)}),P.radius=H,P}function p(P){var R=P.indicator,D=P.centerPos,B=P.radius,H=P.startAngle,G=Math.PI*2,X=R.length,ue=G/X,ie=new Array(X).fill(0).map(function(le,Q){return ue*Q+H});return P.axisLineAngles=ie,P.axisLinePosition=ie.map(function(le){return o.getCircleRadianPoint.apply(void 0,(0,r.default)(D).concat([B,le]))}),P}function v(P){var R=P.ringRadius,D=R[0]/2;return P.areaRadius=R.map(function(B){return B-D}),P}function g(P){var R=P.axisLineAngles,D=P.centerPos,B=P.radius,H=P.axisLabel;return B+=H.labelGap,P.axisLabelPosition=R.map(function(G){return o.getCircleRadianPoint.apply(void 0,(0,r.default)(D).concat([B,G]))}),P}function m(P){var R=P.areaRadius,D=P.polygon,B=P.animationCurve,H=P.animationFrame,G=P.rLevel,X=D?"regPolygon":"ring";return R.map(function(ue,ie){return{name:X,index:G,visible:P.splitArea.show,animationCurve:B,animationFrame:H,shape:_(P,ie),style:b(P,ie)}})}function _(P,R){var D=P.polygon,B=P.areaRadius,H=P.indicator,G=P.centerPos,X=H.length,ue={rx:G[0],ry:G[1],r:B[R]};return D&&(ue.side=X),ue}function b(P,R){var D=P.splitArea,B=P.ringRadius,H=P.axisLineAngles,G=P.polygon,X=P.centerPos,ue=D.color,ie=D.style;ie=u({fill:"rgba(0, 0, 0, 0)"},ie);var le=B[0]-0;if(G){var Q=o.getCircleRadianPoint.apply(void 0,(0,r.default)(X).concat([B[0],H[0]])),J=o.getCircleRadianPoint.apply(void 0,(0,r.default)(X).concat([B[0],H[1]]));le=(0,s.getPointToLineDistance)(X,Q,J)}if(ie=(0,s.deepMerge)((0,o.deepClone)(ie,!0),{lineWidth:le}),!ue.length)return ie;var se=ue.length;return(0,s.deepMerge)(ie,{stroke:ue[R%se]})}function w(P,R,D,B){var H=P[D];if(H){var G=B.chart.render,X=R.polygon,ue=H[0].name,ie=X?"regPolygon":"ring",le=ie!==ue;le&&(H.forEach(function(Q){return G.delGraph(Q)}),P[D]=null)}}function S(P,R){var D=R.shape.side;typeof D=="number"&&(P.shape.side=D)}function x(P){var R=P.ringRadius,D=P.polygon,B=P.animationCurve,H=P.animationFrame,G=P.rLevel,X=D?"regPolygon":"ring";return R.map(function(ue,ie){return{name:X,index:G,animationCurve:B,animationFrame:H,visible:P.splitLine.show,shape:C(P,ie),style:T(P,ie)}})}function C(P,R){var D=P.ringRadius,B=P.centerPos,H=P.indicator,G=P.polygon,X={rx:B[0],ry:B[1],r:D[R]},ue=H.length;return G&&(X.side=ue),X}function T(P,R){var D=P.splitLine,B=D.color,H=D.style;if(H=u({fill:"rgba(0, 0, 0, 0)"},H),!B.length)return H;var G=B.length;return(0,s.deepMerge)(H,{stroke:B[R%G]})}function k(P,R,D,B){var H=P[D];if(H){var G=B.chart.render,X=R.polygon,ue=H[0].name,ie=X?"regPolygon":"ring",le=ie!==ue;le&&(H.forEach(function(Q){return G.delGraph(Q)}),P[D]=null)}}function A(P,R){var D=R.shape.side;typeof D=="number"&&(P.shape.side=D)}function M(P){var R=P.axisLinePosition,D=P.animationCurve,B=P.animationFrame,H=P.rLevel;return R.map(function(G,X){return{name:"polyline",index:H,visible:P.axisLine.show,animationCurve:D,animationFrame:B,shape:I(P,X),style:E(P,X)}})}function I(P,R){var D=P.centerPos,B=P.axisLinePosition,H=[D,B[R]];return{points:H}}function E(P,R){var D=P.axisLine,B=D.color,H=D.style;if(!B.length)return H;var G=B.length;return(0,s.deepMerge)(H,{stroke:B[R%G]})}function L(P){var R=P.axisLabelPosition,D=P.animationCurve,B=P.animationFrame,H=P.rLevel;return R.map(function(G,X){return{name:"text",index:H,visible:P.axisLabel.show,animationCurve:D,animationFrame:B,shape:N(P,X),style:$(P,X)}})}function N(P,R){var D=P.axisLabelPosition,B=P.indicator;return{content:B[R].name,position:D[R]}}function $(P,R){var D=P.axisLabel,B=(0,t.default)(P.centerPos,2),H=B[0],G=B[1],X=P.axisLabelPosition,ue=D.color,ie=D.style,le=(0,t.default)(X[R],2),Q=le[0],J=le[1],se=Q>H?"left":"right",he=J>G?"top":"bottom";if(ie=(0,s.deepMerge)({textAlign:se,textBaseline:he},ie),!ue.length)return ie;var re=ue.length;return(0,s.deepMerge)(ie,{fill:ue[R%re]})}return Km}var Ym={},T$;function eie(){if(T$)return Ym;T$=1;var e=Fn;Object.defineProperty(Ym,"__esModule",{value:!0}),Ym.radar=d;var t=e(vo()),n=e(Zr()),r=e(ma()),a=e(kr()),i=rs(),o=ns(),s=Fr(),l=jg,u=Qa();function c(E,L){var N=Object.keys(E);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(E);L&&($=$.filter(function(P){return Object.getOwnPropertyDescriptor(E,P).enumerable})),N.push.apply(N,$)}return N}function f(E){for(var L=1;L<arguments.length;L++){var N=arguments[L]!=null?arguments[L]:{};L%2?c(Object(N),!0).forEach(function($){(0,t.default)(E,$,N[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function($){Object.defineProperty(E,$,Object.getOwnPropertyDescriptor(N,$))})}return E}function d(E){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=L.series;N||(N=[]);var $=(0,u.initNeedSeries)(N,o.radarConfig,"radar");$=h($,E),$=p($,E),$=v($,E),(0,i.doUpdate)({chart:E,series:$,key:"radar",getGraphConfig:g,getStartGraphConfig:m,beforeChange:w}),(0,i.doUpdate)({chart:E,series:$,key:"radarPoint",getGraphConfig:S,getStartGraphConfig:x}),(0,i.doUpdate)({chart:E,series:$,key:"radarLabel",getGraphConfig:k})}function h(E,L){var N=L.radarAxis;if(!N)return[];var $=N.indicator,P=N.axisLineAngles,R=N.radius,D=N.centerPos;return E.forEach(function(B){var H=B.data;B.dataRadius=[],B.radarPosition=$.map(function(G,X){var ue=G.max,ie=G.min,le=H[X];typeof ue!="number"&&(ue=le),typeof ie!="number"&&(ie=0),typeof le!="number"&&(le=ie);var Q=(le-ie)/(ue-ie)*R;return B.dataRadius[X]=Q,s.getCircleRadianPoint.apply(void 0,(0,a.default)(D).concat([Q,P[X]]))})}),E}function p(E,L){var N=L.radarAxis;if(!N)return[];var $=N.centerPos,P=N.axisLineAngles;return E.forEach(function(R){var D=R.dataRadius,B=R.label,H=B.labelGap;R.labelPosition=D.map(function(G,X){return s.getCircleRadianPoint.apply(void 0,(0,a.default)($).concat([G+H,P[X]]))})}),E}function v(E,L){var N=L.radarAxis;if(!N)return[];var $=(0,r.default)(N.centerPos,2),P=$[0],R=$[1];return E.forEach(function(D){var B=D.labelPosition,H=B.map(function(G){var X=(0,r.default)(G,2),ue=X[0],ie=X[1],le=ue>P?"left":"right",Q=ie>R?"top":"bottom";return{textAlign:le,textBaseline:Q}});D.labelAlign=H}),E}function g(E){var L=E.animationCurve,N=E.animationFrame,$=E.rLevel;return[{name:"polyline",index:$,animationCurve:L,animationFrame:N,shape:_(E),style:b(E)}]}function m(E,L){var N=L.chart.radarAxis.centerPos,$=g(E)[0],P=$.shape.points.length,R=new Array(P).fill(0).map(function(D){return(0,a.default)(N)});return $.shape.points=R,[$]}function _(E){var L=E.radarPosition;return{points:L,close:!0}}function b(E){var L=E.radarStyle,N=E.color,$=(0,l.getRgbaValue)(N);$[3]=.5;var P={stroke:N,fill:(0,l.getColorFromRgbValue)($)};return(0,u.deepMerge)(P,L)}function w(E,L){var N=L.shape,$=E.shape.points,P=$.length,R=N.points.length;if(R>P){var D=$.slice(-1)[0],B=new Array(R-P).fill(0).map(function(H){return(0,a.default)(D)});$.push.apply($,(0,a.default)(B))}else R<P&&$.splice(R)}function S(E){var L=E.radarPosition,N=E.animationCurve,$=E.animationFrame,P=E.rLevel;return L.map(function(R,D){return{name:"circle",index:P,animationCurve:N,animationFrame:$,visible:E.point.show,shape:C(E,D),style:T(E)}})}function x(E){var L=S(E);return L.forEach(function(N){return N.shape.r=.01}),L}function C(E,L){var N=E.radarPosition,$=E.point,P=$.radius,R=N[L];return{rx:R[0],ry:R[1],r:P}}function T(E,L){var N=E.point,$=E.color,P=N.style;return(0,u.deepMerge)({stroke:$},P)}function k(E){var L=E.labelPosition,N=E.animationCurve,$=E.animationFrame,P=E.rLevel;return L.map(function(R,D){return{name:"text",index:P,visible:E.label.show,animationCurve:N,animationFrame:$,shape:A(E,D),style:I(E,D)}})}function A(E,L){var N=E.labelPosition,$=E.label,P=E.data,R=$.offset,D=$.formatter,B=M(N[L],R),H=P[L]?P[L].toString():"0",G=(0,n.default)(D);return G==="string"&&(H=D.replace("{value}",H)),G==="function"&&(H=D(H)),{content:H,position:B}}function M(E,L){var N=(0,r.default)(E,2),$=N[0],P=N[1],R=(0,r.default)(L,2),D=R[0],B=R[1];return[$+D,P+B]}function I(E,L){var N=E.label,$=E.color,P=E.labelAlign,R=N.style,D=f({fill:$},P[L]);return(0,u.deepMerge)(D,R)}return Ym}var qm={},k$;function tie(){if(k$)return qm;k$=1;var e=Fn;Object.defineProperty(qm,"__esModule",{value:!0}),qm.gauge=d;var t=e(vo()),n=e(Zr()),r=e(ma()),a=e(kr()),i=rs(),o=Uz(),s=Fr(),l=Qa(),u=jg;function c(re,z){var Y=Object.keys(re);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(re);z&&(ee=ee.filter(function(oe){return Object.getOwnPropertyDescriptor(re,oe).enumerable})),Y.push.apply(Y,ee)}return Y}function f(re){for(var z=1;z<arguments.length;z++){var Y=arguments[z]!=null?arguments[z]:{};z%2?c(Object(Y),!0).forEach(function(ee){(0,t.default)(re,ee,Y[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(Y)):c(Object(Y)).forEach(function(ee){Object.defineProperty(re,ee,Object.getOwnPropertyDescriptor(Y,ee))})}return re}function d(re){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=z.series;Y||(Y=[]);var ee=(0,l.initNeedSeries)(Y,o.gaugeConfig,"gauge");ee=h(ee,re),ee=p(ee,re),ee=v(ee,re),ee=g(ee),ee=m(ee),ee=_(ee),ee=b(ee),ee=w(ee),ee=S(ee),ee=x(ee),(0,i.doUpdate)({chart:re,series:ee,key:"gaugeAxisTick",getGraphConfig:T}),(0,i.doUpdate)({chart:re,series:ee,key:"gaugeAxisLabel",getGraphConfig:M}),(0,i.doUpdate)({chart:re,series:ee,key:"gaugeBackgroundArc",getGraphConfig:L,getStartGraphConfig:P}),(0,i.doUpdate)({chart:re,series:ee,key:"gaugeArc",getGraphConfig:R,getStartGraphConfig:H,beforeChange:G}),(0,i.doUpdate)({chart:re,series:ee,key:"gaugePointer",getGraphConfig:X,getStartGraphConfig:Q}),(0,i.doUpdate)({chart:re,series:ee,key:"gaugeDetails",getGraphConfig:J})}function h(re,z){var Y=z.render.area;return re.forEach(function(ee){var oe=ee.center;oe=oe.map(function(ve,Z){return typeof ve=="number"?ve:parseInt(ve)/100*Y[Z]}),ee.center=oe}),re}function p(re,z){var Y=z.render.area,ee=Math.min.apply(Math,(0,a.default)(Y))/2;return re.forEach(function(oe){var ve=oe.radius;typeof ve!="number"&&(ve=parseInt(ve)/100*ee),oe.radius=ve}),re}function v(re,z){var Y=z.render.area,ee=Math.min.apply(Math,(0,a.default)(Y))/2;return re.forEach(function(oe){var ve=oe.radius,Z=oe.data,ce=oe.arcLineWidth;Z.forEach(function(q){var ae=q.radius,ne=q.lineWidth;ae||(ae=ve),typeof ae!="number"&&(ae=parseInt(ae)/100*ee),q.radius=ae,ne||(ne=ce),q.lineWidth=ne})}),re}function g(re,z){return re.forEach(function(Y){var ee=Y.startAngle,oe=Y.endAngle,ve=Y.data,Z=Y.min,ce=Y.max,q=oe-ee,ae=ce-Z;ve.forEach(function(ne){var de=ne.value,me=Math.abs((de-Z)/ae*q);ne.startAngle=ee,ne.endAngle=ee+me})}),re}function m(re,z){return re.forEach(function(Y){var ee=Y.data;ee.forEach(function(oe){var ve=oe.color,Z=oe.gradient;(!Z||!Z.length)&&(Z=ve),Z instanceof Array||(Z=[Z]),oe.gradient=Z})}),re}function _(re,z){return re.forEach(function(Y){var ee=Y.startAngle,oe=Y.endAngle,ve=Y.splitNum,Z=Y.center,ce=Y.radius,q=Y.arcLineWidth,ae=Y.axisTick,ne=ae.tickLength,de=ae.style.lineWidth,me=oe-ee,pe=ce-q/2,Se=pe-ne,Pe=me/(ve-1),Oe=2*Math.PI*ce*me/(Math.PI*2),Ne=Math.ceil(de/2)/Oe*me;Y.tickAngles=[],Y.tickInnerRadius=[],Y.tickPosition=new Array(ve).fill(0).map(function(Te,Me){var Ce=ee+Pe*Me;return Me===0&&(Ce+=Ne),Me===ve-1&&(Ce-=Ne),Y.tickAngles[Me]=Ce,Y.tickInnerRadius[Me]=Se,[s.getCircleRadianPoint.apply(void 0,(0,a.default)(Z).concat([pe,Ce])),s.getCircleRadianPoint.apply(void 0,(0,a.default)(Z).concat([Se,Ce]))]})}),re}function b(re,z){return re.forEach(function(Y){var ee=Y.center,oe=Y.tickInnerRadius,ve=Y.tickAngles,Z=Y.axisLabel.labelGap,ce=ve.map(function(ae,ne){return s.getCircleRadianPoint.apply(void 0,(0,a.default)(ee).concat([oe[ne]-Z,ve[ne]]))}),q=ce.map(function(ae){var ne=(0,r.default)(ae,2),de=ne[0],me=ne[1];return{textAlign:de>ee[0]?"right":"left",textBaseline:me>ee[1]?"bottom":"top"}});Y.labelPosition=ce,Y.labelAlign=q}),re}function w(re,z){return re.forEach(function(Y){var ee=Y.axisLabel,oe=Y.min,ve=Y.max,Z=Y.splitNum,ce=ee.data,q=ee.formatter,ae=(ve-oe)/(Z-1),ne=new Array(Z).fill(0).map(function(me,pe){return parseInt(oe+ae*pe)}),de=(0,n.default)(q);ce=(0,l.deepMerge)(ne,ce).map(function(me,pe){var Se=me;return de==="string"&&(Se=q.replace("{value}",me)),de==="function"&&(Se=q({value:me,index:pe})),Se}),ee.data=ce}),re}function S(re,z){return re.forEach(function(Y){var ee=Y.data,oe=Y.details,ve=Y.center,Z=oe.position,ce=oe.offset,q=ee.map(function(ae){var ne=ae.startAngle,de=ae.endAngle,me=ae.radius,pe=null;return Z==="center"?pe=ve:Z==="start"?pe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(ve).concat([me,ne])):Z==="end"&&(pe=s.getCircleRadianPoint.apply(void 0,(0,a.default)(ve).concat([me,de]))),C(pe,ce)});Y.detailsPosition=q}),re}function x(re,z){return re.forEach(function(Y){var ee=Y.data,oe=Y.details,ve=oe.formatter,Z=(0,n.default)(ve),ce=ee.map(function(q){var ae=q.value;return Z==="string"&&(ae=ve.replace("{value}","{nt}"),ae=ae.replace("{name}",q.name)),Z==="function"&&(ae=ve(q)),ae.toString()});Y.detailsContent=ce}),re}function C(re,z){var Y=(0,r.default)(re,2),ee=Y[0],oe=Y[1],ve=(0,r.default)(z,2),Z=ve[0],ce=ve[1];return[ee+Z,oe+ce]}function T(re){var z=re.tickPosition,Y=re.animationCurve,ee=re.animationFrame,oe=re.rLevel;return z.map(function(ve,Z){return{name:"polyline",index:oe,visible:re.axisTick.show,animationCurve:Y,animationFrame:ee,shape:k(re,Z),style:A(re)}})}function k(re,z){var Y=re.tickPosition;return{points:Y[z]}}function A(re,z){var Y=re.axisTick.style;return Y}function M(re){var z=re.labelPosition,Y=re.animationCurve,ee=re.animationFrame,oe=re.rLevel;return z.map(function(ve,Z){return{name:"text",index:oe,visible:re.axisLabel.show,animationCurve:Y,animationFrame:ee,shape:I(re,Z),style:E(re,Z)}})}function I(re,z){var Y=re.labelPosition,ee=re.axisLabel.data;return{content:ee[z].toString(),position:Y[z]}}function E(re,z){var Y=re.labelAlign,ee=re.axisLabel,oe=ee.style;return(0,l.deepMerge)(f({},Y[z]),oe)}function L(re){var z=re.animationCurve,Y=re.animationFrame,ee=re.rLevel;return[{name:"arc",index:ee,visible:re.backgroundArc.show,animationCurve:z,animationFrame:Y,shape:N(re),style:$(re)}]}function N(re){var z=re.startAngle,Y=re.endAngle,ee=re.center,oe=re.radius;return{rx:ee[0],ry:ee[1],r:oe,startAngle:z,endAngle:Y}}function $(re){var z=re.backgroundArc,Y=re.arcLineWidth,ee=z.style;return(0,l.deepMerge)({lineWidth:Y},ee)}function P(re){var z=L(re)[0],Y=f({},z.shape);return Y.endAngle=z.shape.startAngle,z.shape=Y,[z]}function R(re){var z=re.data,Y=re.animationCurve,ee=re.animationFrame,oe=re.rLevel;return z.map(function(ve,Z){return{name:"agArc",index:oe,animationCurve:Y,animationFrame:ee,shape:D(re,Z),style:B(re,Z)}})}function D(re,z){var Y=re.data,ee=re.center,oe=re.endAngle,ve=Y[z],Z=ve.radius,ce=ve.startAngle,q=ve.endAngle,ae=ve.localGradient;return ae&&(oe=q),{rx:ee[0],ry:ee[1],r:Z,startAngle:ce,endAngle:q,gradientEndAngle:oe}}function B(re,z){var Y=re.data,ee=re.dataItemStyle,oe=Y[z],ve=oe.lineWidth,Z=oe.gradient;return Z=Z.map(function(ce){return(0,u.getRgbaValue)(ce)}),(0,l.deepMerge)({lineWidth:ve,gradient:Z},ee)}function H(re){var z=R(re);return z.map(function(Y){var ee=f({},Y.shape);ee.endAngle=Y.shape.startAngle,Y.shape=ee}),z}function G(re,z){var Y=re.style.gradient,ee=Y.length,oe=z.style.gradient.length;if(ee>oe)Y.splice(oe);else{var ve=Y.slice(-1)[0];Y.push.apply(Y,(0,a.default)(new Array(oe-ee).fill(0).map(function(Z){return(0,a.default)(ve)})))}}function X(re){var z=re.animationCurve,Y=re.animationFrame,ee=re.center,oe=re.rLevel;return[{name:"polyline",index:oe,visible:re.pointer.show,animationCurve:z,animationFrame:Y,shape:ue(re),style:ie(re),setGraphCenter:function(ve,Z){Z.style.graphCenter=ee}}]}function ue(re){var z=re.center;return{points:le(z),close:!0}}function ie(re){var z=re.startAngle,Y=re.endAngle,ee=re.min,oe=re.max,ve=re.data,Z=re.pointer,ce=re.center,q=Z.valueIndex,ae=Z.style,ne=ve[q]?ve[q].value:0,de=(ne-ee)/(oe-ee)*(Y-z)+z+Math.PI/2;return(0,l.deepMerge)({rotate:(0,l.radianToAngle)(de),scale:[1,1],graphCenter:ce},ae)}function le(re){var z=(0,r.default)(re,2),Y=z[0],ee=z[1],oe=[Y,ee-40],ve=[Y+5,ee],Z=[Y,ee+10],ce=[Y-5,ee];return[oe,ve,Z,ce]}function Q(re){var z=re.startAngle,Y=X(re)[0];return Y.style.rotate=(0,l.radianToAngle)(z+Math.PI/2),[Y]}function J(re){var z=re.detailsPosition,Y=re.animationCurve,ee=re.animationFrame,oe=re.rLevel,ve=re.details.show;return z.map(function(Z,ce){return{name:"numberText",index:oe,visible:ve,animationCurve:Y,animationFrame:ee,shape:se(re,ce),style:he(re,ce)}})}function se(re,z){var Y=re.detailsPosition,ee=re.detailsContent,oe=re.data,ve=re.details,Z=Y[z],ce=ee[z],q=oe[z].value,ae=ve.valueToFixed;return{number:[q],content:ce,position:Z,toFixed:ae}}function he(re,z){var Y=re.details,ee=re.data,oe=Y.style,ve=ee[z].color;return(0,l.deepMerge)({fill:ve},oe)}return qm}var Xm={},A$;function nie(){if(A$)return Xm;A$=1;var e=Fn;Object.defineProperty(Xm,"__esModule",{value:!0}),Xm.legend=l;var t=e(vo()),n=e(ma()),r=e(Zr()),a=rs(),i=Fr(),o=ns(),s=Qa();function l(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},D=R.legend;D?(D=(0,s.deepMerge)((0,i.deepClone)(o.legendConfig,!0),D),D=u(D),D=c(D,R,P),D=f(D,P),D=p(D,P),D=[D]):D=[],(0,a.doUpdate)({chart:P,series:D,key:"legendIcon",getGraphConfig:k}),(0,a.doUpdate)({chart:P,series:D,key:"legendText",getGraphConfig:I})}function u(P){var R=P.data;return P.data=R.map(function(D){var B=(0,r.default)(D);return B==="string"?{name:D}:B==="object"?D:{name:""}}),P}function c(P,R,D){var B=R.series,H=D.legendStatus,G=P.data.filter(function(X){var ue=X.name,ie=B.find(function(le){var Q=le.name;return ue===Q});return ie?(X.color||(X.color=ie.color),X.icon||(X.icon=ie.type),X):!1});return(!H||H.length!==P.data.length)&&(H=new Array(P.data.length).fill(!0)),G.forEach(function(X,ue){return X.status=H[ue]}),P.data=G,D.legendStatus=H,P}function f(P,R){var D=R.render.ctx,B=P.data,H=P.textStyle,G=P.textUnselectedStyle;return B.forEach(function(X){var ue=X.status,ie=X.name;X.textWidth=d(D,ie,ue?H:G)}),P}function d(P,R,D){return P.font=h(D),P.measureText(R).width}function h(P){var R=P.fontFamily,D=P.fontSize;return"".concat(D,"px ").concat(R)}function p(P,R){var D=P.orient;return D==="vertical"?S(P,R):v(P,R),P}function v(P,R){var D=P.iconHeight,B=P.itemGap,H=g(P,R),G=H.map(function(ie){return _(ie,P,R)}),X=b(P,R),ue={textAlign:"left",textBaseline:"middle"};H.forEach(function(ie,le){return ie.forEach(function(Q){var J=Q.iconPosition,se=Q.textPosition,he=G[le],re=X+le*(B+D);Q.iconPosition=w(J,[he,re]),Q.textPosition=w(se,[he,re]),Q.align=ue})})}function g(P,R){var D=P.data,B=P.iconWidth,H=R.render.area[0],G=0,X=[[]];return D.forEach(function(ue,ie){var le=m(G,ie,P),Q=le+B+5+ue.textWidth;Q>=H&&(G=ie,le=m(G,ie,P),X.push([])),ue.iconPosition=[le,0],ue.textPosition=[le+B+5,0],X.slice(-1)[0].push(ue)}),X}function m(P,R,D){var B=D.data,H=D.iconWidth,G=D.itemGap,X=B.slice(P,R);return(0,s.mulAdd)(X.map(function(ue){var ie=ue.textWidth;return ie}))+(R-P)*(G+5+H)}function _(P,R,D){var B=R.left,H=R.right,G=R.iconWidth,X=R.itemGap,ue=D.render.area[0],ie=P.length,le=(0,s.mulAdd)(P.map(function(J){var se=J.textWidth;return se}))+ie*(5+G)+(ie-1)*X,Q=[B,H].findIndex(function(J){return J!=="auto"});return Q===-1?(ue-le)/2:Q===0?typeof B=="number"?B:parseInt(B)/100*ue:(typeof H!="number"&&(H=parseInt(H)/100*ue),ue-(le+H))}function b(P,R){var D=P.top,B=P.bottom,H=P.iconHeight,G=R.render.area[1],X=[D,B].findIndex(function(J){return J!=="auto"}),ue=H/2;if(X===-1){var ie=R.gridArea,le=ie.y,Q=ie.h;return le+Q+45-ue}else return X===0?typeof D=="number"?D-ue:parseInt(D)/100*G-ue:(typeof B!="number"&&(B=parseInt(B)/100*G),G-B-ue)}function w(P,R){var D=(0,n.default)(P,2),B=D[0],H=D[1],G=(0,n.default)(R,2),X=G[0],ue=G[1];return[B+X,H+ue]}function S(P,R){var D=x(P,R),B=(0,n.default)(D,2),H=B[0],G=B[1],X=C(P,R);T(P,H);var ue={textAlign:"left",textBaseline:"middle"};P.data.forEach(function(ie){var le=ie.textPosition,Q=ie.iconPosition;ie.textPosition=w(le,[G,X]),ie.iconPosition=w(Q,[G,X]),ie.align=ue})}function x(P,R){var D=P.left,B=P.right,H=R.render.area[0],G=[D,B].findIndex(function(ue){return ue!=="auto"});if(G===-1)return[!0,H-10];var X=[D,B][G];return typeof X!="number"&&(X=parseInt(X)/100*H),[!!G,X]}function C(P,R){var D=P.iconHeight,B=P.itemGap,H=P.data,G=P.top,X=P.bottom,ue=R.render.area[1],ie=H.length,le=ie*D+(ie-1)*B,Q=[G,X].findIndex(function(se){return se!=="auto"});if(Q===-1)return(ue-le)/2;var J=[G,X][Q];return typeof J!="number"&&(J=parseInt(J)/100*ue),Q===1&&(J=ue-J-le),J}function T(P,R){var D=P.data,B=P.iconWidth,H=P.iconHeight,G=P.itemGap,X=H/2;D.forEach(function(ue,ie){var le=ue.textWidth,Q=(H+G)*ie+X,J=R?0-B:0,se=R?J-5-le:B+5;ue.iconPosition=[J,Q],ue.textPosition=[se,Q]})}function k(P,R){var D=P.data,B=P.selectAble,H=P.animationCurve,G=P.animationFrame,X=P.rLevel;return D.map(function(ue,ie){return(0,t.default)({name:ue.icon==="line"?"lineIcon":"rect",index:X,visible:P.show,hover:B,click:B,animationCurve:H,animationFrame:G,shape:A(P,ie),style:M(P,ie)},"click",$(P,ie,R))})}function A(P,R){var D=P.data,B=P.iconWidth,H=P.iconHeight,G=(0,n.default)(D[R].iconPosition,2),X=G[0],ue=G[1],ie=H/2;return{x:X,y:ue-ie,w:B,h:H}}function M(P,R){var D=P.data,B=P.iconStyle,H=P.iconUnselectedStyle,G=D[R],X=G.status,ue=G.color,ie=X?B:H;return(0,s.deepMerge)({fill:ue},ie)}function I(P,R){var D=P.data,B=P.selectAble,H=P.animationCurve,G=P.animationFrame,X=P.rLevel;return D.map(function(ue,ie){return{name:"text",index:X,visible:P.show,hover:B,animationCurve:H,animationFrame:G,hoverRect:N(P,ie),shape:E(P,ie),style:L(P,ie),click:$(P,ie,R)}})}function E(P,R){var D=P.data[R],B=D.textPosition,H=D.name;return{content:H,position:B}}function L(P,R){var D=P.textStyle,B=P.textUnselectedStyle,H=P.data[R],G=H.status,X=H.align,ue=G?D:B;return(0,s.deepMerge)((0,i.deepClone)(ue,!0),X)}function N(P,R){var D=P.textStyle,B=P.textUnselectedStyle,H=P.data[R],G=H.status,X=(0,n.default)(H.textPosition,2),ue=X[0],ie=X[1],le=H.textWidth,Q=G?D:B,J=Q.fontSize;return[ue,ie-J/2,le,J]}function $(P,R,D){var B=P.data[R].name;return function(){var H=D.chart,G=H.legendStatus,X=H.option,ue=!G[R],ie=X.series.find(function(le){var Q=le.name;return Q===B});ie.show=ue,G[R]=ue,D.chart.setOption(X)}}return Xm}var M$;function rie(){return M$||(M$=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"mergeColor",{enumerable:!0,get:function(){return t.mergeColor}}),Object.defineProperty(e,"title",{enumerable:!0,get:function(){return n.title}}),Object.defineProperty(e,"grid",{enumerable:!0,get:function(){return r.grid}}),Object.defineProperty(e,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(e,"line",{enumerable:!0,get:function(){return i.line}}),Object.defineProperty(e,"bar",{enumerable:!0,get:function(){return o.bar}}),Object.defineProperty(e,"pie",{enumerable:!0,get:function(){return s.pie}}),Object.defineProperty(e,"radarAxis",{enumerable:!0,get:function(){return l.radarAxis}}),Object.defineProperty(e,"radar",{enumerable:!0,get:function(){return u.radar}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return c.gauge}}),Object.defineProperty(e,"legend",{enumerable:!0,get:function(){return f.legend}});var t=jae(),n=Kae(),r=Yae(),a=qae(),i=Xae(),o=Zae(),s=Jae(),l=Qae(),u=eie(),c=tie(),f=nie()}(n$)),n$}var P$;function aie(){return P$||(P$=1,function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(Zr()),r=t(Ug()),a=t(u_),i=Fr(),o=rie(),s=function l(u){if((0,r.default)(this,l),!u)return console.error("Charts Missing parameters!"),!1;var c=u.clientWidth,f=u.clientHeight,d=document.createElement("canvas");d.setAttribute("width",c),d.setAttribute("height",f),u.appendChild(d);var h={container:u,canvas:d,render:new a.default(d),option:null};Object.assign(this,h)};e.default=s,s.prototype.setOption=function(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!l||(0,n.default)(l)!=="object")return console.error("setOption Missing parameters!"),!1;u&&this.render.graphs.forEach(function(f){return f.animationEnd()});var c=(0,i.deepClone)(l,!0);(0,o.mergeColor)(this,c),(0,o.grid)(this,c),(0,o.axis)(this,c),(0,o.radarAxis)(this,c),(0,o.title)(this,c),(0,o.bar)(this,c),(0,o.line)(this,c),(0,o.pie)(this,c),(0,o.radar)(this,c),(0,o.gauge)(this,c),(0,o.legend)(this,c),this.option=l,this.render.launchAnimation()},s.prototype.resize=function(){var l=this.container,u=this.canvas,c=this.render,f=this.option,d=l.clientWidth,h=l.clientHeight;u.setAttribute("width",d),u.setAttribute("height",h),c.area=[d,h],this.setOption(f)}}(ZL)),ZL}(function(e){var t=Fn;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"changeDefaultConfig",{enumerable:!0,get:function(){return r.changeDefaultConfig}}),e.default=void 0;var n=t(aie()),r=ns(),a=n.default;e.default=a})(Hz);const jz=Nz(Hz),iie={__name:"index",props:{option:{type:Object,default:()=>({})}},setup(e){const t=e,n=U(null),r=U(null);let a=vt({});wn(r,s,i),Ae(()=>t.option,()=>{a&&a.setOption(t.option,!0)},{deep:!0});function i(){o()}function o(){a=new jz(r.value),t.option&&a.setOption(t.option)}function s(){a&&a.resize()}return(l,u)=>(O(),K("div",{ref_key:"chartsContainerRef",ref:n,class:"dv-charts-container"},[W("div",{ref_key:"chartRef",ref:r,class:"charts-canvas-container"},null,512)],512))}},E$={install(e){e.component("DvCharts",iie)}},oie={class:"dv-capsule-chart"},sie={class:"label-column"},lie=W("div",null," ",-1),uie={class:"capsule-container"},cie={key:0,class:"capsule-item-value"},fie={class:"unit-label"},die={key:0,class:"unit-text"},hie={__name:"index",props:{config:{type:Object,default:()=>({})}},setup(e){Gg(l=>({"10ea9b50":y(a),"41ac2896":y(r)}));const t=e,n=vt({defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1,textColor:"#fff",fontSize:12,labelNum:6},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]});Ae(()=>t.config,()=>{i()},{deep:!0});const r=F(()=>`${t.config.fontSize?t.config.fontSize:n.defaultConfig.fontSize}px`),a=F(()=>t.config.textColor?t.config.textColor:n.defaultConfig.textColor);function i(){o(),s()}function o(){n.mergedConfig=xn(Mn(n.defaultConfig,!0),t.config||{})}function s(){const{data:l,labelNum:u}=n.mergedConfig;if(!l.length||l.length===0){n.labelData=[],n.capsuleLength=[];return}const c=l.map(({value:p})=>p),f=Math.max(...c);n.capsuleValue=c,n.capsuleLength=c.map(p=>f?p/f:0);const d=f/5,h=Array.from(new Set(Array.from({length:u}).fill(0).map((p,v)=>Math.ceil(v*d))));n.labelData=h,n.labelDataLength=Array.from(h).map(p=>f?p/f:0)}return nt(()=>{i()}),(l,u)=>(O(),K("div",oie,[y(n).mergedConfig?(O(),K(He,{key:0},[W("div",sie,[(O(!0),K(He,null,ct(y(n).mergedConfig.data,c=>(O(),K("div",{key:c.name},$e(c.name),1))),128)),lie]),W("div",uie,[(O(!0),K(He,null,ct(y(n).capsuleLength,(c,f)=>(O(),K("div",{key:f,class:"capsule-item"},[W("div",{class:"capsule-item-column",style:Ke(`width: ${c*100}%; background-color: ${y(n).mergedConfig.colors[f%y(n).mergedConfig.colors.length]};`)},[y(n).mergedConfig.showValue?(O(),K("div",cie,$e(y(n).capsuleValue[f]),1)):be("",!0)],4)]))),128)),W("div",fie,[(O(!0),K(He,null,ct(y(n).labelData,(c,f)=>(O(),K("div",{key:c+f},$e(c),1))),128))])]),y(n).mergedConfig.unit?(O(),K("div",die,$e(y(n).mergedConfig.unit),1)):be("",!0)],64)):be("",!0)]))}},I$={install(e){e.component("DvCapsuleChart",hie)}},pie={class:"dv-digital-flop"},Kz={__name:"index",props:{config:{type:Object,default:()=>{}}},setup(e){const t=e,n=U(null),r=vt({renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null});Ae(()=>t.config,()=>{c()},{deep:!0}),nt(()=>{a()});function a(){i(),o(),s()}function i(){r.renderer=new zz(n.value)}function o(){r.mergedConfig=xn(Mn(r.defaultConfig,!0),t.config||{})}function s(){const d=l(),h=u();r.graph=r.renderer.add({name:"numberText",animationCurve:r.mergedConfig.animationCurve,animationFrame:r.mergedConfig.animationFrame,shape:d,style:h})}function l(){const{number:d,content:h,toFixed:p,textAlign:v,rowGap:g,formatter:m}=r.mergedConfig,[_,b]=r.renderer.area,w=[_/2,b/2];return v==="left"&&(w[0]=0),v==="right"&&(w[0]=_),{number:d,content:h,toFixed:p,position:w,rowGap:g,formatter:m}}function u(){const{style:d,textAlign:h}=r.mergedConfig;return xn(d,{textAlign:h,textBaseline:"middle"})}function c(){if(r.graph.animationEnd(),o(),!r.graph)return;const{animationCurve:d,animationFrame:h}=r.mergedConfig,p=l(),v=u();f(r.graph,p),r.graph.animationCurve=d,r.graph.animationFrame=h,r.graph.animation("style",v,!0),r.graph.animation("shape",p)}function f(d,h){const p=d.shape.number.length,v=h.number.length;p!==v&&(d.shape.number=h.number)}return(d,h)=>(O(),K("div",pie,[W("canvas",{ref_key:"digitalFlop",ref:n},null,512)]))}},vie={class:"dv-active-ring-chart"},gie={class:"active-ring-info"},mie={key:0},yie={__name:"index",props:{config:{type:Object,default:()=>({})},isDigitalFlop:{type:Boolean,default:!0}},setup(e){Gg(m=>({"116ac70e":y(u)}));const t=e,n=U(null),r=vt({defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],textColor:"#fff",digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,numToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}),a=F(()=>{if(!r.mergedConfig)return 0;const{data:m,showOriginValue:_}=r.mergedConfig,b=m.map(({value:S})=>S);let w;if(_)w=b[r.activeIndex];else{const S=b.reduce((x,C)=>x+C,0);w=Number.parseFloat(b[r.activeIndex]/S*100)||0}return w}),i=F(()=>{if(!r.mergedConfig)return a.value.toFixed(r.defaultConfig.numToFixed);const{numToFixed:m,showOriginValue:_}=r.mergedConfig;return`${_?a.value.toFixed(m):`${a.value.toFixed(m)}%`}`}),o=F(()=>{if(!r.mergedConfig)return{};const{digitalFlopStyle:m,digitalFlopToFixed:_,showOriginValue:b,digitalFlopUnit:w}=r.mergedConfig;return{content:b?`{nt}${w}`:`{nt}${w||"%"}`,number:[a.value],style:m,toFixed:_}}),s=F(()=>r.mergedConfig?r.mergedConfig.data[r.activeIndex].name:""),l=F(()=>r.mergedConfig?`font-size: ${r.mergedConfig.digitalFlopStyle.fontSize}px;`:""),u=F(()=>t.config.textColor?t.config.textColor:r.defaultConfig.textColor);Ae(()=>t.config,()=>{clearTimeout(r.animationHandler),r.activeIndex=0,d(),h()},{deep:!0}),nt(()=>{c()}),Ja(()=>{clearTimeout(r.animationHandler)});function c(){f(),d(),h()}function f(){r.chart=new jz(n.value)}function d(){r.mergedConfig=xn(Mn(r.defaultConfig,!0),t.config||{})}function h(){const m=p();r.chart.setOption(m,!0),g()}function p(){const m=v();return r.mergedConfig.data.forEach(_=>{_.radius=m}),{series:[{type:"pie",...r.mergedConfig,outsideLabel:{show:!1}}],color:r.mergedConfig.color}}function v(m=!1){const{radius:_,activeRadius:b,lineWidth:w}=r.mergedConfig,S=Math.min(...r.chart.render.area)/2,x=w/2;let C=m?b:_;typeof C!="number"&&(C=Number.parseInt(C)/100*S);const T=C-x,k=C+x;return[T,k]}function g(){const m=v(),_=v(!0),b=p(),{data:w}=b.series[0];w.forEach((x,C)=>{C===r.activeIndex?x.radius=_:x.radius=m}),r.chart.setOption(b,!0);const{activeTimeGap:S}=b.series[0];r.animationHandler=setTimeout(()=>{r.activeIndex+=1,r.activeIndex>=w.length&&(r.activeIndex=0),g()},S)}return(m,_)=>(O(),K("div",vie,[W("div",{ref_key:"activeRingChart",ref:n,class:"active-ring-chart-container"},null,512),W("div",gie,[e.isDigitalFlop?(O(),K("div",mie,[V(Kz,{config:y(o)},null,8,["config"])])):(O(),K("div",{key:1,class:"active-ring-name",style:Ke(y(l))},$e(y(i)),5)),W("div",{class:"active-ring-name",style:Ke(y(l))},$e(y(s)),5)])]))}},D$={install(e){e.component("DvActiveRingChart",yie)}},L$={install(e){e.component("DvDigitalFlop",Kz)}},bie=ge({__name:"index",setup(e){const t=U(null),n=vt({allWidth:0,scale:0,datavRoot:"",ready:!1});function r(){const{width:s,height:l}=screen;n.allWidth=s,t.value&&(t.value.style.width=`${s}px`,t.value.style.height=`${l}px`)}function a(){const s=document.body.clientWidth;t.value&&(t.value.style.transform=`scale(${s/n.allWidth})`)}function i(){a()}function o(){r(),a(),n.ready=!0}return wn(t,i,o),(s,l)=>(O(),K("div",{id:"dv-full-screen-container",ref_key:"fullScreenContainer",ref:t},[y(n).ready?ke(s.$slots,"default",{key:0}):be("",!0)],512))}}),$$={install(e){e.component("DvFullScreenContainer",bie)}},_ie=["width","height"],wie=["fill","x","y","width","height"],Sie=["values","begin"],xie=["fill","x","y","width","height"],Cie=["values"],Tie=["values"],kie=["values"],Aie=["values"],Mie=["fill","x","y","height"],Pie=W("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null,-1),Eie=["values"],Iie=ge({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(e){const t=e,n=U(null),r=vt([200,50]),a=U(4),i=U(20),o=U(2.5),s=U(o.value/2),l=vt(["#fff","#0de7c2"]),u=vt({mergedColor:[],rects:[],points:[],svgScale:[1,1]});function c(){m()}function f(){m()}const{width:d,height:h}=wn(n,c,f);function p(){const[b,w]=r,S=b/(i.value+1),x=w/(a.value+1),C=Array.from({length:a.value}).fill(0).map((T,k)=>Array.from({length:i.value}).fill(0).map((A,M)=>[S*(M+1),x*(k+1)]));u.points=C.reduce((T,k)=>[...T,...k],[])}function v(){const b=u.points[i.value*2-1],w=u.points[i.value*2-3];u.rects=[b,w]}function g(){const[b,w]=r;u.svgScale=[d.value/b,h.value/w]}function m(){p(),v(),g()}function _(){u.mergedColor=xn(Mn(l,!0),t.color||[])}return Ae(()=>t.color,()=>{_()}),nt(()=>{_()}),(b,w)=>(O(),K("div",{ref_key:"dvDecoration1",ref:n,class:"dv-decoration-1"},[(O(),K("svg",{width:`${y(r)[0]}px`,height:`${y(r)[1]}px`,style:Ke(`transform:scale(${y(u).svgScale[0]}, ${y(u).svgScale[1]});`)},[(O(!0),K(He,null,ct(y(u).points,S=>(O(),K(He,{key:S},[Math.random()>.6?(O(),K("rect",{key:0,fill:y(u).mergedColor[0],x:S[0]-y(s),y:S[1]-y(s),width:y(o),height:y(o)},[Math.random()>.6?(O(),K("animate",{key:0,attributeName:"fill",values:`${y(u).mergedColor[0]};transparent`,dur:"1s",begin:Math.random()*2,repeatCount:"indefinite"},null,8,Sie)):be("",!0)],8,wie)):be("",!0)],64))),128)),y(u).rects[0]?(O(),K("rect",{key:0,fill:y(u).mergedColor[1],x:y(u).rects[0][0]-y(o),y:y(u).rects[0][1]-y(o),width:y(o)*2,height:y(o)*2},[W("animate",{attributeName:"width",values:`0;${y(o)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,Cie),W("animate",{attributeName:"height",values:`0;${y(o)*2}`,dur:"2s",repeatCount:"indefinite"},null,8,Tie),W("animate",{attributeName:"x",values:`${y(u).rects[0][0]};${y(u).rects[0][0]-y(o)}`,dur:"2s",repeatCount:"indefinite"},null,8,kie),W("animate",{attributeName:"y",values:`${y(u).rects[0][1]};${y(u).rects[0][1]-y(o)}`,dur:"2s",repeatCount:"indefinite"},null,8,Aie)],8,xie)):be("",!0),y(u).rects[1]?(O(),K("rect",{key:1,fill:y(u).mergedColor[1],x:y(u).rects[1][0]-40,y:y(u).rects[1][1]-y(o),width:40,height:y(o)*2},[Pie,W("animate",{attributeName:"x",values:`${y(u).rects[1][0]};${y(u).rects[1][0]-40};${y(u).rects[1][0]}`,dur:"2s",repeatCount:"indefinite"},null,8,Eie)],8,Mie)):be("",!0)],12,_ie))],512))}}),R$={install(e){e.component("DvDecoration1",Iie)}},Die=["width","height"],Lie=["x","y","width","height","fill"],$ie=["attributeName","to","dur"],Rie=["x","y","fill"],Oie=["attributeName","to","dur"],Nie=ge({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},setup(e){const t=e,n=U(null),r=vt({x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]});function a(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}function i(){u()}function o(){u()}const{width:s,height:l}=wn(n,i,o);function u(){t.reverse?(r.w=1,r.h=l.value,r.x=s.value/2,r.y=0):(r.w=s.value,r.h=1,r.x=0,r.y=l.value/2)}return Ae(()=>t.color,()=>{a()}),Ae(()=>t.reverse,()=>{u()}),nt(()=>{a()}),(c,f)=>(O(),K("div",{ref_key:"decoration2",ref:n,class:"dv-decoration-2"},[(O(),K("svg",{width:`${y(s)}px`,height:`${y(l)}px`},[W("rect",{x:y(r).x,y:y(r).y,width:y(r).w,height:y(r).h,fill:y(r).mergedColor[0]},[W("animate",{attributeName:e.reverse?"height":"width",from:"0",to:e.reverse?y(l):y(s),dur:`${e.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null,8,$ie)],8,Lie),W("rect",{x:y(r).x,y:y(r).y,width:"1",height:"1",fill:y(r).mergedColor[1]},[W("animate",{attributeName:e.reverse?"y":"x",from:"0",to:e.reverse?y(l):y(s),dur:`${e.dur}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null,8,Oie)],8,Rie)],8,Die))],512))}}),O$={install(e){e.component("DvDecoration2",Nie)}},Bie=["width","height"],Fie=["fill","x","y"],Vie=["values","dur","begin"],Zm=7,zie=ge({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(e){const t=e,n=U(null),r=vt({svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:Zm,halfPointSideLength:Zm/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]});function a(){const[d,h]=r.svgWH,p=d/(r.rowPoints+1),v=h/(r.rowNum+1),g=Array.from({length:r.rowNum}).fill(0).map((m,_)=>Array.from({length:r.rowPoints}).fill(0).map((b,w)=>[p*(w+1),v*(_+1)]));r.points=g.reduce((m,_)=>[...m,..._],[])}function i(){o()}function o(){a(),c()}function s(){o()}const{width:l,height:u}=wn(n,s,i);function c(){const[d,h]=r.svgWH;r.svgScale=[l.value/d,u.value/h]}function f(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}return Ae(()=>t.color,()=>{f()}),nt(()=>{f()}),(d,h)=>(O(),K("div",{ref_key:"decoration3",ref:n,class:"dv-decoration-3"},[(O(),K("svg",{width:`${y(r).svgWH[0]}px`,height:`${y(r).svgWH[1]}px`,style:Ke(`transform:scale(${y(r).svgScale[0]},${y(r).svgScale[1]});`)},[(O(!0),K(He,null,ct(y(r).points,p=>(O(),K("rect",{key:p,fill:y(r).mergedColor[0],x:p[0]-y(r).halfPointSideLength,y:p[1]-y(r).halfPointSideLength,width:Zm,height:Zm},[Math.random()>.6?(O(),K("animate",{key:0,attributeName:"fill",values:`${y(r).mergedColor.join(";")}`,dur:`${Math.random()+1}s`,begin:Math.random()*2,repeatCount:"indefinite"},null,8,Vie)):be("",!0)],8,Fie))),128))],12,Bie))],512))}}),N$={install(e){e.component("DvDecoration3",zie)}},Hie=["width","height"],Gie=["stroke","points"],Wie=["stroke","points"],Uie=ge({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},setup(e){const t=e,n=U(null),r=vt({defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]});function a(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}const{width:i,height:o}=wn(n);return Ae(()=>t.color,()=>{a()}),nt(()=>{a()}),(s,l)=>(O(),K("div",{ref_key:"decoration3",ref:n,class:"dv-decoration-4"},[W("div",{class:j(`container ${e.reverse?"reverse":"normal"}`),style:Ke(e.reverse?`width:${y(i)}px;height:5px;animation-duration:${e.dur}s`:`width:5px;height:${y(o)}px;animation-duration:${e.dur}s`)},[(O(),K("svg",{width:e.reverse?y(i):5,height:e.reverse?5:y(o)},[W("polyline",{stroke:y(r).mergedColor[0],points:e.reverse?`0, 2.5 ${y(i)}, 2.5`:`2.5, 0 2.5, ${y(o)}`},null,8,Gie),W("polyline",{class:"bold-line",stroke:y(r).mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:e.reverse?`0, 2.5 ${y(i)}, 2.5`:`2.5, 0 2.5, ${y(o)}`},null,8,Wie)],8,Hie))],6)],512))}}),B$={install(e){e.component("DvDecoration4",Uie)}},jie=["width","height"],Kie=["stroke","points"],Yie=["from","to","dur"],qie=["stroke","points"],Xie=["from","to","dur"],Zie=ge({__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:1.2}},setup(e){const t=e,n=U(null),r=vt({line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});function a(){l()}function i(){l()}const{width:o,height:s}=wn(n,i,a);function l(){const c=[{x:0,y:s.value*.2},{x:o.value*.18,y:s.value*.2},{x:o.value*.2,y:s.value*.4},{x:o.value*.25,y:s.value*.4},{x:o.value*.27,y:s.value*.6},{x:o.value*.72,y:s.value*.6},{x:o.value*.75,y:s.value*.4},{x:o.value*.8,y:s.value*.4},{x:o.value*.82,y:s.value*.2},{x:o.value,y:s.value*.2}],f=[{x:o.value*.3,y:s.value*.8},{x:o.value*.7,y:s.value*.8}],d=BD(c),h=BD(f);r.line1Points=FD(c),r.line2Points=FD(f),r.line1Length=d,r.line2Length=h}function u(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}return Ae(()=>t.color,()=>{u()}),nt(()=>{u()}),(c,f)=>(O(),K("div",{ref_key:"decoration5",ref:n,class:"dv-decoration-5"},[(O(),K("svg",{width:y(o),height:y(s)},[W("polyline",{fill:"transparent",stroke:y(r).mergedColor[0],"stroke-width":"3",points:y(r).line1Points},[W("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${y(r).line1Length/2}, 0, ${y(r).line1Length/2}`,to:`0, 0, ${y(r).line1Length}, 0`,dur:`${e.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null,8,Yie)],8,Kie),W("polyline",{fill:"transparent",stroke:y(r).mergedColor[1],"stroke-width":"2",points:y(r).line2Points},[W("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${y(r).line2Length/2}, 0, ${y(r).line2Length/2}`,to:`0, 0, ${y(r).line2Length}, 0`,dur:`${e.dur}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null,8,Xie)],8,qie)],8,jie))],512))}}),F$={install(e){e.component("DvDecoration5",Zie)}},Jie=["width","height"],Qie=["fill","x","y","height"],eoe=["values","dur"],toe=["values","dur"],jw=7,noe=ge({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(e){const t=e,n=U(null),r=vt({svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:jw,halfRectWidth:jw/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]});Ae(()=>t.color,()=>{f()}),nt(()=>{f()});const{width:a,height:i}=wn(n,c,o);function o(){s()}function s(){l(),u()}function l(){const[d,h]=r.svgWH,p=d/(r.rowPoints+1),v=h/(r.rowNum+1),g=Array.from({length:r.rowNum}).fill(0).map((_,b)=>Array.from({length:r.rowPoints}).fill(0).map((w,S)=>[p*(S+1),v*(b+1)]));r.points=g.reduce((_,b)=>[..._,...b],[]);const m=r.heights=Array.from({length:r.rowNum*r.rowPoints}).fill(0).map(()=>Math.random()>.8?Rv(.7*h,h):Rv(.2*h,.5*h));r.minHeights=Array.from({length:r.rowNum*r.rowPoints}).fill(0).map((_,b)=>m[b]*Math.random()),r.randoms=Array.from({length:r.rowNum*r.rowPoints}).fill(0).map(()=>Math.random()+1.5)}function u(){const[d,h]=r.svgWH;r.svgScale=[a.value/d,i.value/h]}function c(){s()}function f(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}return(d,h)=>(O(),K("div",{ref_key:"decoration6",ref:n,class:"dv-decoration-6"},[(O(),K("svg",{width:`${y(r).svgWH[0]}px`,height:`${y(r).svgWH[1]}px`,style:Ke(`transform:scale(${y(r).svgScale[0]},${y(r).svgScale[1]});`)},[(O(!0),K(He,null,ct(y(r).points,(p,v)=>(O(),K("rect",{key:v,fill:y(r).mergedColor[Math.random()>.5?0:1],x:p[0]-y(r).halfRectWidth,y:p[1]-y(r).heights[v]/2,width:jw,height:y(r).heights[v]},[W("animate",{attributeName:"y",values:`${p[1]-y(r).minHeights[v]/2};${p[1]-y(r).heights[v]/2};${p[1]-y(r).minHeights[v]/2}`,dur:`${y(r).randoms[v]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,eoe),W("animate",{attributeName:"height",values:`${y(r).minHeights[v]};${y(r).heights[v]};${y(r).minHeights[v]}`,dur:`${y(r).randoms[v]}s`,keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null,8,toe)],8,Qie))),128))],12,Jie))],512))}}),V$={install(e){e.component("DvDecoration6",noe)}},roe={class:"dv-decoration-7"},aoe={width:"21px",height:"20px"},ioe=["stroke"],ooe=["stroke"],soe={width:"21px",height:"20px"},loe=["stroke"],uoe=["stroke"],coe=ge({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(e){const t=e,n=vt({defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]});Ae(()=>t.color,()=>{r()}),nt(()=>{r()});function r(){n.mergedColor=xn(Mn(n.defaultColor,!0),t.color||[])}return(a,i)=>(O(),K("div",roe,[(O(),K("svg",aoe,[W("polyline",{"stroke-width":"4",fill:"transparent",stroke:y(n).mergedColor[0],points:"10, 0 19, 10 10, 20"},null,8,ioe),W("polyline",{"stroke-width":"2",fill:"transparent",stroke:y(n).mergedColor[1],points:"2, 0 11, 10 2, 20"},null,8,ooe)])),ke(a.$slots,"default"),(O(),K("svg",soe,[W("polyline",{"stroke-width":"4",fill:"transparent",stroke:y(n).mergedColor[0],points:"11, 0 2, 10 11, 20"},null,8,loe),W("polyline",{"stroke-width":"2",fill:"transparent",stroke:y(n).mergedColor[1],points:"19, 0 10, 10 19, 20"},null,8,uoe)]))]))}}),z$={install(e){e.component("DvDecoration7",coe)}},foe=["width","height"],doe=["stroke","points"],hoe=["stroke","points"],poe=["stroke","points"],voe=ge({__name:"index",props:{color:{type:Array,default:()=>[]},reverse:{type:Boolean,default:!1}},setup(e){const t=e,n=U(null),r=vt({defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]});Ae(()=>t.color,()=>{s()}),nt(()=>{s()});const{width:a,height:i}=wn(n);function o(l){return t.reverse?a.value-l:l}function s(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}return(l,u)=>(O(),K("div",{ref_key:"decoration8",ref:n,class:"dv-decoration-8"},[(O(),K("svg",{width:y(a),height:y(i)},[W("polyline",{stroke:y(r).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${o(0)}, 0 ${o(30)}, ${y(i)/2}`},null,8,doe),W("polyline",{stroke:y(r).mergedColor[0],"stroke-width":"2",fill:"transparent",points:`${o(20)}, 0 ${o(50)}, ${y(i)/2} ${o(y(a))}, ${y(i)/2}`},null,8,hoe),W("polyline",{stroke:y(r).mergedColor[1],fill:"transparent","stroke-width":"3",points:`${o(0)}, ${y(i)-3}, ${o(200)}, ${y(i)-3}`},null,8,poe)],8,foe))],512))}}),H$={install(e){e.component("DvDecoration8",voe)}},goe=["width","height"],moe=["id"],yoe=["stroke"],boe=["dur"],_oe=["stroke"],woe=["dur"],Soe=["stroke"],xoe=["xlink:href","stroke","fill"],Coe=["dur","begin"],Toe=["stroke"],koe={__name:"index",props:{color:{type:Array,default:()=>[]},dur:{type:Number,default:3}},setup(e){const t=e,n=po(),r=U(null),a=vt({polygonId:`decoration-9-polygon-${n}`,svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]});Ae(()=>t.color,()=>{c()}),nt(()=>{c()});const{width:i,height:o}=wn(r,u,s);function s(){l()}function l(){const[f,d]=a.svgWH;a.svgScale=[i.value/f,o.value/d]}function u(){l()}function c(){a.mergedColor=xn(Mn(a.defaultColor,!0),t.color||[])}return(f,d)=>(O(),K("div",{ref_key:"decoration9",ref:r,class:"dv-decoration-9"},[(O(),K("svg",{width:`${y(a).svgWH[0]}px`,height:`${y(a).svgWH[1]}px`,style:Ke(`transform:scale(${y(a).svgScale[0]},${y(a).svgScale[1]});`)},[W("defs",null,[W("polygon",{id:y(a).polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null,8,moe)]),W("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:y(a).mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[W("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${e.dur}s`,repeatCount:"indefinite"},null,8,boe)],8,yoe),W("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:y(a).mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[W("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${e.dur}s`,repeatCount:"indefinite"},null,8,woe)],8,_oe),W("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:y(wr)(y(a).mergedColor[1]||y(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,Soe),(O(!0),K(He,null,ct(new Array(20).fill(0),(h,p)=>(O(),K("use",{key:p,"xlink:href":`#${y(a).polygonId}`,stroke:y(a).mergedColor[1],fill:Math.random()>.4?"transparent":y(a).mergedColor[0]},[W("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${e.dur}s`,begin:`${p*e.dur/20}s`,repeatCount:"indefinite"},null,8,Coe)],8,xoe))),128)),W("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:y(wr)(y(a).mergedColor[1]||y(a).defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null,8,Toe)],12,goe)),ke(f.$slots,"default")],512))}},G$={install(e){e.component("DvDecoration9",koe)}},Aoe=["width","height"],Moe=["stroke","points"],Poe=["stroke","points","stroke-dasharray"],Eoe=["id","values","begin"],Ioe=["values","begin"],Doe=["stroke","points","stroke-dasharray"],Loe=["id","values","begin"],$oe=["values","begin"],Roe=["stroke","points","stroke-dasharray"],Ooe=["id","values","begin"],Noe=["values","begin"],Boe=["cy","fill"],Foe=["id","values","begin"],Voe=["cx","cy","fill"],zoe=["id","values","begin"],Hoe=["values","begin"],Goe=["cx","cy","fill"],Woe=["id","values","begin"],Uoe=["values","begin"],joe=["cx","cy","fill"],Koe=["id","values","begin"],Yoe=["values","begin"],qoe=ge({__name:"index",props:{color:{type:Array,default:()=>[]}},setup(e){const t=e,n=po(),r=U(null),a=vt({animationId1:`d10ani1${n}`,animationId2:`d10ani2${n}`,animationId3:`d10ani3${n}`,animationId4:`d10ani4${n}`,animationId5:`d10ani5${n}`,animationId6:`d10ani6${n}`,animationId7:`d10ani7${n}`,defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}),{width:i,height:o}=wn(r);Ae(()=>t.color,()=>{s()}),nt(()=>{s()});function s(){a.mergedColor=xn(Mn(a.defaultColor,!0),t.color||[])}return(l,u)=>(O(),K("div",{ref_key:"decoration10",ref:r,class:"dv-decoration-10"},[(O(),K("svg",{width:y(i),height:y(o)},[W("polyline",{stroke:y(a).mergedColor[1],"stroke-width":"2",points:`0, ${y(o)/2} ${y(i)}, ${y(o)/2}`},null,8,Moe),W("polyline",{stroke:y(a).mergedColor[0],"stroke-width":"2",points:`5, ${y(o)/2} ${y(i)*.2-3}, ${y(o)/2}`,"stroke-dasharray":`0, ${y(i)*.2}`,fill:"freeze"},[W("animate",{id:y(a).animationId2,attributeName:"stroke-dasharray",values:`0, ${y(i)*.2};${y(i)*.2}, 0;`,dur:"3s",begin:`${y(a).animationId1}.end`,fill:"freeze"},null,8,Eoe),W("animate",{attributeName:"stroke-dasharray",values:`${y(i)*.2}, 0;0, ${y(i)*.2}`,dur:"0.01s",begin:`${y(a).animationId7}.end`,fill:"freeze"},null,8,Ioe)],8,Poe),W("polyline",{stroke:y(a).mergedColor[0],"stroke-width":"2",points:`${y(i)*.2+3}, ${y(o)/2} ${y(i)*.8-3}, ${y(o)/2}`,"stroke-dasharray":`0, ${y(i)*.6}`},[W("animate",{id:y(a).animationId4,attributeName:"stroke-dasharray",values:`0, ${y(i)*.6};${y(i)*.6}, 0`,dur:"3s",begin:`${y(a).animationId3}.end + 1s`,fill:"freeze"},null,8,Loe),W("animate",{attributeName:"stroke-dasharray",values:`${y(i)*.6}, 0;0, ${y(i)*.6}`,dur:"0.01s",begin:`${y(a).animationId7}.end`,fill:"freeze"},null,8,$oe)],8,Doe),W("polyline",{stroke:y(a).mergedColor[0],"stroke-width":"2",points:`${y(i)*.8+3}, ${y(o)/2} ${y(i)-5}, ${y(o)/2}`,"stroke-dasharray":`0, ${y(i)*.2}`},[W("animate",{id:y(a).animationId6,attributeName:"stroke-dasharray",values:`0, ${y(i)*.2};${y(i)*.2}, 0`,dur:"3s",begin:`${y(a).animationId5}.end + 1s`,fill:"freeze"},null,8,Ooe),W("animate",{attributeName:"stroke-dasharray",values:`${y(i)*.2}, 0;0, ${y(i)*.3}`,dur:"0.01s",begin:`${y(a).animationId7}.end`,fill:"freeze"},null,8,Noe)],8,Roe),W("circle",{cx:"2",cy:y(o)/2,r:"2",fill:y(a).mergedColor[1]},[W("animate",{id:y(a).animationId1,attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[0]}`,begin:`0s;${y(a).animationId7}.end`,dur:"0.3s",fill:"freeze"},null,8,Foe)],8,Boe),W("circle",{cx:y(i)*.2,cy:y(o)/2,r:"2",fill:y(a).mergedColor[1]},[W("animate",{id:y(a).animationId3,attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[0]}`,begin:`${y(a).animationId2}.end`,dur:"0.3s",fill:"freeze"},null,8,zoe),W("animate",{attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[1]}`,dur:"0.01s",begin:`${y(a).animationId7}.end`,fill:"freeze"},null,8,Hoe)],8,Voe),W("circle",{cx:y(i)*.8,cy:y(o)/2,r:"2",fill:y(a).mergedColor[1]},[W("animate",{id:y(a).animationId5,attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[0]}`,begin:`${y(a).animationId4}.end`,dur:"0.3s",fill:"freeze"},null,8,Woe),W("animate",{attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[1]}`,dur:"0.01s",begin:`${y(a).animationId7}.end`,fill:"freeze"},null,8,Uoe)],8,Goe),W("circle",{cx:y(i)-2,cy:y(o)/2,r:"2",fill:y(a).mergedColor[1]},[W("animate",{id:y(a).animationId7,attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[0]}`,begin:`${y(a).animationId6}.end`,dur:"0.3s",fill:"freeze"},null,8,Koe),W("animate",{attributeName:"fill",values:`${y(a).mergedColor[1]};${y(a).mergedColor[1]}`,dur:"0.01s",begin:`${y(a).animationId7}.end`,fill:"freeze"},null,8,Yoe)],8,joe)],8,Aoe))],512))}}),W$={install(e){e.component("DvDecoration10",qoe)}},Xoe=["width","height"],Zoe=["fill","stroke"],Joe=["fill","stroke","points"],Qoe=["fill","stroke","points"],ese=["fill","stroke","points"],tse=["fill","stroke","points"],nse=["stroke","points"],rse=["stroke","points"],ase={class:"decoration-content"},ise={__name:"index",props:{color:{type:Array,default:()=>[]}},setup(e){const t=e,n=U(null),r=vt({defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}),{width:a,height:i}=wn(n);Ae(()=>t.color,()=>{o()}),nt(()=>{o()});function o(){r.mergedColor=xn(Mn(r.defaultColor,!0),t.color||[])}return(s,l)=>(O(),K("div",{ref_key:"decoration11",ref:n,class:"dv-decoration-11"},[(O(),K("svg",{width:y(a),height:y(i)},[W("polygon",{fill:y(wr)(y(r).mergedColor[1]||y(r).defaultColor[1],10),stroke:y(r).mergedColor[1],points:"20 10, 25 4, 55 4 60 10"},null,8,Zoe),W("polygon",{fill:y(wr)(y(r).mergedColor[1]||y(r).defaultColor[1],10),stroke:y(r).mergedColor[1],points:`20 ${y(i)-10}, 25 ${y(i)-4}, 55 ${y(i)-4} 60 ${y(i)-10}`},null,8,Joe),W("polygon",{fill:y(wr)(y(r).mergedColor[1]||y(r).defaultColor[1],10),stroke:y(r).mergedColor[1],points:`${y(a)-20} 10, ${y(a)-25} 4, ${y(a)-55} 4 ${y(a)-60} 10`},null,8,Qoe),W("polygon",{fill:y(wr)(y(r).mergedColor[1]||y(r).defaultColor[1],10),stroke:y(r).mergedColor[1],points:`${y(a)-20} ${y(i)-10}, ${y(a)-25} ${y(i)-4}, ${y(a)-55} ${y(i)-4} ${y(a)-60} ${y(i)-10}`},null,8,ese),W("polygon",{fill:y(wr)(y(r).mergedColor[0]||y(r).defaultColor[0],20),stroke:y(r).mergedColor[0],points:`
20 10, 5 ${y(i)/2} 20 ${y(i)-10}
${y(a)-20} ${y(i)-10} ${y(a)-5} ${y(i)/2} ${y(a)-20} 10
`},null,8,tse),W("polyline",{fill:"transparent",stroke:y(wr)(y(r).mergedColor[0]||y(r).defaultColor[0],70),points:`25 18, 15 ${y(i)/2} 25 ${y(i)-18}`},null,8,nse),W("polyline",{fill:"transparent",stroke:y(wr)(y(r).mergedColor[0]||y(r).defaultColor[0],70),points:`${y(a)-25} 18, ${y(a)-15} ${y(i)/2} ${y(a)-25} ${y(i)-18}`},null,8,rse)],8,Xoe)),W("div",ase,[ke(s.$slots,"default")])],512))}},U$={install(e){e.component("DvDecoration11",ise)}},ose=["width","height"],sse=["id"],lse=["stroke","stroke-width","d"],use=["id"],cse=W("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null,-1),fse=["stop-color"],dse=["r","cx","cy","stroke"],hse=["cx","cy","fill"],pse=["values","dur"],vse=["dur"],gse=["cx","cy","fill"],mse={key:0},yse=["points","stroke"],bse=["d","stroke"],_se=["xlink:href"],wse=["values","dur"],Sse={class:"decoration-content"},xse={__name:"index",props:{color:{type:Array,default:()=>[]},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},setup(e){const t=e,n=po(),r=U(null),{width:a,height:i}=wn(r,()=>{},g),o=vt({gId:`decoration-12-g-${n}`,gradientId:`decoration-12-gradient-${n}`,defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}),s=F(()=>a.value/2),l=F(()=>i.value/2);Ae(()=>t.color,()=>{c(),d()});function u(){c(),f(),d(),h(),p(),v()}function c(){o.mergedColor=xn(Mn(o.defaultColor,!0),t.color||[])}function f(){const m=-Math.PI/2,_=o.sectorAngle/o.segment,b=a.value/4;let w=yf(s.value,l.value,b,m);o.pathD=Array.from({length:o.segment}).fill("").map((S,x)=>{const C=yf(s.value,l.value,b,m-(x+1)*_).map(k=>Number.parseFloat(k.toFixed(5))),T=`M${w.join(",")} A${b}, ${b} 0 0 0 ${C.join(",")}`;return w=C,T})}function d(){const m=100/(o.segment-1);o.pathColor=Array.from({length:o.segment}).fill(o.mergedColor[0]).map((_,b)=>wr(o.mergedColor[0],100-b*m))}function h(){const m=(a.value/2-o.ringWidth/2)/o.ringNum;o.circleR=Array.from({length:o.ringNum}).fill(0).map((_,b)=>m*(b+1))}function p(){const m=Math.PI/6,_=a.value/2;o.splitLinePoints=Array.from({length:6}).fill("").map((b,w)=>{const S=m*(w+1),x=S+Math.PI,C=yf(s.value,l.value,_,S),T=yf(s.value,l.value,_,x);return`${C.join(",")} ${T.join(",")}`})}function v(){const m=Math.PI/6,_=a.value/2-1;o.arcD=Array.from({length:4}).fill("").map((b,w)=>{const S=m*(3*w+1),x=S+m,C=yf(s.value,l.value,_,S),T=yf(s.value,l.value,_,x);return`M${C.join(",")} A${s.value}, ${l.value} 0 0 1 ${T.join(",")}`})}function g(){u()}return(m,_)=>(O(),K("div",{ref_key:"decoration12",ref:r,class:"dv-decoration-12"},[(O(),K("svg",{width:y(a),height:y(i)},[W("defs",null,[W("g",{id:y(o).gId},[(O(!0),K(He,null,ct(y(o).pathD,(b,w)=>(O(),K("path",{key:b,stroke:y(o).pathColor[w],"stroke-width":y(a)/2,fill:"transparent",d:b},null,8,lse))),128))],8,sse),W("radialGradient",{id:y(o).gradientId,cx:"50%",cy:"50%",r:"50%"},[cse,W("stop",{offset:"100%","stop-color":y(wr)(y(o).mergedColor[1]||y(o).defaultColor[1],30),"stop-opacity":"1"},null,8,fse)],8,use)]),(O(!0),K(He,null,ct(y(o).circleR,b=>(O(),K("circle",{key:b,r:b,cx:y(s),cy:y(l),stroke:y(o).mergedColor[1],"stroke-width":.8,fill:"transparent"},null,8,dse))),128)),W("circle",{r:"1",cx:y(s),cy:y(l),stroke:"transparent",fill:`url(#${y(o).gradientId})`},[W("animate",{attributeName:"r",values:`1;${y(a)/2}`,dur:`${e.haloDur}s`,repeatCount:"indefinite"},null,8,pse),W("animate",{attributeName:"opacity",values:"1;0",dur:`${e.haloDur}s`,repeatCount:"indefinite"},null,8,vse)],8,hse),W("circle",{r:"2",cx:y(s),cy:y(l),fill:y(o).mergedColor[1]},null,8,gse),y(o).showSplitLine?(O(),K("g",mse,[(O(!0),K(He,null,ct(y(o).splitLinePoints,b=>(O(),K("polyline",{key:b,points:b,stroke:y(o).mergedColor[1],"stroke-width":.5,opacity:"50"},null,8,yse))),128))])):be("",!0),(O(!0),K(He,null,ct(y(o).arcD,b=>(O(),K("path",{key:b,d:b,stroke:y(o).mergedColor[1],"stroke-width":"2.3",fill:"transparent"},null,8,bse))),128)),W("use",{"xlink:href":`#${y(o).gId}`},[W("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${y(s)} ${y(l)};360, ${y(s)} ${y(l)}`,dur:`${e.scanDur}s`,repeatCount:"indefinite"},null,8,wse)],8,_se)],8,ose)),W("div",Sse,[ke(m.$slots,"default")])],512))}},j$={install(e){e.component("DvDecoration12",xse)}},ei={color:{type:Array,default:()=>[]},backgroundColor:{type:String,default:"transparent"}};function ti(e,t){return F(()=>t.value.length===0?e:t.value)}const Cse=["left-top","right-top","left-bottom","right-bottom"],Tse=["#4fd2dd","#235fa7"],kse=ge({props:ei,setup(e){const t=U(null),n=ti(Tse,Qt(e,"color")),{width:r,height:a,initWH:i}=wn(t);return{width:r,height:a,initWH:i,mergedColor:n,borderBox1:t}},render(){const{backgroundColor:e,width:t,height:n,mergedColor:r,$slots:a}=this;return V("div",{ref:"borderBox1",class:"dv-border-box-1"},[V("svg",{class:"dv-border",width:t,height:n},[V("polygon",{fill:e,points:`10, 27 10, ${n-27} 13, ${n-24} 13, ${n-21} 24, ${n-11}
38, ${n-11} 41, ${n-8} 73, ${n-8} 75, ${n-10} 81, ${n-10}
85, ${n-6} ${t-85}, ${n-6} ${t-81}, ${n-10} ${t-75}, ${n-10}
${t-73}, ${n-8} ${t-41}, ${n-8} ${t-38}, ${n-11}
${t-10}, ${n-27} ${t-10}, 27 ${t-13}, 25 ${t-13}, 21
${t-24}, 11 ${t-38}, 11 ${t-41}, 8 ${t-73}, 8 ${t-75}, 10
${t-81}, 10 ${t-85}, 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24`},null)]),Cse.map(i=>V("svg",{key:i,width:"150px",height:"150px",class:`${i} dv-border`},[V("polygon",{fill:r[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"},[V("animate",{attributeName:"fill",values:`${r[0]};${r[1]};${r[0]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{fill:r[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"},[V("animate",{attributeName:"fill",values:`${r[1]};${r[0]};${r[1]}`,dur:"0.5s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{fill:r[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"},[V("animate",{attributeName:"fill",values:`${r[0]};${r[1]};transparent`,dur:"1s",begin:"0s",repeatCount:"indefinite"},null)])])),V("div",{class:"border-box-content"},[ke(a,"default")])])}}),K$={install(e){e.component("DvBorderBox1",kse)}},Ase=["#fff","rgba(255, 255, 255, 0.6)"],Mse=ge({props:ei,setup(e){const t=U(null),n=ti(Ase,Qt(e,"color")),{width:r,height:a,initWH:i}=wn(t);return{width:r,height:a,initWH:i,mergedColor:n,borderBox2:t}},render(){const{$slots:e,backgroundColor:t,width:n,height:r,mergedColor:a}=this;return V("div",{ref:"borderBox2",class:"dv-border-box-2"},[V("svg",{class:"dv-border-svg-container",width:n,height:r},[V("polygon",{fill:t,points:`
7, 7 ${n-7}, 7 ${n-7}, ${r-7} 7, ${r-7}
`},null),V("polyline",{stroke:a[0],points:`2, 2 ${n-2} ,2 ${n-2}, ${r-2} 2, ${r-2} 2, 2`},null),V("polyline",{stroke:a[1],points:`6, 6 ${n-6}, 6 ${n-6}, ${r-6} 6, ${r-6} 6, 6`},null),V("circle",{fill:a[0],cx:"11",cy:"11",r:"1"},null),V("circle",{fill:a[0],cx:n-11,cy:"11",r:"1"},null),V("circle",{fill:a[0],cx:n-11,cy:r-11,r:"1"},null),V("circle",{fill:a[0],cx:"11",cy:r-11,r:"1"},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),Y$={install(e){e.component("DvBorderBox2",Mse)}},Pse=["#2862b7","#2862b7"],Ese=ge({props:ei,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Pse,Qt(e,"color"));return{width:n,height:r,mergedColor:i,initWH:a,borderBox3:t}},render(){const{$slots:e,width:t,height:n,backgroundColor:r,mergedColor:a}=this;return V("div",{ref:"borderBox3",class:"dv-border-box-3"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("polygon",{fill:r,points:`
23, 23 ${t-24}, 23 ${t-24}, ${n-24} 23, ${n-24}
`},null),V("polyline",{class:"dv-bb3-line1",stroke:a[0],points:`4, 4 ${t-22} ,4 ${t-22}, ${n-22} 4, ${n-22} 4, 4`},null),V("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`10, 10 ${t-16}, 10 ${t-16}, ${n-16} 10, ${n-16} 10, 10`},null),V("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`16, 16 ${t-10}, 16 ${t-10}, ${n-10} 16, ${n-10} 16, 16`},null),V("polyline",{class:"dv-bb3-line2",stroke:a[1],points:`22, 22 ${t-4}, 22 ${t-4}, ${n-4} 22, ${n-4} 22, 22`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),q$={install(e){e.component("DvBorderBox3",Ese)}},Ise={...ei,reverse:{type:Boolean,default:!1}},Dse=["red","rgba(0,0,255,0.8)"],Lse=ge({props:Ise,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Dse,Qt(e,"color"));return{width:n,height:r,initWH:a,mergedColor:i,borderBox4:t}},render(){const{$slots:e,backgroundColor:t,reverse:n,width:r,height:a,mergedColor:i}=this;return V("div",{ref:"borderBox4",class:"dv-border-box-4"},[V("svg",{class:`dv-border-svg-container ${n&&"dv-reverse"}`,width:r,height:a},[V("polygon",{fill:t,points:`
${r-15}, 22 170, 22 150, 7 40, 7 28, 21 32, 24
16, 42 16, ${a-32} 41, ${a-7} ${r-15}, ${a-7}
`},null),V("polyline",{class:"dv-bb4-line-1",stroke:i[0],points:`145, ${a-5} 40, ${a-5} 10, ${a-35}
10, 40 40, 5 150, 5 170, 20 ${r-15}, 20`},null),V("polyline",{stroke:i[1],class:"dv-bb4-line-2",points:`245, ${a-1} 36, ${a-1} 14, ${a-23}
14, ${a-100}`},null),V("polyline",{class:"dv-bb4-line-3",stroke:i[0],points:`7, ${a-40} 7, ${a-75}`},null),V("polyline",{class:"dv-bb4-line-4",stroke:i[0],points:"28, 24 13, 41 13, 64"},null),V("polyline",{class:"dv-bb4-line-5",stroke:i[0],points:"5, 45 5, 140"},null),V("polyline",{class:"dv-bb4-line-6",stroke:i[1],points:"14, 75 14, 180"},null),V("polyline",{class:"dv-bb4-line-7",stroke:i[1],points:"55, 11 147, 11 167, 26 250, 26"},null),V("polyline",{class:"dv-bb4-line-8",stroke:i[1],points:"158, 5 173, 16"},null),V("polyline",{class:"dv-bb4-line-9",stroke:i[0],points:`200, 17 ${r-10}, 17`},null),V("polyline",{class:"dv-bb4-line-10",stroke:i[1],points:`385, 17 ${r-10}, 17`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),X$={install(e){e.component("DvBorderBox4",Lse)}},$se={...ei,reverse:{type:Boolean,default:!1}},Rse=["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],Ose=ge({props:$se,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Rse,Qt(e,"color"));return{width:n,height:r,initWH:a,mergedColor:i,borderBox5:t}},render(){const{$slots:e,width:t,height:n,mergedColor:r,backgroundColor:a,reverse:i}=this;return V("div",{ref:"borderBox5",class:"dv-border-box-5"},[V("svg",{class:`dv-border-svg-container ${i&&"dv-reverse"}`,width:t,height:n},[V("polygon",{fill:a,points:`
10, 22 ${t-22}, 22 ${t-22}, ${n-86} ${t-84}, ${n-24} 10, ${n-24}
`},null),V("polyline",{class:"dv-bb5-line-1",stroke:r[0],points:`8, 5 ${t-5}, 5 ${t-5}, ${n-100}
${t-100}, ${n-5} 8, ${n-5} 8, 5`},null),V("polyline",{class:"dv-bb5-line-2",stroke:r[1],points:`3, 5 ${t-20}, 5 ${t-20}, ${n-60}
${t-74}, ${n-5} 3, ${n-5} 3, 5`},null),V("polyline",{class:"dv-bb5-line-3",stroke:r[1],points:`50, 13 ${t-35}, 13`},null),V("polyline",{class:"dv-bb5-line-4",stroke:r[1],points:`15, 20 ${t-35}, 20`},null),V("polyline",{class:"dv-bb5-line-5",stroke:r[1],points:`15, ${n-20} ${t-110}, ${n-20}`},null),V("polyline",{class:"dv-bb5-line-6",stroke:r[1],points:`15, ${n-13} ${t-110}, ${n-13}`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),Z$={install(e){e.component("DvBorderBox5",Ose)}},Nse=["rgba(255, 255, 255, 0.35)","gray"],Bse=ge({props:ei,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Nse,Qt(e,"color"));return{width:n,height:r,initWH:a,mergedColor:i,borderBox6:t}},render(){const{$slots:e,width:t,height:n,mergedColor:r,backgroundColor:a}=this;return V("div",{ref:"borderBox6",class:"dv-border-box-6"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("polygon",{fill:a,points:`
9, 7 ${t-9}, 7 ${t-9}, ${n-7} 9, ${n-7}
`},null),V("circle",{fill:r[1],cx:"5",cy:"5",r:"2"},null),V("circle",{fill:r[1],cx:t-5,cy:"5",r:"2"},null),V("circle",{fill:r[1],cx:t-5,cy:n-5,r:"2"},null),V("circle",{fill:r[1],cx:"5",cy:n-5,r:"2"},null),V("polyline",{stroke:r[0],points:`10, 4 ${t-10}, 4`},null),V("polyline",{stroke:r[0],points:`10, ${n-4} ${t-10}, ${n-4}`},null),V("polyline",{stroke:r[0],points:`5, 70 5, ${n-70}`},null),V("polyline",{stroke:r[0],points:`${t-5}, 70 ${t-5}, ${n-70}`},null),V("polyline",{stroke:r[0],points:"3, 10, 3, 50"},null),V("polyline",{stroke:r[0],points:"7, 30 7, 80"},null),V("polyline",{stroke:r[0],points:`${t-3}, 10 ${t-3}, 50`},null),V("polyline",{stroke:r[0],points:`${t-7}, 30 ${t-7}, 80`},null),V("polyline",{stroke:r[0],points:`3, ${n-10} 3, ${n-50}`},null),V("polyline",{stroke:r[0],points:`7, ${n-30} 7, ${n-80}`},null),V("polyline",{stroke:r[0],points:`${t-3}, ${n-10} ${t-3}, ${n-50}`},null),V("polyline",{stroke:r[0],points:`${t-7}, ${n-30} ${t-7}, ${n-80}`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),J$={install(e){e.component("DvBorderBox6",Bse)}},Fse=["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],Vse=ge({props:ei,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Fse,Qt(e,"color"));return{width:n,height:r,initWH:a,mergedColor:i,borderBox7:t}},render(){const{$slots:e,width:t,height:n,mergedColor:r,backgroundColor:a}=this;return V("div",{ref:"borderBox7",class:"dv-border-box-7",style:`box-shadow: inset 0 0 40px ${r[0]}; border: 1px solid ${r[0]}; background-color: ${a}`},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:"0, 25 0, 0 25, 0"},null),V("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:`${t-25}, 0 ${t}, 0 ${t}, 25`},null),V("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:`${t-25}, ${n} ${t}, ${n} ${t}, ${n-25}`},null),V("polyline",{class:"dv-bb7-line-width-2",stroke:r[0],points:`0, ${n-25} 0, ${n} 25, ${n}`},null),V("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:"0, 10 0, 0 10, 0"},null),V("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:`${t-10}, 0 ${t}, 0 ${t}, 10`},null),V("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:`${t-10}, ${n} ${t}, ${n} ${t}, ${n-10}`},null),V("polyline",{class:"dv-bb7-line-width-5",stroke:r[1],points:`0, ${n-10} 0, ${n} 10, ${n}`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),Q$={install(e){e.component("DvBorderBox7",Vse)}},zse={...ei,reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},Hse=["#235fa7","#4fd2dd"],Gse=ge({props:zse,setup(e){const t=po(),n=U(null),r=vt({path:`border-box-8-path-${t}`,gradient:`border-box-8-gradient-${t}`,mask:`border-box-8-mask-${t}`}),{width:a,height:i,initWH:o}=wn(n),s=F(()=>(a.value+i.value-5)*2),l=F(()=>e.reverse?`M 2.5, 2.5 L 2.5, ${i.value-2.5} L ${a.value-2.5}, ${i.value-2.5} L ${a.value-2.5}, 2.5 L 2.5, 2.5`:`M2.5, 2.5 L${a.value-2.5}, 2.5 L${a.value-2.5}, ${i.value-2.5} L2.5, ${i.value-2.5} L2.5, 2.5`),u=ti(Hse,Qt(e,"color"));return{width:a,height:i,initWH:o,state:r,mergedColor:u,pathD:l,length:s,borderBox8:n}},render(){const{$slots:e,width:t,height:n,state:r,mergedColor:a,pathD:i,length:o,backgroundColor:s,dur:l}=this;return V("div",{ref:"borderBox8",class:"dv-border-box-8"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("defs",null,[V("path",{id:r.path,d:i,fill:"transparent"},null),V("radialGradient",{id:r.gradient,cx:"50%",cy:"50%",r:"50%"},[V("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null),V("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null)]),V("mask",{id:r.mask},[V("circle",{cx:"0",cy:"0",r:"150",fill:`url(#${r.gradient})`},[et("animateMotion",{dur:`${l}s`,path:i,rotate:"auto",repeatCount:"indefinite"})])])]),V("polygon",{fill:s,points:`5, 5 ${t-5}, 5 ${t-5} ${n-5} 5, ${n-5}`},null),V("use",{stroke:a[0],"stroke-width":"1","xlink:href":`#${r.path}`},null),V("use",{stroke:a[1],"stroke-width":"3","xlink:href":`#${r.path}`,mask:`url(#${r.mask})`},[V("animate",{attributeName:"stroke-dasharray",from:`0, ${o}`,to:`${o}, 0`,dur:`${l}s`,repeatCount:"indefinite"},null)])]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),eR={install(e){e.component("DvBorderBox8",Gse)}},Wse=["#11eefd","#0078d2"],Use=ge({props:ei,setup(e){const t=po(),n=U(null),{width:r,height:a,initWH:i}=wn(n),o=vt({gradientId:`border-box-9-gradient-${t}`,maskId:`border-box-9-mask-${t}`}),s=ti(Wse,Qt(e,"color"));return{width:r,height:a,initWH:i,state:o,mergedColor:s,borderBox9:n}},render(){const{$slots:e,width:t,height:n,state:r,mergedColor:a,backgroundColor:i}=this;return V("div",{ref:"borderBox9",class:"dv-border-box-9"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("defs",null,[V("linearGradient",{id:r.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[V("animate",{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),V("animate",{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),V("stop",{offset:"0%","stop-color":a[0]},[V("animate",{attributeName:"stop-color",values:`${a[0]};${a[1]};${a[0]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)]),V("stop",{offset:"100%","stop-color":a[1]},[V("animate",{attributeName:"stop-color",values:`${a[1]};${a[0]};${a[1]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)])]),V("mask",{id:r.maskId},[V("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${n*.4} 8, 3, ${t*.4+7}, 3`},null),V("polyline",{fill:"#fff",points:`8, ${n*.15} 8, 3, ${t*.1+7}, 3
${t*.1}, 8 14, 8 14, ${n*.15-7}
`},null),V("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${t*.5}, 3 ${t-3}, 3, ${t-3}, ${n*.25}`},null),V("polyline",{fill:"#fff",points:`
${t*.52}, 3 ${t*.58}, 3
${t*.58-7}, 9 ${t*.52+7}, 9
`},null),V("polyline",{fill:"#fff",points:`
${t*.9}, 3 ${t-3}, 3 ${t-3}, ${n*.1}
${t-9}, ${n*.1-7} ${t-9}, 9 ${t*.9+7}, 9
`},null),V("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${n*.5} 8, ${n-3} ${t*.3+7}, ${n-3}`},null),V("polyline",{fill:"#fff",points:`
8, ${n*.55} 8, ${n*.7}
2, ${n*.7-7} 2, ${n*.55+7}
`},null),V("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${t*.35}, ${n-3} ${t-3}, ${n-3} ${t-3}, ${n*.35}`},null),V("polyline",{fill:"#fff",points:`
${t*.92}, ${n-3} ${t-3}, ${n-3} ${t-3}, ${n*.8}
${t-9}, ${n*.8+7} ${t-9}, ${n-9} ${t*.92+7}, ${n-9}
`},null)])]),V("polygon",{fill:i,points:`
15, 9 ${t*.1+1}, 9 ${t*.1+4}, 6 ${t*.52+2}, 6
${t*.52+6}, 10 ${t*.58-7}, 10 ${t*.58-2}, 6
${t*.9+2}, 6 ${t*.9+6}, 10 ${t-10}, 10 ${t-10}, ${n*.1-6}
${t-6}, ${n*.1-1} ${t-6}, ${n*.8+1} ${t-10}, ${n*.8+6}
${t-10}, ${n-10} ${t*.92+7}, ${n-10} ${t*.92+2}, ${n-6}
11, ${n-6} 11, ${n*.15-2} 15, ${n*.15-7}
`},null),V("rect",{x:"0",y:"0",width:t,height:n,fill:`url(#${r.gradientId})`,mask:`url(#${r.maskId})`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),tR={install(e){e.component("DvBorderBox9",Use)}},jse=["left-top","right-top","left-bottom","right-bottom"],Kse=["#1d48c4","#d3e1f8"],Yse=ge({props:ei,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Kse,Qt(e,"color"));return{width:n,height:r,initWH:a,mergedColor:i,borderBox10:t}},render(){const{$slots:e,width:t,height:n,mergedColor:r,backgroundColor:a}=this;return V("div",{ref:"borderBox10",class:"dv-border-box-10",style:`box-shadow: inset 0 0 25px 3px ${r[0]}`},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("polygon",{fill:a,points:`
4, 0 ${t-4}, 0 ${t}, 4 ${t}, ${n-4} ${t-4}, ${n}
4, ${n} 0, ${n-4} 0, 4
`},null)]),jse.map(i=>V("svg",{width:"150px",height:"150px",class:`${i} dv-border-svg-container`},[V("polygon",{fill:r[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"},null)])),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),nR={install(e){e.component("DvBorderBox10",Yse)}},qse={...ei,title:{type:String,default:""},titleWidth:{type:Number,default:250},animate:{type:Boolean,default:!0}},rR=["#8aaafb","#1f33a2"],Xse=ge({props:qse,setup(e){const t=po(),n=U(null),{width:r,height:a,initWH:i}=wn(n),o=U(`border-box-11-filterId-${t}`),s=ti(rR,Qt(e,"color"));return{width:r,height:a,initWH:i,filterId:o,mergedColor:s,borderBox11:n}},render(){const{$slots:e,width:t,height:n,filterId:r,mergedColor:a,backgroundColor:i,title:o,titleWidth:s,animate:l}=this;return V("div",{ref:"borderBox11",class:"dv-border-box-11"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("defs",null,[V("filter",{id:r,height:"150%",width:"150%",x:"-25%",y:"-25%"},[V("feMorphology",{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"},null),V("feGaussianBlur",{in:"thicken",stdDeviation:"3",result:"blurred"},null),V("feFlood",{"flood-color":a[1],result:"glowColor"},null),V("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),V("feMerge",null,[V("feMergeNode",{in:"softGlowColored"},null),V("feMergeNode",{in:"SourceGraphic"},null)])])]),V("polygon",{fill:i,points:`
20, 32 ${t*.5-s/2}, 32 ${t*.5-s/2+20}, 53
${t*.5+s/2-20}, 53 ${t*.5+s/2}, 32
${t-20}, 32 ${t-8}, 48 ${t-8}, ${n-25} ${t-20}, ${n-8}
20, ${n-8} 8, ${n-25} 8, 50
`},null),V("polyline",{stroke:a[0],filter:`url(#${r})`,points:`
${(t-s)/2}, 30
20, 30 7, 50 7, ${50+(n-167)/2}
13, ${55+(n-167)/2} 13, ${135+(n-167)/2}
7, ${140+(n-167)/2} 7, ${n-27}
20, ${n-7} ${t-20}, ${n-7} ${t-7}, ${n-27}
${t-7}, ${140+(n-167)/2} ${t-13}, ${135+(n-167)/2}
${t-13}, ${55+(n-167)/2} ${t-7}, ${50+(n-167)/2}
${t-7}, 50 ${t-20}, 30 ${(t+s)/2}, 30
${(t+s)/2-20}, 7 ${(t-s)/2+20}, 7
${(t-s)/2}, 30 ${(t-s)/2+20}, 52
${(t+s)/2-20}, 52 ${(t+s)/2}, 30
`},null),V("polygon",{stroke:a[0],fill:"transparent",points:`
${(t+s)/2-5}, 30 ${(t+s)/2-21}, 11
${(t+s)/2-27}, 11 ${(t+s)/2-8}, 34
`},null),V("polygon",{stroke:a[0],fill:"transparent",points:`
${(t-s)/2+5}, 30 ${(t-s)/2+22}, 49
${(t-s)/2+28}, 49 ${(t-s)/2+8}, 26
`},null),V("polygon",{stroke:a[0],fill:wr(a[1]||rR[1],30),filter:`url(#${r})`,points:`
${(t+s)/2-11}, 37 ${(t+s)/2-32}, 11
${(t-s)/2+23}, 11 ${(t-s)/2+11}, 23
${(t-s)/2+33}, 49 ${(t+s)/2-22}, 49
`},null),V("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"1",points:`
${(t-s)/2-10}, 37 ${(t-s)/2-31}, 37
${(t-s)/2-25}, 46 ${(t-s)/2-4}, 46
`},[l&&V("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.7",points:`
${(t-s)/2-40}, 37 ${(t-s)/2-61}, 37
${(t-s)/2-55}, 46 ${(t-s)/2-34}, 46
`},[l&&V("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.5",points:`
${(t-s)/2-70}, 37 ${(t-s)/2-91}, 37
${(t-s)/2-85}, 46 ${(t-s)/2-64}, 46
`},[l&&V("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"1",points:`
${(t+s)/2+30}, 37 ${(t+s)/2+9}, 37
${(t+s)/2+3}, 46 ${(t+s)/2+24}, 46
`},[l&&V("animate",{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.7",points:`
${(t+s)/2+60}, 37 ${(t+s)/2+39}, 37
${(t+s)/2+33}, 46 ${(t+s)/2+54}, 46
`},[l&&V("animate",{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),V("polygon",{filter:`url(#${r})`,fill:a[0],opacity:"0.5",points:`
${(t+s)/2+90}, 37 ${(t+s)/2+69}, 37
${(t+s)/2+63}, 46 ${(t+s)/2+84}, 46
`},[l&&V("animate",{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},null)]),V("text",{class:"dv-border-box-11-title",x:`${t/2}`,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"},[o]),V("polygon",{fill:a[0],filter:`url(#${r})`,points:`
7, ${53+(n-167)/2} 11, ${57+(n-167)/2}
11, ${133+(n-167)/2} 7, ${137+(n-167)/2}
`},null),V("polygon",{fill:a[0],filter:`url(#${r})`,points:`
${t-7}, ${53+(n-167)/2} ${t-11}, ${57+(n-167)/2}
${t-11}, ${133+(n-167)/2} ${t-7}, ${137+(n-167)/2}
`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),aR={install(e){e.component("DvBorderBox11",Xse)}},Yh=["#2e6099","#7ce7fd"],Zse=ge({props:ei,setup(e){const t=po(),n=U(null),{width:r,height:a,initWH:i}=wn(n),o=U(`borderr-box-12-filterId-${t}`),s=ti(Yh,Qt(e,"color"));return{width:r,height:a,filterId:o,mergedColor:s,initWH:i,borderBox12:n}},render(){const{$slots:e,width:t,height:n,filterId:r,mergedColor:a,backgroundColor:i}=this;return V("div",{ref:"borderBox12",class:"dv-border-box-12"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("defs",null,[V("filter",{id:r,height:"150%",width:"150%",x:"-25%",y:"-25%"},[V("feMorphology",{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"},null),V("feGaussianBlur",{in:"thicken",stdDeviation:"2",result:"blurred"},null),V("feFlood",{"flood-color":wr(a[1]||Yh[1],70),result:"glowColor"},[V("animate",{attributeName:"flood-color",values:`
${wr(a[1]||Yh[1],70)};
${wr(a[1]||Yh[1],30)};
${wr(a[1]||Yh[1],70)};
`,dur:"3s",begin:"0s",repeatCount:"indefinite"},null)]),V("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null),V("feMerge",null,[V("feMergeNode",{in:"softGlowColored"},null),V("feMergeNode",{in:"SourceGraphic"},null)])])]),t&&n&&V("path",{fill:i,"stroke-width":"2",stroke:a[0],d:`
M15 5 L ${t-15} 5 Q ${t-5} 5, ${t-5} 15
L ${t-5} ${n-15} Q ${t-5} ${n-5}, ${t-15} ${n-5}
L 15, ${n-5} Q 5 ${n-5} 5 ${n-15} L 5 15
Q 5 5 15 5
`},null),V("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"},null),V("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:`M ${t-20} 5 L ${t-15} 5 Q ${t-5} 5 ${t-5} 15 L ${t-5} 20`},null),V("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:`
M ${t-20} ${n-5} L ${t-15} ${n-5}
Q ${t-5} ${n-5} ${t-5} ${n-15}
L ${t-5} ${n-20}
`},null),V("path",{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:`url(#${r})`,stroke:a[1],d:`
M 20 ${n-5} L 15 ${n-5}
Q 5 ${n-5} 5 ${n-15}
L 5 ${n-20}
`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),iR={install(e){e.component("DvBorderBox12",Zse)}},Jse=["#6586ec","#2cf7fe"],Qse=ge({props:ei,setup(e){const t=U(null),{width:n,height:r,initWH:a}=wn(t),i=ti(Jse,Qt(e,"color"));return{width:n,height:r,mergedColor:i,initWH:a,borderBox13:t}},render(){const{$slots:e,width:t,height:n,mergedColor:r,backgroundColor:a}=this;return V("div",{ref:"borderBox13",class:"dv-border-box-13"},[V("svg",{class:"dv-border-svg-container",width:t,height:n},[V("path",{fill:a,stroke:r[0],d:`
M 5 20 L 5 10 L 12 3 L 60 3 L 68 10
L ${t-20} 10 L ${t-5} 25
L ${t-5} ${n-5} L 20 ${n-5}
L 5 ${n-20} L 5 20
`},null),V("path",{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:r[0],d:"M 16 9 L 61 9"},null),V("path",{fill:"transparent",stroke:r[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"},null),V("path",{fill:"transparent",stroke:r[1],d:`M ${t-5} ${n-30} L ${t-5} ${n-5} L ${t-30} ${n-5}`},null)]),V("div",{class:"border-box-content"},[ke(e,"default")])])}}),oR={install(e){e.component("DvBorderBox13",Qse)}},ele={install(e){var t,n,r,a,i,o,s,l,u,c,f,d,h,p,v,g,m,_,b,w,S,x,C,T,k,A,M,I,E,L,N,$,P,R,D,B,H,G,X;(t=ND.install)==null||t.call(ND,e),(n=VD.install)==null||n.call(VD,e),(r=zD.install)==null||r.call(zD,e),(a=UL.install)==null||a.call(UL,e),(i=jL.install)==null||i.call(jL,e),(o=KL.install)==null||o.call(KL,e),(s=YL.install)==null||s.call(YL,e),(l=qL.install)==null||l.call(qL,e),(u=XL.install)==null||u.call(XL,e),(c=E$.install)==null||c.call(E$,e),(f=I$.install)==null||f.call(I$,e),(d=D$.install)==null||d.call(D$,e),(h=L$.install)==null||h.call(L$,e),(p=$$.install)==null||p.call($$,e),(v=R$.install)==null||v.call(R$,e),(g=O$.install)==null||g.call(O$,e),(m=N$.install)==null||m.call(N$,e),(_=B$.install)==null||_.call(B$,e),(b=F$.install)==null||b.call(F$,e),(w=V$.install)==null||w.call(V$,e),(S=z$.install)==null||S.call(z$,e),(x=H$.install)==null||x.call(H$,e),(C=G$.install)==null||C.call(G$,e),(T=W$.install)==null||T.call(W$,e),(k=U$.install)==null||k.call(U$,e),(A=j$.install)==null||A.call(j$,e),(M=K$.install)==null||M.call(K$,e),(I=Y$.install)==null||I.call(Y$,e),(E=q$.install)==null||E.call(q$,e),(L=X$.install)==null||L.call(X$,e),(N=Z$.install)==null||N.call(Z$,e),($=J$.install)==null||$.call(J$,e),(P=Q$.install)==null||P.call(Q$,e),(R=eR.install)==null||R.call(eR,e),(D=tR.install)==null||D.call(tR,e),(B=nR.install)==null||B.call(nR,e),(H=aR.install)==null||H.call(aR,e),(G=iR.install)==null||G.call(iR,e),(X=oR.install)==null||X.call(oR,e)}};/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const jf=typeof window<"u";function tle(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const kn=Object.assign;function Kw(e,t){const n={};for(const r in t){const a=t[r];n[r]=io(a)?a.map(e):e(a)}return n}const Zp=()=>{},io=Array.isArray,nle=/\/$/,rle=e=>e.replace(nle,"");function Yw(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),a=e(i)),s>-1&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=sle(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function ale(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function sR(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ile(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Ld(t.matched[r],n.matched[a])&&Yz(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ld(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Yz(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ole(e[n],t[n]))return!1;return!0}function ole(e,t){return io(e)?lR(e,t):io(t)?lR(t,e):e===t}function lR(e,t){return io(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function sle(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let a=n.length-1,i,o;for(i=0;i<r.length;i++)if(o=r[i],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Nv;(function(e){e.pop="pop",e.push="push"})(Nv||(Nv={}));var Jp;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jp||(Jp={}));function lle(e){if(!e)if(jf){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rle(e)}const ule=/^[^#]+#/;function cle(e,t){return e.replace(ule,"#")+t}function fle(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const f_=()=>({left:window.pageXOffset,top:window.pageYOffset});function dle(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=fle(a,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 uR(e,t){return(history.state?history.state.position-t:-1)+e}const h2=new Map;function hle(e,t){h2.set(e,t)}function ple(e){const t=h2.get(e);return h2.delete(e),t}let vle=()=>location.protocol+"//"+location.host;function qz(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),sR(l,"")}return sR(n,e)+r+a}function gle(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=qz(e,location),p=n.value,v=t.value;let g=0;if(d){if(n.value=h,t.value=d,o&&o===p){o=null;return}g=v?d.position-v.position:0}else r(h);a.forEach(m=>{m(n.value,p,{delta:g,type:Nv.pop,direction:g?g>0?Jp.forward:Jp.back:Jp.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const p=a.indexOf(d);p>-1&&a.splice(p,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(kn({},d.state,{scroll:f_()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function cR(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?f_():null}}function mle(e){const{history:t,location:n}=window,r={value:qz(e,n)},a={value:t.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:vle()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function o(l,u){const c=kn({},t.state,cR(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=kn({},a.value,t.state,{forward:l,scroll:f_()});i(c.current,c,!0);const f=kn({},cR(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function yle(e){e=lle(e);const t=mle(e),n=gle(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=kn({location:"",base:e,go:r,createHref:cle.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function ble(e){return typeof e=="string"||e&&typeof e=="object"}function Xz(e){return typeof e=="string"||typeof e=="symbol"}const el={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Zz=Symbol("");var fR;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(fR||(fR={}));function $d(e,t){return kn(new Error,{type:e,[Zz]:!0},t)}function us(e,t){return e instanceof Error&&Zz in e&&(t==null||!!(e.type&t))}const dR="[^/]+?",_le={sensitive:!1,strict:!1,start:!0,end:!0},wle=/[.+*?^${}()[\]/\\]/g;function Sle(e,t){const n=kn({},_le,t),r=[];let a=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(a+="/"),a+=d.value.replace(wle,"\\$&"),h+=40;else if(d.type===1){const{value:p,repeatable:v,optional:g,regexp:m}=d;i.push({name:p,repeatable:v,optional:g});const _=m||dR;if(_!==dR){h+=10;try{new RegExp(`(${_})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${p}" (${_}): `+w.message)}}let b=v?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;f||(b=g&&u.length<2?`(?:/${b})`:"/"+b),g&&(b+="?"),a+=b,h+=20,g&&(h+=-8),v&&(h+=-20),_===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const o=new RegExp(a,n.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]||"",p=i[d-1];f[p.name]=h&&p.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:p,repeatable:v,optional:g}=h,m=p in u?u[p]:"";if(io(m)&&!v)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const _=io(m)?m.join("/"):m;if(!_)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=_}}return c||"/"}return{re:o,score:r,keys:i,parse:s,stringify:l}}function xle(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}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 Cle(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=xle(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(hR(r))return 1;if(hR(a))return-1}return a.length-r.length}function hR(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Tle={type:0,value:""},kle=/[a-zA-Z0-9_]/;function Ale(e){if(!e)return[[]];if(e==="/")return[[Tle]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.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==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:kle.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),a}function Mle(e,t,n){const r=Sle(Ale(e.path),n),a=kn(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function Ple(e,t){const n=[],r=new Map;t=gR({strict:!1,end:!0,sensitive:!1},t);function a(c){return r.get(c)}function i(c,f,d){const h=!d,p=Ele(c);p.aliasOf=d&&d.record;const v=gR(t,c),g=[p];if("alias"in c){const b=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of b)g.push(kn({},p,{components:d?d.record.components:p.components,path:w,aliasOf:d?d.record:p}))}let m,_;for(const b of g){const{path:w}=b;if(f&&w[0]!=="/"){const S=f.record.path,x=S[S.length-1]==="/"?"":"/";b.path=f.record.path+(w&&x+w)}if(m=Mle(b,f,v),d?d.alias.push(m):(_=_||m,_!==m&&_.alias.push(m),h&&c.name&&!vR(m)&&o(c.name)),p.children){const S=p.children;for(let x=0;x<S.length;x++)i(S[x],m,d&&d.children[x])}d=d||m,(m.record.components&&Object.keys(m.record.components).length||m.record.name||m.record.redirect)&&l(m)}return _?()=>{o(_)}:Zp}function o(c){if(Xz(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f<n.length&&Cle(c,n[f])>=0&&(c.record.path!==n[f].record.path||!Jz(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!vR(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},p,v;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw $d(1,{location:c});v=d.record.name,h=kn(pR(f.params,d.keys.filter(_=>!_.optional).map(_=>_.name)),c.params&&pR(c.params,d.keys.map(_=>_.name))),p=d.stringify(h)}else if("path"in c)p=c.path,d=n.find(_=>_.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(_=>_.re.test(f.path)),!d)throw $d(1,{location:c,currentLocation:f});v=d.record.name,h=kn({},f.params,c.params),p=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:v,path:p,params:h,matched:g,meta:Dle(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function pR(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ele(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ile(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 Ile(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function vR(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dle(e){return e.reduce((t,n)=>kn(t,n.meta),{})}function gR(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Jz(e,t){return t.children.some(n=>n===e||Jz(e,n))}const Qz=/#/g,Lle=/&/g,$le=/\//g,Rle=/=/g,Ole=/\?/g,eH=/\+/g,Nle=/%5B/g,Ble=/%5D/g,tH=/%5E/g,Fle=/%60/g,nH=/%7B/g,Vle=/%7C/g,rH=/%7D/g,zle=/%20/g;function XA(e){return encodeURI(""+e).replace(Vle,"|").replace(Nle,"[").replace(Ble,"]")}function Hle(e){return XA(e).replace(nH,"{").replace(rH,"}").replace(tH,"^")}function p2(e){return XA(e).replace(eH,"%2B").replace(zle,"+").replace(Qz,"%23").replace(Lle,"%26").replace(Fle,"`").replace(nH,"{").replace(rH,"}").replace(tH,"^")}function Gle(e){return p2(e).replace(Rle,"%3D")}function Wle(e){return XA(e).replace(Qz,"%23").replace(Ole,"%3F")}function Ule(e){return e==null?"":Wle(e).replace($le,"%2F")}function Tb(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function jle(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<r.length;++a){const i=r[a].replace(eH," "),o=i.indexOf("="),s=Tb(o<0?i:i.slice(0,o)),l=o<0?null:Tb(i.slice(o+1));if(s in t){let u=t[s];io(u)||(u=t[s]=[u]),u.push(l)}else t[s]=l}return t}function mR(e){let t="";for(let n in e){const r=e[n];if(n=Gle(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(io(r)?r.map(i=>i&&p2(i)):[r&&p2(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Kle(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=io(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return t}const Yle=Symbol(""),yR=Symbol(""),d_=Symbol(""),ZA=Symbol(""),v2=Symbol("");function qh(){let e=[];function t(r){return e.push(r),()=>{const a=e.indexOf(r);a>-1&&e.splice(a,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function yl(e,t,n,r,a){const i=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s($d(4,{from:n,to:t})):f instanceof Error?s(f):ble(f)?s($d(2,{from:t,to:f})):(i&&r.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=e.call(r&&r.instances[a],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function qw(e,t,n,r){const a=[];for(const i of e)for(const o in i.components){let s=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(qle(s)){const u=(s.__vccOpts||s)[t];u&&a.push(yl(u,n,r,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=tle(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&yl(d,n,r,i,o)()}))}}return a}function qle(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bR(e){const t=Ye(d_),n=Ye(ZA),r=F(()=>t.resolve(y(e.to))),a=F(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Ld.bind(null,c));if(d>-1)return d;const h=_R(l[u-2]);return u>1&&_R(c)===h&&f[f.length-1].path!==h?f.findIndex(Ld.bind(null,l[u-2])):d}),i=F(()=>a.value>-1&&Qle(n.params,r.value.params)),o=F(()=>a.value>-1&&a.value===n.matched.length-1&&Yz(n.params,r.value.params));function s(l={}){return Jle(l)?t[y(e.replace)?"replace":"push"](y(e.to)).catch(Zp):Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const Xle=ge({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:bR,setup(e,{slots:t}){const n=vt(bR(e)),{options:r}=Ye(d_),a=F(()=>({[wR(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[wR(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:et("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),Zle=Xle;function Jle(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 Qle(e,t){for(const n in t){const r=t[n],a=e[n];if(typeof r=="string"){if(r!==a)return!1}else if(!io(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function _R(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const wR=(e,t,n)=>e??t??n,eue=ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ye(v2),a=F(()=>e.route||r.value),i=Ye(yR,0),o=F(()=>{let u=y(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=F(()=>a.value.matched[o.value]);$t(yR,F(()=>o.value+1)),$t(Yle,s),$t(v2,a);const l=U();return Ae(()=>[l.value,s.value,e.name],([u,c,f],[d,h,p])=>{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||!Ld(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=a.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return SR(n.default,{Component:d,route:u});const h=f.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=et(d,kn({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return SR(n.default,{Component:g,route:u})||g}}});function SR(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const tue=eue;function nue(e){const t=Ple(e.routes,e),n=e.parseQuery||jle,r=e.stringifyQuery||mR,a=e.history,i=qh(),o=qh(),s=qh(),l=gn(el);let u=el;jf&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kw.bind(null,ie=>""+ie),f=Kw.bind(null,Ule),d=Kw.bind(null,Tb);function h(ie,le){let Q,J;return Xz(ie)?(Q=t.getRecordMatcher(ie),J=le):J=ie,t.addRoute(J,Q)}function p(ie){const le=t.getRecordMatcher(ie);le&&t.removeRoute(le)}function v(){return t.getRoutes().map(ie=>ie.record)}function g(ie){return!!t.getRecordMatcher(ie)}function m(ie,le){if(le=kn({},le||l.value),typeof ie=="string"){const z=Yw(n,ie,le.path),Y=t.resolve({path:z.path},le),ee=a.createHref(z.fullPath);return kn(z,Y,{params:d(Y.params),hash:Tb(z.hash),redirectedFrom:void 0,href:ee})}let Q;if("path"in ie)Q=kn({},ie,{path:Yw(n,ie.path,le.path).path});else{const z=kn({},ie.params);for(const Y in z)z[Y]==null&&delete z[Y];Q=kn({},ie,{params:f(ie.params)}),le.params=f(le.params)}const J=t.resolve(Q,le),se=ie.hash||"";J.params=c(d(J.params));const he=ale(r,kn({},ie,{hash:Hle(se),path:J.path})),re=a.createHref(he);return kn({fullPath:he,hash:se,query:r===mR?Kle(ie.query):ie.query||{}},J,{redirectedFrom:void 0,href:re})}function _(ie){return typeof ie=="string"?Yw(n,ie,l.value.path):kn({},ie)}function b(ie,le){if(u!==ie)return $d(8,{from:le,to:ie})}function w(ie){return C(ie)}function S(ie){return w(kn(_(ie),{replace:!0}))}function x(ie){const le=ie.matched[ie.matched.length-1];if(le&&le.redirect){const{redirect:Q}=le;let J=typeof Q=="function"?Q(ie):Q;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=_(J):{path:J},J.params={}),kn({query:ie.query,hash:ie.hash,params:"path"in J?{}:ie.params},J)}}function C(ie,le){const Q=u=m(ie),J=l.value,se=ie.state,he=ie.force,re=ie.replace===!0,z=x(Q);if(z)return C(kn(_(z),{state:typeof z=="object"?kn({},se,z.state):se,force:he,replace:re}),le||Q);const Y=Q;Y.redirectedFrom=le;let ee;return!he&&ile(r,J,Q)&&(ee=$d(16,{to:Y,from:J}),B(J,J,!0,!1)),(ee?Promise.resolve(ee):k(Y,J)).catch(oe=>us(oe)?us(oe,2)?oe:D(oe):P(oe,Y,J)).then(oe=>{if(oe){if(us(oe,2))return C(kn({replace:re},_(oe.to),{state:typeof oe.to=="object"?kn({},se,oe.to.state):se,force:he}),le||Y)}else oe=M(Y,J,!0,re,se);return A(Y,J,oe),oe})}function T(ie,le){const Q=b(ie,le);return Q?Promise.reject(Q):Promise.resolve()}function k(ie,le){let Q;const[J,se,he]=rue(ie,le);Q=qw(J.reverse(),"beforeRouteLeave",ie,le);for(const z of J)z.leaveGuards.forEach(Y=>{Q.push(yl(Y,ie,le))});const re=T.bind(null,ie,le);return Q.push(re),_f(Q).then(()=>{Q=[];for(const z of i.list())Q.push(yl(z,ie,le));return Q.push(re),_f(Q)}).then(()=>{Q=qw(se,"beforeRouteUpdate",ie,le);for(const z of se)z.updateGuards.forEach(Y=>{Q.push(yl(Y,ie,le))});return Q.push(re),_f(Q)}).then(()=>{Q=[];for(const z of ie.matched)if(z.beforeEnter&&!le.matched.includes(z))if(io(z.beforeEnter))for(const Y of z.beforeEnter)Q.push(yl(Y,ie,le));else Q.push(yl(z.beforeEnter,ie,le));return Q.push(re),_f(Q)}).then(()=>(ie.matched.forEach(z=>z.enterCallbacks={}),Q=qw(he,"beforeRouteEnter",ie,le),Q.push(re),_f(Q))).then(()=>{Q=[];for(const z of o.list())Q.push(yl(z,ie,le));return Q.push(re),_f(Q)}).catch(z=>us(z,8)?z:Promise.reject(z))}function A(ie,le,Q){for(const J of s.list())J(ie,le,Q)}function M(ie,le,Q,J,se){const he=b(ie,le);if(he)return he;const re=le===el,z=jf?history.state:{};Q&&(J||re?a.replace(ie.fullPath,kn({scroll:re&&z&&z.scroll},se)):a.push(ie.fullPath,se)),l.value=ie,B(ie,le,Q,re),D()}let I;function E(){I||(I=a.listen((ie,le,Q)=>{if(!ue.listening)return;const J=m(ie),se=x(J);if(se){C(kn(se,{replace:!0}),J).catch(Zp);return}u=J;const he=l.value;jf&&hle(uR(he.fullPath,Q.delta),f_()),k(J,he).catch(re=>us(re,12)?re:us(re,2)?(C(re.to,J).then(z=>{us(z,20)&&!Q.delta&&Q.type===Nv.pop&&a.go(-1,!1)}).catch(Zp),Promise.reject()):(Q.delta&&a.go(-Q.delta,!1),P(re,J,he))).then(re=>{re=re||M(J,he,!1),re&&(Q.delta&&!us(re,8)?a.go(-Q.delta,!1):Q.type===Nv.pop&&us(re,20)&&a.go(-1,!1)),A(J,he,re)}).catch(Zp)}))}let L=qh(),N=qh(),$;function P(ie,le,Q){D(ie);const J=N.list();return J.length?J.forEach(se=>se(ie,le,Q)):console.error(ie),Promise.reject(ie)}function R(){return $&&l.value!==el?Promise.resolve():new Promise((ie,le)=>{L.add([ie,le])})}function D(ie){return $||($=!ie,E(),L.list().forEach(([le,Q])=>ie?Q(ie):le()),L.reset()),ie}function B(ie,le,Q,J){const{scrollBehavior:se}=e;if(!jf||!se)return Promise.resolve();const he=!Q&&ple(uR(ie.fullPath,0))||(J||!Q)&&history.state&&history.state.scroll||null;return Xe().then(()=>se(ie,le,he)).then(re=>re&&dle(re)).catch(re=>P(re,ie,le))}const H=ie=>a.go(ie);let G;const X=new Set,ue={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,hasRoute:g,getRoutes:v,resolve:m,options:e,push:w,replace:S,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:N.add,isReady:R,install(ie){const le=this;ie.component("RouterLink",Zle),ie.component("RouterView",tue),ie.config.globalProperties.$router=le,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),jf&&!G&&l.value===el&&(G=!0,w(a.location).catch(se=>{}));const Q={};for(const se in el)Q[se]=F(()=>l.value[se]);ie.provide(d_,le),ie.provide(ZA,vt(Q)),ie.provide(v2,l);const J=ie.unmount;X.add(ie),ie.unmount=function(){X.delete(ie),X.size<1&&(u=el,I&&I(),I=null,l.value=el,G=!1,$=!1),J()}}};return ue}function _f(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function rue(e,t){const n=[],r=[],a=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const s=t.matched[o];s&&(e.matched.find(u=>Ld(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Ld(u,l))||a.push(l))}return[n,r,a]}function aH(){return Ye(d_)}function iH(){return Ye(ZA)}const aue={style:{width:"100%",height:"100%"}},iue={class:"boxbk"},oue={class:"boxftbsty"},sue={class:"boxftbsty_txt"},lue={class:"boxfcontentsty"},Gi=ge({__name:"box2",props:{title:null,activeName:null,deviceopenstatusmsg:null,transdataopenstatusmsg:null,showNameOnLine:null},setup(e){return(t,n)=>(O(),K("div",aue,[W("div",iue,[W("div",oue,[W("div",sue,$e(e.title),1)]),W("div",lue,[(O(),we(Lt(e.activeName),{style:{height:"100%",width:"90%"}}))])])]))}}),uue='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',cue=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,xR=e=>Array.from(e.querySelectorAll(uue)).filter(t=>fue(t)&&cue(t)),fue=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},T0=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(t,...n),e.dispatchEvent(a),e},oH=e=>!e.getAttribute("aria-owns"),sH=(e,t,n)=>{const{parentNode:r}=e;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,e);return a[i+t]||null},k0=e=>{e&&(e.focus(),!oH(e)&&e.click())},Bn=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=e==null?void 0:e(a);if(n===!1||!i)return t==null?void 0:t(a)},CR=e=>t=>t.pointerType==="mouse"?e(t):void 0;var due=Object.defineProperty,hue=Object.defineProperties,pue=Object.getOwnPropertyDescriptors,TR=Object.getOwnPropertySymbols,vue=Object.prototype.hasOwnProperty,gue=Object.prototype.propertyIsEnumerable,kR=(e,t,n)=>t in e?due(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mue=(e,t)=>{for(var n in t||(t={}))vue.call(t,n)&&kR(e,n,t[n]);if(TR)for(var n of TR(t))gue.call(t,n)&&kR(e,n,t[n]);return e},yue=(e,t)=>hue(e,pue(t));function AR(e,t){var n;const r=gn();return Ka(()=>{r.value=e()},yue(mue({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),sh(r)}var MR;const Ht=typeof window<"u",bue=e=>typeof e<"u",er=e=>typeof e=="boolean",_ue=e=>typeof e=="function",lt=e=>typeof e=="number",wue=e=>typeof e=="string",Rd=()=>{},lH=Ht&&((MR=window==null?void 0:window.navigator)==null?void 0:MR.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Wl(e){return typeof e=="function"?e():y(e)}function uH(e,t){function n(...r){return new Promise((a,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(i)})}return n}function Sue(e,t={}){let n,r,a=Rd;const i=s=>{clearTimeout(s),a(),a=Rd};return s=>{const l=Wl(e),u=Wl(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{a=t.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function xue(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=Rd,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Rd)};return f=>{const d=Wl(e),h=Date.now()-a,p=()=>l=f();return u(),d<=0?(a=Date.now(),p()):(h>d&&(n||!o)?(a=Date.now(),p()):t&&(l=new Promise((v,g)=>{s=r?g:v,i=setTimeout(()=>{a=Date.now(),o=!0,v(p()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function Cue(e){return e}function h_(e){return CA()?(TA(e),!0):!1}function Tue(e,t=200,n={}){return uH(Sue(t,n),e)}function kue(e,t=200,n={}){const r=U(e.value),a=Tue(()=>{r.value=e.value},t,n);return Ae(e,()=>a()),r}function cH(e,t=200,n=!1,r=!0,a=!1){return uH(xue(t,n,r,a),e)}function JA(e,t=!0){St()?nt(e):t?e():Xe(e)}function zc(e,t,n={}){const{immediate:r=!0}=n,a=U(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},Wl(t))}return r&&(a.value=!0,Ht&&l()),h_(s),{isPending:sh(a),start:l,stop:s}}function Va(e){var t;const n=Wl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ch=Ht?window:void 0,Aue=Ht?window.document:void 0;function Dn(...e){let t,n,r,a;if(wue(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=ch):[t,n,r,a]=e,!t)return Rd;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Ae(()=>[Va(t),Wl(a)],([c,f])=>{o(),c&&i.push(...n.flatMap(d=>r.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return h_(u),u}let PR=!1;function QA(e,t,n={}){const{window:r=ch,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;lH&&!PR&&(PR=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Rd)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=Va(h);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Dn(r,"click",d=>{const h=Va(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}t(d)}},{passive:!0,capture:i}),Dn(r,"pointerdown",d=>{const h=Va(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&Dn(r,"blur",d=>{var h;const p=Va(e);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function Mue(e,t=!1){const n=U(),r=()=>n.value=!!e();return r(),JA(r,t),n}function Pue(e){return JSON.parse(JSON.stringify(e))}const ER=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},IR="__vueuse_ssr_handlers__";ER[IR]=ER[IR]||{};function Eue(e,t,{window:n=ch,initialValue:r=""}={}){const a=U(r),i=F(()=>{var o;return Va(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Ae([i,()=>Wl(e)],([o,s])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||r}},{immediate:!0}),Ae(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(Wl(e),o)}),a}function Iue({document:e=Aue}={}){if(!e)return U("visible");const t=U(e.visibilityState);return Dn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var DR=Object.getOwnPropertySymbols,Due=Object.prototype.hasOwnProperty,Lue=Object.prototype.propertyIsEnumerable,$ue=(e,t)=>{var n={};for(var r in e)Due.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&DR)for(var r of DR(e))t.indexOf(r)<0&&Lue.call(e,r)&&(n[r]=e[r]);return n};function Yr(e,t,n={}){const r=n,{window:a=ch}=r,i=$ue(r,["window"]);let o;const s=Mue(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ae(()=>Va(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return h_(c),{isSupported:s,stop:c}}function LR(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=U(0),s=U(0),l=U(0),u=U(0),c=U(0),f=U(0),d=U(0),h=U(0);function p(){const v=Va(e);if(!v){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=v.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return Yr(e,p),Ae(()=>Va(e),v=>!v&&p()),a&&Dn("scroll",p,{capture:!0,passive:!0}),r&&Dn("resize",p,{passive:!0}),JA(()=>{i&&p()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:p}}var $R;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})($R||($R={}));var Rue=Object.defineProperty,RR=Object.getOwnPropertySymbols,Oue=Object.prototype.hasOwnProperty,Nue=Object.prototype.propertyIsEnumerable,OR=(e,t,n)=>t in e?Rue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bue=(e,t)=>{for(var n in t||(t={}))Oue.call(t,n)&&OR(e,n,t[n]);if(RR)for(var n of RR(t))Nue.call(t,n)&&OR(e,n,t[n]);return e};const Fue={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]};Bue({linear:Cue},Fue);function Vue(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=St(),h=n||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let p=u;t||(t="modelValue"),p=u||p||`update:${t.toString()}`;const v=m=>s?_ue(s)?s(m):Pue(m):m,g=()=>bue(e[t])?v(e[t]):f;if(l){const m=g(),_=U(m);return Ae(()=>e[t],b=>_.value=v(b)),Ae(_,b=>{(b!==e[t]||c)&&h(p,b)},{deep:c}),_}else return F({get(){return g()},set(m){h(p,m)}})}function zue({window:e=ch}={}){if(!e)return U(!1);const t=U(e.document.hasFocus());return Dn(e,"blur",()=>{t.value=!1}),Dn(e,"focus",()=>{t.value=!0}),t}function Hue(e={}){const{window:t=ch,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=U(n),s=U(r),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),JA(l),Dn("resize",l,{passive:!0}),a&&Dn("orientationchange",l,{passive:!0}),{width:o,height:s}}const Gue=(e,t)=>{if(!Ht||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},NR=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Wue=(e,t)=>Math.abs(NR(e)-NR(t)),eM=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};var Uue=typeof global=="object"&&global&&global.Object===Object&&global;const fH=Uue;var jue=typeof self=="object"&&self&&self.Object===Object&&self,Kue=fH||jue||Function("return this")();const go=Kue;var Yue=go.Symbol;const xi=Yue;var dH=Object.prototype,que=dH.hasOwnProperty,Xue=dH.toString,Xh=xi?xi.toStringTag:void 0;function Zue(e){var t=que.call(e,Xh),n=e[Xh];try{e[Xh]=void 0;var r=!0}catch{}var a=Xue.call(e);return r&&(t?e[Xh]=n:delete e[Xh]),a}var Jue=Object.prototype,Que=Jue.toString;function ece(e){return Que.call(e)}var tce="[object Null]",nce="[object Undefined]",BR=xi?xi.toStringTag:void 0;function tf(e){return e==null?e===void 0?nce:tce:BR&&BR in Object(e)?Zue(e):ece(e)}function Ko(e){return e!=null&&typeof e=="object"}var rce="[object Symbol]";function p_(e){return typeof e=="symbol"||Ko(e)&&tf(e)==rce}function hH(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ace=Array.isArray;const ua=ace;var ice=1/0,FR=xi?xi.prototype:void 0,VR=FR?FR.toString:void 0;function pH(e){if(typeof e=="string")return e;if(ua(e))return hH(e,pH)+"";if(p_(e))return VR?VR.call(e):"";var t=e+"";return t=="0"&&1/e==-ice?"-0":t}var oce=/\s/;function sce(e){for(var t=e.length;t--&&oce.test(e.charAt(t)););return t}var lce=/^\s+/;function uce(e){return e&&e.slice(0,sce(e)+1).replace(lce,"")}function ca(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zR=0/0,cce=/^[-+]0x[0-9a-f]+$/i,fce=/^0b[01]+$/i,dce=/^0o[0-7]+$/i,hce=parseInt;function HR(e){if(typeof e=="number")return e;if(p_(e))return zR;if(ca(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ca(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uce(e);var n=fce.test(e);return n||dce.test(e)?hce(e.slice(2),n?2:8):cce.test(e)?zR:+e}function tM(e){return e}var pce="[object AsyncFunction]",vce="[object Function]",gce="[object GeneratorFunction]",mce="[object Proxy]";function nM(e){if(!ca(e))return!1;var t=tf(e);return t==vce||t==gce||t==pce||t==mce}var yce=go["__core-js_shared__"];const Xw=yce;var GR=function(){var e=/[^.]+$/.exec(Xw&&Xw.keys&&Xw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bce(e){return!!GR&&GR in e}var _ce=Function.prototype,wce=_ce.toString;function nf(e){if(e!=null){try{return wce.call(e)}catch{}try{return e+""}catch{}}return""}var Sce=/[\\^$.*+?()[\]{}|]/g,xce=/^\[object .+?Constructor\]$/,Cce=Function.prototype,Tce=Object.prototype,kce=Cce.toString,Ace=Tce.hasOwnProperty,Mce=RegExp("^"+kce.call(Ace).replace(Sce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pce(e){if(!ca(e)||bce(e))return!1;var t=nM(e)?Mce:xce;return t.test(nf(e))}function Ece(e,t){return e==null?void 0:e[t]}function rf(e,t){var n=Ece(e,t);return Pce(n)?n:void 0}var Ice=rf(go,"WeakMap");const g2=Ice;var WR=Object.create,Dce=function(){function e(){}return function(t){if(!ca(t))return{};if(WR)return WR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Lce=Dce;function $ce(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Rce(){}function vH(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Oce=800,Nce=16,Bce=Date.now;function Fce(e){var t=0,n=0;return function(){var r=Bce(),a=Nce-(r-n);if(n=r,a>0){if(++t>=Oce)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Vce(e){return function(){return e}}var zce=function(){try{var e=rf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const kb=zce;var Hce=kb?function(e,t){return kb(e,"toString",{configurable:!0,enumerable:!1,value:Vce(t),writable:!0})}:tM;const Gce=Hce;var Wce=Fce(Gce);const gH=Wce;function Uce(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function jce(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Kce(e){return e!==e}function Yce(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function qce(e,t,n){return t===t?Yce(e,t,n):jce(e,Kce,n)}function Xce(e,t){var n=e==null?0:e.length;return!!n&&qce(e,t,0)>-1}var Zce=9007199254740991,Jce=/^(?:0|[1-9]\d*)$/;function v_(e,t){var n=typeof e;return t=t??Zce,!!t&&(n=="number"||n!="symbol"&&Jce.test(e))&&e>-1&&e%1==0&&e<t}function rM(e,t,n){t=="__proto__"&&kb?kb(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kg(e,t){return e===t||e!==e&&t!==t}var Qce=Object.prototype,efe=Qce.hasOwnProperty;function aM(e,t,n){var r=e[t];(!(efe.call(e,t)&&Kg(r,n))||n===void 0&&!(t in e))&&rM(e,t,n)}function Yg(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),a?rM(n,s,l):aM(n,s,l)}return n}var UR=Math.max;function mH(e,t,n){return t=UR(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=UR(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=r[a];return s[t]=n(o),$ce(e,this,s)}}function yH(e,t){return gH(mH(e,t,tM),e+"")}var tfe=9007199254740991;function iM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=tfe}function fh(e){return e!=null&&iM(e.length)&&!nM(e)}function nfe(e,t,n){if(!ca(n))return!1;var r=typeof t;return(r=="number"?fh(n)&&v_(t,n.length):r=="string"&&t in n)?Kg(n[t],e):!1}function rfe(e){return yH(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&nfe(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t})}var afe=Object.prototype;function oM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||afe;return e===n}function ife(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ofe="[object Arguments]";function jR(e){return Ko(e)&&tf(e)==ofe}var bH=Object.prototype,sfe=bH.hasOwnProperty,lfe=bH.propertyIsEnumerable,ufe=jR(function(){return arguments}())?jR:function(e){return Ko(e)&&sfe.call(e,"callee")&&!lfe.call(e,"callee")};const Bv=ufe;function cfe(){return!1}var _H=typeof Ua=="object"&&Ua&&!Ua.nodeType&&Ua,KR=_H&&typeof ja=="object"&&ja&&!ja.nodeType&&ja,ffe=KR&&KR.exports===_H,YR=ffe?go.Buffer:void 0,dfe=YR?YR.isBuffer:void 0,hfe=dfe||cfe;const Fv=hfe;var pfe="[object Arguments]",vfe="[object Array]",gfe="[object Boolean]",mfe="[object Date]",yfe="[object Error]",bfe="[object Function]",_fe="[object Map]",wfe="[object Number]",Sfe="[object Object]",xfe="[object RegExp]",Cfe="[object Set]",Tfe="[object String]",kfe="[object WeakMap]",Afe="[object ArrayBuffer]",Mfe="[object DataView]",Pfe="[object Float32Array]",Efe="[object Float64Array]",Ife="[object Int8Array]",Dfe="[object Int16Array]",Lfe="[object Int32Array]",$fe="[object Uint8Array]",Rfe="[object Uint8ClampedArray]",Ofe="[object Uint16Array]",Nfe="[object Uint32Array]",zn={};zn[Pfe]=zn[Efe]=zn[Ife]=zn[Dfe]=zn[Lfe]=zn[$fe]=zn[Rfe]=zn[Ofe]=zn[Nfe]=!0;zn[pfe]=zn[vfe]=zn[Afe]=zn[gfe]=zn[Mfe]=zn[mfe]=zn[yfe]=zn[bfe]=zn[_fe]=zn[wfe]=zn[Sfe]=zn[xfe]=zn[Cfe]=zn[Tfe]=zn[kfe]=!1;function Bfe(e){return Ko(e)&&iM(e.length)&&!!zn[tf(e)]}function sM(e){return function(t){return e(t)}}var wH=typeof Ua=="object"&&Ua&&!Ua.nodeType&&Ua,Qp=wH&&typeof ja=="object"&&ja&&!ja.nodeType&&ja,Ffe=Qp&&Qp.exports===wH,Zw=Ffe&&fH.process,Vfe=function(){try{var e=Qp&&Qp.require&&Qp.require("util").types;return e||Zw&&Zw.binding&&Zw.binding("util")}catch{}}();const Od=Vfe;var qR=Od&&Od.isTypedArray,zfe=qR?sM(qR):Bfe;const lM=zfe;var Hfe=Object.prototype,Gfe=Hfe.hasOwnProperty;function SH(e,t){var n=ua(e),r=!n&&Bv(e),a=!n&&!r&&Fv(e),i=!n&&!r&&!a&&lM(e),o=n||r||a||i,s=o?ife(e.length,String):[],l=s.length;for(var u in e)(t||Gfe.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||v_(u,l)))&&s.push(u);return s}function xH(e,t){return function(n){return e(t(n))}}var Wfe=xH(Object.keys,Object);const Ufe=Wfe;var jfe=Object.prototype,Kfe=jfe.hasOwnProperty;function Yfe(e){if(!oM(e))return Ufe(e);var t=[];for(var n in Object(e))Kfe.call(e,n)&&n!="constructor"&&t.push(n);return t}function qg(e){return fh(e)?SH(e):Yfe(e)}function qfe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Xfe=Object.prototype,Zfe=Xfe.hasOwnProperty;function Jfe(e){if(!ca(e))return qfe(e);var t=oM(e),n=[];for(var r in e)r=="constructor"&&(t||!Zfe.call(e,r))||n.push(r);return n}function Xg(e){return fh(e)?SH(e,!0):Jfe(e)}var Qfe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ede=/^\w*$/;function uM(e,t){if(ua(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||p_(e)?!0:ede.test(e)||!Qfe.test(e)||t!=null&&e in Object(t)}var tde=rf(Object,"create");const Vv=tde;function nde(){this.__data__=Vv?Vv(null):{},this.size=0}function rde(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ade="__lodash_hash_undefined__",ide=Object.prototype,ode=ide.hasOwnProperty;function sde(e){var t=this.__data__;if(Vv){var n=t[e];return n===ade?void 0:n}return ode.call(t,e)?t[e]:void 0}var lde=Object.prototype,ude=lde.hasOwnProperty;function cde(e){var t=this.__data__;return Vv?t[e]!==void 0:ude.call(t,e)}var fde="__lodash_hash_undefined__";function dde(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vv&&t===void 0?fde:t,this}function Hc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hc.prototype.clear=nde;Hc.prototype.delete=rde;Hc.prototype.get=sde;Hc.prototype.has=cde;Hc.prototype.set=dde;function hde(){this.__data__=[],this.size=0}function g_(e,t){for(var n=e.length;n--;)if(Kg(e[n][0],t))return n;return-1}var pde=Array.prototype,vde=pde.splice;function gde(e){var t=this.__data__,n=g_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vde.call(t,n,1),--this.size,!0}function mde(e){var t=this.__data__,n=g_(t,e);return n<0?void 0:t[n][1]}function yde(e){return g_(this.__data__,e)>-1}function bde(e,t){var n=this.__data__,r=g_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Us(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Us.prototype.clear=hde;Us.prototype.delete=gde;Us.prototype.get=mde;Us.prototype.has=yde;Us.prototype.set=bde;var _de=rf(go,"Map");const zv=_de;function wde(){this.size=0,this.__data__={hash:new Hc,map:new(zv||Us),string:new Hc}}function Sde(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function m_(e,t){var n=e.__data__;return Sde(t)?n[typeof t=="string"?"string":"hash"]:n.map}function xde(e){var t=m_(this,e).delete(e);return this.size-=t?1:0,t}function Cde(e){return m_(this,e).get(e)}function Tde(e){return m_(this,e).has(e)}function kde(e,t){var n=m_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}js.prototype.clear=wde;js.prototype.delete=xde;js.prototype.get=Cde;js.prototype.has=Tde;js.prototype.set=kde;var Ade="Expected a function";function y_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ade);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(y_.Cache||js),n}y_.Cache=js;var Mde=500;function Pde(e){var t=y_(e,function(r){return n.size===Mde&&n.clear(),r}),n=t.cache;return t}var Ede=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ide=/\\(\\)?/g,Dde=Pde(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ede,function(n,r,a,i){t.push(a?i.replace(Ide,"$1"):r||n)}),t});const Lde=Dde;function $de(e){return e==null?"":pH(e)}function b_(e,t){return ua(e)?e:uM(e,t)?[e]:Lde($de(e))}var Rde=1/0;function Zg(e){if(typeof e=="string"||p_(e))return e;var t=e+"";return t=="0"&&1/e==-Rde?"-0":t}function cM(e,t){t=b_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Zg(t[n++])];return n&&n==r?e:void 0}function En(e,t,n){var r=e==null?void 0:cM(e,t);return r===void 0?n:r}function fM(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var XR=xi?xi.isConcatSpreadable:void 0;function Ode(e){return ua(e)||Bv(e)||!!(XR&&e&&e[XR])}function Jg(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=Ode),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Jg(s,t-1,n,r,a):fM(a,s):r||(a[a.length]=s)}return a}function CH(e){var t=e==null?0:e.length;return t?Jg(e,1):[]}function Nde(e){return gH(mH(e,void 0,CH),e+"")}var Bde=xH(Object.getPrototypeOf,Object);const dM=Bde;var Fde="[object Object]",Vde=Function.prototype,zde=Object.prototype,TH=Vde.toString,Hde=zde.hasOwnProperty,Gde=TH.call(Object);function Wde(e){if(!Ko(e)||tf(e)!=Fde)return!1;var t=dM(e);if(t===null)return!0;var n=Hde.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&TH.call(n)==Gde}function Nd(){if(!arguments.length)return[];var e=arguments[0];return ua(e)?e:[e]}function Ude(){this.__data__=new Us,this.size=0}function jde(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Kde(e){return this.__data__.get(e)}function Yde(e){return this.__data__.has(e)}var qde=200;function Xde(e,t){var n=this.__data__;if(n instanceof Us){var r=n.__data__;if(!zv||r.length<qde-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new js(r)}return n.set(e,t),this.size=n.size,this}function Zi(e){var t=this.__data__=new Us(e);this.size=t.size}Zi.prototype.clear=Ude;Zi.prototype.delete=jde;Zi.prototype.get=Kde;Zi.prototype.has=Yde;Zi.prototype.set=Xde;function Zde(e,t){return e&&Yg(t,qg(t),e)}function Jde(e,t){return e&&Yg(t,Xg(t),e)}var kH=typeof Ua=="object"&&Ua&&!Ua.nodeType&&Ua,ZR=kH&&typeof ja=="object"&&ja&&!ja.nodeType&&ja,Qde=ZR&&ZR.exports===kH,JR=Qde?go.Buffer:void 0,QR=JR?JR.allocUnsafe:void 0;function AH(e,t){if(t)return e.slice();var n=e.length,r=QR?QR(n):new e.constructor(n);return e.copy(r),r}function ehe(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function MH(){return[]}var the=Object.prototype,nhe=the.propertyIsEnumerable,eO=Object.getOwnPropertySymbols,rhe=eO?function(e){return e==null?[]:(e=Object(e),ehe(eO(e),function(t){return nhe.call(e,t)}))}:MH;const hM=rhe;function ahe(e,t){return Yg(e,hM(e),t)}var ihe=Object.getOwnPropertySymbols,ohe=ihe?function(e){for(var t=[];e;)fM(t,hM(e)),e=dM(e);return t}:MH;const PH=ohe;function she(e,t){return Yg(e,PH(e),t)}function EH(e,t,n){var r=t(e);return ua(e)?r:fM(r,n(e))}function m2(e){return EH(e,qg,hM)}function lhe(e){return EH(e,Xg,PH)}var uhe=rf(go,"DataView");const y2=uhe;var che=rf(go,"Promise");const b2=che;var fhe=rf(go,"Set");const pd=fhe;var tO="[object Map]",dhe="[object Object]",nO="[object Promise]",rO="[object Set]",aO="[object WeakMap]",iO="[object DataView]",hhe=nf(y2),phe=nf(zv),vhe=nf(b2),ghe=nf(pd),mhe=nf(g2),ju=tf;(y2&&ju(new y2(new ArrayBuffer(1)))!=iO||zv&&ju(new zv)!=tO||b2&&ju(b2.resolve())!=nO||pd&&ju(new pd)!=rO||g2&&ju(new g2)!=aO)&&(ju=function(e){var t=tf(e),n=t==dhe?e.constructor:void 0,r=n?nf(n):"";if(r)switch(r){case hhe:return iO;case phe:return tO;case vhe:return nO;case ghe:return rO;case mhe:return aO}return t});const Hv=ju;var yhe=Object.prototype,bhe=yhe.hasOwnProperty;function _he(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bhe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var whe=go.Uint8Array;const Ab=whe;function pM(e){var t=new e.constructor(e.byteLength);return new Ab(t).set(new Ab(e)),t}function She(e,t){var n=t?pM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var xhe=/\w*$/;function Che(e){var t=new e.constructor(e.source,xhe.exec(e));return t.lastIndex=e.lastIndex,t}var oO=xi?xi.prototype:void 0,sO=oO?oO.valueOf:void 0;function The(e){return sO?Object(sO.call(e)):{}}function IH(e,t){var n=t?pM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var khe="[object Boolean]",Ahe="[object Date]",Mhe="[object Map]",Phe="[object Number]",Ehe="[object RegExp]",Ihe="[object Set]",Dhe="[object String]",Lhe="[object Symbol]",$he="[object ArrayBuffer]",Rhe="[object DataView]",Ohe="[object Float32Array]",Nhe="[object Float64Array]",Bhe="[object Int8Array]",Fhe="[object Int16Array]",Vhe="[object Int32Array]",zhe="[object Uint8Array]",Hhe="[object Uint8ClampedArray]",Ghe="[object Uint16Array]",Whe="[object Uint32Array]";function Uhe(e,t,n){var r=e.constructor;switch(t){case $he:return pM(e);case khe:case Ahe:return new r(+e);case Rhe:return She(e,n);case Ohe:case Nhe:case Bhe:case Fhe:case Vhe:case zhe:case Hhe:case Ghe:case Whe:return IH(e,n);case Mhe:return new r;case Phe:case Dhe:return new r(e);case Ehe:return Che(e);case Ihe:return new r;case Lhe:return The(e)}}function DH(e){return typeof e.constructor=="function"&&!oM(e)?Lce(dM(e)):{}}var jhe="[object Map]";function Khe(e){return Ko(e)&&Hv(e)==jhe}var lO=Od&&Od.isMap,Yhe=lO?sM(lO):Khe;const qhe=Yhe;var Xhe="[object Set]";function Zhe(e){return Ko(e)&&Hv(e)==Xhe}var uO=Od&&Od.isSet,Jhe=uO?sM(uO):Zhe;const Qhe=Jhe;var epe=1,tpe=2,npe=4,LH="[object Arguments]",rpe="[object Array]",ape="[object Boolean]",ipe="[object Date]",ope="[object Error]",$H="[object Function]",spe="[object GeneratorFunction]",lpe="[object Map]",upe="[object Number]",RH="[object Object]",cpe="[object RegExp]",fpe="[object Set]",dpe="[object String]",hpe="[object Symbol]",ppe="[object WeakMap]",vpe="[object ArrayBuffer]",gpe="[object DataView]",mpe="[object Float32Array]",ype="[object Float64Array]",bpe="[object Int8Array]",_pe="[object Int16Array]",wpe="[object Int32Array]",Spe="[object Uint8Array]",xpe="[object Uint8ClampedArray]",Cpe="[object Uint16Array]",Tpe="[object Uint32Array]",Nn={};Nn[LH]=Nn[rpe]=Nn[vpe]=Nn[gpe]=Nn[ape]=Nn[ipe]=Nn[mpe]=Nn[ype]=Nn[bpe]=Nn[_pe]=Nn[wpe]=Nn[lpe]=Nn[upe]=Nn[RH]=Nn[cpe]=Nn[fpe]=Nn[dpe]=Nn[hpe]=Nn[Spe]=Nn[xpe]=Nn[Cpe]=Nn[Tpe]=!0;Nn[ope]=Nn[$H]=Nn[ppe]=!1;function ev(e,t,n,r,a,i){var o,s=t&epe,l=t&tpe,u=t&npe;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!ca(e))return e;var c=ua(e);if(c){if(o=_he(e),!s)return vH(e,o)}else{var f=Hv(e),d=f==$H||f==spe;if(Fv(e))return AH(e,s);if(f==RH||f==LH||d&&!a){if(o=l||d?{}:DH(e),!s)return l?she(e,Jde(o,e)):ahe(e,Zde(o,e))}else{if(!Nn[f])return a?e:{};o=Uhe(e,f,s)}}i||(i=new Zi);var h=i.get(e);if(h)return h;i.set(e,o),Qhe(e)?e.forEach(function(g){o.add(ev(g,t,n,g,e,i))}):qhe(e)&&e.forEach(function(g,m){o.set(m,ev(g,t,n,m,e,i))});var p=u?l?lhe:m2:l?Xg:qg,v=c?void 0:p(e);return Uce(v||e,function(g,m){v&&(m=g,g=e[m]),aM(o,m,ev(g,t,n,m,e,i))}),o}var kpe=4;function cO(e){return ev(e,kpe)}var Ape=1,Mpe=4;function vM(e){return ev(e,Ape|Mpe)}var Ppe="__lodash_hash_undefined__";function Epe(e){return this.__data__.set(e,Ppe),this}function Ipe(e){return this.__data__.has(e)}function Gv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new js;++t<n;)this.add(e[t])}Gv.prototype.add=Gv.prototype.push=Epe;Gv.prototype.has=Ipe;function Dpe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function OH(e,t){return e.has(t)}var Lpe=1,$pe=2;function NH(e,t,n,r,a,i){var o=n&Lpe,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&$pe?new Gv:void 0;for(i.set(e,t),i.set(t,e);++f<s;){var p=e[f],v=t[f];if(r)var g=o?r(v,p,f,t,e,i):r(p,v,f,e,t,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!Dpe(t,function(m,_){if(!OH(h,_)&&(p===m||a(p,m,n,r,i)))return h.push(_)})){d=!1;break}}else if(!(p===v||a(p,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function Rpe(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function gM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ope=1,Npe=2,Bpe="[object Boolean]",Fpe="[object Date]",Vpe="[object Error]",zpe="[object Map]",Hpe="[object Number]",Gpe="[object RegExp]",Wpe="[object Set]",Upe="[object String]",jpe="[object Symbol]",Kpe="[object ArrayBuffer]",Ype="[object DataView]",fO=xi?xi.prototype:void 0,Jw=fO?fO.valueOf:void 0;function qpe(e,t,n,r,a,i,o){switch(n){case Ype:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Kpe:return!(e.byteLength!=t.byteLength||!i(new Ab(e),new Ab(t)));case Bpe:case Fpe:case Hpe:return Kg(+e,+t);case Vpe:return e.name==t.name&&e.message==t.message;case Gpe:case Upe:return e==t+"";case zpe:var s=Rpe;case Wpe:var l=r&Ope;if(s||(s=gM),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Npe,o.set(e,t);var c=NH(s(e),s(t),r,a,i,o);return o.delete(e),c;case jpe:if(Jw)return Jw.call(e)==Jw.call(t)}return!1}var Xpe=1,Zpe=Object.prototype,Jpe=Zpe.hasOwnProperty;function Qpe(e,t,n,r,a,i){var o=n&Xpe,s=m2(e),l=s.length,u=m2(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Jpe.call(t,d)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],_=t[d];if(r)var b=o?r(_,m,d,t,e,i):r(m,_,d,e,t,i);if(!(b===void 0?m===_||a(m,_,n,r,i):b)){v=!1;break}g||(g=d=="constructor")}if(v&&!g){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(v=!1)}return i.delete(e),i.delete(t),v}var eve=1,dO="[object Arguments]",hO="[object Array]",Jm="[object Object]",tve=Object.prototype,pO=tve.hasOwnProperty;function nve(e,t,n,r,a,i){var o=ua(e),s=ua(t),l=o?hO:Hv(e),u=s?hO:Hv(t);l=l==dO?Jm:l,u=u==dO?Jm:u;var c=l==Jm,f=u==Jm,d=l==u;if(d&&Fv(e)){if(!Fv(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Zi),o||lM(e)?NH(e,t,n,r,a,i):qpe(e,t,l,n,r,a,i);if(!(n&eve)){var h=c&&pO.call(e,"__wrapped__"),p=f&&pO.call(t,"__wrapped__");if(h||p){var v=h?e.value():e,g=p?t.value():t;return i||(i=new Zi),a(v,g,n,r,i)}}return d?(i||(i=new Zi),Qpe(e,t,n,r,a,i)):!1}function __(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ko(e)&&!Ko(t)?e!==e&&t!==t:nve(e,t,n,r,__,a)}var rve=1,ave=2;function ive(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];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 Zi;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?__(c,u,rve|ave,r,f):d))return!1}}return!0}function BH(e){return e===e&&!ca(e)}function ove(e){for(var t=qg(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,BH(a)]}return t}function FH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function sve(e){var t=ove(e);return t.length==1&&t[0][2]?FH(t[0][0],t[0][1]):function(n){return n===e||ive(n,e,t)}}function lve(e,t){return e!=null&&t in Object(e)}function uve(e,t,n){t=b_(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=Zg(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&iM(a)&&v_(o,a)&&(ua(e)||Bv(e)))}function VH(e,t){return e!=null&&uve(e,t,lve)}var cve=1,fve=2;function dve(e,t){return uM(e)&&BH(t)?FH(Zg(e),t):function(n){var r=En(n,e);return r===void 0&&r===t?VH(n,e):__(t,r,cve|fve)}}function hve(e){return function(t){return t==null?void 0:t[e]}}function pve(e){return function(t){return cM(t,e)}}function vve(e){return uM(e)?hve(Zg(e)):pve(e)}function gve(e){return typeof e=="function"?e:e==null?tM:typeof e=="object"?ua(e)?dve(e[0],e[1]):sve(e):vve(e)}function mve(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++a];if(n(i[l],l,i)===!1)break}return t}}var yve=mve();const zH=yve;function bve(e,t){return e&&zH(e,t,qg)}function _ve(e,t){return function(n,r){if(n==null)return n;if(!fh(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var wve=_ve(bve);const Sve=wve;var xve=function(){return go.Date.now()};const Qw=xve;var Cve="Expected a function",Tve=Math.max,kve=Math.min;function fa(e,t,n){var r,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Cve);t=HR(t)||0,ca(n)&&(c=!!n.leading,f="maxWait"in n,i=f?Tve(HR(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(x){var C=r,T=a;return r=a=void 0,u=x,o=e.apply(T,C),o}function p(x){return u=x,s=setTimeout(m,t),c?h(x):o}function v(x){var C=x-l,T=x-u,k=t-C;return f?kve(k,i-T):k}function g(x){var C=x-l,T=x-u;return l===void 0||C>=t||C<0||f&&T>=i}function m(){var x=Qw();if(g(x))return _(x);s=setTimeout(m,v(x))}function _(x){return s=void 0,d&&r?h(x):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:_(Qw())}function S(){var x=Qw(),C=g(x);if(r=arguments,a=this,l=x,C){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return S.cancel=b,S.flush=w,S}function _2(e,t,n){(n!==void 0&&!Kg(e[t],n)||n===void 0&&!(t in e))&&rM(e,t,n)}function HH(e){return Ko(e)&&fh(e)}function w2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ave(e){return Yg(e,Xg(e))}function Mve(e,t,n,r,a,i,o){var s=w2(e,n),l=w2(t,n),u=o.get(l);if(u){_2(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=ua(l),h=!d&&Fv(l),p=!d&&!h&&lM(l);c=l,d||h||p?ua(s)?c=s:HH(s)?c=vH(s):h?(f=!1,c=AH(l,!0)):p?(f=!1,c=IH(l,!0)):c=[]:Wde(l)||Bv(l)?(c=s,Bv(s)?c=Ave(s):(!ca(s)||nM(s))&&(c=DH(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),_2(e,n,c)}function GH(e,t,n,r,a){e!==t&&zH(t,function(i,o){if(a||(a=new Zi),ca(i))Mve(e,t,o,n,GH,r,a);else{var s=r?r(w2(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),_2(e,o,s)}},Xg)}function Pve(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function Eve(e,t){var n=-1,r=fh(e)?Array(e.length):[];return Sve(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function Ive(e,t){var n=ua(e)?hH:Eve;return n(e,gve(t))}function Dve(e,t){return Jg(Ive(e,t),1)}var Lve=1/0;function $ve(e){var t=e==null?0:e.length;return t?Jg(e,Lve):[]}function Mb(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function Ya(e,t){return __(e,t)}function tr(e){return e==null}function Rve(e){return e===void 0}var Ove=rfe(function(e,t,n){GH(e,t,n)});const WH=Ove;function UH(e,t,n,r){if(!ca(e))return e;t=b_(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=Zg(t[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=ca(c)?c:v_(t[a+1])?[]:{})}aM(s,l,u),s=s[l]}return e}function Nve(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=cM(e,o);n(s,o)&&UH(i,b_(o,e),s)}return i}function Bve(e,t){return Nve(e,t,function(n,r){return VH(e,r)})}var Fve=Nde(function(e,t){return e==null?{}:Bve(e,t)});const Ss=Fve;function Vve(e,t,n){return e==null?e:UH(e,t,n)}var zve="Expected a function";function Mc(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(zve);return ca(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),fa(e,t,{leading:r,maxWait:t,trailing:a})}var Hve=1/0,Gve=pd&&1/gM(new pd([,-0]))[1]==Hve?function(e){return new pd(e)}:Rce;const Wve=Gve;var Uve=200;function jve(e,t,n){var r=-1,a=Xce,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=Pve;else if(i>=Uve){var u=t?null:Wve(e);if(u)return gM(u);o=!1,a=OH,l=new Gv}else l=t?[]:s;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else a(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}var Kve=yH(function(e){return jve(Jg(e,1,HH,!0))});const eS=Kve,Sr=e=>e===void 0,vi=e=>!e&&e!==0||Ze(e)&&e.length===0||It(e)&&!Object.keys(e).length,oo=e=>typeof Element>"u"?!1:e instanceof Element,Yve=e=>tr(e),qve=e=>dt(e)?!Number.isNaN(Number(e)):!1,jH=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Lo=e=>zg(e),Wv=e=>Object.keys(e),Xve=e=>Object.entries(e),A0=(e,t,n)=>({get value(){return En(e,t,n)},set value(r){Vve(e,t,r)}});class Zve extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function sr(e,t){throw new Zve(`[${e}] ${t}`)}const KH=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ji=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Oo=(e,t)=>{!e||!t.trim()||e.classList.add(...KH(t))},Ma=(e,t)=>{!e||!t.trim()||e.classList.remove(...KH(t))},_s=(e,t)=>{var n;if(!Ht||!e||!t)return"";let r=Si(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function Wn(e,t="px"){if(!e)return"";if(lt(e)||qve(e))return`${e}${t}`;if(dt(e))return e}const Jve=(e,t)=>{if(!Ht)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=_s(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},mM=(e,t)=>{if(!Ht)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Jve(n,t))return n;n=n.parentNode}return n};let Qm;const YH=e=>{var t;if(!Ht)return 0;if(Qm!==void 0)return Qm;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Qm=r-i,Qm};function qH(e,t){if(!Ht)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var Zt=(e,t)=>{let n=e.__vccOpts||e;for(let[r,a]of t)n[r]=a;return n},Qve={name:"ArrowDown"},ege={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tge=W("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),nge=[tge];function rge(e,t,n,r,a,i){return O(),K("svg",ege,nge)}var iu=Zt(Qve,[["render",rge],["__file","arrow-down.vue"]]),age={name:"ArrowLeft"},ige={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oge=W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),sge=[oge];function lge(e,t,n,r,a,i){return O(),K("svg",ige,sge)}var Ul=Zt(age,[["render",lge],["__file","arrow-left.vue"]]),uge={name:"ArrowRight"},cge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fge=W("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),dge=[fge];function hge(e,t,n,r,a,i){return O(),K("svg",cge,dge)}var oa=Zt(uge,[["render",hge],["__file","arrow-right.vue"]]),pge={name:"ArrowUp"},vge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gge=W("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),mge=[gge];function yge(e,t,n,r,a,i){return O(),K("svg",vge,mge)}var w_=Zt(pge,[["render",yge],["__file","arrow-up.vue"]]),bge={name:"Back"},_ge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},wge=W("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),Sge=W("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),xge=[wge,Sge];function Cge(e,t,n,r,a,i){return O(),K("svg",_ge,xge)}var Tge=Zt(bge,[["render",Cge],["__file","back.vue"]]),kge={name:"Calendar"},Age={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mge=W("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),Pge=[Mge];function Ege(e,t,n,r,a,i){return O(),K("svg",Age,Pge)}var Ige=Zt(kge,[["render",Ege],["__file","calendar.vue"]]),Dge={name:"CaretRight"},Lge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$ge=W("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),Rge=[$ge];function Oge(e,t,n,r,a,i){return O(),K("svg",Lge,Rge)}var XH=Zt(Dge,[["render",Oge],["__file","caret-right.vue"]]),Nge={name:"CaretTop"},Bge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fge=W("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),Vge=[Fge];function zge(e,t,n,r,a,i){return O(),K("svg",Bge,Vge)}var Hge=Zt(Nge,[["render",zge],["__file","caret-top.vue"]]),Gge={name:"Check"},Wge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uge=W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),jge=[Uge];function Kge(e,t,n,r,a,i){return O(),K("svg",Wge,jge)}var Qg=Zt(Gge,[["render",Kge],["__file","check.vue"]]),Yge={name:"CircleCheckFilled"},qge={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xge=W("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),Zge=[Xge];function Jge(e,t,n,r,a,i){return O(),K("svg",qge,Zge)}var Qge=Zt(Yge,[["render",Jge],["__file","circle-check-filled.vue"]]),eme={name:"CircleCheck"},tme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nme=W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),rme=W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),ame=[nme,rme];function ime(e,t,n,r,a,i){return O(),K("svg",tme,ame)}var yM=Zt(eme,[["render",ime],["__file","circle-check.vue"]]),ome={name:"CircleCloseFilled"},sme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lme=W("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),ume=[lme];function cme(e,t,n,r,a,i){return O(),K("svg",sme,ume)}var bM=Zt(ome,[["render",cme],["__file","circle-close-filled.vue"]]),fme={name:"CircleClose"},dme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hme=W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),pme=W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),vme=[hme,pme];function gme(e,t,n,r,a,i){return O(),K("svg",dme,vme)}var ou=Zt(fme,[["render",gme],["__file","circle-close.vue"]]),mme={name:"Clock"},yme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bme=W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_me=W("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),wme=W("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Sme=[bme,_me,wme];function xme(e,t,n,r,a,i){return O(),K("svg",yme,Sme)}var ZH=Zt(mme,[["render",xme],["__file","clock.vue"]]),Cme={name:"Close"},Tme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kme=W("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),Ame=[kme];function Mme(e,t,n,r,a,i){return O(),K("svg",Tme,Ame)}var so=Zt(Cme,[["render",Mme],["__file","close.vue"]]),Pme={name:"DArrowLeft"},Eme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ime=W("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Dme=[Ime];function Lme(e,t,n,r,a,i){return O(),K("svg",Eme,Dme)}var Bd=Zt(Pme,[["render",Lme],["__file","d-arrow-left.vue"]]),$me={name:"DArrowRight"},Rme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ome=W("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Nme=[Ome];function Bme(e,t,n,r,a,i){return O(),K("svg",Rme,Nme)}var Fd=Zt($me,[["render",Bme],["__file","d-arrow-right.vue"]]),Fme={name:"Delete"},Vme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zme=W("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Hme=[zme];function Gme(e,t,n,r,a,i){return O(),K("svg",Vme,Hme)}var Wme=Zt(Fme,[["render",Gme],["__file","delete.vue"]]),Ume={name:"Document"},jme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kme=W("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Yme=[Kme];function qme(e,t,n,r,a,i){return O(),K("svg",jme,Yme)}var Xme=Zt(Ume,[["render",qme],["__file","document.vue"]]),Zme={name:"FullScreen"},Jme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qme=W("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),eye=[Qme];function tye(e,t,n,r,a,i){return O(),K("svg",Jme,eye)}var nye=Zt(Zme,[["render",tye],["__file","full-screen.vue"]]),rye={name:"Hide"},aye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},iye=W("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),oye=W("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),sye=[iye,oye];function lye(e,t,n,r,a,i){return O(),K("svg",aye,sye)}var uye=Zt(rye,[["render",lye],["__file","hide.vue"]]),cye={name:"InfoFilled"},fye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dye=W("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),hye=[dye];function pye(e,t,n,r,a,i){return O(),K("svg",fye,hye)}var _M=Zt(cye,[["render",pye],["__file","info-filled.vue"]]),vye={name:"Loading"},gye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mye=W("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),yye=[mye];function bye(e,t,n,r,a,i){return O(),K("svg",gye,yye)}var su=Zt(vye,[["render",bye],["__file","loading.vue"]]),_ye={name:"Minus"},wye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sye=W("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),xye=[Sye];function Cye(e,t,n,r,a,i){return O(),K("svg",wye,xye)}var Tye=Zt(_ye,[["render",Cye],["__file","minus.vue"]]),kye={name:"MoreFilled"},Aye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Mye=W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),Pye=[Mye];function Eye(e,t,n,r,a,i){return O(),K("svg",Aye,Pye)}var vO=Zt(kye,[["render",Eye],["__file","more-filled.vue"]]),Iye={name:"More"},Dye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lye=W("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),$ye=[Lye];function Rye(e,t,n,r,a,i){return O(),K("svg",Dye,$ye)}var Oye=Zt(Iye,[["render",Rye],["__file","more.vue"]]),Nye={name:"PictureFilled"},Bye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fye=W("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),Vye=[Fye];function zye(e,t,n,r,a,i){return O(),K("svg",Bye,Vye)}var Hye=Zt(Nye,[["render",zye],["__file","picture-filled.vue"]]),Gye={name:"Plus"},Wye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uye=W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),jye=[Uye];function Kye(e,t,n,r,a,i){return O(),K("svg",Wye,jye)}var JH=Zt(Gye,[["render",Kye],["__file","plus.vue"]]),Yye={name:"Position"},qye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xye=W("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88 249.6 417.088zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992l-391.424-52.736z"},null,-1),Zye=[Xye];function Jye(e,t,n,r,a,i){return O(),K("svg",qye,Zye)}var Qye=Zt(Yye,[["render",Jye],["__file","position.vue"]]),e0e={name:"QuestionFilled"},t0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},n0e=W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),r0e=[n0e];function a0e(e,t,n,r,a,i){return O(),K("svg",t0e,r0e)}var i0e=Zt(e0e,[["render",a0e],["__file","question-filled.vue"]]),o0e={name:"RefreshLeft"},s0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},l0e=W("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),u0e=[l0e];function c0e(e,t,n,r,a,i){return O(),K("svg",s0e,u0e)}var f0e=Zt(o0e,[["render",c0e],["__file","refresh-left.vue"]]),d0e={name:"RefreshRight"},h0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},p0e=W("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),v0e=[p0e];function g0e(e,t,n,r,a,i){return O(),K("svg",h0e,v0e)}var m0e=Zt(d0e,[["render",g0e],["__file","refresh-right.vue"]]),y0e={name:"ScaleToOriginal"},b0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_0e=W("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),w0e=[_0e];function S0e(e,t,n,r,a,i){return O(),K("svg",b0e,w0e)}var x0e=Zt(y0e,[["render",S0e],["__file","scale-to-original.vue"]]),C0e={name:"Search"},T0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},k0e=W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),A0e=[k0e];function M0e(e,t,n,r,a,i){return O(),K("svg",T0e,A0e)}var P0e=Zt(C0e,[["render",M0e],["__file","search.vue"]]),E0e={name:"SortDown"},I0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D0e=W("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),L0e=[D0e];function $0e(e,t,n,r,a,i){return O(),K("svg",I0e,L0e)}var R0e=Zt(E0e,[["render",$0e],["__file","sort-down.vue"]]),O0e={name:"SortUp"},N0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},B0e=W("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),F0e=[B0e];function V0e(e,t,n,r,a,i){return O(),K("svg",N0e,F0e)}var z0e=Zt(O0e,[["render",V0e],["__file","sort-up.vue"]]),H0e={name:"StarFilled"},G0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W0e=W("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),U0e=[W0e];function j0e(e,t,n,r,a,i){return O(),K("svg",G0e,U0e)}var ey=Zt(H0e,[["render",j0e],["__file","star-filled.vue"]]),K0e={name:"Star"},Y0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},q0e=W("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),X0e=[q0e];function Z0e(e,t,n,r,a,i){return O(),K("svg",Y0e,X0e)}var J0e=Zt(K0e,[["render",Z0e],["__file","star.vue"]]),Q0e={name:"SuccessFilled"},ebe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tbe=W("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),nbe=[tbe];function rbe(e,t,n,r,a,i){return O(),K("svg",ebe,nbe)}var QH=Zt(Q0e,[["render",rbe],["__file","success-filled.vue"]]),abe={name:"View"},ibe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},obe=W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),sbe=[obe];function lbe(e,t,n,r,a,i){return O(),K("svg",ibe,sbe)}var ube=Zt(abe,[["render",lbe],["__file","view.vue"]]),cbe={name:"WarningFilled"},fbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dbe=W("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),hbe=[dbe];function pbe(e,t,n,r,a,i){return O(),K("svg",fbe,hbe)}var S_=Zt(cbe,[["render",pbe],["__file","warning-filled.vue"]]),vbe={name:"ZoomIn"},gbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mbe=W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),ybe=[mbe];function bbe(e,t,n,r,a,i){return O(),K("svg",gbe,ybe)}var eG=Zt(vbe,[["render",bbe],["__file","zoom-in.vue"]]),_be={name:"ZoomOut"},wbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sbe=W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),xbe=[Sbe];function Cbe(e,t,n,r,a,i){return O(),K("svg",wbe,xbe)}var Tbe=Zt(_be,[["render",Cbe],["__file","zoom-out.vue"]]);const tG="__epPropKey",xe=e=>e,kbe=e=>It(e)&&!!e[tG],mo=(e,t)=>{if(!It(e)||kbe(e))return e;const{values:n,required:r,default:a,type:i,validator:o}=e,l={type:i,required:!!r,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Vt(e,"default")&&f.push(a),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(", ");BQ(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[tG]:!0};return Vt(e,"default")&&(l.default=a),l},ze=e=>Mb(Object.entries(e).map(([t,n])=>[t,mo(n,t)])),_n=xe([String,Object,Function]),nG={Close:so},wM={Close:so,SuccessFilled:QH,InfoFilled:_M,WarningFilled:S_,CircleCloseFilled:bM},jl={success:QH,warning:S_,error:bM,info:_M},rG={validating:su,success:yM,error:ou},At=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},aG=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Abe=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Vn=e=>(e.install=un,e),x_=(...e)=>t=>{e.forEach(n=>{ft(n)?n(t):n.value=t})},tt={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"},Mbe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],tS=["sun","mon","tue","wed","thu","fri","sat"],Mt="update:modelValue",Tn="change",sa="input",gO=Symbol("INSTALLED_KEY"),as=["","default","small","large"],Pbe={large:40,default:32,small:24},Ebe=e=>Pbe[e||"default"],C_=e=>["",...as].includes(e);var ci=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(ci||{});function S2(e){return $n(e)&&e.type===He}function Ibe(e){return $n(e)&&e.type===ia}function Dbe(e){return $n(e)&&!S2(e)&&!Ibe(e)}const Lbe=e=>{if(!$n(e))return{};const t=e.props||{},n=($n(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{Vt(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[Si(a)]=t[a]}),r},$be=e=>{if(!Ze(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},vd=e=>{const t=Ze(e)?e:[e],n=[];return t.forEach(r=>{var a;Ze(r)?n.push(...vd(r)):$n(r)&&Ze(r.children)?n.push(...vd(r.children)):(n.push(r),$n(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...vd(r.component.subTree)))}),n},mO=e=>[...new Set(e)],Ms=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],iG=()=>Ht&&/firefox/i.test(window.navigator.userAgent),T_=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),Uv=e=>Ht?window.requestAnimationFrame(e):setTimeout(e,16),k_=e=>Ht?window.cancelAnimationFrame(e):clearTimeout(e),A_=()=>Math.floor(Math.random()*1e4),In=e=>e,Rbe=["class","style"],Obe=/^on[A-Z]/,SM=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=F(()=>((n==null?void 0:n.value)||[]).concat(Rbe)),a=St();return F(a?()=>{var i;return Mb(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&Obe.test(o))))}:()=>({}))},Yo=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{Ae(()=>y(o),s=>{},{immediate:!0})},oG=(e,t,n)=>{let r={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=r,d=e.value.getBoundingClientRect(),h=d.left,p=d.top,v=d.width,g=d.height,m=document.documentElement.clientWidth,_=document.documentElement.clientHeight,b=-h+c,w=-p+f,S=m-h-v+c,x=_-p-g+f,C=k=>{const A=Math.min(Math.max(c+k.clientX-l,b),S),M=Math.min(Math.max(f+k.clientY-u,w),x);r={offsetX:A,offsetY:M},e.value.style.transform=`translate(${Wn(A)}, ${Wn(M)})`},T=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};nt(()=>{Ka(()=>{n.value?i():o()})}),pn(()=>{o()})},Nbe=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}});var Bbe={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:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",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 Fbe=e=>(t,n)=>Vbe(t,n,y(e)),Vbe=(e,t,n)=>En(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),zbe=e=>{const t=F(()=>y(e).name),n=vn(e)?e:U(e);return{lang:t,locale:n,t:Fbe(e)}},sG=Symbol("localeContextKey"),jt=e=>{const t=e||Ye(sG,U());return zbe(F(()=>t.value||Bbe))},Pb="el",Hbe="is-",bu=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},lG=Symbol("namespaceContextKey"),xM=e=>{const t=e||Ye(lG,U(Pb));return F(()=>y(t)||Pb)},Ie=(e,t)=>{const n=xM(t);return{namespace:n,b:(v="")=>bu(n.value,e,v,"",""),e:v=>v?bu(n.value,e,"",v,""):"",m:v=>v?bu(n.value,e,"","",v):"",be:(v,g)=>v&&g?bu(n.value,e,v,g,""):"",em:(v,g)=>v&&g?bu(n.value,e,"",v,g):"",bm:(v,g)=>v&&g?bu(n.value,e,v,"",g):"",bem:(v,g,m)=>v&&g&&m?bu(n.value,e,v,g,m):"",is:(v,...g)=>{const m=g.length>=1?g[0]:!0;return v&&m?`${Hbe}${v}`:""},cssVar:v=>{const g={};for(const m in v)v[m]&&(g[`--${n.value}-${m}`]=v[m]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const m in v)v[m]&&(g[`--${n.value}-${e}-${m}`]=v[m]);return g},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},uG=(e,t={})=>{vn(e)||sr("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Ie("popup"),r=W6(()=>n.bm("parent","hidden"));if(!Ht||Ji(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{Ma(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};Ae(e,l=>{if(!l){s();return}i=!Ji(document.body,r.value),i&&(o=document.body.style.width),a=YH(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=_s(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),Oo(document.body,r.value)}),TA(()=>s())},Gbe=mo({type:xe(Boolean),default:null}),Wbe=mo({type:xe(Function)}),cG=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:Gbe,[n]:Wbe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=St(),{emit:h}=d,p=d.props,v=F(()=>ft(p[n])),g=F(()=>p[e]===null),m=C=>{o.value!==!0&&(o.value=!0,s&&(s.value=C),ft(c)&&c(C))},_=C=>{o.value!==!1&&(o.value=!1,s&&(s.value=C),ft(f)&&f(C))},b=C=>{if(p.disabled===!0||ft(u)&&!u())return;const T=v.value&&Ht;T&&h(t,!0),(g.value||!T)&&m(C)},w=C=>{if(p.disabled===!0||!Ht)return;const T=v.value&&Ht;T&&h(t,!1),(g.value||!T)&&_(C)},S=C=>{er(C)&&(p.disabled&&C?v.value&&h(t,!1):o.value!==C&&(C?m():_()))},x=()=>{o.value?w():b()};return Ae(()=>p[e],S),l&&d.appContext.config.globalProperties.$route!==void 0&&Ae(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),nt(()=>{S(p[e])}),{hide:w,show:b,toggle:x,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:r}};cG("modelValue");const fG=e=>{const t=St();return F(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var Pa="top",Ci="bottom",Ti="right",Ea="left",CM="auto",em=[Pa,Ci,Ti,Ea],Vd="start",jv="end",Ube="clippingParents",dG="viewport",Zh="popper",jbe="reference",yO=em.reduce(function(e,t){return e.concat([t+"-"+Vd,t+"-"+jv])},[]),af=[].concat(em,[CM]).reduce(function(e,t){return e.concat([t,t+"-"+Vd,t+"-"+jv])},[]),Kbe="beforeRead",Ybe="read",qbe="afterRead",Xbe="beforeMain",Zbe="main",Jbe="afterMain",Qbe="beforeWrite",e1e="write",t1e="afterWrite",n1e=[Kbe,Ybe,qbe,Xbe,Zbe,Jbe,Qbe,e1e,t1e];function qo(e){return e?(e.nodeName||"").toLowerCase():null}function yo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zd(e){var t=yo(e).Element;return e instanceof t||e instanceof Element}function _i(e){var t=yo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function TM(e){if(typeof ShadowRoot>"u")return!1;var t=yo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function r1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!_i(i)||!qo(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function a1e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(l,u){return l[u]="",l},{});!_i(a)||!qo(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var hG={name:"applyStyles",enabled:!0,phase:"write",fn:r1e,effect:a1e,requires:["computeStyles"]};function Ho(e){return e.split("-")[0]}var Pc=Math.max,Eb=Math.min,Hd=Math.round;function Gd(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(_i(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=Hd(n.width)/o||1),i>0&&(a=Hd(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function kM(e){var t=Gd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function pG(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&TM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rs(e){return yo(e).getComputedStyle(e)}function i1e(e){return["table","td","th"].indexOf(qo(e))>=0}function lu(e){return((zd(e)?e.ownerDocument:e.document)||window.document).documentElement}function M_(e){return qo(e)==="html"?e:e.assignedSlot||e.parentNode||(TM(e)?e.host:null)||lu(e)}function bO(e){return!_i(e)||Rs(e).position==="fixed"?null:e.offsetParent}function o1e(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&_i(e)){var r=Rs(e);if(r.position==="fixed")return null}var a=M_(e);for(TM(a)&&(a=a.host);_i(a)&&["html","body"].indexOf(qo(a))<0;){var i=Rs(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function tm(e){for(var t=yo(e),n=bO(e);n&&i1e(n)&&Rs(n).position==="static";)n=bO(n);return n&&(qo(n)==="html"||qo(n)==="body"&&Rs(n).position==="static")?t:n||o1e(e)||t}function AM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function tv(e,t,n){return Pc(e,Eb(t,n))}function s1e(e,t,n){var r=tv(e,t,n);return r>n?n:r}function vG(){return{top:0,right:0,bottom:0,left:0}}function gG(e){return Object.assign({},vG(),e)}function mG(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var l1e=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,gG(typeof e!="number"?e:mG(e,em))};function u1e(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Ho(n.placement),l=AM(s),u=[Ea,Ti].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=l1e(a.padding,n),d=kM(i),h=l==="y"?Pa:Ea,p=l==="y"?Ci:Ti,v=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=tm(i),_=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,b=v/2-g/2,w=f[h],S=_-d[c]-f[p],x=_/2-d[c]/2+b,C=tv(w,x,S),T=l;n.modifiersData[r]=(t={},t[T]=C,t.centerOffset=C-x,t)}}function c1e(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!pG(t.elements.popper,a)||(t.elements.arrow=a))}var f1e={name:"arrow",enabled:!0,phase:"main",fn:u1e,effect:c1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wd(e){return e.split("-")[1]}var d1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function h1e(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:Hd(t*a)/a||0,y:Hd(n*a)/a||0}}function _O(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=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,p=o.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var m=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),b=Ea,w=Pa,S=window;if(u){var x=tm(n),C="clientHeight",T="clientWidth";if(x===yo(n)&&(x=lu(n),Rs(x).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),x=x,a===Pa||(a===Ea||a===Ti)&&i===jv){w=Ci;var k=f&&x===S&&S.visualViewport?S.visualViewport.height:x[C];v-=k-r.height,v*=l?1:-1}if(a===Ea||(a===Pa||a===Ci)&&i===jv){b=Ti;var A=f&&x===S&&S.visualViewport?S.visualViewport.width:x[T];h-=A-r.width,h*=l?1:-1}}var M=Object.assign({position:s},u&&d1e),I=c===!0?h1e({x:h,y:v}):{x:h,y:v};if(h=I.x,v=I.y,l){var E;return Object.assign({},M,(E={},E[w]=_?"0":"",E[b]=m?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",E))}return Object.assign({},M,(t={},t[w]=_?v+"px":"",t[b]=m?h+"px":"",t.transform="",t))}function p1e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Ho(t.placement),variation:Wd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_O(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,_O(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 yG={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:p1e,data:{}},ty={passive:!0};function v1e(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=yo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,ty)}),s&&l.addEventListener("resize",n.update,ty),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ty)}),s&&l.removeEventListener("resize",n.update,ty)}}var bG={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v1e,data:{}},g1e={left:"right",right:"left",bottom:"top",top:"bottom"};function M0(e){return e.replace(/left|right|bottom|top/g,function(t){return g1e[t]})}var m1e={start:"end",end:"start"};function wO(e){return e.replace(/start|end/g,function(t){return m1e[t]})}function MM(e){var t=yo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function PM(e){return Gd(lu(e)).left+MM(e).scrollLeft}function y1e(e){var t=yo(e),n=lu(e),r=t.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+PM(e),y:s}}function b1e(e){var t,n=lu(e),r=MM(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Pc(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Pc(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+PM(e),l=-r.scrollTop;return Rs(a||n).direction==="rtl"&&(s+=Pc(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function EM(e){var t=Rs(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function _G(e){return["html","body","#document"].indexOf(qo(e))>=0?e.ownerDocument.body:_i(e)&&EM(e)?e:_G(M_(e))}function nv(e,t){var n;t===void 0&&(t=[]);var r=_G(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=yo(r),o=a?[i].concat(i.visualViewport||[],EM(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(nv(M_(o)))}function x2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _1e(e){var t=Gd(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 SO(e,t){return t===dG?x2(y1e(e)):zd(t)?_1e(t):x2(b1e(lu(e)))}function w1e(e){var t=nv(M_(e)),n=["absolute","fixed"].indexOf(Rs(e).position)>=0,r=n&&_i(e)?tm(e):e;return zd(r)?t.filter(function(a){return zd(a)&&pG(a,r)&&qo(a)!=="body"}):[]}function S1e(e,t,n){var r=t==="clippingParents"?w1e(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=SO(e,l);return s.top=Pc(u.top,s.top),s.right=Eb(u.right,s.right),s.bottom=Eb(u.bottom,s.bottom),s.left=Pc(u.left,s.left),s},SO(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function wG(e){var t=e.reference,n=e.element,r=e.placement,a=r?Ho(r):null,i=r?Wd(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Pa:l={x:o,y:t.y-n.height};break;case Ci:l={x:o,y:t.y+t.height};break;case Ti:l={x:t.x+t.width,y:s};break;case Ea:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?AM(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Vd:l[u]=l[u]-(t[c]/2-n[c]/2);break;case jv:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Kv(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.boundary,o=i===void 0?Ube:i,s=n.rootBoundary,l=s===void 0?dG:s,u=n.elementContext,c=u===void 0?Zh:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,p=h===void 0?0:h,v=gG(typeof p!="number"?p:mG(p,em)),g=c===Zh?jbe:Zh,m=e.rects.popper,_=e.elements[d?g:c],b=S1e(zd(_)?_:_.contextElement||lu(e.elements.popper),o,l),w=Gd(e.elements.reference),S=wG({reference:w,element:m,strategy:"absolute",placement:a}),x=x2(Object.assign({},m,S)),C=c===Zh?x:w,T={top:b.top-C.top+v.top,bottom:C.bottom-b.bottom+v.bottom,left:b.left-C.left+v.left,right:C.right-b.right+v.right},k=e.modifiersData.offset;if(c===Zh&&k){var A=k[a];Object.keys(T).forEach(function(M){var I=[Ti,Ci].indexOf(M)>=0?1:-1,E=[Pa,Ci].indexOf(M)>=0?"y":"x";T[M]+=A[E]*I})}return T}function x1e(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?af:l,c=Wd(r),f=c?s?yO:yO.filter(function(p){return Wd(p)===c}):em,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=Kv(e,{placement:v,boundary:a,rootBoundary:i,padding:o})[Ho(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function C1e(e){if(Ho(e)===CM)return[];var t=M0(e);return[wO(e),t,wO(t)]}function T1e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=t.options.placement,m=Ho(g),_=m===g,b=l||(_||!p?[M0(g)]:C1e(g)),w=[g].concat(b).reduce(function(ue,ie){return ue.concat(Ho(ie)===CM?x1e(t,{placement:ie,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):ie)},[]),S=t.rects.reference,x=t.rects.popper,C=new Map,T=!0,k=w[0],A=0;A<w.length;A++){var M=w[A],I=Ho(M),E=Wd(M)===Vd,L=[Pa,Ci].indexOf(I)>=0,N=L?"width":"height",$=Kv(t,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),P=L?E?Ti:Ea:E?Ci:Pa;S[N]>x[N]&&(P=M0(P));var R=M0(P),D=[];if(i&&D.push($[I]<=0),s&&D.push($[P]<=0,$[R]<=0),D.every(function(ue){return ue})){k=M,T=!1;break}C.set(M,D)}if(T)for(var B=p?3:1,H=function(ue){var ie=w.find(function(le){var Q=C.get(le);if(Q)return Q.slice(0,ue).every(function(J){return J})});if(ie)return k=ie,"break"},G=B;G>0;G--){var X=H(G);if(X==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var k1e={name:"flip",enabled:!0,phase:"main",fn:T1e,requiresIfExists:["offset"],data:{_skip:!1}};function xO(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function CO(e){return[Pa,Ti,Ci,Ea].some(function(t){return e[t]>=0})}function A1e(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Kv(t,{elementContext:"reference"}),s=Kv(t,{altBoundary:!0}),l=xO(o,r),u=xO(s,a,i),c=CO(l),f=CO(u);t.modifiersData[n]={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 M1e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:A1e};function P1e(e,t,n){var r=Ho(e),a=[Ea,Pa].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Ea,Ti].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function E1e(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=af.reduce(function(c,f){return c[f]=P1e(f,t.rects,i),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[r]=o}var I1e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:E1e};function D1e(e){var t=e.state,n=e.name;t.modifiersData[n]=wG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var SG={name:"popperOffsets",enabled:!0,phase:"read",fn:D1e,data:{}};function L1e(e){return e==="x"?"y":"x"}function $1e(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=Kv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Ho(t.placement),_=Wd(t.placement),b=!_,w=AM(m),S=L1e(w),x=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,k=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(x){if(i){var E,L=w==="y"?Pa:Ea,N=w==="y"?Ci:Ti,$=w==="y"?"height":"width",P=x[w],R=P+g[L],D=P-g[N],B=h?-T[$]/2:0,H=_===Vd?C[$]:T[$],G=_===Vd?-T[$]:-C[$],X=t.elements.arrow,ue=h&&X?kM(X):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vG(),le=ie[L],Q=ie[N],J=tv(0,C[$],ue[$]),se=b?C[$]/2-B-J-le-A.mainAxis:H-J-le-A.mainAxis,he=b?-C[$]/2+B+J+Q+A.mainAxis:G+J+Q+A.mainAxis,re=t.elements.arrow&&tm(t.elements.arrow),z=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,Y=(E=M==null?void 0:M[w])!=null?E:0,ee=P+se-Y-z,oe=P+he-Y,ve=tv(h?Eb(R,ee):R,P,h?Pc(D,oe):D);x[w]=ve,I[w]=ve-P}if(s){var Z,ce=w==="x"?Pa:Ea,q=w==="x"?Ci:Ti,ae=x[S],ne=S==="y"?"height":"width",de=ae+g[ce],me=ae-g[q],pe=[Pa,Ea].indexOf(m)!==-1,Se=(Z=M==null?void 0:M[S])!=null?Z:0,Pe=pe?de:ae-C[ne]-T[ne]-Se+A.altAxis,Oe=pe?ae+C[ne]+T[ne]-Se-A.altAxis:me,Ne=h&&pe?s1e(Pe,ae,Oe):tv(h?Pe:de,ae,h?Oe:me);x[S]=Ne,I[S]=Ne-ae}t.modifiersData[r]=I}}var R1e={name:"preventOverflow",enabled:!0,phase:"main",fn:$1e,requiresIfExists:["offset"]};function O1e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function N1e(e){return e===yo(e)||!_i(e)?MM(e):O1e(e)}function B1e(e){var t=e.getBoundingClientRect(),n=Hd(t.width)/e.offsetWidth||1,r=Hd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function F1e(e,t,n){n===void 0&&(n=!1);var r=_i(t),a=_i(t)&&B1e(t),i=lu(t),o=Gd(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qo(t)!=="body"||EM(i))&&(s=N1e(t)),_i(t)?(l=Gd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=PM(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function V1e(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function z1e(e){var t=V1e(e);return n1e.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function H1e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function G1e(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var TO={placement:"bottom",modifiers:[],strategy:"absolute"};function kO(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function IM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?TO:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},TO,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(v){var g=typeof v=="function"?v(u.options):v;p(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:zd(o)?nv(o):o.contextElement?nv(o.contextElement):[],popper:nv(s)};var m=z1e(G1e([].concat(r,u.options.modifiers)));return u.orderedModifiers=m.filter(function(_){return _.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var v=u.elements,g=v.reference,m=v.popper;if(kO(g,m)){u.rects={reference:F1e(g,tm(m),u.options.strategy==="fixed"),popper:kM(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var b=u.orderedModifiers[_],w=b.fn,S=b.options,x=S===void 0?{}:S,C=b.name;typeof w=="function"&&(u=w({state:u,options:x,name:C,instance:d})||u)}}}},update:H1e(function(){return new Promise(function(v){d.forceUpdate(),v(u)})}),destroy:function(){p(),f=!0}};if(!kO(o,s))return d;d.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var g=v.name,m=v.options,_=m===void 0?{}:m,b=v.effect;if(typeof b=="function"){var w=b({state:u,name:g,instance:d,options:_}),S=function(){};c.push(w||S)}})}function p(){c.forEach(function(v){return v()}),c=[]}return d}}IM();var W1e=[bG,SG,yG,hG];IM({defaultModifiers:W1e});var U1e=[bG,SG,yG,hG,I1e,k1e,R1e,f1e,M1e],xG=IM({defaultModifiers:U1e});const j1e=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=K1e(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=F(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=y(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=gn(),o=U({styles:{popper:{position:y(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ae(a,l=>{const u=y(i);u&&u.setOptions(l)},{deep:!0}),Ae([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=xG(l,u,y(a)))}),pn(()=>{s()}),{state:F(()=>{var l;return{...((l=y(i))==null?void 0:l.state)||{}}}),styles:F(()=>y(o).styles),attributes:F(()=>y(o).attributes),update:()=>{var l;return(l=y(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=y(i))==null?void 0:l.forceUpdate()},instanceRef:F(()=>y(i))}};function K1e(e){const t=Object.keys(e.elements),n=Mb(t.map(a=>[a,e.styles[a]||{}])),r=Mb(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const Y1e=(e,t)=>{let n;Ae(()=>e.value,r=>{var a,i;r?(n=document.activeElement,vn(t)&&((i=(a=t.value).focus)==null||i.call(a))):n.focus()})},DM=e=>{if(!e)return{onClick:un,onMousedown:un,onMouseup:un};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},q1e=(e,t=0)=>{if(t===0)return e;const n=U(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return nt(a),Ae(()=>e.value,i=>{i?a():n.value=i}),n};function AO(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return h_(()=>n()),{registerTimeout:t,cancelTimeout:n}}const MO={prefix:Math.floor(Math.random()*1e4),current:0},X1e=Symbol("elIdInjection"),CG=()=>St()?Ye(X1e,MO):MO,ki=e=>{const t=CG(),n=xM();return F(()=>y(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Kf=[];const PO=e=>{const t=e;t.key===tt.esc&&Kf.forEach(n=>n(t))},Z1e=e=>{nt(()=>{Kf.length===0&&document.addEventListener("keydown",PO),Ht&&Kf.push(e)}),pn(()=>{Kf=Kf.filter(t=>t!==e),Kf.length===0&&Ht&&document.removeEventListener("keydown",PO)})};let EO;const TG=()=>{const e=xM(),t=CG(),n=F(()=>`${e.value}-popper-container-${t.prefix}`),r=F(()=>`#${n.value}`);return{id:n,selector:r}},J1e=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Q1e=()=>{const{id:e,selector:t}=TG();return n_(()=>{Ht&&!EO&&!document.body.querySelector(t.value)&&(EO=J1e(e.value))}),{id:e,selector:t}},e_e=ze({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),kG=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=AO(),{registerTimeout:o,cancelTimeout:s}=AO();return{onOpen:c=>{i(()=>{r(c);const f=y(n);lt(f)&&f>0&&o(()=>{a(c)},f)},y(e))},onClose:c=>{s(),i(()=>{a(c)},y(t))}}},AG=Symbol("elForwardRef"),t_e=e=>{$t(AG,{setForwardRef:n=>{e.value=n}})},n_e=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),IO=U(0),MG=2e3,PG=Symbol("zIndexContextKey"),of=e=>{const t=e||Ye(PG,void 0),n=F(()=>{const i=y(t);return lt(i)?i:MG}),r=F(()=>n.value+IO.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(IO.value++,r.value)}};function LM(e){return e.split("-")[1]}function EG(e){return e==="y"?"height":"width"}function $M(e){return e.split("-")[0]}function RM(e){return["top","bottom"].includes($M(e))?"x":"y"}function DO(e,t,n){let{reference:r,floating:a}=e;const i=r.x+r.width/2-a.width/2,o=r.y+r.height/2-a.height/2,s=RM(t),l=EG(s),u=r[l]/2-a[l]/2,c=s==="x";let f;switch($M(t)){case"top":f={x:i,y:r.y-a.height};break;case"bottom":f={x:i,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:o};break;case"left":f={x:r.x-a.width,y:o};break;default:f={x:r.x,y:r.y}}switch(LM(t)){case"start":f[s]-=u*(n&&c?-1:1);break;case"end":f[s]+=u*(n&&c?-1:1)}return f}const r_e=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:f}=DO(u,r,l),d=r,h={},p=0;for(let v=0;v<s.length;v++){const{name:g,fn:m}=s[v],{x:_,y:b,data:w,reset:S}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=_??c,f=b??f,h={...h,[g]:{...h[g],...w}},S&&p<=50&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(u=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:c,y:f}=DO(u,d,l)),v=-1)}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}};function a_e(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function IG(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}const i_e=Math.min,o_e=Math.max;function s_e(e,t,n){return o_e(e,i_e(t,n))}const l_e=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e||{},{x:a,y:i,placement:o,rects:s,platform:l,elements:u}=t;if(n==null)return{};const c=a_e(r),f={x:a,y:i},d=RM(o),h=EG(d),p=await l.getDimensions(n),v=d==="y",g=v?"top":"left",m=v?"bottom":"right",_=v?"clientHeight":"clientWidth",b=s.reference[h]+s.reference[d]-f[d]-s.floating[h],w=f[d]-s.reference[d],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let x=S?S[_]:0;x&&await(l.isElement==null?void 0:l.isElement(S))||(x=u.floating[_]||s.floating[h]);const C=b/2-w/2,T=c[g],k=x-p[h]-c[m],A=x/2-p[h]/2+C,M=s_e(T,A,k),I=LM(o)!=null&&A!=M&&s.reference[h]/2-(A<T?c[g]:c[m])-p[h]/2<0;return{[d]:f[d]-(I?A<T?T-A:k-A:0),data:{[d]:M,centerOffset:A-M}}}}),u_e=["top","right","bottom","left"];u_e.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const c_e=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(i,o){const{placement:s,platform:l,elements:u}=i,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=$M(s),d=LM(s),h=RM(s)==="x",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,g=typeof o=="function"?o(i):o;let{mainAxis:m,crossAxis:_,alignmentAxis:b}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return d&&typeof b=="number"&&(_=d==="end"?-1*b:b),h?{x:_*v,y:m*p}:{x:m*p,y:_*v}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function za(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Go(e){return za(e).getComputedStyle(e)}function DG(e){return e instanceof za(e).Node}function Kl(e){return DG(e)?(e.nodeName||"").toLowerCase():""}let ny;function LG(){if(ny)return ny;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ny=e.brands.map(t=>t.brand+"/"+t.version).join(" "),ny):navigator.userAgent}function lo(e){return e instanceof za(e).HTMLElement}function Ll(e){return e instanceof za(e).Element}function LO(e){return typeof ShadowRoot>"u"?!1:e instanceof za(e).ShadowRoot||e instanceof ShadowRoot}function P_(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Go(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function f_e(e){return["table","td","th"].includes(Kl(e))}function C2(e){const t=/firefox/i.test(LG()),n=Go(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(a=>n.willChange.includes(a))||["paint","layout","strict","content"].some(a=>{const i=n.contain;return i!=null&&i.includes(a)})}function T2(){return/^((?!chrome|android).)*safari/i.test(LG())}function OM(e){return["html","body","#document"].includes(Kl(e))}const $O=Math.min,rv=Math.max,Ib=Math.round;function $G(e){const t=Go(e);let n=parseFloat(t.width),r=parseFloat(t.height);const a=lo(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=Ib(n)!==i||Ib(r)!==o;return s&&(n=i,r=o),{width:n,height:r,fallback:s}}function RG(e){return Ll(e)?e:e.contextElement}const OG={x:1,y:1};function gd(e){const t=RG(e);if(!lo(t))return OG;const n=t.getBoundingClientRect(),{width:r,height:a,fallback:i}=$G(t);let o=(i?Ib(n.width):n.width)/r,s=(i?Ib(n.height):n.height)/a;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Yv(e,t,n,r){var a,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=RG(e);let l=OG;t&&(r?Ll(r)&&(l=gd(r)):l=gd(e));const u=s?za(s):window,c=T2()&&n;let f=(o.left+(c&&((a=u.visualViewport)==null?void 0:a.offsetLeft)||0))/l.x,d=(o.top+(c&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,h=o.width/l.x,p=o.height/l.y;if(s){const v=za(s),g=r&&Ll(r)?za(r):r;let m=v.frameElement;for(;m&&r&&g!==v;){const _=gd(m),b=m.getBoundingClientRect(),w=getComputedStyle(m);b.x+=(m.clientLeft+parseFloat(w.paddingLeft))*_.x,b.y+=(m.clientTop+parseFloat(w.paddingTop))*_.y,f*=_.x,d*=_.y,h*=_.x,p*=_.y,f+=b.x,d+=b.y,m=za(m).frameElement}}return IG({width:h,height:p,x:f,y:d})}function $l(e){return((DG(e)?e.ownerDocument:e.document)||window.document).documentElement}function E_(e){return Ll(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function NG(e){return Yv($l(e)).left+E_(e).scrollLeft}function qv(e){if(Kl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||LO(e)&&e.host||$l(e);return LO(t)?t.host:t}function BG(e){const t=qv(e);return OM(t)?t.ownerDocument.body:lo(t)&&P_(t)?t:BG(t)}function FG(e,t){var n;t===void 0&&(t=[]);const r=BG(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=za(r);return a?t.concat(i,i.visualViewport||[],P_(r)?r:[]):t.concat(r,FG(r))}function RO(e,t,n){let r;if(t==="viewport")r=function(o,s){const l=za(o),u=$l(o),c=l.visualViewport;let f=u.clientWidth,d=u.clientHeight,h=0,p=0;if(c){f=c.width,d=c.height;const v=T2();(!v||v&&s==="fixed")&&(h=c.offsetLeft,p=c.offsetTop)}return{width:f,height:d,x:h,y:p}}(e,n);else if(t==="document")r=function(o){const s=$l(o),l=E_(o),u=o.ownerDocument.body,c=rv(s.scrollWidth,s.clientWidth,u.scrollWidth,u.clientWidth),f=rv(s.scrollHeight,s.clientHeight,u.scrollHeight,u.clientHeight);let d=-l.scrollLeft+NG(o);const h=-l.scrollTop;return Go(u).direction==="rtl"&&(d+=rv(s.clientWidth,u.clientWidth)-c),{width:c,height:f,x:d,y:h}}($l(e));else if(Ll(t))r=function(o,s){const l=Yv(o,!0,s==="fixed"),u=l.top+o.clientTop,c=l.left+o.clientLeft,f=lo(o)?gd(o):{x:1,y:1};return{width:o.clientWidth*f.x,height:o.clientHeight*f.y,x:c*f.x,y:u*f.y}}(t,n);else{const o={...t};if(T2()){var a,i;const s=za(e);o.x-=((a=s.visualViewport)==null?void 0:a.offsetLeft)||0,o.y-=((i=s.visualViewport)==null?void 0:i.offsetTop)||0}r=o}return IG(r)}function OO(e,t){return lo(e)&&Go(e).position!=="fixed"?t?t(e):e.offsetParent:null}function NO(e,t){const n=za(e);if(!lo(e))return n;let r=OO(e,t);for(;r&&f_e(r)&&Go(r).position==="static";)r=OO(r,t);return r&&(Kl(r)==="html"||Kl(r)==="body"&&Go(r).position==="static"&&!C2(r))?n:r||function(a){let i=qv(a);for(;lo(i)&&!OM(i);){if(C2(i))return i;i=qv(i)}return null}(e)||n}function d_e(e,t,n){const r=lo(t),a=$l(t),i=Yv(e,!0,n==="fixed",t);let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((Kl(t)!=="body"||P_(a))&&(o=E_(t)),lo(t)){const l=Yv(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else a&&(s.x=NG(a));return{x:i.left+o.scrollLeft-s.x,y:i.top+o.scrollTop-s.y,width:i.width,height:i.height}}const h_e={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=n==="clippingAncestors"?function(u,c){const f=c.get(u);if(f)return f;let d=FG(u).filter(g=>Ll(g)&&Kl(g)!=="body"),h=null;const p=Go(u).position==="fixed";let v=p?qv(u):u;for(;Ll(v)&&!OM(v);){const g=Go(v),m=C2(v);g.position==="fixed"&&(h=null),(p?m||h:m||g.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=g:d=d.filter(_=>_!==v),v=qv(v)}return c.set(u,d),d}(t,this._c):[].concat(n),o=[...i,r],s=o[0],l=o.reduce((u,c)=>{const f=RO(t,c,a);return u.top=rv(f.top,u.top),u.right=$O(f.right,u.right),u.bottom=$O(f.bottom,u.bottom),u.left=rv(f.left,u.left),u},RO(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=lo(n),i=$l(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((a||!a&&r!=="fixed")&&((Kl(n)!=="body"||P_(i))&&(o=E_(n)),lo(n))){const u=Yv(n);s=gd(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}},isElement:Ll,getDimensions:function(e){return $G(e)},getOffsetParent:NO,getDocumentElement:$l,getScale:gd,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||NO,i=this.getDimensions;return{reference:d_e(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Go(e).direction==="rtl"},p_e=(e,t,n)=>{const r=new Map,a={platform:h_e,...n},i={...a.platform,_c:r};return r_e(e,t,{...a,platform:i})};ze({});const v_e=e=>{if(!Ht)return;if(!e)return e;const t=Va(e);return t||(vn(e)?t:e)},g_e=({middleware:e,placement:t,strategy:n})=>{const r=U(),a=U(),i=U(),o=U(),s=U({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Ht)return;const c=v_e(r),f=Va(a);if(!c||!f)return;const d=await p_e(c,f,{placement:y(t),strategy:y(n),middleware:y(e)});Wv(l).forEach(h=>{l[h].value=d[h]})};return nt(()=>{Ka(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},m_e=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=y(e);return r?l_e({element:r,padding:t}).fn(n):{}}});function y_e(e){const t=U();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const b_e=(e,t,n)=>vd(e.subTree).filter(i=>{var o;return $n(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),VG=(e,t)=>{const n={},r=gn([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=b_e(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},Rr=mo({type:String,values:as,required:!1}),zG=Symbol("size"),__e=()=>{const e=Ye(zG,{});return F(()=>y(e.size)||"")},HG=Symbol(),Db=U();function I_(e,t=void 0){const n=St()?Ye(HG,Db):Db;return e?F(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function D_(e,t){const n=I_(),r=Ie(e,F(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Pb})),a=jt(F(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=of(F(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||MG})),o=F(()=>{var s;return y(t)||((s=n.value)==null?void 0:s.size)||""});return NM(F(()=>y(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const NM=(e,t,n=!1)=>{var r;const a=!!St(),i=a?I_():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?$t:void 0;if(!o)return;const s=F(()=>{const l=y(e);return i!=null&&i.value?w_e(i.value,l):l});return o(HG,s),o(sG,F(()=>s.value.locale)),o(lG,F(()=>s.value.namespace)),o(PG,F(()=>s.value.zIndex)),o(zG,{size:F(()=>s.value.size||"")}),(n||!Db.value)&&(Db.value=s.value),s},w_e=(e,t)=>{var n;const r=[...new Set([...Wv(e),...Wv(t)])],a={};for(const i of r)a[i]=(n=t[i])!=null?n:e[i];return a},S_e=ze({a11y:{type:Boolean,default:!0},locale:{type:xe(Object)},size:Rr,button:{type:xe(Object)},experimentalFeatures:{type:xe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:xe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),k2={},x_e=ge({name:"ElConfigProvider",props:S_e,setup(e,{slots:t}){Ae(()=>e.message,r=>{Object.assign(k2,r??{})},{immediate:!0,deep:!0});const n=NM(e);return()=>ke(t,"default",{config:n==null?void 0:n.value})}}),C_e=At(x_e),T_e="2.3.3",k_e=(e=[])=>({version:T_e,install:(n,r)=>{n[gO]||(n[gO]=!0,e.forEach(a=>n.use(a)),r&&NM(r,n,!0))}}),A_e=ze({zIndex:{type:xe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),M_e={scroll:({scrollTop:e,fixed:t})=>lt(e)&&er(t),[Tn]:e=>er(e)};var Ve=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const GG="ElAffix",P_e=ge({name:GG}),E_e=ge({...P_e,props:A_e,emits:M_e,setup(e,{expose:t,emit:n}){const r=e,a=Ie("affix"),i=gn(),o=gn(),s=gn(),{height:l}=Hue(),{height:u,width:c,top:f,bottom:d,update:h}=LR(o,{windowScroll:!1}),p=LR(i),v=U(!1),g=U(0),m=U(0),_=F(()=>({height:v.value?`${u.value}px`:"",width:v.value?`${c.value}px`:""})),b=F(()=>{if(!v.value)return{};const x=r.offset?Wn(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?x:"",bottom:r.position==="bottom"?x:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const x=p.bottom.value-r.offset-u.value;v.value=r.offset>f.value&&p.bottom.value>0,m.value=x<0?x:0}else v.value=r.offset>f.value;else if(r.target){const x=l.value-p.top.value-r.offset-u.value;v.value=l.value-r.offset<d.value&&l.value>p.top.value,m.value=x<0?-x:0}else v.value=l.value-r.offset<d.value},S=()=>{h(),n("scroll",{scrollTop:g.value,fixed:v.value})};return Ae(v,x=>n("change",x)),nt(()=>{var x;r.target?(i.value=(x=document.querySelector(r.target))!=null?x:void 0,i.value||sr(GG,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=mM(o.value,!0),h()}),Dn(s,"scroll",S),Ka(w),t({update:w,updateRoot:h}),(x,C)=>(O(),K("div",{ref_key:"root",ref:o,class:j(y(a).b()),style:Ke(y(_))},[W("div",{class:j({[y(a).m("fixed")]:v.value}),style:Ke(y(b))},[ke(x.$slots,"default")],6)],6))}});var I_e=Ve(E_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const D_e=At(I_e),L_e=ze({size:{type:xe([Number,String])},color:{type:String}}),$_e=ge({name:"ElIcon",inheritAttrs:!1}),R_e=ge({...$_e,props:L_e,setup(e){const t=e,n=Ie("icon"),r=F(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Sr(a)?void 0:Wn(a),"--color":i}});return(a,i)=>(O(),K("i",Dt({class:y(n).b(),style:y(r)},a.$attrs),[ke(a.$slots,"default")],16))}});var O_e=Ve(R_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Je=At(O_e),N_e=["light","dark"],B_e=ze({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Wv(jl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:N_e,default:"light"}}),F_e={close:e=>e instanceof MouseEvent},V_e=ge({name:"ElAlert"}),z_e=ge({...V_e,props:B_e,emits:F_e,setup(e,{emit:t}){const n=e,{Close:r}=wM,a=Tr(),i=Ie("alert"),o=U(!0),s=F(()=>jl[n.type]),l=F(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=F(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(O(),we(Kn,{name:y(i).b("fade"),persisted:""},{default:fe(()=>[pt(W("div",{class:j([y(i).b(),y(i).m(f.type),y(i).is("center",f.center),y(i).is(f.effect)]),role:"alert"},[f.showIcon&&y(s)?(O(),we(y(Je),{key:0,class:j(y(l))},{default:fe(()=>[(O(),we(Lt(y(s))))]),_:1},8,["class"])):be("v-if",!0),W("div",{class:j(y(i).e("content"))},[f.title||f.$slots.title?(O(),K("span",{key:0,class:j([y(i).e("title"),y(u)])},[ke(f.$slots,"title",{},()=>[yt($e(f.title),1)])],2)):be("v-if",!0),f.$slots.default||f.description?(O(),K("p",{key:1,class:j(y(i).e("description"))},[ke(f.$slots,"default",{},()=>[yt($e(f.description),1)])],2)):be("v-if",!0),f.closable?(O(),K(He,{key:2},[f.closeText?(O(),K("div",{key:0,class:j([y(i).e("close-btn"),y(i).is("customed")]),onClick:c},$e(f.closeText),3)):(O(),we(y(Je),{key:1,class:j(y(i).e("close-btn")),onClick:c},{default:fe(()=>[V(y(r))]),_:1},8,["class"]))],64)):be("v-if",!0)],2)],2),[[Yt,o.value]])]),_:3},8,["name"]))}});var H_e=Ve(z_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const G_e=At(H_e),sf=Symbol("formContextKey"),Xo=Symbol("formItemContextKey"),nr=(e,t={})=>{const n=U(void 0),r=t.prop?n:fG("size"),a=t.global?n:__e(),i=t.form?{size:void 0}:Ye(sf,void 0),o=t.formItem?{size:void 0}:Ye(Xo,void 0);return F(()=>r.value||y(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},La=e=>{const t=fG("disabled"),n=Ye(sf,void 0);return F(()=>t.value||y(e)||(n==null?void 0:n.disabled)||!1)},ya=()=>{const e=Ye(sf,void 0),t=Ye(Xo,void 0);return{form:e,formItem:t}},uu=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=U(!1)),r||(r=U(!1));const a=U();let i;const o=F(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return nt(()=>{i=Ae([Qt(e,"id"),n],([s,l])=>{const u=s??(l?void 0:ki().value);u!==a.value&&(t!=null&&t.removeInputId&&(a.value&&t.removeInputId(a.value),!(r!=null&&r.value)&&!l&&u&&t.addInputId(u)),a.value=u)},{immediate:!0})}),Ja(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},W_e=ze({size:{type:String,values:as},disabled:Boolean}),U_e=ze({...W_e,model:Object,rules:{type:xe(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},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),j_e={validate:(e,t,n)=>(Ze(e)||dt(e))&&er(t)&&dt(n)};function K_e(){const e=U([]),t=F(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function r(i,o){if(i&&o){const s=n(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=n(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const ry=(e,t)=>{const n=Nd(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Y_e="ElForm",q_e=ge({name:Y_e}),X_e=ge({...q_e,props:U_e,emits:j_e,setup(e,{expose:t,emit:n}){const r=e,a=[],i=nr(),o=Ie("form"),s=F(()=>{const{labelPosition:_,inline:b}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${_}`)]:_,[o.m("inline")]:b}]}),l=_=>{a.push(_)},u=_=>{_.prop&&a.splice(a.indexOf(_),1)},c=(_=[])=>{r.model&&ry(a,_).forEach(b=>b.resetField())},f=(_=[])=>{ry(a,_).forEach(b=>b.clearValidate())},d=F(()=>!!r.model),h=_=>{if(a.length===0)return[];const b=ry(a,_);return b.length?b:[]},p=async _=>g(void 0,_),v=async(_=[])=>{if(!d.value)return!1;const b=h(_);if(b.length===0)return!0;let w={};for(const S of b)try{await S.validate("")}catch(x){w={...w,...x}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(_=[],b)=>{const w=!ft(b);try{const S=await v(_);return S===!0&&(b==null||b(S)),S}catch(S){if(S instanceof Error)throw S;const x=S;return r.scrollToError&&m(Object.keys(x)[0]),b==null||b(!1,x),w&&Promise.reject(x)}},m=_=>{var b;const w=ry(a,_)[0];w&&((b=w.$el)==null||b.scrollIntoView(r.scrollIntoViewOptions))};return Ae(()=>r.rules,()=>{r.validateOnRuleChange&&p().catch(_=>void 0)},{deep:!0}),$t(sf,vt({...or(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...K_e()})),t({validate:p,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(_,b)=>(O(),K("form",{class:j(y(s))},[ke(_.$slots,"default")],2))}});var Z_e=Ve(X_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(this,arguments)}function J_e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xv(e,t)}function A2(e){return A2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A2(e)}function Xv(e,t){return Xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Xv(e,t)}function Q_e(){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 P0(e,t,n){return Q_e()?P0=Reflect.construct.bind():P0=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&Xv(u,o.prototype),u},P0.apply(null,arguments)}function ewe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function M2(e){var t=typeof Map=="function"?new Map:void 0;return M2=function(r){if(r===null||!ewe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return P0(r,arguments,A2(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Xv(a,r)},M2(e)}var twe=/%[sdj%]/g,nwe=function(){};typeof process<"u"&&process.env;function P2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Ha(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var o=e.replace(twe,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function rwe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function pr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||rwe(t)&&typeof e=="string"&&!e)}function awe(e,t,n){var r=[],a=0,i=e.length;function o(s){r.push.apply(r,s||[]),a++,a===i&&n(r)}e.forEach(function(s){t(s,o)})}function BO(e,t,n){var r=0,a=e.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<a?t(e[s],i):n([])}i([])}function iwe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var FO=function(e){J_e(t,e);function t(n,r){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return t}(M2(Error));function owe(e,t,n,r,a){if(t.first){var i=new Promise(function(d,h){var p=function(m){return r(m),m.length?h(new FO(m,P2(m))):d(a)},v=iwe(e);BO(v,n,p)});return i.catch(function(d){return d}),i}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 p=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new FO(c,P2(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(v){var g=e[v];o.indexOf(v)!==-1?BO(g,n,p):awe(g,n,p)})});return f.catch(function(d){return d}),f}function swe(e){return!!(e&&e.message!==void 0)}function lwe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function VO(e,t){return function(n){var r;return e.fullFields?r=lwe(t,e.fullFields):r=t[n.field||e.fullField],swe(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function zO(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=cc({},e[n],r):e[n]=r}}return e}var WG=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||pr(n,o||t.type))&&a.push(Ha(i.messages.required,t.fullField))},uwe=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Ha(i.messages.whitespace,t.fullField))},ay,cwe=function(){if(ay)return ay;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?: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}",r="[a-fA-F\\d]{1,4}",a=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 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
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){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
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){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
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){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
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){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(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(b){return b&&b.exact?o:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?s:new RegExp(""+t(b)+a+t(b),"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]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',_="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+p+v+")"+g+m;return ay=new RegExp("(?:^"+_+"$)","i"),ay},HO={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},Dp={integer:function(t){return Dp.number(t)&&parseInt(t,10)===t},float:function(t){return Dp.number(t)&&!Dp.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"&&!Dp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(HO.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cwe())},hex:function(t){return typeof t=="string"&&!!t.match(HO.hex)}},fwe=function(t,n,r,a,i){if(t.required&&n===void 0){WG(t,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?Dp[s](n)||a.push(Ha(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Ha(i.messages.types[s],t.fullField,t.type))},dwe=function(t,n,r,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==t.len&&a.push(Ha(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Ha(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Ha(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Ha(i.messages[f].range,t.fullField,t.min,t.max))},wf="enum",hwe=function(t,n,r,a,i){t[wf]=Array.isArray(t[wf])?t[wf]:[],t[wf].indexOf(n)===-1&&a.push(Ha(i.messages[wf],t.fullField,t[wf].join(", ")))},pwe=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Ha(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(n)||a.push(Ha(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},fn={required:WG,whitespace:uwe,type:fwe,range:dwe,enum:hwe,pattern:pwe},vwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n,"string")&&!t.required)return r();fn.required(t,n,a,o,i,"string"),pr(n,"string")||(fn.type(t,n,a,o,i),fn.range(t,n,a,o,i),fn.pattern(t,n,a,o,i),t.whitespace===!0&&fn.whitespace(t,n,a,o,i))}r(o)},gwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&fn.type(t,n,a,o,i)}r(o)},mwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&(fn.type(t,n,a,o,i),fn.range(t,n,a,o,i))}r(o)},ywe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&fn.type(t,n,a,o,i)}r(o)},bwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),pr(n)||fn.type(t,n,a,o,i)}r(o)},_we=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&(fn.type(t,n,a,o,i),fn.range(t,n,a,o,i))}r(o)},wwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&(fn.type(t,n,a,o,i),fn.range(t,n,a,o,i))}r(o)},Swe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();fn.required(t,n,a,o,i,"array"),n!=null&&(fn.type(t,n,a,o,i),fn.range(t,n,a,o,i))}r(o)},xwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&fn.type(t,n,a,o,i)}r(o)},Cwe="enum",Twe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i),n!==void 0&&fn[Cwe](t,n,a,o,i)}r(o)},kwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n,"string")&&!t.required)return r();fn.required(t,n,a,o,i),pr(n,"string")||fn.pattern(t,n,a,o,i)}r(o)},Awe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n,"date")&&!t.required)return r();if(fn.required(t,n,a,o,i),!pr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),fn.type(t,l,a,o,i),l&&fn.range(t,l.getTime(),a,o,i)}}r(o)},Mwe=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;fn.required(t,n,a,o,i,s),r(o)},nS=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(pr(n,o)&&!t.required)return r();fn.required(t,n,a,s,i,o),pr(n,o)||fn.type(t,n,a,s,i)}r(s)},Pwe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(pr(n)&&!t.required)return r();fn.required(t,n,a,o,i)}r(o)},av={string:vwe,method:gwe,number:mwe,boolean:ywe,regexp:bwe,integer:_we,float:wwe,array:Swe,object:xwe,enum:Twe,pattern:kwe,date:Awe,url:nS,hex:nS,email:nS,required:Mwe,any:Pwe};function E2(){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 I2=E2(),nm=function(){function e(n){this.rules=null,this._messages=I2,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(r){return r&&(this._messages=zO(E2(),r)),this._messages},t.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;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(v){var g=[],m={};function _(w){if(Array.isArray(w)){var S;g=(S=g).concat.apply(S,w)}else g.push(w)}for(var b=0;b<v.length;b++)_(v[b]);g.length?(m=P2(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===I2&&(f=E2()),zO(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(v){var g=o.rules[v],m=s[v];g.forEach(function(_){var b=_;typeof b.transform=="function"&&(s===r&&(s=cc({},s)),m=s[v]=b.transform(m)),typeof b=="function"?b={validator:b}:b=cc({},b),b.validator=o.getValidationMethod(b),b.validator&&(b.field=v,b.fullField=b.fullField||v,b.type=o.getType(b),d[v]=d[v]||[],d[v].push({rule:b,value:m,source:s,field:v}))})});var p={};return owe(d,l,function(v,g){var m=v.rule,_=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");_=_&&(m.required||!m.required&&v.value),m.field=v.field;function b(x,C){return cc({},C,{fullField:m.fullField+"."+x,fullFields:m.fullFields?[].concat(m.fullFields,[x]):[x]})}function w(x){x===void 0&&(x=[]);var C=Array.isArray(x)?x:[x];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&m.message!==void 0&&(C=[].concat(m.message));var T=C.map(VO(m,s));if(l.first&&T.length)return p[m.field]=1,g(T);if(!_)g(T);else{if(m.required&&!v.value)return m.message!==void 0?T=[].concat(m.message).map(VO(m,s)):l.error&&(T=[l.error(m,Ha(l.messages.required,m.field))]),g(T);var k={};m.defaultField&&Object.keys(v.value).map(function(I){k[I]=m.defaultField}),k=cc({},k,v.rule.fields);var A={};Object.keys(k).forEach(function(I){var E=k[I],L=Array.isArray(E)?E:[E];A[I]=L.map(b.bind(null,I))});var M=new e(A);M.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),M.validate(v.value,v.rule.options||l,function(I){var E=[];T&&T.length&&E.push.apply(E,T),I&&I.length&&E.push.apply(E,I),g(E.length?E:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,v.value,w,v.source,l);else if(m.validator){try{S=m.validator(m,v.value,w,v.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),w(x.message)}S===!0?w():S===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(x){return w(x)})},function(v){c(v)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!av.hasOwnProperty(r.type))throw new Error(Ha("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?av.required:av[this.getType(r)]||void 0},e}();nm.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");av[t]=n};nm.warning=nwe;nm.messages=I2;nm.validators=av;const Ewe=["","error","validating","success"],Iwe=ze({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:xe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:xe([Object,Array])},error:String,validateStatus:{type:String,values:Ewe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:as}}),GO="ElLabelWrap";var Dwe=ge({name:GO,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ye(sf,void 0),r=Ye(Xo);r||sr(GO,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Ie("form"),i=U(),o=U(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Xe(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return nt(()=>{u()}),pn(()=>{l("remove")}),Ws(()=>u()),Ae(o,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),Yr(F(()=>{var c,f;return(f=(c=i.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=n==null?void 0:n.autoLabelWidth,p=r==null?void 0:r.hasLabel,v={};if(p&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(v[m]=`${g}px`)}return V("div",{ref:i,class:[a.be("item","label-wrap")],style:v},[(c=t.default)==null?void 0:c.call(t)])}else return V(He,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const Lwe=["role","aria-labelledby"],$we=ge({name:"ElFormItem"}),Rwe=ge({...$we,props:Iwe,setup(e,{expose:t}){const n=e,r=Tr(),a=Ye(sf,void 0),i=Ye(Xo,void 0),o=nr(void 0,{formItem:!1}),s=Ie("form-item"),l=ki().value,u=U([]),c=U(""),f=kue(c,100),d=U(""),h=U();let p,v=!1;const g=F(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const Q=Wn(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return Q?{width:Q}:{}}),m=F(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&k)return{};const Q=Wn(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Q}:{}}),_=F(()=>[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",L.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),b=F(()=>er(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=F(()=>[s.e("error"),{[s.em("error","inline")]:b.value}]),S=F(()=>n.prop?dt(n.prop)?n.prop:n.prop.join("."):""),x=F(()=>!!(n.label||r.label)),C=F(()=>n.for||u.value.length===1?u.value[0]:void 0),T=F(()=>!C.value&&x.value),k=!!i,A=F(()=>{const Q=a==null?void 0:a.model;if(!(!Q||!n.prop))return A0(Q,n.prop).value}),M=F(()=>{const{required:Q}=n,J=[];n.rules&&J.push(...Nd(n.rules));const se=a==null?void 0:a.rules;if(se&&n.prop){const he=A0(se,n.prop).value;he&&J.push(...Nd(he))}if(Q!==void 0){const he=J.map((re,z)=>[re,z]).filter(([re])=>Object.keys(re).includes("required"));if(he.length>0)for(const[re,z]of he)re.required!==Q&&(J[z]={...re,required:Q});else J.push({required:Q})}return J}),I=F(()=>M.value.length>0),E=Q=>M.value.filter(se=>!se.trigger||!Q?!0:Array.isArray(se.trigger)?se.trigger.includes(Q):se.trigger===Q).map(({trigger:se,...he})=>he),L=F(()=>M.value.some(Q=>Q.required)),N=F(()=>{var Q;return f.value==="error"&&n.showMessage&&((Q=a==null?void 0:a.showMessage)!=null?Q:!0)}),$=F(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),P=Q=>{c.value=Q},R=Q=>{var J,se;const{errors:he,fields:re}=Q;(!he||!re)&&console.error(Q),P("error"),d.value=he?(se=(J=he==null?void 0:he[0])==null?void 0:J.message)!=null?se:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},D=()=>{P("success"),a==null||a.emit("validate",n.prop,!0,"")},B=async Q=>{const J=S.value;return new nm({[J]:Q}).validate({[J]:A.value},{firstFields:!0}).then(()=>(D(),!0)).catch(he=>(R(he),Promise.reject(he)))},H=async(Q,J)=>{if(v||!n.prop)return!1;const se=ft(J);if(!I.value)return J==null||J(!1),!1;const he=E(Q);return he.length===0?(J==null||J(!0),!0):(P("validating"),B(he).then(()=>(J==null||J(!0),!0)).catch(re=>{const{fields:z}=re;return J==null||J(!1,z),se?!1:Promise.reject(z)}))},G=()=>{P(""),d.value="",v=!1},X=async()=>{const Q=a==null?void 0:a.model;if(!Q||!n.prop)return;const J=A0(Q,n.prop);v=!0,J.value=cO(p),await Xe(),G(),v=!1},ue=Q=>{u.value.includes(Q)||u.value.push(Q)},ie=Q=>{u.value=u.value.filter(J=>J!==Q)};Ae(()=>n.error,Q=>{d.value=Q||"",P(Q?"error":"")},{immediate:!0}),Ae(()=>n.validateStatus,Q=>P(Q||""));const le=vt({...or(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:x,addInputId:ue,removeInputId:ie,resetField:X,clearValidate:G,validate:H});return $t(Xo,le),nt(()=>{n.prop&&(a==null||a.addField(le),p=cO(A.value))}),pn(()=>{a==null||a.removeField(le)}),t({size:o,validateMessage:d,validateState:c,validate:H,clearValidate:G,resetField:X}),(Q,J)=>{var se;return O(),K("div",{ref_key:"formItemRef",ref:h,class:j(y(_)),role:y(T)?"group":void 0,"aria-labelledby":y(T)?y(l):void 0},[V(y(Dwe),{"is-auto-width":y(g).width==="auto","update-all":((se=y(a))==null?void 0:se.labelWidth)==="auto"},{default:fe(()=>[y(x)?(O(),we(Lt(y(C)?"label":"div"),{key:0,id:y(l),for:y(C),class:j(y(s).e("label")),style:Ke(y(g))},{default:fe(()=>[ke(Q.$slots,"label",{label:y($)},()=>[yt($e(y($)),1)])]),_:3},8,["id","for","class","style"])):be("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),W("div",{class:j(y(s).e("content")),style:Ke(y(m))},[ke(Q.$slots,"default"),V(kz,{name:`${y(s).namespace.value}-zoom-in-top`},{default:fe(()=>[y(N)?ke(Q.$slots,"error",{key:0,error:d.value},()=>[W("div",{class:j(y(w))},$e(d.value),3)]):be("v-if",!0)]),_:3},8,["name"])],6)],10,Lwe)}}});var UG=Ve(Rwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Owe=At(Z_e,{FormItem:UG}),Nwe=Vn(UG);let Ri;const Bwe=`
height:0 !important;
visibility:hidden !important;
${iG()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,Fwe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Vwe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),a=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Fwe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function WO(e,t=1,n){var r;Ri||(Ri=document.createElement("textarea"),document.body.appendChild(Ri));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Vwe(e);Ri.setAttribute("style",`${s};${Bwe}`),Ri.value=e.value||e.placeholder||"";let l=Ri.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),Ri.value="";const c=Ri.scrollHeight-a;if(lt(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(lt(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=Ri.parentNode)==null||r.removeChild(Ri),Ri=void 0,u}const zwe=ze({id:{type:String,default:void 0},size:Rr,disabled:Boolean,modelValue:{type:xe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:xe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:_n},prefixIcon:{type:_n},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:xe([Object,Array,String]),default:()=>In({})}}),Hwe={[Mt]:e=>dt(e),input:e=>dt(e),change:e=>dt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Gwe=["role"],Wwe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Uwe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],jwe=ge({name:"ElInput",inheritAttrs:!1}),Kwe=ge({...jwe,props:zwe,emits:Hwe,setup(e,{expose:t,emit:n}){const r=e,a=uh(),i=Tr(),o=F(()=>{const pe={};return r.containerRole==="combobox"&&(pe["aria-haspopup"]=a["aria-haspopup"],pe["aria-owns"]=a["aria-owns"],pe["aria-expanded"]=a["aria-expanded"]),pe}),s=F(()=>[r.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",p.value),v.is("exceed",H.value),{[v.b("group")]:i.prepend||i.append,[v.bm("group","append")]:i.append,[v.bm("group","prepend")]:i.prepend,[v.m("prefix")]:i.prefix||r.prefixIcon,[v.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:P.value&&R.value},a.class]),l=F(()=>[v.e("wrapper"),v.is("focus",b.value)]),u=SM({excludeKeys:F(()=>Object.keys(o.value))}),{form:c,formItem:f}=ya(),{inputId:d}=uu(r,{formItemContext:f}),h=nr(),p=La(),v=Ie("input"),g=Ie("textarea"),m=gn(),_=gn(),b=U(!1),w=U(!1),S=U(!1),x=U(!1),C=U(),T=gn(r.inputStyle),k=F(()=>m.value||_.value),A=F(()=>{var pe;return(pe=c==null?void 0:c.statusIcon)!=null?pe:!1}),M=F(()=>(f==null?void 0:f.validateState)||""),I=F(()=>M.value&&rG[M.value]),E=F(()=>x.value?ube:uye),L=F(()=>[a.style,r.inputStyle]),N=F(()=>[r.inputStyle,T.value,{resize:r.resize}]),$=F(()=>tr(r.modelValue)?"":String(r.modelValue)),P=F(()=>r.clearable&&!p.value&&!r.readonly&&!!$.value&&(b.value||w.value)),R=F(()=>r.showPassword&&!p.value&&!r.readonly&&!!$.value&&(!!$.value||b.value)),D=F(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),B=F(()=>$.value.length),H=F(()=>!!D.value&&B.value>Number(u.value.maxlength)),G=F(()=>!!i.suffix||!!r.suffixIcon||P.value||r.showPassword||D.value||!!M.value&&A.value),[X,ue]=y_e(m);Yr(_,pe=>{if(Q(),!D.value||r.resize!=="both")return;const Se=pe[0],{width:Pe}=Se.contentRect;C.value={right:`calc(100% - ${Pe+15+6}px)`}});const ie=()=>{const{type:pe,autosize:Se}=r;if(!(!Ht||pe!=="textarea"||!_.value))if(Se){const Pe=It(Se)?Se.minRows:void 0,Oe=It(Se)?Se.maxRows:void 0,Ne=WO(_.value,Pe,Oe);T.value={overflowY:"hidden",...Ne},Xe(()=>{_.value.offsetHeight,T.value=Ne})}else T.value={minHeight:WO(_.value).minHeight}},Q=(pe=>{let Se=!1;return()=>{var Pe;if(Se||!r.autosize)return;((Pe=_.value)==null?void 0:Pe.offsetParent)===null||(pe(),Se=!0)}})(ie),J=()=>{const pe=k.value;!pe||pe.value===$.value||(pe.value=$.value)},se=async pe=>{X();let{value:Se}=pe.target;if(r.formatter&&(Se=r.parser?r.parser(Se):Se,Se=r.formatter(Se)),!S.value){if(Se===$.value){J();return}n(Mt,Se),n("input",Se),await Xe(),J(),ue()}},he=pe=>{n("change",pe.target.value)},re=pe=>{n("compositionstart",pe),S.value=!0},z=pe=>{var Se;n("compositionupdate",pe);const Pe=(Se=pe.target)==null?void 0:Se.value,Oe=Pe[Pe.length-1]||"";S.value=!T_(Oe)},Y=pe=>{n("compositionend",pe),S.value&&(S.value=!1,se(pe))},ee=()=>{x.value=!x.value,oe()},oe=async()=>{var pe;await Xe(),(pe=k.value)==null||pe.focus()},ve=()=>{var pe;return(pe=k.value)==null?void 0:pe.blur()},Z=pe=>{b.value=!0,n("focus",pe)},ce=pe=>{var Se;b.value=!1,n("blur",pe),r.validateEvent&&((Se=f==null?void 0:f.validate)==null||Se.call(f,"blur").catch(Pe=>void 0))},q=pe=>{w.value=!1,n("mouseleave",pe)},ae=pe=>{w.value=!0,n("mouseenter",pe)},ne=pe=>{n("keydown",pe)},de=()=>{var pe;(pe=k.value)==null||pe.select()},me=()=>{n(Mt,""),n("change",""),n("clear"),n("input","")};return Ae(()=>r.modelValue,()=>{var pe;Xe(()=>ie()),r.validateEvent&&((pe=f==null?void 0:f.validate)==null||pe.call(f,"change").catch(Se=>void 0))}),Ae($,()=>J()),Ae(()=>r.type,async()=>{await Xe(),J(),ie()}),nt(()=>{!r.formatter&&r.parser,J(),Xe(ie)}),t({input:m,textarea:_,ref:k,textareaStyle:N,autosize:Qt(r,"autosize"),focus:oe,blur:ve,select:de,clear:me,resizeTextarea:ie}),(pe,Se)=>pt((O(),K("div",Dt(y(o),{class:y(s),style:y(L),role:pe.containerRole,onMouseenter:ae,onMouseleave:q}),[be(" input "),pe.type!=="textarea"?(O(),K(He,{key:0},[be(" prepend slot "),pe.$slots.prepend?(O(),K("div",{key:0,class:j(y(v).be("group","prepend"))},[ke(pe.$slots,"prepend")],2)):be("v-if",!0),W("div",{class:j(y(l))},[be(" prefix slot "),pe.$slots.prefix||pe.prefixIcon?(O(),K("span",{key:0,class:j(y(v).e("prefix"))},[W("span",{class:j(y(v).e("prefix-inner")),onClick:oe},[ke(pe.$slots,"prefix"),pe.prefixIcon?(O(),we(y(Je),{key:0,class:j(y(v).e("icon"))},{default:fe(()=>[(O(),we(Lt(pe.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0),W("input",Dt({id:y(d),ref_key:"input",ref:m,class:y(v).e("inner")},y(u),{type:pe.showPassword?x.value?"text":"password":pe.type,disabled:y(p),formatter:pe.formatter,parser:pe.parser,readonly:pe.readonly,autocomplete:pe.autocomplete,tabindex:pe.tabindex,"aria-label":pe.label,placeholder:pe.placeholder,style:pe.inputStyle,form:r.form,onCompositionstart:re,onCompositionupdate:z,onCompositionend:Y,onInput:se,onFocus:Z,onBlur:ce,onChange:he,onKeydown:ne}),null,16,Wwe),be(" suffix slot "),y(G)?(O(),K("span",{key:1,class:j(y(v).e("suffix"))},[W("span",{class:j(y(v).e("suffix-inner")),onClick:oe},[!y(P)||!y(R)||!y(D)?(O(),K(He,{key:0},[ke(pe.$slots,"suffix"),pe.suffixIcon?(O(),we(y(Je),{key:0,class:j(y(v).e("icon"))},{default:fe(()=>[(O(),we(Lt(pe.suffixIcon)))]),_:1},8,["class"])):be("v-if",!0)],64)):be("v-if",!0),y(P)?(O(),we(y(Je),{key:1,class:j([y(v).e("icon"),y(v).e("clear")]),onMousedown:st(y(un),["prevent"]),onClick:me},{default:fe(()=>[V(y(ou))]),_:1},8,["class","onMousedown"])):be("v-if",!0),y(R)?(O(),we(y(Je),{key:2,class:j([y(v).e("icon"),y(v).e("password")]),onClick:ee},{default:fe(()=>[(O(),we(Lt(y(E))))]),_:1},8,["class"])):be("v-if",!0),y(D)?(O(),K("span",{key:3,class:j(y(v).e("count"))},[W("span",{class:j(y(v).e("count-inner"))},$e(y(B))+" / "+$e(y(u).maxlength),3)],2)):be("v-if",!0),y(M)&&y(I)&&y(A)?(O(),we(y(Je),{key:4,class:j([y(v).e("icon"),y(v).e("validateIcon"),y(v).is("loading",y(M)==="validating")])},{default:fe(()=>[(O(),we(Lt(y(I))))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0)],2),be(" append slot "),pe.$slots.append?(O(),K("div",{key:1,class:j(y(v).be("group","append"))},[ke(pe.$slots,"append")],2)):be("v-if",!0)],64)):(O(),K(He,{key:1},[be(" textarea "),W("textarea",Dt({id:y(d),ref_key:"textarea",ref:_,class:y(g).e("inner")},y(u),{tabindex:pe.tabindex,disabled:y(p),readonly:pe.readonly,autocomplete:pe.autocomplete,style:y(N),"aria-label":pe.label,placeholder:pe.placeholder,form:r.form,onCompositionstart:re,onCompositionupdate:z,onCompositionend:Y,onInput:se,onFocus:Z,onBlur:ce,onChange:he,onKeydown:ne}),null,16,Uwe),y(D)?(O(),K("span",{key:0,style:Ke(C.value),class:j(y(v).e("count"))},$e(y(B))+" / "+$e(y(u).maxlength),7)):be("v-if",!0)],64))],16,Gwe)),[[Yt,pe.type!=="hidden"]])}});var Ywe=Ve(Kwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const jr=At(Ywe),nd=4,jG={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"}},qwe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),KG=Symbol("scrollbarContextKey"),Xwe=ze({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Zwe="Thumb",Jwe=ge({__name:"thumb",props:Xwe,setup(e){const t=e,n=Ye(KG),r=Ie("scrollbar");n||sr(Zwe,"can not inject scrollbar context");const a=U(),i=U(),o=U({}),s=U(!1);let l=!1,u=!1,c=Ht?document.onselectstart:null;const f=F(()=>jG[t.vertical?"vertical":"horizontal"]),d=F(()=>qwe({size:t.size,move:t.move,bar:f.value})),h=F(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),p=x=>{var C;if(x.stopPropagation(),x.ctrlKey||[1,2].includes(x.button))return;(C=window.getSelection())==null||C.removeAllRanges(),g(x);const T=x.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(x[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},v=x=>{if(!i.value||!a.value||!n.wrapElement)return;const C=Math.abs(x.target.getBoundingClientRect()[f.value.direction]-x[f.value.client]),T=i.value[f.value.offset]/2,k=(C-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=k*n.wrapElement[f.value.scrollSize]/100},g=x=>{x.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",_),c=document.onselectstart,document.onselectstart=()=>!1},m=x=>{if(!a.value||!i.value||l===!1)return;const C=o.value[f.value.axis];if(!C)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-x[f.value.client])*-1,k=i.value[f.value.offset]-C,A=(T-k)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100},_=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",_),S(),u&&(s.value=!1)},b=()=>{u=!1,s.value=!!t.size},w=()=>{u=!0,s.value=l};pn(()=>{S(),document.removeEventListener("mouseup",_)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Dn(Qt(n,"scrollbarElement"),"mousemove",b),Dn(Qt(n,"scrollbarElement"),"mouseleave",w),(x,C)=>(O(),we(Kn,{name:y(r).b("fade"),persisted:""},{default:fe(()=>[pt(W("div",{ref_key:"instance",ref:a,class:j([y(r).e("bar"),y(r).is(y(f).key)]),onMousedown:v},[W("div",{ref_key:"thumb",ref:i,class:j(y(r).e("thumb")),style:Ke(y(d)),onMousedown:p},null,38)],34),[[Yt,x.always||s.value]])]),_:1},8,["name"]))}});var UO=Ve(Jwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Qwe=ze({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),eSe=ge({__name:"bar",props:Qwe,setup(e,{expose:t}){const n=e,r=U(0),a=U(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-nd,l=o.offsetWidth-nd;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(O(),K(He,null,[V(UO,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),V(UO,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var tSe=Ve(eSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const nSe=ze({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:xe([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}}),rSe={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(lt)},aSe="ElScrollbar",iSe=ge({name:aSe}),oSe=ge({...iSe,props:nSe,emits:rSe,setup(e,{expose:t,emit:n}){const r=e,a=Ie("scrollbar");let i,o;const s=U(),l=U(),u=U(),c=U("0"),f=U("0"),d=U(),h=U(1),p=U(1),v=F(()=>{const C={};return r.height&&(C.height=Wn(r.height)),r.maxHeight&&(C.maxHeight=Wn(r.maxHeight)),[r.wrapStyle,C]}),g=F(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=F(()=>[a.e("view"),r.viewClass]),_=()=>{var C;l.value&&((C=d.value)==null||C.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function b(C,T){It(C)?l.value.scrollTo(C):lt(C)&&lt(T)&&l.value.scrollTo(C,T)}const w=C=>{lt(C)&&(l.value.scrollTop=C)},S=C=>{lt(C)&&(l.value.scrollLeft=C)},x=()=>{if(!l.value)return;const C=l.value.offsetHeight-nd,T=l.value.offsetWidth-nd,k=C**2/l.value.scrollHeight,A=T**2/l.value.scrollWidth,M=Math.max(k,r.minSize),I=Math.max(A,r.minSize);h.value=k/(C-k)/(M/(C-M)),p.value=A/(T-A)/(I/(T-I)),f.value=M+nd<C?`${M}px`:"",c.value=I+nd<T?`${I}px`:""};return Ae(()=>r.noresize,C=>{C?(i==null||i(),o==null||o()):({stop:i}=Yr(u,x),o=Dn("resize",x))},{immediate:!0}),Ae(()=>[r.maxHeight,r.height],()=>{r.native||Xe(()=>{var C;x(),l.value&&((C=d.value)==null||C.handleScroll(l.value))})}),$t(KG,vt({scrollbarElement:s,wrapElement:l})),nt(()=>{r.native||Xe(()=>{x()})}),Ws(()=>x()),t({wrapRef:l,update:x,scrollTo:b,setScrollTop:w,setScrollLeft:S,handleScroll:_}),(C,T)=>(O(),K("div",{ref_key:"scrollbarRef",ref:s,class:j(y(a).b())},[W("div",{ref_key:"wrapRef",ref:l,class:j(y(g)),style:Ke(y(v)),onScroll:_},[(O(),we(Lt(C.tag),{ref_key:"resizeRef",ref:u,class:j(y(m)),style:Ke(C.viewStyle)},{default:fe(()=>[ke(C.$slots,"default")]),_:3},8,["class","style"]))],38),C.native?be("v-if",!0):(O(),we(tSe,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:C.always,"ratio-x":p.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var sSe=Ve(oSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Ks=At(sSe),BM=Symbol("popper"),YG=Symbol("popperContent"),lSe=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],qG=ze({role:{type:String,values:lSe,default:"tooltip"}}),uSe=ge({name:"ElPopper",inheritAttrs:!1}),cSe=ge({...uSe,props:qG,setup(e,{expose:t}){const n=e,r=U(),a=U(),i=U(),o=U(),s=F(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),$t(BM,l),(u,c)=>ke(u.$slots,"default")}});var fSe=Ve(cSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const XG=ze({arrowOffset:{type:Number,default:5}}),dSe=ge({name:"ElPopperArrow",inheritAttrs:!1}),hSe=ge({...dSe,props:XG,setup(e,{expose:t}){const n=e,r=Ie("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ye(YG,void 0);return Ae(()=>n.arrowOffset,s=>{a.value=s}),pn(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(O(),K("span",{ref_key:"arrowRef",ref:i,class:j(y(r).e("arrow")),style:Ke(y(o)),"data-popper-arrow":""},null,6))}});var pSe=Ve(hSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const vSe="ElOnlyChild",ZG=ge({name:vSe,setup(e,{slots:t,attrs:n}){var r;const a=Ye(AG),i=n_e((r=a==null?void 0:a.setForwardRef)!=null?r:un);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=JG(s);return l?pt($s(l,n),[[i]]):null}}});function JG(e){if(!e)return null;const t=e;for(const n of t){if(It(n))switch(n.type){case ia:continue;case lh:case"svg":return jO(n);case He:return JG(n.children);default:return n}return jO(n)}return null}function jO(e){const t=Ie("only-child");return V("span",{class:t.e("content")},[e])}const QG=ze({virtualRef:{type:xe(Object)},virtualTriggering:Boolean,onMouseenter:{type:xe(Function)},onMouseleave:{type:xe(Function)},onClick:{type:xe(Function)},onKeydown:{type:xe(Function)},onFocus:{type:xe(Function)},onBlur:{type:xe(Function)},onContextmenu:{type:xe(Function)},id:String,open:Boolean}),gSe=ge({name:"ElPopperTrigger",inheritAttrs:!1}),mSe=ge({...gSe,props:QG,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=Ye(BM,void 0);t_e(a);const i=F(()=>s.value?n.id:void 0),o=F(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=F(()=>{if(r&&r.value!=="tooltip")return r.value}),l=F(()=>s.value?`${n.open}`:void 0);let u;return nt(()=>{Ae(()=>n.virtualRef,c=>{c&&(a.value=Va(c))},{immediate:!0}),Ae(a,(c,f)=>{u==null||u(),u=void 0,oo(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const p=n[d];p&&(c.addEventListener(d.slice(2).toLowerCase(),p),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),p))}),u=Ae([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{tr(d[p])?c.removeAttribute(h):c.setAttribute(h,d[p])})},{immediate:!0})),oo(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),pn(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?be("v-if",!0):(O(),we(y(ZG),Dt({key:0},c.$attrs,{"aria-controls":y(i),"aria-describedby":y(o),"aria-expanded":y(l),"aria-haspopup":y(s)}),{default:fe(()=>[ke(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ySe=Ve(mSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const rS="focus-trap.focus-after-trapped",aS="focus-trap.focus-after-released",bSe="focus-trap.focusout-prevented",KO={cancelable:!0,bubbles:!1},_Se={cancelable:!0,bubbles:!1},YO="focusAfterTrapped",qO="focusAfterReleased",FM=Symbol("elFocusTrap"),VM=U(),L_=U(0),zM=U(0);let iy=0;const e9=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},XO=(e,t)=>{for(const n of e)if(!wSe(n,t))return n},wSe=(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},SSe=e=>{const t=e9(e),n=XO(t,e),r=XO(t.reverse(),e);return[n,r]},xSe=e=>e instanceof HTMLInputElement&&"select"in e,dl=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),zM.value=window.performance.now(),e!==n&&xSe(e)&&t&&e.select()}};function ZO(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const CSe=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=ZO(e,r),e.unshift(r)},remove:r=>{var a,i;e=ZO(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},TSe=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(dl(r,t),document.activeElement!==n)return},JO=CSe(),kSe=()=>L_.value>zM.value,oy=()=>{VM.value="pointer",L_.value=window.performance.now()},QO=()=>{VM.value="keyboard",L_.value=window.performance.now()},ASe=()=>(nt(()=>{iy===0&&(document.addEventListener("mousedown",oy),document.addEventListener("touchstart",oy),document.addEventListener("keydown",QO)),iy++}),pn(()=>{iy--,iy<=0&&(document.removeEventListener("mousedown",oy),document.removeEventListener("touchstart",oy),document.removeEventListener("keydown",QO))}),{focusReason:VM,lastUserFocusTimestamp:L_,lastAutomatedFocusTimestamp:zM}),sy=e=>new CustomEvent(bSe,{..._Se,detail:e}),MSe=ge({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[YO,qO,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=U();let r,a;const{focusReason:i}=ASe();Z1e(p=>{e.trapped&&!o.paused&&t("release-requested",p)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:v,altKey:g,ctrlKey:m,metaKey:_,currentTarget:b,shiftKey:w}=p,{loop:S}=e,x=v===tt.tab&&!g&&!m&&!_,C=document.activeElement;if(x&&C){const T=b,[k,A]=SSe(T);if(k&&A){if(!w&&C===A){const I=sy({focusReason:i.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),S&&dl(k,!0))}else if(w&&[k,T].includes(C)){const I=sy({focusReason:i.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),S&&dl(A,!0))}}else if(C===T){const I=sy({focusReason:i.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};$t(FM,{focusTrapRef:n,onKeydown:s}),Ae(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),Ae([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=p=>{t(YO,p)},u=p=>t(qO,p),c=p=>{const v=y(n);if(!v)return;const g=p.target,m=p.relatedTarget,_=g&&v.contains(g);e.trapped||m&&v.contains(m)||(r=m),_&&t("focusin",p),!o.paused&&e.trapped&&(_?a=g:dl(a,!0))},f=p=>{const v=y(n);if(!(o.paused||!v))if(e.trapped){const g=p.relatedTarget;!tr(g)&&!v.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=sy({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||dl(a,!0)}},0)}else{const g=p.target;g&&v.contains(g)||t("focusout",p)}};async function d(){await Xe();const p=y(n);if(p){JO.push(o);const v=p.contains(document.activeElement)?r:document.activeElement;if(r=v,!p.contains(v)){const m=new Event(rS,KO);p.addEventListener(rS,l),p.dispatchEvent(m),m.defaultPrevented||Xe(()=>{let _=e.focusStartEl;dt(_)||(dl(_),document.activeElement!==_&&(_="first")),_==="first"&&TSe(e9(p),!0),(document.activeElement===v||_==="container")&&dl(p)})}}}function h(){const p=y(n);if(p){p.removeEventListener(rS,l);const v=new CustomEvent(aS,{...KO,detail:{focusReason:i.value}});p.addEventListener(aS,u),p.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!kSe()||p.contains(document.activeElement))&&dl(r??document.body),p.removeEventListener(aS,l),JO.remove(o)}}return nt(()=>{e.trapped&&d(),Ae(()=>e.trapped,p=>{p?d():h()})}),pn(()=>{e.trapped&&h()}),{onKeydown:s}}});function PSe(e,t,n,r,a,i){return ke(e.$slots,"default",{handleKeydown:e.onKeydown})}var $_=Ve(MSe,[["render",PSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const ESe=["fixed","absolute"],ISe=ze({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:xe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:af,default:"bottom"},popperOptions:{type:xe(Object),default:()=>({})},strategy:{type:String,values:ESe,default:"absolute"}}),t9=ze({...ISe,id:String,style:{type:xe([String,Array,Object])},className:{type:xe([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:xe([String,Array,Object])},popperStyle:{type:xe([String,Array,Object])},referenceEl:{type:xe(Object)},triggerTargetEl:{type:xe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),DSe={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},LSe=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...RSe(e),...t]};return OSe(i,a==null?void 0:a.modifiers),i},$Se=e=>{if(Ht)return Va(e)};function RSe(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=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:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function OSe(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const NSe=0,BSe=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=Ye(BM,void 0),i=U(),o=U(),s=F(()=>({name:"eventListeners",enabled:!!e.visible})),l=F(()=>{var m;const _=y(i),b=(m=y(o))!=null?m:NSe;return{name:"arrow",enabled:!Rve(_),options:{element:_,padding:b}}}),u=F(()=>({onFirstUpdate:()=>{p()},...LSe(e,[y(l),y(s)])})),c=F(()=>$Se(e.referenceEl)||y(r)),{attributes:f,state:d,styles:h,update:p,forceUpdate:v,instanceRef:g}=j1e(c,n,u);return Ae(g,m=>t.value=m),nt(()=>{Ae(()=>{var m;return(m=y(c))==null?void 0:m.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:v,update:p}},FSe=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=of(),i=Ie("popper"),o=F(()=>y(t).popper),s=U(e.zIndex||a()),l=F(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=F(()=>[{zIndex:y(s)},e.popperStyle||{},y(n).popper]),c=F(()=>r.value==="dialog"?"false":void 0),f=F(()=>y(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},VSe=(e,t)=>{const n=U(!1),r=U();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},zSe=ge({name:"ElPopperContent"}),HSe=ge({...zSe,props:t9,emits:DSe,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=VSe(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:p,instanceRef:v,role:g,update:m}=BSe(r),{ariaModal:_,arrowStyle:b,contentAttrs:w,contentClass:S,contentStyle:x,updateZIndex:C}=FSe(r,{styles:p,attributes:f,role:g}),T=Ye(Xo,void 0),k=U();$t(YG,{arrowStyle:b,arrowRef:d,arrowOffset:k}),T&&(T.addInputId||T.removeInputId)&&$t(Xo,{...T,addInputId:un,removeInputId:un});let A;const M=(E=!0)=>{m(),E&&C()},I=()=>{M(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return nt(()=>{Ae(()=>r.triggerTargetEl,(E,L)=>{A==null||A(),A=void 0;const N=y(E||h.value),$=y(L||h.value);oo(N)&&(A=Ae([g,()=>r.ariaLabel,_,()=>r.id],P=>{["role","aria-label","aria-modal","id"].forEach((R,D)=>{tr(P[D])?N.removeAttribute(R):N.setAttribute(R,P[D])})},{immediate:!0})),$!==N&&oo($)&&["role","aria-label","aria-modal","id"].forEach(P=>{$.removeAttribute(P)})},{immediate:!0}),Ae(()=>r.visible,I,{immediate:!0})}),pn(()=>{A==null||A(),A=void 0}),t({popperContentRef:h,popperInstanceRef:v,updatePopper:M,contentStyle:x}),(E,L)=>(O(),K("div",Dt({ref_key:"contentRef",ref:h},y(w),{style:y(x),class:y(S),tabindex:"-1",onMouseenter:L[0]||(L[0]=N=>E.$emit("mouseenter",N)),onMouseleave:L[1]||(L[1]=N=>E.$emit("mouseleave",N))}),[V(y($_),{trapped:y(i),"trap-on-focus-in":!0,"focus-trap-el":y(h),"focus-start-el":y(a),onFocusAfterTrapped:y(s),onFocusAfterReleased:y(o),onFocusin:y(l),onFocusoutPrevented:y(u),onReleaseRequested:y(c)},{default:fe(()=>[ke(E.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var GSe=Ve(HSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const n9=At(fSe),R_=Symbol("elTooltip"),br=ze({...e_e,...t9,appendTo:{type:xe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:xe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Zv=ze({...QG,disabled:Boolean,trigger:{type:xe([String,Array]),default:"hover"},triggerKeys:{type:xe(Array),default:()=>[tt.enter,tt.space]}}),{useModelToggleProps:WSe,useModelToggleEmits:USe,useModelToggle:jSe}=cG("visible"),KSe=ze({...qG,...WSe,...br,...Zv,...XG,showArrow:{type:Boolean,default:!0}}),YSe=[...USe,"before-show","before-hide","show","hide","open","close"],qSe=(e,t)=>Ze(e)?e.includes(t):e===t,Sf=(e,t,n)=>r=>{qSe(y(e),t)&&n(r)},XSe=ge({name:"ElTooltipTrigger"}),ZSe=ge({...XSe,props:Zv,setup(e,{expose:t}){const n=e,r=Ie("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ye(R_,void 0),c=U(null),f=()=>{if(y(a)||n.disabled)return!0},d=Qt(n,"trigger"),h=Bn(f,Sf(d,"hover",s)),p=Bn(f,Sf(d,"hover",l)),v=Bn(f,Sf(d,"click",w=>{w.button===0&&u(w)})),g=Bn(f,Sf(d,"focus",s)),m=Bn(f,Sf(d,"focus",l)),_=Bn(f,Sf(d,"contextmenu",w=>{w.preventDefault(),u(w)})),b=Bn(f,w=>{const{code:S}=w;n.triggerKeys.includes(S)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,S)=>(O(),we(y(ySe),{id:y(i),"virtual-ref":w.virtualRef,open:y(o),"virtual-triggering":w.virtualTriggering,class:j(y(r).e("trigger")),onBlur:y(m),onClick:y(v),onContextmenu:y(_),onFocus:y(g),onMouseenter:y(h),onMouseleave:y(p),onKeydown:y(b)},{default:fe(()=>[ke(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var JSe=Ve(ZSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const QSe=ge({name:"ElTooltipContent",inheritAttrs:!1}),exe=ge({...QSe,props:br,setup(e,{expose:t}){const n=e,{selector:r}=TG(),a=Ie("tooltip"),i=U(null),o=U(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:p,onBeforeShow:v,onBeforeHide:g}=Ye(R_,void 0),m=F(()=>n.transition||`${a.namespace.value}-fade-in-linear`),_=F(()=>n.persistent);pn(()=>{o.value=!0});const b=F(()=>y(_)?!0:y(u)),w=F(()=>n.disabled?!1:y(u)),S=F(()=>n.appendTo||r.value),x=F(()=>{var P;return(P=n.style)!=null?P:{}}),C=F(()=>!y(u)),T=()=>{p()},k=()=>{if(y(s))return!0},A=Bn(k,()=>{n.enterable&&y(c)==="hover"&&d()}),M=Bn(k,()=>{y(c)==="hover"&&f()}),I=()=>{var P,R;(R=(P=i.value)==null?void 0:P.updatePopper)==null||R.call(P),v==null||v()},E=()=>{g==null||g()},L=()=>{h(),$=QA(F(()=>{var P;return(P=i.value)==null?void 0:P.popperContentRef}),()=>{if(y(s))return;y(c)!=="hover"&&f()})},N=()=>{n.virtualTriggering||f()};let $;return Ae(()=>y(u),P=>{P||$==null||$()},{flush:"post"}),Ae(()=>n.content,()=>{var P,R;(R=(P=i.value)==null?void 0:P.updatePopper)==null||R.call(P)}),t({contentRef:i}),(P,R)=>(O(),we(Hg,{disabled:!P.teleported,to:y(S)},[V(Kn,{name:y(m),onAfterLeave:T,onBeforeEnter:I,onAfterEnter:L,onBeforeLeave:E},{default:fe(()=>[y(b)?pt((O(),we(y(GSe),Dt({key:0,id:y(l),ref_key:"contentRef",ref:i},P.$attrs,{"aria-label":P.ariaLabel,"aria-hidden":y(C),"boundaries-padding":P.boundariesPadding,"fallback-placements":P.fallbackPlacements,"gpu-acceleration":P.gpuAcceleration,offset:P.offset,placement:P.placement,"popper-options":P.popperOptions,strategy:P.strategy,effect:P.effect,enterable:P.enterable,pure:P.pure,"popper-class":P.popperClass,"popper-style":[P.popperStyle,y(x)],"reference-el":P.referenceEl,"trigger-target-el":P.triggerTargetEl,visible:y(w),"z-index":P.zIndex,onMouseenter:y(A),onMouseleave:y(M),onBlur:N,onClose:y(f)}),{default:fe(()=>[o.value?be("v-if",!0):ke(P.$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"])),[[Yt,y(w)]]):be("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var txe=Ve(exe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const nxe=["innerHTML"],rxe={key:1},axe=ge({name:"ElTooltip"}),ixe=ge({...axe,props:KSe,emits:YSe,setup(e,{expose:t,emit:n}){const r=e;Q1e();const a=ki(),i=U(),o=U(),s=()=>{var m;const _=y(i);_&&((m=_.popperInstanceRef)==null||m.update())},l=U(!1),u=U(),{show:c,hide:f,hasUpdateHandler:d}=jSe({indicator:l,toggleReason:u}),{onOpen:h,onClose:p}=kG({showAfter:Qt(r,"showAfter"),hideAfter:Qt(r,"hideAfter"),autoClose:Qt(r,"autoClose"),open:c,close:f}),v=F(()=>er(r.visible)&&!d.value);$t(R_,{controlled:v,id:a,open:sh(l),trigger:Qt(r,"trigger"),onOpen:m=>{h(m)},onClose:m=>{p(m)},onToggle:m=>{y(l)?p(m):h(m)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Ae(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const g=()=>{var m,_;const b=(_=(m=o.value)==null?void 0:m.contentRef)==null?void 0:_.popperContentRef;return b&&b.contains(document.activeElement)};return FA(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:p,hide:f}),(m,_)=>(O(),we(y(n9),{ref_key:"popperRef",ref:i,role:m.role},{default:fe(()=>[V(JSe,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:fe(()=>[m.$slots.default?ke(m.$slots,"default",{key:0}):be("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),V(txe,{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:fe(()=>[ke(m.$slots,"content",{},()=>[m.rawContent?(O(),K("span",{key:0,innerHTML:m.content},null,8,nxe)):(O(),K("span",rxe,$e(m.content),1))]),m.showArrow?(O(),we(y(pSe),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):be("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 oxe=Ve(ixe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const da=At(oxe),sxe=ze({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:xe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:xe([Function,Array]),default:un},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:br.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),lxe={[Mt]:e=>dt(e),[sa]:e=>dt(e),[Tn]:e=>dt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>It(e)},uxe=["aria-expanded","aria-owns"],cxe={key:0},fxe=["id","aria-selected","onClick"],r9="ElAutocomplete",dxe=ge({name:r9,inheritAttrs:!1}),hxe=ge({...dxe,props:sxe,emits:lxe,setup(e,{expose:t,emit:n}){const r=e,a=SM(),i=uh(),o=La(),s=Ie("autocomplete"),l=U(),u=U(),c=U(),f=U();let d=!1,h=!1;const p=U([]),v=U(-1),g=U(""),m=U(!1),_=U(!1),b=U(!1),w=F(()=>s.b(String(A_()))),S=F(()=>i.style),x=F(()=>(p.value.length>0||b.value)&&m.value),C=F(()=>!r.hideLoading&&b.value),T=F(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),k=async()=>{await Xe(),x.value&&(g.value=`${l.value.$el.offsetWidth}px`)},A=()=>{v.value=-1},I=fa(async le=>{if(_.value)return;const Q=J=>{b.value=!1,!_.value&&(Ze(J)?(p.value=J,v.value=r.highlightFirstItem?0:-1):sr(r9,"autocomplete suggestions must be an array"))};if(b.value=!0,Ze(r.fetchSuggestions))Q(r.fetchSuggestions);else{const J=await r.fetchSuggestions(le,Q);Ze(J)&&Q(J)}},r.debounce),E=le=>{const Q=!!le;if(n(sa,le),n(Mt,le),_.value=!1,m.value||(m.value=Q),!r.triggerOnFocus&&!le){_.value=!0,p.value=[];return}I(le)},L=le=>{var Q;o.value||(((Q=le.target)==null?void 0:Q.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},N=le=>{n(Tn,le)},$=le=>{h?h=!1:(m.value=!0,n("focus",le),r.triggerOnFocus&&!d&&I(String(r.modelValue)))},P=le=>{setTimeout(()=>{var Q;if((Q=c.value)!=null&&Q.isFocusInsideContent()){h=!0;return}m.value&&H(),n("blur",le)})},R=()=>{m.value=!1,n(Mt,""),n("clear")},D=async()=>{x.value&&v.value>=0&&v.value<p.value.length?ue(p.value[v.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),p.value=[],v.value=-1)},B=le=>{x.value&&(le.preventDefault(),le.stopPropagation(),H())},H=()=>{m.value=!1},G=()=>{var le;(le=l.value)==null||le.focus()},X=()=>{var le;(le=l.value)==null||le.blur()},ue=async le=>{n(sa,le[r.valueKey]),n(Mt,le[r.valueKey]),n("select",le),p.value=[],v.value=-1},ie=le=>{if(!x.value||b.value)return;if(le<0){v.value=-1;return}le>=p.value.length&&(le=p.value.length-1);const Q=u.value.querySelector(`.${s.be("suggestion","wrap")}`),se=Q.querySelectorAll(`.${s.be("suggestion","list")} li`)[le],he=Q.scrollTop,{offsetTop:re,scrollHeight:z}=se;re+z>he+Q.clientHeight&&(Q.scrollTop+=z),re<he&&(Q.scrollTop-=z),v.value=le,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${v.value}`)};return QA(f,()=>{x.value&&H()}),nt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${v.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:v,activated:m,loading:b,inputRef:l,popperRef:c,suggestions:p,handleSelect:ue,handleKeyEnter:D,focus:G,blur:X,close:H,highlight:ie}),(le,Q)=>(O(),we(y(da),{ref_key:"popperRef",ref:c,visible:y(x),placement:le.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[y(s).e("popper"),le.popperClass],teleported:le.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${y(s).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:k,onHide:A},{content:fe(()=>[W("div",{ref_key:"regionRef",ref:u,class:j([y(s).b("suggestion"),y(s).is("loading",y(C))]),style:Ke({[le.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[V(y(Ks),{id:y(w),tag:"ul","wrap-class":y(s).be("suggestion","wrap"),"view-class":y(s).be("suggestion","list"),role:"listbox"},{default:fe(()=>[y(C)?(O(),K("li",cxe,[V(y(Je),{class:j(y(s).is("loading"))},{default:fe(()=>[V(y(su))]),_:1},8,["class"])])):(O(!0),K(He,{key:1},ct(p.value,(J,se)=>(O(),K("li",{id:`${y(w)}-item-${se}`,key:se,class:j({highlighted:v.value===se}),role:"option","aria-selected":v.value===se,onClick:he=>ue(J)},[ke(le.$slots,"default",{item:J},()=>[yt($e(J[le.valueKey]),1)])],10,fxe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:fe(()=>[W("div",{ref_key:"listboxRef",ref:f,class:j([y(s).b(),le.$attrs.class]),style:Ke(y(S)),role:"combobox","aria-haspopup":"listbox","aria-expanded":y(x),"aria-owns":y(w)},[V(y(jr),Dt({ref_key:"inputRef",ref:l},y(a),{clearable:le.clearable,disabled:y(o),name:le.name,"model-value":le.modelValue,onInput:E,onChange:N,onFocus:$,onBlur:P,onClear:R,onKeydown:[Q[0]||(Q[0]=Wt(st(J=>ie(v.value-1),["prevent"]),["up"])),Q[1]||(Q[1]=Wt(st(J=>ie(v.value+1),["prevent"]),["down"])),Wt(D,["enter"]),Wt(H,["tab"]),Wt(B,["esc"])],onMousedown:L}),Ls({_:2},[le.$slots.prepend?{name:"prepend",fn:fe(()=>[ke(le.$slots,"prepend")])}:void 0,le.$slots.append?{name:"append",fn:fe(()=>[ke(le.$slots,"append")])}:void 0,le.$slots.prefix?{name:"prefix",fn:fe(()=>[ke(le.$slots,"prefix")])}:void 0,le.$slots.suffix?{name:"suffix",fn:fe(()=>[ke(le.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,uxe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var pxe=Ve(hxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const vxe=At(pxe),gxe=ze({size:{type:[Number,String],values:as,default:"",validator:e=>lt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:_n},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:xe(String),default:"cover"}}),mxe={error:e=>e instanceof Event},yxe=["src","alt","srcset"],bxe=ge({name:"ElAvatar"}),_xe=ge({...bxe,props:gxe,emits:mxe,setup(e,{emit:t}){const n=e,r=Ie("avatar"),a=U(!1),i=F(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return dt(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=F(()=>{const{size:u}=n;return lt(u)?r.cssVarBlock({size:Wn(u)||""}):void 0}),s=F(()=>({objectFit:n.fit}));Ae(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(O(),K("span",{class:j(y(i)),style:Ke(y(o))},[(u.src||u.srcSet)&&!a.value?(O(),K("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Ke(y(s)),onError:l},null,44,yxe)):u.icon?(O(),we(y(Je),{key:1},{default:fe(()=>[(O(),we(Lt(u.icon)))]),_:1})):ke(u.$slots,"default",{key:2})],6))}});var wxe=Ve(_xe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const Sxe=At(wxe),xxe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Cxe={click:e=>e instanceof MouseEvent},Txe=(e,t,n)=>{const r=gn(),a=gn(),i=U(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=cH(o,300,!0);return Dn(a,"scroll",l),nt(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||sr(n,`target does not exist: ${e.target}`),a.value=r.value)}),{visible:i,handleClick:s}},a9="ElBacktop",kxe=ge({name:a9}),Axe=ge({...kxe,props:xxe,emits:Cxe,setup(e,{emit:t}){const n=e,r=Ie("backtop"),{handleClick:a,visible:i}=Txe(n,t,a9),o=F(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(O(),we(Kn,{name:`${y(r).namespace.value}-fade-in`},{default:fe(()=>[y(i)?(O(),K("div",{key:0,style:Ke(y(o)),class:j(y(r).b()),onClick:l[0]||(l[0]=st((...u)=>y(a)&&y(a)(...u),["stop"]))},[ke(s.$slots,"default",{},()=>[V(y(Je),{class:j(y(r).e("icon"))},{default:fe(()=>[V(y(Hge))]),_:1},8,["class"])])],6)):be("v-if",!0)]),_:3},8,["name"]))}});var Mxe=Ve(Axe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Pxe=At(Mxe),Exe=ze({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"}}),Ixe=["textContent"],Dxe=ge({name:"ElBadge"}),Lxe=ge({...Dxe,props:Exe,setup(e,{expose:t}){const n=e,r=Ie("badge"),a=F(()=>n.isDot?"":lt(n.value)&&lt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,o)=>(O(),K("div",{class:j(y(r).b())},[ke(i.$slots,"default"),V(Kn,{name:`${y(r).namespace.value}-zoom-in-center`,persisted:""},{default:fe(()=>[pt(W("sup",{class:j([y(r).e("content"),y(r).em("content",i.type),y(r).is("fixed",!!i.$slots.default),y(r).is("dot",i.isDot)]),textContent:$e(y(a))},null,10,Ixe),[[Yt,!i.hidden&&(y(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var $xe=Ve(Lxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const i9=At($xe),o9=Symbol("breadcrumbKey"),Rxe=ze({separator:{type:String,default:"/"},separatorIcon:{type:_n}}),Oxe=ge({name:"ElBreadcrumb"}),Nxe=ge({...Oxe,props:Rxe,setup(e){const t=e,n=Ie("breadcrumb"),r=U();return $t(o9,t),nt(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(O(),K("div",{ref_key:"breadcrumb",ref:r,class:j(y(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[ke(a.$slots,"default")],2))}});var Bxe=Ve(Nxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Fxe=ze({to:{type:xe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Vxe=ge({name:"ElBreadcrumbItem"}),zxe=ge({...Vxe,props:Fxe,setup(e){const t=e,n=St(),r=Ye(o9,void 0),a=Ie("breadcrumb"),{separator:i,separatorIcon:o}=or(r),s=n.appContext.config.globalProperties.$router,l=U(),u=()=>{!t.to||!s||(t.replace?s.replace(t.to):s.push(t.to))};return(c,f)=>(O(),K("span",{class:j(y(a).e("item"))},[W("span",{ref_key:"link",ref:l,class:j([y(a).e("inner"),y(a).is("link",!!c.to)]),role:"link",onClick:u},[ke(c.$slots,"default")],2),y(o)?(O(),we(y(Je),{key:0,class:j(y(a).e("separator"))},{default:fe(()=>[(O(),we(Lt(y(o))))]),_:1},8,["class"])):(O(),K("span",{key:1,class:j(y(a).e("separator")),role:"presentation"},$e(y(i)),3))],2))}});var s9=Ve(zxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Hxe=At(Bxe,{BreadcrumbItem:s9}),Gxe=Vn(s9),l9=Symbol("buttonGroupContextKey"),Wxe=(e,t)=>{Yo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},F(()=>e.type==="text"));const n=Ye(l9,void 0),r=I_("button"),{form:a}=ya(),i=nr(F(()=>n==null?void 0:n.size)),o=La(),s=U(),l=Tr(),u=F(()=>e.type||(n==null?void 0:n.type)||""),c=F(()=>{var h,p,v;return(v=(p=e.autoInsertSpace)!=null?p:(h=r.value)==null?void 0:h.autoInsertSpace)!=null?v:!1}),f=F(()=>{var h;const p=(h=l.default)==null?void 0:h.call(l);if(c.value&&(p==null?void 0:p.length)===1){const v=p[0];if((v==null?void 0:v.type)===lh){const g=v.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,shouldAddSpace:f,handleClick:h=>{e.nativeType==="reset"&&(a==null||a.resetFields()),t("click",h)}}},D2=["default","primary","success","warning","info","danger","text",""],Uxe=["button","submit","reset"],L2=ze({size:Rr,disabled:Boolean,type:{type:String,values:D2,default:""},icon:{type:_n},nativeType:{type:String,values:Uxe,default:"button"},loading:Boolean,loadingIcon:{type:_n,default:()=>su},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),jxe={click:e=>e instanceof MouseEvent};function Dr(e,t){Kxe(e)&&(e="100%");var n=Yxe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(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 ly(e){return Math.min(1,Math.max(0,e))}function Kxe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Yxe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function u9(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function uy(e){return e<=1?"".concat(Number(e)*100,"%"):e}function fc(e){return e.length===1?"0"+e:String(e)}function qxe(e,t,n){return{r:Dr(e,255)*255,g:Dr(t,255)*255,b:Dr(n,255)*255}}function e3(e,t,n){e=Dr(e,255),t=Dr(t,255),n=Dr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function iS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Xxe(e,t,n){var r,a,i;if(e=Dr(e,360),t=Dr(t,100),n=Dr(n,100),t===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=iS(s,o,e+1/3),a=iS(s,o,e),i=iS(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function t3(e,t,n){e=Dr(e,255),t=Dr(t,255),n=Dr(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Zxe(e,t,n){e=Dr(e,360)*6,t=Dr(t,100),n=Dr(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:u*255,g:c*255,b:f*255}}function n3(e,t,n,r){var a=[fc(Math.round(e).toString(16)),fc(Math.round(t).toString(16)),fc(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Jxe(e,t,n,r,a){var i=[fc(Math.round(e).toString(16)),fc(Math.round(t).toString(16)),fc(Math.round(n).toString(16)),fc(Qxe(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Qxe(e){return Math.round(parseFloat(e)*255).toString(16)}function r3(e){return Oa(e)/255}function Oa(e){return parseInt(e,16)}function eCe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var $2={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 tCe(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=aCe(e)),typeof e=="object"&&(cs(e.r)&&cs(e.g)&&cs(e.b)?(t=qxe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):cs(e.h)&&cs(e.s)&&cs(e.v)?(r=uy(e.s),a=uy(e.v),t=Zxe(e.h,r,a),o=!0,s="hsv"):cs(e.h)&&cs(e.s)&&cs(e.l)&&(r=uy(e.s),i=uy(e.l),t=Xxe(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=u9(n),{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:n}}var nCe="[-\\+]?\\d+%?",rCe="[-\\+]?\\d*\\.\\d+%?",Sl="(?:".concat(rCe,")|(?:").concat(nCe,")"),oS="[\\s|\\(]+(".concat(Sl,")[,|\\s]+(").concat(Sl,")[,|\\s]+(").concat(Sl,")\\s*\\)?"),sS="[\\s|\\(]+(".concat(Sl,")[,|\\s]+(").concat(Sl,")[,|\\s]+(").concat(Sl,")[,|\\s]+(").concat(Sl,")\\s*\\)?"),Bi={CSS_UNIT:new RegExp(Sl),rgb:new RegExp("rgb"+oS),rgba:new RegExp("rgba"+sS),hsl:new RegExp("hsl"+oS),hsla:new RegExp("hsla"+sS),hsv:new RegExp("hsv"+oS),hsva:new RegExp("hsva"+sS),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 aCe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($2[e])e=$2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Bi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Bi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Bi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Bi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Bi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Bi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Bi.hex8.exec(e),n?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),a:r3(n[4]),format:t?"name":"hex8"}:(n=Bi.hex6.exec(e),n?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),format:t?"name":"hex"}:(n=Bi.hex4.exec(e),n?{r:Oa(n[1]+n[1]),g:Oa(n[2]+n[2]),b:Oa(n[3]+n[3]),a:r3(n[4]+n[4]),format:t?"name":"hex8"}:(n=Bi.hex3.exec(e),n?{r:Oa(n[1]+n[1]),g:Oa(n[2]+n[2]),b:Oa(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function cs(e){return!!Bi.CSS_UNIT.exec(String(e))}var c9=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=eCe(t)),this.originalInput=t;var a=tCe(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.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=a.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(),n,r,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=u9(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=t3(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=t3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=e3(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=e3(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),n3(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),Jxe(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.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(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),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Dr(n,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(n){return Math.round(Dr(n,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="#"+n3(this.r,this.g,this.b,!1),n=0,r=Object.entries($2);n<r.length;n++){var a=r[n],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,a=this.a<1&&this.a>=0,i=!n&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||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 n=this.toHsl();return n.l+=t/100,n.l=ly(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ly(n.l),new e(n)},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 n=this.toHsl();return n.s-=t/100,n.s=ly(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ly(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},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 n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(r+o*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function tl(e,t=20){return e.mix("#141414",t).toString()}function iCe(e){const t=La(),n=Ie("button");return F(()=>{let r={};const a=e.color;if(a){const i=new c9(a),o=e.dark?i.tint(20).toString():tl(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?tl(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?tl(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?tl(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?tl(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?tl(i,80):i.tint(80).toString());else{const s=e.dark?tl(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"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?tl(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const oCe=["aria-disabled","disabled","autofocus","type"],sCe=ge({name:"ElButton"}),lCe=ge({...sCe,props:L2,emits:jxe,setup(e,{expose:t,emit:n}){const r=e,a=iCe(r),i=Ie("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=Wxe(r,n);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,h)=>(O(),K("button",{ref_key:"_ref",ref:o,class:j([y(i).b(),y(i).m(y(l)),y(i).m(y(s)),y(i).is("disabled",y(u)),y(i).is("loading",d.loading),y(i).is("plain",d.plain),y(i).is("round",d.round),y(i).is("circle",d.circle),y(i).is("text",d.text),y(i).is("link",d.link),y(i).is("has-bg",d.bg)]),"aria-disabled":y(u)||d.loading,disabled:y(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:Ke(y(a)),onClick:h[0]||(h[0]=(...p)=>y(f)&&y(f)(...p))},[d.loading?(O(),K(He,{key:0},[d.$slots.loading?ke(d.$slots,"loading",{key:0}):(O(),we(y(Je),{key:1,class:j(y(i).is("loading"))},{default:fe(()=>[(O(),we(Lt(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(O(),we(y(Je),{key:1},{default:fe(()=>[d.icon?(O(),we(Lt(d.icon),{key:0})):ke(d.$slots,"icon",{key:1})]),_:3})):be("v-if",!0),d.$slots.default?(O(),K("span",{key:2,class:j({[y(i).em("text","expand")]:y(c)})},[ke(d.$slots,"default")],2)):be("v-if",!0)],14,oCe))}});var uCe=Ve(lCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const cCe={size:L2.size,type:L2.type},fCe=ge({name:"ElButtonGroup"}),dCe=ge({...fCe,props:cCe,setup(e){const t=e;$t(l9,vt({size:Qt(t,"size"),type:Qt(t,"type")}));const n=Ie("button");return(r,a)=>(O(),K("div",{class:j(`${y(n).b("group")}`)},[ke(r.$slots,"default")],2))}});var f9=Ve(dCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Lr=At(uCe,{ButtonGroup:f9}),d9=Vn(f9);var Ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function is(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var h9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var L=["th","st","nd","rd"],N=E%100;return"["+E+(L[(N-20)%10]||L[N]||L[0])+"]"}},b=function(E,L,N){var $=String(E);return!$||$.length>=L?E:""+Array(L+1-$.length).join(N)+E},w={s:b,z:function(E){var L=-E.utcOffset(),N=Math.abs(L),$=Math.floor(N/60),P=N%60;return(L<=0?"+":"-")+b($,2,"0")+":"+b(P,2,"0")},m:function E(L,N){if(L.date()<N.date())return-E(N,L);var $=12*(N.year()-L.year())+(N.month()-L.month()),P=L.clone().add($,f),R=N-P<0,D=L.clone().add($+(R?-1:1),f);return+(-($+(N-P)/(R?P-D:D-P))||0)},a:function(E){return E<0?Math.ceil(E)||0:Math.floor(E)},p:function(E){return{M:f,y:h,w:c,d:u,D:p,h:l,m:s,s:o,ms:i,Q:d}[E]||String(E||"").toLowerCase().replace(/s$/,"")},u:function(E){return E===void 0}},S="en",x={};x[S]=_;var C=function(E){return E instanceof M},T=function E(L,N,$){var P;if(!L)return S;if(typeof L=="string"){var R=L.toLowerCase();x[R]&&(P=R),N&&(x[R]=N,P=R);var D=L.split("-");if(!P&&D.length>1)return E(D[0])}else{var B=L.name;x[B]=L,P=B}return!$&&P&&(S=P),P||!$&&S},k=function(E,L){if(C(E))return E.clone();var N=typeof L=="object"?L:{};return N.date=E,N.args=arguments,new M(N)},A=w;A.l=T,A.i=C,A.w=function(E,L){return k(E,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var M=function(){function E(N){this.$L=T(N.locale,null,!0),this.parse(N)}var L=E.prototype;return L.parse=function(N){this.$d=function($){var P=$.date,R=$.utc;if(P===null)return new Date(NaN);if(A.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var D=P.match(g);if(D){var B=D[2]-1||0,H=(D[7]||"0").substring(0,3);return R?new Date(Date.UTC(D[1],B,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],B,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(P)}(N),this.$x=N.x||{},this.init()},L.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},L.$utils=function(){return A},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(N,$){var P=k(N);return this.startOf($)<=P&&P<=this.endOf($)},L.isAfter=function(N,$){return k(N)<this.startOf($)},L.isBefore=function(N,$){return this.endOf($)<k(N)},L.$g=function(N,$,P){return A.u(N)?this[$]:this.set(P,N)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(N,$){var P=this,R=!!A.u($)||$,D=A.p(N),B=function(J,se){var he=A.w(P.$u?Date.UTC(P.$y,se,J):new Date(P.$y,se,J),P);return R?he:he.endOf(u)},H=function(J,se){return A.w(P.toDate()[J].apply(P.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(se)),P)},G=this.$W,X=this.$M,ue=this.$D,ie="set"+(this.$u?"UTC":"");switch(D){case h:return R?B(1,0):B(31,11);case f:return R?B(1,X):B(0,X+1);case c:var le=this.$locale().weekStart||0,Q=(G<le?G+7:G)-le;return B(R?ue-Q:ue+(6-Q),X);case u:case p:return H(ie+"Hours",0);case l:return H(ie+"Minutes",1);case s:return H(ie+"Seconds",2);case o:return H(ie+"Milliseconds",3);default:return this.clone()}},L.endOf=function(N){return this.startOf(N,!1)},L.$set=function(N,$){var P,R=A.p(N),D="set"+(this.$u?"UTC":""),B=(P={},P[u]=D+"Date",P[p]=D+"Date",P[f]=D+"Month",P[h]=D+"FullYear",P[l]=D+"Hours",P[s]=D+"Minutes",P[o]=D+"Seconds",P[i]=D+"Milliseconds",P)[R],H=R===u?this.$D+($-this.$W):$;if(R===f||R===h){var G=this.clone().set(p,1);G.$d[B](H),G.init(),this.$d=G.set(p,Math.min(this.$D,G.daysInMonth())).$d}else B&&this.$d[B](H);return this.init(),this},L.set=function(N,$){return this.clone().$set(N,$)},L.get=function(N){return this[A.p(N)]()},L.add=function(N,$){var P,R=this;N=Number(N);var D=A.p($),B=function(X){var ue=k(R);return A.w(ue.date(ue.date()+Math.round(X*N)),R)};if(D===f)return this.set(f,this.$M+N);if(D===h)return this.set(h,this.$y+N);if(D===u)return B(1);if(D===c)return B(7);var H=(P={},P[s]=r,P[l]=a,P[o]=n,P)[D]||1,G=this.$d.getTime()+N*H;return A.w(G,this)},L.subtract=function(N,$){return this.add(-1*N,$)},L.format=function(N){var $=this,P=this.$locale();if(!this.isValid())return P.invalidDate||v;var R=N||"YYYY-MM-DDTHH:mm:ssZ",D=A.z(this),B=this.$H,H=this.$m,G=this.$M,X=P.weekdays,ue=P.months,ie=function(se,he,re,z){return se&&(se[he]||se($,R))||re[he].slice(0,z)},le=function(se){return A.s(B%12||12,se,"0")},Q=P.meridiem||function(se,he,re){var z=se<12?"AM":"PM";return re?z.toLowerCase():z},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:A.s(G+1,2,"0"),MMM:ie(P.monthsShort,G,ue,3),MMMM:ie(ue,G),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:ie(P.weekdaysMin,this.$W,X,2),ddd:ie(P.weekdaysShort,this.$W,X,3),dddd:X[this.$W],H:String(B),HH:A.s(B,2,"0"),h:le(1),hh:le(2),a:Q(B,H,!0),A:Q(B,H,!1),m:String(H),mm:A.s(H,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:D};return R.replace(m,function(se,he){return he||J[se]||D.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(N,$,P){var R,D=A.p($),B=k(N),H=(B.utcOffset()-this.utcOffset())*r,G=this-B,X=A.m(this,B);return X=(R={},R[h]=X/12,R[f]=X,R[d]=X/3,R[c]=(G-H)/6048e5,R[u]=(G-H)/864e5,R[l]=G/a,R[s]=G/r,R[o]=G/n,R)[D]||G,P?X:A.a(X)},L.daysInMonth=function(){return this.endOf(f).$D},L.$locale=function(){return x[this.$L]},L.locale=function(N,$){if(!N)return this.$L;var P=this.clone(),R=T(N,$,!0);return R&&(P.$L=R),P},L.clone=function(){return A.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},E}(),I=M.prototype;return k.prototype=I,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",p]].forEach(function(E){I[E[1]]=function(L){return this.$g(L,E[0],E[1])}}),k.extend=function(E,L){return E.$i||(E(L,M,k),E.$i=!0),k},k.locale=T,k.isDayjs=C,k.unix=function(E){return k(1e3*E)},k.en=x[S],k.Ls=x,k.p={},k})})(h9);var hCe=h9.exports;const Ct=is(hCe);var p9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(g){this[v]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var m=g.match(/([+-]|\d\d)/g),_=60*m[1]+(+m[2]||0);return _===0?0:m[0]==="+"?-_:_}(v)}],f=function(v){var g=s[v];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(v,g){var m,_=s.meridiem;if(_){for(var b=1;b<=24;b+=1)if(v.indexOf(_(b,0,g))>-1){m=b>12;break}}else m=v===(g?"pm":"PM");return m},h={A:[o,function(v){this.afternoon=d(v,!1)}],a:[o,function(v){this.afternoon=d(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(v){var g=s.ordinal,m=v.match(/\d+/);if(this.day=m[0],g)for(var _=1;_<=31;_+=1)g(_).replace(/\[|\]/g,"")===v&&(this.day=_)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(v){var g=f("months"),m=(f("monthsShort")||g.map(function(_){return _.slice(0,3)})).indexOf(v)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[o,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function p(v){var g,m;g=v,m=s&&s.formats;for(var _=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,A,M){var I=M&&M.toUpperCase();return A||m[M]||n[M]||m[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,L,N){return L||N.slice(1)})})).match(r),b=_.length,w=0;w<b;w+=1){var S=_[w],x=h[S],C=x&&x[0],T=x&&x[1];_[w]=T?{regex:C,parser:T}:S.replace(/^\[|\]$/g,"")}return function(k){for(var A={},M=0,I=0;M<b;M+=1){var E=_[M];if(typeof E=="string")I+=E.length;else{var L=E.regex,N=E.parser,$=k.slice(I),P=L.exec($)[0];N.call(A,P),k=k.replace(P,"")}}return function(R){var D=R.afternoon;if(D!==void 0){var B=R.hours;D?B<12&&(R.hours+=12):B===12&&(R.hours=0),delete R.afternoon}}(A),A}}return function(v,g,m){m.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var _=g.prototype,b=_.parse;_.parse=function(w){var S=w.date,x=w.utc,C=w.args;this.$u=x;var T=C[1];if(typeof T=="string"){var k=C[2]===!0,A=C[3]===!0,M=k||A,I=C[2];A&&(I=C[2]),s=this.$locale(),!k&&I&&(s=m.Ls[I]),this.$d=function($,P,R){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*$);var D=p(P)($),B=D.year,H=D.month,G=D.day,X=D.hours,ue=D.minutes,ie=D.seconds,le=D.milliseconds,Q=D.zone,J=new Date,se=G||(B||H?1:J.getDate()),he=B||J.getFullYear(),re=0;B&&!H||(re=H>0?H-1:J.getMonth());var z=X||0,Y=ue||0,ee=ie||0,oe=le||0;return Q?new Date(Date.UTC(he,re,se,z,Y,ee,oe+60*Q.offset*1e3)):R?new Date(Date.UTC(he,re,se,z,Y,ee,oe)):new Date(he,re,se,z,Y,ee,oe)}catch{return new Date("")}}(S,T,x),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),M&&S!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var E=T.length,L=1;L<=E;L+=1){C[1]=T[L-1];var N=m.apply(this,C);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}L===E&&(this.$d=new Date(""))}else b.call(this,w)}}})})(p9);var pCe=p9.exports;const HM=is(pCe),a3=["hours","minutes","seconds"],R2="HH:mm:ss",Yf="YYYY-MM-DD",vCe={date:Yf,dates:Yf,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Yf} ${R2}`,monthrange:"YYYY-MM",daterange:Yf,datetimerange:`${Yf} ${R2}`},lS=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Rl=e=>Array.from(Array.from({length:e}).keys()),v9=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),g9=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),i3=function(e,t){const n=Vc(e),r=Vc(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},o3=function(e,t){const n=Ze(e),r=Ze(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>i3(a,t[i])):!n&&!r?i3(e,t):!1},s3=function(e,t,n){const r=vi(t)||t==="x"?Ct(e).locale(n):Ct(e,t).locale(n);return r.isValid()?r:void 0},l3=function(e,t,n){return vi(t)?e:t==="x"?+e:Ct(e).locale(n).format(t)},uS=(e,t)=>{var n;const r=[],a=t==null?void 0:t();for(let i=0;i<e;i++)r.push((n=a==null?void 0:a.includes(i))!=null?n:!1);return r},m9=ze({disabledHours:{type:xe(Function)},disabledMinutes:{type:xe(Function)},disabledSeconds:{type:xe(Function)}}),y9=ze({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),GM=ze({id:{type:xe([Array,String])},name:{type:xe([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:xe([String,Object]),default:ou},editable:{type:Boolean,default:!0},prefixIcon:{type:xe([String,Object]),default:""},size:Rr,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:xe(Object),default:()=>({})},modelValue:{type:xe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:xe([Date,Array])},defaultTime:{type:xe([Date,Array])},isRange:{type:Boolean,default:!1},...m9,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:xe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),gCe=["id","name","placeholder","value","disabled","readonly"],mCe=["id","name","placeholder","value","disabled","readonly"],yCe=ge({name:"Picker"}),bCe=ge({...yCe,props:GM,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,{lang:a}=jt(),i=Ie("date"),o=Ie("input"),s=Ie("range"),{form:l,formItem:u}=ya(),c=Ye("ElPopperOptions",{}),f=U(),d=U(),h=U(!1),p=U(!1),v=U(null);let g=!1,m=!1;Ae(h,ye=>{ye?Xe(()=>{ye&&(v.value=r.modelValue)}):(Z.value=null,Xe(()=>{_(r.modelValue)}))});const _=(ye,_e)=>{(_e||!o3(ye,v.value))&&(n("change",ye),r.validateEvent&&(u==null||u.validate("change").catch(Le=>void 0)))},b=ye=>{if(!o3(r.modelValue,ye)){let _e;Ze(ye)?_e=ye.map(Le=>l3(Le,r.valueFormat,a.value)):ye&&(_e=l3(ye,r.valueFormat,a.value)),n("update:modelValue",ye&&_e,a.value)}},w=ye=>{n("keydown",ye)},S=F(()=>{if(d.value){const ye=Y.value?d.value:d.value.$el;return Array.from(ye.querySelectorAll("input"))}return[]}),x=(ye,_e,Le)=>{const je=S.value;je.length&&(!Le||Le==="min"?(je[0].setSelectionRange(ye,_e),je[0].focus()):Le==="max"&&(je[1].setSelectionRange(ye,_e),je[1].focus()))},C=()=>{N(!0,!0),Xe(()=>{m=!1})},T=(ye="",_e=!1)=>{_e||(m=!0),h.value=_e;let Le;Ze(ye)?Le=ye.map(je=>je.toDate()):Le=ye&&ye.toDate(),Z.value=null,b(Le)},k=()=>{p.value=!0},A=()=>{n("visible-change",!0)},M=ye=>{(ye==null?void 0:ye.key)===tt.esc&&N(!0,!0)},I=()=>{p.value=!1,h.value=!1,m=!1,n("visible-change",!1)},E=()=>{h.value=!0},L=()=>{h.value=!1},N=(ye=!0,_e=!1)=>{m=_e;const[Le,je]=y(S);let gt=Le;!ye&&Y.value&&(gt=je),gt&&gt.focus()},$=ye=>{r.readonly||D.value||h.value||m||(h.value=!0,n("focus",ye))};let P;const R=ye=>{const _e=async()=>{setTimeout(()=>{var Le;P===_e&&(!((Le=f.value)!=null&&Le.isFocusInsideContent()&&!g)&&S.value.filter(je=>je.contains(document.activeElement)).length===0&&(ce(),h.value=!1,n("blur",ye),r.validateEvent&&(u==null||u.validate("blur").catch(je=>void 0))),g=!1)},0)};P=_e,_e()},D=F(()=>r.disabled||(l==null?void 0:l.disabled)),B=F(()=>{let ye;if(J.value?Ne.value.getDefaultValue&&(ye=Ne.value.getDefaultValue()):Ze(r.modelValue)?ye=r.modelValue.map(_e=>s3(_e,r.valueFormat,a.value)):ye=s3(r.modelValue,r.valueFormat,a.value),Ne.value.getRangeAvailableTime){const _e=Ne.value.getRangeAvailableTime(ye);Ya(_e,ye)||(ye=_e,b(Ze(ye)?ye.map(Le=>Le.toDate()):ye.toDate()))}return Ze(ye)&&ye.some(_e=>!_e)&&(ye=[]),ye}),H=F(()=>{if(!Ne.value.panelReady)return"";const ye=ae(B.value);return Ze(Z.value)?[Z.value[0]||ye&&ye[0]||"",Z.value[1]||ye&&ye[1]||""]:Z.value!==null?Z.value:!X.value&&J.value||!h.value&&J.value?"":ye?ue.value?ye.join(", "):ye:""}),G=F(()=>r.type.includes("time")),X=F(()=>r.type.startsWith("time")),ue=F(()=>r.type==="dates"),ie=F(()=>r.prefixIcon||(G.value?ZH:Ige)),le=U(!1),Q=ye=>{r.readonly||D.value||le.value&&(ye.stopPropagation(),C(),b(null),_(null,!0),le.value=!1,h.value=!1,Ne.value.handleClear&&Ne.value.handleClear())},J=F(()=>{const{modelValue:ye}=r;return!ye||Ze(ye)&&!ye.filter(Boolean).length}),se=async ye=>{var _e;r.readonly||D.value||(((_e=ye.target)==null?void 0:_e.tagName)!=="INPUT"||S.value.includes(document.activeElement))&&(h.value=!0)},he=()=>{r.readonly||D.value||!J.value&&r.clearable&&(le.value=!0)},re=()=>{le.value=!1},z=ye=>{var _e;r.readonly||D.value||(((_e=ye.touches[0].target)==null?void 0:_e.tagName)!=="INPUT"||S.value.includes(document.activeElement))&&(h.value=!0)},Y=F(()=>r.type.includes("range")),ee=nr(),oe=F(()=>{var ye,_e;return(_e=(ye=y(f))==null?void 0:ye.popperRef)==null?void 0:_e.contentRef}),ve=F(()=>{var ye;return y(Y)?y(d):(ye=y(d))==null?void 0:ye.$el});QA(ve,ye=>{const _e=y(oe),Le=y(ve);_e&&(ye.target===_e||ye.composedPath().includes(_e))||ye.target===Le||ye.composedPath().includes(Le)||(h.value=!1)});const Z=U(null),ce=()=>{if(Z.value){const ye=q(H.value);ye&&ne(ye)&&(b(Ze(ye)?ye.map(_e=>_e.toDate()):ye.toDate()),Z.value=null)}Z.value===""&&(b(null),_(null),Z.value=null)},q=ye=>ye?Ne.value.parseUserInput(ye):null,ae=ye=>ye?Ne.value.formatToString(ye):null,ne=ye=>Ne.value.isValidValue(ye),de=async ye=>{if(r.readonly||D.value)return;const{code:_e}=ye;if(w(ye),_e===tt.esc){h.value===!0&&(h.value=!1,ye.preventDefault(),ye.stopPropagation());return}if(_e===tt.down&&(Ne.value.handleFocusPicker&&(ye.preventDefault(),ye.stopPropagation()),h.value===!1&&(h.value=!0,await Xe()),Ne.value.handleFocusPicker)){Ne.value.handleFocusPicker();return}if(_e===tt.tab){g=!0;return}if(_e===tt.enter||_e===tt.numpadEnter){(Z.value===null||Z.value===""||ne(q(H.value)))&&(ce(),h.value=!1),ye.stopPropagation();return}if(Z.value){ye.stopPropagation();return}Ne.value.handleKeydownInput&&Ne.value.handleKeydownInput(ye)},me=ye=>{Z.value=ye,h.value||(h.value=!0)},pe=ye=>{const _e=ye.target;Z.value?Z.value=[_e.value,Z.value[1]]:Z.value=[_e.value,null]},Se=ye=>{const _e=ye.target;Z.value?Z.value=[Z.value[0],_e.value]:Z.value=[null,_e.value]},Pe=()=>{var ye;const _e=Z.value,Le=q(_e&&_e[0]),je=y(B);if(Le&&Le.isValid()){Z.value=[ae(Le),((ye=H.value)==null?void 0:ye[1])||null];const gt=[Le,je&&(je[1]||null)];ne(gt)&&(b(gt),Z.value=null)}},Oe=()=>{var ye;const _e=y(Z),Le=q(_e&&_e[1]),je=y(B);if(Le&&Le.isValid()){Z.value=[((ye=y(H))==null?void 0:ye[0])||null,ae(Le)];const gt=[je&&je[0],Le];ne(gt)&&(b(gt),Z.value=null)}},Ne=U({}),Te=ye=>{Ne.value[ye[0]]=ye[1],Ne.value.panelReady=!0},Me=ye=>{n("calendar-change",ye)},Ce=(ye,_e,Le)=>{n("panel-change",ye,_e,Le)};return $t("EP_PICKER_BASE",{props:r}),t({focus:N,handleFocusInput:$,handleBlurInput:R,handleOpen:E,handleClose:L,onPick:T}),(ye,_e)=>(O(),we(y(da),Dt({ref_key:"refPopper",ref:f,visible:h.value,effect:"light",pure:"",trigger:"click"},ye.$attrs,{role:"dialog",teleported:"",transition:`${y(i).namespace.value}-zoom-in-top`,"popper-class":[`${y(i).namespace.value}-picker__popper`,ye.popperClass],"popper-options":y(c),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:k,onShow:A,onHide:I}),{default:fe(()=>[y(Y)?(O(),K("div",{key:1,ref_key:"inputRef",ref:d,class:j([y(i).b("editor"),y(i).bm("editor",ye.type),y(o).e("wrapper"),y(i).is("disabled",y(D)),y(i).is("active",h.value),y(s).b("editor"),y(ee)?y(s).bm("editor",y(ee)):"",ye.$attrs.class]),style:Ke(ye.$attrs.style),onClick:$,onMouseenter:he,onMouseleave:re,onTouchstart:z,onKeydown:de},[y(ie)?(O(),we(y(Je),{key:0,class:j([y(o).e("icon"),y(s).e("icon")]),onMousedown:st(se,["prevent"]),onTouchstart:z},{default:fe(()=>[(O(),we(Lt(y(ie))))]),_:1},8,["class","onMousedown"])):be("v-if",!0),W("input",{id:ye.id&&ye.id[0],autocomplete:"off",name:ye.name&&ye.name[0],placeholder:ye.startPlaceholder,value:y(H)&&y(H)[0],disabled:y(D),readonly:!ye.editable||ye.readonly,class:j(y(s).b("input")),onMousedown:se,onInput:pe,onChange:Pe,onFocus:$,onBlur:R},null,42,gCe),ke(ye.$slots,"range-separator",{},()=>[W("span",{class:j(y(s).b("separator"))},$e(ye.rangeSeparator),3)]),W("input",{id:ye.id&&ye.id[1],autocomplete:"off",name:ye.name&&ye.name[1],placeholder:ye.endPlaceholder,value:y(H)&&y(H)[1],disabled:y(D),readonly:!ye.editable||ye.readonly,class:j(y(s).b("input")),onMousedown:se,onFocus:$,onBlur:R,onInput:Se,onChange:Oe},null,42,mCe),ye.clearIcon?(O(),we(y(Je),{key:1,class:j([y(o).e("icon"),y(s).e("close-icon"),{[y(s).e("close-icon--hidden")]:!le.value}]),onClick:Q},{default:fe(()=>[(O(),we(Lt(ye.clearIcon)))]),_:1},8,["class"])):be("v-if",!0)],38)):(O(),we(y(jr),{key:0,id:ye.id,ref_key:"inputRef",ref:d,"container-role":"combobox","model-value":y(H),name:ye.name,size:y(ee),disabled:y(D),placeholder:ye.placeholder,class:j([y(i).b("editor"),y(i).bm("editor",ye.type),ye.$attrs.class]),style:Ke(ye.$attrs.style),readonly:!ye.editable||ye.readonly||y(ue)||ye.type==="week",label:ye.label,tabindex:ye.tabindex,"validate-event":!1,onInput:me,onFocus:$,onBlur:R,onKeydown:de,onChange:ce,onMousedown:se,onMouseenter:he,onMouseleave:re,onTouchstart:z,onClick:_e[0]||(_e[0]=st(()=>{},["stop"]))},{prefix:fe(()=>[y(ie)?(O(),we(y(Je),{key:0,class:j(y(o).e("icon")),onMousedown:st(se,["prevent"]),onTouchstart:z},{default:fe(()=>[(O(),we(Lt(y(ie))))]),_:1},8,["class","onMousedown"])):be("v-if",!0)]),suffix:fe(()=>[le.value&&ye.clearIcon?(O(),we(y(Je),{key:0,class:j(`${y(o).e("icon")} clear-icon`),onClick:st(Q,["stop"])},{default:fe(()=>[(O(),we(Lt(ye.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:fe(()=>[ke(ye.$slots,"default",{visible:h.value,actualVisible:p.value,parsedValue:y(B),format:ye.format,unlinkPanels:ye.unlinkPanels,type:ye.type,defaultValue:ye.defaultValue,onPick:T,onSelectRange:x,onSetPickerOption:Te,onCalendarChange:Me,onPanelChange:Ce,onKeydown:M,onMousedown:_e[1]||(_e[1]=st(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var b9=Ve(bCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const _Ce=ze({...y9,datetimeRole:String,parsedValue:{type:xe(Object)}}),_9=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const r=(o,s,l,u)=>{const c={hour:e,minute:t,second:n};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const p=c[d];switch(d){case"minute":{h=p(f.hour(),s,u);break}case"second":{h=p(f.hour(),f.minute(),s,u);break}default:{h=p(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const v=l?0:h.length-1;f=f[d](h[v])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},cS=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},w9=(e,t,n)=>({getHoursList:(o,s)=>uS(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>uS(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>uS(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),S9=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=w9(e,t,n);return{getAvailableHours:(u,c)=>cS(r(u,c)),getAvailableMinutes:(u,c,f)=>cS(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>cS(i(u,c,f,d))}},x9=e=>{const t=U(e.parsedValue);return Ae(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},hl=new Map;let u3;Ht&&(document.addEventListener("mousedown",e=>u3=e),document.addEventListener("mouseup",e=>{for(const t of hl.values())for(const{documentHandler:n}of t)n(e,u3)}));function c3(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:oo(t.arg)&&n.push(t.arg),function(r,a){const i=t.instance.popperRef,o=r.target,s=a==null?void 0:a.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=n.length&&n.some(p=>p==null?void 0:p.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||t.value(r,a)}}const Yl={beforeMount(e,t){hl.has(e)||hl.set(e,[]),hl.get(e).push({documentHandler:c3(e,t),bindingFn:t.value})},updated(e,t){hl.has(e)||hl.set(e,[]);const n=hl.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:c3(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){hl.delete(e)}},wCe=100,SCe=600,Lb={beforeMount(e,t){const n=t.value,{interval:r=wCe,delay:a=SCe}=ft(n)?{}:n;let i,o;const s=()=>ft(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},r)},a))})}},O2="_trap-focus-children",dc=[],f3=e=>{if(dc.length===0)return;const t=dc[dc.length-1][O2];if(t.length>0&&e.code===tt.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},xCe={beforeMount(e){e[O2]=xR(e),dc.push(e),dc.length<=1&&document.addEventListener("keydown",f3)},updated(e){Xe(()=>{e[O2]=xR(e)})},unmounted(){dc.shift(),dc.length===0&&document.removeEventListener("keydown",f3)}};var d3=!1,rc,N2,B2,E0,I0,C9,D0,F2,V2,z2,T9,H2,G2,k9,A9;function _a(){if(!d3){d3=!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),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(H2=/\b(iPhone|iP[ao]d)/.exec(e),G2=/\b(iP[ao]d)/.exec(e),z2=/Android/i.exec(e),k9=/FBAN\/\w+;/i.exec(e),A9=/Mobile/i.exec(e),T9=!!/Win64/.exec(e),t){rc=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,rc&&document&&document.documentMode&&(rc=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);C9=r?parseFloat(r[1])+4:rc,N2=t[2]?parseFloat(t[2]):NaN,B2=t[3]?parseFloat(t[3]):NaN,E0=t[4]?parseFloat(t[4]):NaN,E0?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),I0=t&&t[1]?parseFloat(t[1]):NaN):I0=NaN}else rc=N2=B2=I0=E0=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);D0=a?parseFloat(a[1].replace("_",".")):!0}else D0=!1;F2=!!n[2],V2=!!n[3]}else D0=F2=V2=!1}}var W2={ie:function(){return _a()||rc},ieCompatibilityMode:function(){return _a()||C9>rc},ie64:function(){return W2.ie()&&T9},firefox:function(){return _a()||N2},opera:function(){return _a()||B2},webkit:function(){return _a()||E0},safari:function(){return W2.webkit()},chrome:function(){return _a()||I0},windows:function(){return _a()||F2},osx:function(){return _a()||D0},linux:function(){return _a()||V2},iphone:function(){return _a()||H2},mobile:function(){return _a()||H2||G2||z2||A9},nativeApp:function(){return _a()||k9},android:function(){return _a()||z2},ipad:function(){return _a()||G2}},CCe=W2,cy=!!(typeof window<"u"&&window.document&&window.document.createElement),TCe={canUseDOM:cy,canUseWorkers:typeof Worker<"u",canUseEventListeners:cy&&!!(window.addEventListener||window.attachEvent),canUseViewport:cy&&!!window.screen,isInWorker:!cy},M9=TCe,P9;M9.canUseDOM&&(P9=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function kCe(e,t){if(!M9.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&P9&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var ACe=kCe,h3=10,p3=40,v3=800;function E9(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*h3,a=n*h3,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=p3,a*=p3):(r*=v3,a*=v3)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}E9.getEventType=function(){return CCe.firefox()?"DOMMouseScroll":ACe("wheel")?"wheel":"mousewheel"};var MCe=E9;/**
* 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 PCe=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=MCe(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},ECe={beforeMount(e,t){PCe(e,t.value)}},ICe=ze({role:{type:String,required:!0},spinnerDate:{type:xe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:xe(String),default:""},...m9}),DCe=["onClick"],LCe=["onMouseenter"],$Ce=ge({__name:"basic-time-spinner",props:ICe,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Ie("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=w9(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=U(),u=U(),c=U(),f=U(),d={hours:u,minutes:c,seconds:f},h=F(()=>n.showSeconds?a3:a3.slice(0,2)),p=F(()=>{const{spinnerDate:D}=n,B=D.hour(),H=D.minute(),G=D.second();return{hours:B,minutes:H,seconds:G}}),v=F(()=>{const{hours:D,minutes:B}=y(p);return{hours:a(n.role),minutes:i(D,n.role),seconds:o(D,B,n.role)}}),g=F(()=>{const{hours:D,minutes:B,seconds:H}=y(p);return{hours:lS(D,23),minutes:lS(B,59),seconds:lS(H,59)}}),m=fa(D=>{s=!1,w(D)},200),_=D=>{if(!!!n.amPmMode)return"";const H=n.amPmMode==="A";let G=D<12?" am":" pm";return H&&(G=G.toUpperCase()),G},b=D=>{let B;switch(D){case"hours":B=[0,2];break;case"minutes":B=[3,5];break;case"seconds":B=[6,8];break}const[H,G]=B;t("select-range",H,G),l.value=D},w=D=>{C(D,y(p)[D])},S=()=>{w("hours"),w("minutes"),w("seconds")},x=D=>D.querySelector(`.${r.namespace.value}-scrollbar__wrap`),C=(D,B)=>{if(n.arrowControl)return;const H=y(d[D]);H&&H.$el&&(x(H.$el).scrollTop=Math.max(0,B*T(D)))},T=D=>{const B=y(d[D]);return(B==null?void 0:B.$el.querySelector("li").offsetHeight)||0},k=()=>{M(1)},A=()=>{M(-1)},M=D=>{l.value||b("hours");const B=l.value,H=y(p)[B],G=l.value==="hours"?24:60,X=I(B,H,D,G);E(B,X),C(B,X),Xe(()=>b(B))},I=(D,B,H,G)=>{let X=(B+H+G)%G;const ue=y(v)[D];for(;ue[X]&&X!==B;)X=(X+H+G)%G;return X},E=(D,B)=>{if(y(v)[D][B])return;const{hours:X,minutes:ue,seconds:ie}=y(p);let le;switch(D){case"hours":le=n.spinnerDate.hour(B).minute(ue).second(ie);break;case"minutes":le=n.spinnerDate.hour(X).minute(B).second(ie);break;case"seconds":le=n.spinnerDate.hour(X).minute(ue).second(B);break}t("change",le)},L=(D,{value:B,disabled:H})=>{H||(E(D,B),b(D),C(D,B))},N=D=>{s=!0,m(D);const B=Math.min(Math.round((x(y(d[D]).$el).scrollTop-($(D)*.5-10)/T(D)+3)/T(D)),D==="hours"?23:59);E(D,B)},$=D=>y(d[D]).$el.offsetHeight,P=()=>{const D=B=>{const H=y(d[B]);H&&H.$el&&(x(H.$el).onscroll=()=>{N(B)})};D("hours"),D("minutes"),D("seconds")};nt(()=>{Xe(()=>{!n.arrowControl&&P(),S(),n.role==="start"&&b("hours")})});const R=(D,B)=>{d[B].value=D};return t("set-option",[`${n.role}_scrollDown`,M]),t("set-option",[`${n.role}_emitSelectRange`,b]),Ae(()=>n.spinnerDate,()=>{s||S()}),(D,B)=>(O(),K("div",{class:j([y(r).b("spinner"),{"has-seconds":D.showSeconds}])},[D.arrowControl?be("v-if",!0):(O(!0),K(He,{key:0},ct(y(h),H=>(O(),we(y(Ks),{key:H,ref_for:!0,ref:G=>R(G,H),class:j(y(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":y(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:G=>b(H),onMousemove:G=>w(H)},{default:fe(()=>[(O(!0),K(He,null,ct(y(v)[H],(G,X)=>(O(),K("li",{key:X,class:j([y(r).be("spinner","item"),y(r).is("active",X===y(p)[H]),y(r).is("disabled",G)]),onClick:ue=>L(H,{value:X,disabled:G})},[H==="hours"?(O(),K(He,{key:0},[yt($e(("0"+(D.amPmMode?X%12||12:X)).slice(-2))+$e(_(X)),1)],64)):(O(),K(He,{key:1},[yt($e(("0"+X).slice(-2)),1)],64))],10,DCe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),D.arrowControl?(O(!0),K(He,{key:1},ct(y(h),H=>(O(),K("div",{key:H,class:j([y(r).be("spinner","wrapper"),y(r).is("arrow")]),onMouseenter:G=>b(H)},[pt((O(),we(y(Je),{class:j(["arrow-up",y(r).be("spinner","arrow")])},{default:fe(()=>[V(y(w_))]),_:1},8,["class"])),[[y(Lb),A]]),pt((O(),we(y(Je),{class:j(["arrow-down",y(r).be("spinner","arrow")])},{default:fe(()=>[V(y(iu))]),_:1},8,["class"])),[[y(Lb),k]]),W("ul",{class:j(y(r).be("spinner","list"))},[(O(!0),K(He,null,ct(y(g)[H],(G,X)=>(O(),K("li",{key:X,class:j([y(r).be("spinner","item"),y(r).is("active",G===y(p)[H]),y(r).is("disabled",y(v)[H][G])])},[typeof G=="number"?(O(),K(He,{key:0},[H==="hours"?(O(),K(He,{key:0},[yt($e(("0"+(D.amPmMode?G%12||12:G)).slice(-2))+$e(_(G)),1)],64)):(O(),K(He,{key:1},[yt($e(("0"+G).slice(-2)),1)],64))],64)):be("v-if",!0)],2))),128))],2)],42,LCe))),128)):be("v-if",!0)],2))}});var U2=Ve($Ce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const RCe=ge({__name:"panel-time-pick",props:_Ce,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Ye("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=S9(i,o,s),d=Ie("time"),{t:h,lang:p}=jt(),v=U([0,2]),g=x9(n),m=F(()=>Sr(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),_=F(()=>n.format.includes("ss")),b=F(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=R=>{const D=Ct(R).locale(p.value),B=L(D);return D.isSame(B)},S=()=>{t("pick",g.value,!1)},x=(R=!1,D=!1)=>{D||t("pick",n.parsedValue,R)},C=R=>{if(!n.visible)return;const D=L(R).millisecond(0);t("pick",D,!0)},T=(R,D)=>{t("select-range",R,D),v.value=[R,D]},k=R=>{const D=[0,3].concat(_.value?[6]:[]),B=["hours","minutes"].concat(_.value?["seconds"]:[]),G=(D.indexOf(v.value[0])+R+D.length)%D.length;M.start_emitSelectRange(B[G])},A=R=>{const D=R.code,{left:B,right:H,up:G,down:X}=tt;if([B,H].includes(D)){k(D===B?-1:1),R.preventDefault();return}if([G,X].includes(D)){const ue=D===G?-1:1;M.start_scrollDown(ue),R.preventDefault();return}},{timePickerOptions:M,onSetOption:I,getAvailableTime:E}=_9({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),L=R=>E(R,n.datetimeRole||"",!0),N=R=>R?Ct(R,n.format).locale(p.value):null,$=R=>R?R.format(n.format):null,P=()=>Ct(l).locale(p.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",$]),t("set-picker-option",["parseUserInput",N]),t("set-picker-option",["handleKeydownInput",A]),t("set-picker-option",["getRangeAvailableTime",L]),t("set-picker-option",["getDefaultValue",P]),(R,D)=>(O(),we(Kn,{name:y(m)},{default:fe(()=>[R.actualVisible||R.visible?(O(),K("div",{key:0,class:j(y(d).b("panel"))},[W("div",{class:j([y(d).be("panel","content"),{"has-seconds":y(_)}])},[V(U2,{ref:"spinner",role:R.datetimeRole||"start","arrow-control":y(a),"show-seconds":y(_),"am-pm-mode":y(b),"spinner-date":R.parsedValue,"disabled-hours":y(i),"disabled-minutes":y(o),"disabled-seconds":y(s),onChange:C,onSetOption:y(I),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),W("div",{class:j(y(d).be("panel","footer"))},[W("button",{type:"button",class:j([y(d).be("panel","btn"),"cancel"]),onClick:S},$e(y(h)("el.datepicker.cancel")),3),W("button",{type:"button",class:j([y(d).be("panel","btn"),"confirm"]),onClick:D[0]||(D[0]=B=>x())},$e(y(h)("el.datepicker.confirm")),3)],2)],2)):be("v-if",!0)]),_:1},8,["name"]))}});var $b=Ve(RCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const OCe=ze({...y9,parsedValue:{type:xe(Array)}}),NCe=["disabled"],BCe=ge({__name:"panel-time-range",props:OCe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(se,he)=>{const re=[];for(let z=se;z<=he;z++)re.push(z);return re},{t:a,lang:i}=jt(),o=Ie("time"),s=Ie("picker"),l=Ye("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,p=F(()=>n.parsedValue[0]),v=F(()=>n.parsedValue[1]),g=x9(n),m=()=>{t("pick",g.value,!1)},_=F(()=>n.format.includes("ss")),b=F(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=(se=!1)=>{t("pick",[p.value,v.value],se)},S=se=>{T(se.millisecond(0),v.value)},x=se=>{T(p.value,se.millisecond(0))},C=se=>{const he=se.map(z=>Ct(z).locale(i.value)),re=D(he);return he[0].isSame(re[0])&&he[1].isSame(re[1])},T=(se,he)=>{t("pick",[se,he],!0)},k=F(()=>p.value>v.value),A=U([0,2]),M=(se,he)=>{t("select-range",se,he,"min"),A.value=[se,he]},I=F(()=>_.value?11:8),E=(se,he)=>{t("select-range",se,he,"max");const re=y(I);A.value=[se+re,he+re]},L=se=>{const he=_.value?[0,3,6,11,14,17]:[0,3,8,11],re=["hours","minutes"].concat(_.value?["seconds"]:[]),Y=(he.indexOf(A.value[0])+se+he.length)%he.length,ee=he.length/2;Y<ee?X.start_emitSelectRange(re[Y]):X.end_emitSelectRange(re[Y-ee])},N=se=>{const he=se.code,{left:re,right:z,up:Y,down:ee}=tt;if([re,z].includes(he)){L(he===re?-1:1),se.preventDefault();return}if([Y,ee].includes(he)){const oe=he===Y?-1:1,ve=A.value[0]<I.value?"start":"end";X[`${ve}_scrollDown`](oe),se.preventDefault();return}},$=(se,he)=>{const re=c?c(se):[],z=se==="start",ee=(he||(z?v.value:p.value)).hour(),oe=z?r(ee+1,23):r(0,ee-1);return eS(re,oe)},P=(se,he,re)=>{const z=f?f(se,he):[],Y=he==="start",ee=re||(Y?v.value:p.value),oe=ee.hour();if(se!==oe)return z;const ve=ee.minute(),Z=Y?r(ve+1,59):r(0,ve-1);return eS(z,Z)},R=(se,he,re,z)=>{const Y=d?d(se,he,re):[],ee=re==="start",oe=z||(ee?v.value:p.value),ve=oe.hour(),Z=oe.minute();if(se!==ve||he!==Z)return Y;const ce=oe.second(),q=ee?r(ce+1,59):r(0,ce-1);return eS(Y,q)},D=([se,he])=>[ue(se,"start",!0,he),ue(he,"end",!1,se)],{getAvailableHours:B,getAvailableMinutes:H,getAvailableSeconds:G}=S9($,P,R),{timePickerOptions:X,getAvailableTime:ue,onSetOption:ie}=_9({getAvailableHours:B,getAvailableMinutes:H,getAvailableSeconds:G}),le=se=>se?Ze(se)?se.map(he=>Ct(he,n.format).locale(i.value)):Ct(se,n.format).locale(i.value):null,Q=se=>se?Ze(se)?se.map(he=>he.format(n.format)):se.format(n.format):null,J=()=>{if(Ze(h))return h.map(he=>Ct(he).locale(i.value));const se=Ct(h).locale(i.value);return[se,se.add(60,"m")]};return t("set-picker-option",["formatToString",Q]),t("set-picker-option",["parseUserInput",le]),t("set-picker-option",["isValidValue",C]),t("set-picker-option",["handleKeydownInput",N]),t("set-picker-option",["getDefaultValue",J]),t("set-picker-option",["getRangeAvailableTime",D]),(se,he)=>se.actualVisible?(O(),K("div",{key:0,class:j([y(o).b("range-picker"),y(s).b("panel")])},[W("div",{class:j(y(o).be("range-picker","content"))},[W("div",{class:j(y(o).be("range-picker","cell"))},[W("div",{class:j(y(o).be("range-picker","header"))},$e(y(a)("el.datepicker.startTime")),3),W("div",{class:j([y(o).be("range-picker","body"),y(o).be("panel","content"),y(o).is("arrow",y(u)),{"has-seconds":y(_)}])},[V(U2,{ref:"minSpinner",role:"start","show-seconds":y(_),"am-pm-mode":y(b),"arrow-control":y(u),"spinner-date":y(p),"disabled-hours":$,"disabled-minutes":P,"disabled-seconds":R,onChange:S,onSetOption:y(ie),onSelectRange:M},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),W("div",{class:j(y(o).be("range-picker","cell"))},[W("div",{class:j(y(o).be("range-picker","header"))},$e(y(a)("el.datepicker.endTime")),3),W("div",{class:j([y(o).be("range-picker","body"),y(o).be("panel","content"),y(o).is("arrow",y(u)),{"has-seconds":y(_)}])},[V(U2,{ref:"maxSpinner",role:"end","show-seconds":y(_),"am-pm-mode":y(b),"arrow-control":y(u),"spinner-date":y(v),"disabled-hours":$,"disabled-minutes":P,"disabled-seconds":R,onChange:x,onSetOption:y(ie),onSelectRange:E},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),W("div",{class:j(y(o).be("panel","footer"))},[W("button",{type:"button",class:j([y(o).be("panel","btn"),"cancel"]),onClick:he[0]||(he[0]=re=>m())},$e(y(a)("el.datepicker.cancel")),3),W("button",{type:"button",class:j([y(o).be("panel","btn"),"confirm"]),disabled:y(k),onClick:he[1]||(he[1]=re=>w())},$e(y(a)("el.datepicker.confirm")),11,NCe)],2)],2)):be("v-if",!0)}});var FCe=Ve(BCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Ct.extend(HM);var VCe=ge({name:"ElTimePicker",install:null,props:{...GM,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=U(),[r,a]=e.isRange?["timerange",FCe]:["time",$b],i=o=>t.emit("update:modelValue",o);return $t("ElPopperOptions",e.popperOptions),t.expose({focus:o=>{var s;(s=n.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=n.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const s=(o=e.format)!=null?o:R2;return V(b9,Dt(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>V(a,l,null)})}}});const L0=VCe;L0.install=e=>{e.component(L0.name,L0)};const zCe=L0,HCe=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Rl(t).map((r,a)=>n-(t-a-1))},GCe=e=>{const t=e.daysInMonth();return Rl(t).map((n,r)=>r+1)},WCe=e=>Rl(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),UCe=ze({selectedDay:{type:xe(Object)},range:{type:xe(Array)},date:{type:xe(Object),required:!0},hideHeader:{type:Boolean}}),jCe={pick:e=>It(e)};var I9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,p,v){var g=f.name?f:f.$locale(),m=o(g[d]),_=o(g[h]),b=m||_.map(function(S){return S.slice(0,p)});if(!v)return b;var w=g.weekStart;return b.map(function(S,x){return b[(x+(w||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,g){return v||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(I9);var KCe=I9.exports;const D9=is(KCe),YCe=(e,t)=>{Ct.extend(D9);const n=Ct.localeData().firstDayOfWeek(),{t:r,lang:a}=jt(),i=Ct().locale(a.value),o=F(()=>!!e.range&&!!e.range.length),s=F(()=>{let d=[];if(o.value){const[h,p]=e.range,v=Rl(p.date()-h.date()+1).map(_=>({text:h.date()+_,type:"current"}));let g=v.length%7;g=g===0?0:7-g;const m=Rl(g).map((_,b)=>({text:b+1,type:"next"}));d=v.concat(m)}else{const h=e.date.startOf("month").day(),p=HCe(e.date,(h-n+7)%7).map(_=>({text:_,type:"prev"})),v=GCe(e.date).map(_=>({text:_,type:"current"}));d=[...p,...v];const g=7-(d.length%7||7),m=Rl(g).map((_,b)=>({text:b+1,type:"next"}));d=d.concat(m)}return WCe(d)}),l=F(()=>{const d=n;return d===0?tS.map(h=>r(`el.datepicker.weeks.${h}`)):tS.slice(d).concat(tS.slice(0,d)).map(h=>r(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){case"prev":return e.date.startOf("month").subtract(1,"month").date(d);case"next":return e.date.startOf("month").add(1,"month").date(d);case"current":return e.date.date(d)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const p=u(d,h);t("pick",p)},getSlotData:({text:d,type:h})=>{const p=u(d,h);return{isSelected:p.isSame(e.selectedDay),type:`${h}-month`,day:p.format("YYYY-MM-DD"),date:p.toDate()}}}},qCe={key:0},XCe=["onClick"],ZCe=ge({name:"DateTable"}),JCe=ge({...ZCe,props:UCe,emits:jCe,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=YCe(r,n),f=Ie("calendar-table"),d=Ie("calendar-day"),h=({text:p,type:v})=>{const g=[v];if(v==="current"){const m=l(p,v);m.isSame(r.selectedDay,"day")&&g.push(d.is("selected")),m.isSame(i,"day")&&g.push(d.is("today"))}return g};return t({getFormattedDate:l}),(p,v)=>(O(),K("table",{class:j([y(f).b(),y(f).is("range",y(a))]),cellspacing:"0",cellpadding:"0"},[p.hideHeader?be("v-if",!0):(O(),K("thead",qCe,[(O(!0),K(He,null,ct(y(s),g=>(O(),K("th",{key:g},$e(g),1))),128))])),W("tbody",null,[(O(!0),K(He,null,ct(y(o),(g,m)=>(O(),K("tr",{key:m,class:j({[y(f).e("row")]:!0,[y(f).em("row","hide-border")]:m===0&&p.hideHeader})},[(O(!0),K(He,null,ct(g,(_,b)=>(O(),K("td",{key:b,class:j(h(_)),onClick:w=>y(u)(_)},[W("div",{class:j(y(d).b())},[ke(p.$slots,"date-cell",{data:y(c)(_)},()=>[W("span",null,$e(_.text),1)])],2)],10,XCe))),128))],2))),128))])],2))}});var g3=Ve(JCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const QCe=(e,t)=>{const n=e.endOf("month"),r=t.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[i.startOf("week"),t]]},e2e=(e,t)=>{const n=e.endOf("month"),r=e.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,i=a.endOf("month"),o=t.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[a.startOf("week"),i],[s.startOf("week"),t]]},t2e=(e,t,n)=>{const r=Tr(),{lang:a}=jt(),i=U(),o=Ct().locale(a.value),s=F({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const _=m.toDate();t(sa,_),t(Mt,_)}}),l=F(()=>{if(!e.range)return[];const m=e.range.map(w=>Ct(w).locale(a.value)),[_,b]=m;return _.isAfter(b)?[]:_.isSame(b,"month")?p(_,b):_.add(1,"month").month()!==b.month()?[]:p(_,b)}),u=F(()=>e.modelValue?Ct(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=F(()=>u.value.subtract(1,"month").date(1)),f=F(()=>u.value.add(1,"month").date(1)),d=F(()=>u.value.subtract(1,"year").date(1)),h=F(()=>u.value.add(1,"year").date(1)),p=(m,_)=>{const b=m.startOf("week"),w=_.endOf("week"),S=b.get("month"),x=w.get("month");return S===x?[[b,w]]:(S+1)%12===x?QCe(b,w):S+2===x||(S+1)%11===x?e2e(b,w):[]},v=m=>{s.value=m},g=m=>{const b={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];b.isSame(u.value,"day")||v(b)};return Yo({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},F(()=>!!r.dateCell)),{calculateValidatedDateRange:p,date:u,realSelectedDay:s,pickDay:v,selectDate:g,validatedRange:l}},n2e=e=>Ze(e)&&e.length===2&&e.every(t=>Vc(t)),r2e=ze({modelValue:{type:Date},range:{type:xe(Array),validator:n2e}}),a2e={[Mt]:e=>Vc(e),[sa]:e=>Vc(e)},i2e="ElCalendar",o2e=ge({name:i2e}),s2e=ge({...o2e,props:r2e,emits:a2e,setup(e,{expose:t,emit:n}){const r=e,a=Ie("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=t2e(r,n),{t:f}=jt(),d=F(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,p)=>(O(),K("div",{class:j(y(a).b())},[W("div",{class:j(y(a).e("header"))},[ke(h.$slots,"header",{date:y(d)},()=>[W("div",{class:j(y(a).e("title"))},$e(y(d)),3),y(c).length===0?(O(),K("div",{key:0,class:j(y(a).e("button-group"))},[V(y(d9),null,{default:fe(()=>[V(y(Lr),{size:"small",onClick:p[0]||(p[0]=v=>y(u)("prev-month"))},{default:fe(()=>[yt($e(y(f)("el.datepicker.prevMonth")),1)]),_:1}),V(y(Lr),{size:"small",onClick:p[1]||(p[1]=v=>y(u)("today"))},{default:fe(()=>[yt($e(y(f)("el.datepicker.today")),1)]),_:1}),V(y(Lr),{size:"small",onClick:p[2]||(p[2]=v=>y(u)("next-month"))},{default:fe(()=>[yt($e(y(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):be("v-if",!0)])],2),y(c).length===0?(O(),K("div",{key:0,class:j(y(a).e("body"))},[V(g3,{date:y(o),"selected-day":y(l),onPick:y(s)},Ls({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:fe(v=>[h.$slots["date-cell"]?ke(h.$slots,"date-cell",ji(Dt({key:0},v))):ke(h.$slots,"dateCell",ji(Dt({key:1},v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(O(),K("div",{key:1,class:j(y(a).e("body"))},[(O(!0),K(He,null,ct(y(c),(v,g)=>(O(),we(g3,{key:g,date:v[0],"selected-day":y(l),range:v,"hide-header":g!==0,onPick:y(s)},Ls({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:fe(m=>[h.$slots["date-cell"]?ke(h.$slots,"date-cell",ji(Dt({key:0},m))):ke(h.$slots,"dateCell",ji(Dt({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var l2e=Ve(s2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const u2e=At(l2e),c2e=ze({header:{type:String,default:""},bodyStyle:{type:xe([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),f2e=ge({name:"ElCard"}),d2e=ge({...f2e,props:c2e,setup(e){const t=Ie("card");return(n,r)=>(O(),K("div",{class:j([y(t).b(),y(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(O(),K("div",{key:0,class:j(y(t).e("header"))},[ke(n.$slots,"header",{},()=>[yt($e(n.header),1)])],2)):be("v-if",!0),W("div",{class:j(y(t).e("body")),style:Ke(n.bodyStyle)},[ke(n.$slots,"default")],6)],2))}});var h2e=Ve(d2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const p2e=At(h2e),v2e=ze({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),g2e={change:(e,t)=>[e,t].every(lt)},L9=Symbol("carouselContextKey"),m3=300,m2e=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=VG(St(),"ElCarouselItem"),o=U(-1),s=U(null),l=U(!1),u=U(),c=F(()=>e.arrow!=="never"&&!y(h)),f=F(()=>r.value.some($=>$.props.label.toString().length>0)),d=F(()=>e.type==="card"),h=F(()=>e.direction==="vertical"),p=Mc($=>{b($)},m3,{trailing:!0}),v=Mc($=>{M($)},m3);function g(){s.value&&(clearInterval(s.value),s.value=null)}function m(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval(()=>_(),e.interval))}const _=()=>{o.value<r.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function b($){if(dt($)){const D=r.value.filter(B=>B.props.name===$);D.length>0&&($=r.value.indexOf(D[0]))}if($=Number($),Number.isNaN($)||$!==Math.floor($))return;const P=r.value.length,R=o.value;$<0?o.value=e.loop?P-1:0:$>=P?o.value=e.loop?0:P-1:o.value=$,R===o.value&&w(R),L()}function w($){r.value.forEach((P,R)=>{P.translateItem(R,o.value,$)})}function S($,P){var R,D,B,H;const G=y(r),X=G.length;if(X===0||!$.states.inStage)return!1;const ue=P+1,ie=P-1,le=X-1,Q=G[le].states.active,J=G[0].states.active,se=(D=(R=G[ue])==null?void 0:R.states)==null?void 0:D.active,he=(H=(B=G[ie])==null?void 0:B.states)==null?void 0:H.active;return P===le&&J||se?"left":P===0&&Q||he?"right":!1}function x(){l.value=!0,e.pauseOnHover&&g()}function C(){l.value=!1,m()}function T($){y(h)||r.value.forEach((P,R)=>{$===S(P,R)&&(P.states.hover=!0)})}function k(){y(h)||r.value.forEach($=>{$.states.hover=!1})}function A($){o.value=$}function M($){e.trigger==="hover"&&$!==o.value&&(o.value=$)}function I(){b(o.value-1)}function E(){b(o.value+1)}function L(){g(),m()}Ae(()=>o.value,($,P)=>{w(P),P>-1&&t("change",$,P)}),Ae(()=>e.autoplay,$=>{$?m():g()}),Ae(()=>e.loop,()=>{b(o.value)}),Ae(()=>e.interval,()=>{L()}),Ae(()=>r.value,()=>{r.value.length>0&&b(e.initialIndex)});const N=gn();return nt(()=>{N.value=Yr(u.value,()=>{w()}),m()}),pn(()=>{g(),u.value&&N.value&&N.value.stop()}),$t(L9,{root:u,isCardType:d,isVertical:h,items:r,loop:e.loop,addItem:a,removeItem:i,setActiveItem:b}),{root:u,activeIndex:o,arrowDisplay:c,hasLabel:f,hover:l,isCardType:d,items:r,handleButtonEnter:T,handleButtonLeave:k,handleIndicatorClick:A,handleMouseEnter:x,handleMouseLeave:C,setActiveItem:b,prev:I,next:E,throttledArrowClick:p,throttledIndicatorHover:v}},y2e=["onMouseenter","onClick"],b2e={key:0},_2e="ElCarousel",w2e=ge({name:_2e}),S2e=ge({...w2e,props:v2e,emits:g2e,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,handleButtonEnter:f,handleButtonLeave:d,handleIndicatorClick:h,handleMouseEnter:p,handleMouseLeave:v,setActiveItem:g,prev:m,next:_,throttledArrowClick:b,throttledIndicatorHover:w}=m2e(r,n),S=Ie("carousel"),x=F(()=>{const T=[S.b(),S.m(r.direction)];return y(u)&&T.push(S.m("card")),T}),C=F(()=>{const T=[S.e("indicators"),S.em("indicators",r.direction)];return y(s)&&T.push(S.em("indicators","labels")),(r.indicatorPosition==="outside"||y(u))&&T.push(S.em("indicators","outside")),T});return t({setActiveItem:g,prev:m,next:_}),(T,k)=>(O(),K("div",{ref_key:"root",ref:a,class:j(y(x)),onMouseenter:k[6]||(k[6]=st((...A)=>y(p)&&y(p)(...A),["stop"])),onMouseleave:k[7]||(k[7]=st((...A)=>y(v)&&y(v)(...A),["stop"]))},[W("div",{class:j(y(S).e("container")),style:Ke({height:T.height})},[y(o)?(O(),we(Kn,{key:0,name:"carousel-arrow-left",persisted:""},{default:fe(()=>[pt(W("button",{type:"button",class:j([y(S).e("arrow"),y(S).em("arrow","left")]),onMouseenter:k[0]||(k[0]=A=>y(f)("left")),onMouseleave:k[1]||(k[1]=(...A)=>y(d)&&y(d)(...A)),onClick:k[2]||(k[2]=st(A=>y(b)(y(i)-1),["stop"]))},[V(y(Je),null,{default:fe(()=>[V(y(Ul))]),_:1})],34),[[Yt,(T.arrow==="always"||y(l))&&(r.loop||y(i)>0)]])]),_:1})):be("v-if",!0),y(o)?(O(),we(Kn,{key:1,name:"carousel-arrow-right",persisted:""},{default:fe(()=>[pt(W("button",{type:"button",class:j([y(S).e("arrow"),y(S).em("arrow","right")]),onMouseenter:k[3]||(k[3]=A=>y(f)("right")),onMouseleave:k[4]||(k[4]=(...A)=>y(d)&&y(d)(...A)),onClick:k[5]||(k[5]=st(A=>y(b)(y(i)+1),["stop"]))},[V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})],34),[[Yt,(T.arrow==="always"||y(l))&&(r.loop||y(i)<y(c).length-1)]])]),_:1})):be("v-if",!0),ke(T.$slots,"default")],6),T.indicatorPosition!=="none"?(O(),K("ul",{key:0,class:j(y(C))},[(O(!0),K(He,null,ct(y(c),(A,M)=>(O(),K("li",{key:M,class:j([y(S).e("indicator"),y(S).em("indicator",T.direction),y(S).is("active",M===y(i))]),onMouseenter:I=>y(w)(M),onClick:st(I=>y(h)(M),["stop"])},[W("button",{class:j(y(S).e("button"))},[y(s)?(O(),K("span",b2e,$e(A.props.label),1)):be("v-if",!0)],2)],42,y2e))),128))],2)):be("v-if",!0)],34))}});var x2e=Ve(S2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const C2e=ze({name:{type:String,default:""},label:{type:[String,Number],default:""}}),T2e=(e,t)=>{const n=Ye(L9),r=St(),a=.83,i=U(!1),o=U(0),s=U(1),l=U(!1),u=U(!1),c=U(!1),f=U(!1),{isCardType:d,isVertical:h}=n;function p(b,w,S){const x=S-1,C=w-1,T=w+1,k=S/2;return w===0&&b===x?-1:w===x&&b===0?S:b<C&&w-b>=k?S+1:b>T&&b-w>=k?-2:b}function v(b,w){var S;const x=((S=n.root.value)==null?void 0:S.offsetWidth)||0;return c.value?x*((2-a)*(b-w)+1)/4:b<w?-(1+a)*x/4:(3+a)*x/4}function g(b,w,S){const x=n.root.value;return x?((S?x.offsetHeight:x.offsetWidth)||0)*(b-w):0}const m=(b,w,S)=>{var x;const C=y(d),T=(x=n.items.value.length)!=null?x:Number.NaN,k=b===w;!C&&!Sr(S)&&(f.value=k||b===S),!k&&T>2&&n.loop&&(b=p(b,w,T));const A=y(h);l.value=k,C?(c.value=Math.round(Math.abs(b-w))<=1,o.value=v(b,w),s.value=y(l)?1:a):o.value=g(b,w,A),u.value=!0};function _(){if(n&&y(d)){const b=n.items.value.findIndex(({uid:w})=>w===r.uid);n.setActiveItem(b)}}return nt(()=>{n.addItem({props:e,states:vt({hover:i,translate:o,scale:s,active:l,ready:u,inStage:c,animating:f}),uid:r.uid,translateItem:m})}),Ja(()=>{n.removeItem(r.uid)}),{active:l,animating:f,hover:i,inStage:c,isVertical:h,translate:o,isCardType:d,scale:s,ready:u,handleItemClick:_}},k2e=ge({name:"ElCarouselItem"}),A2e=ge({...k2e,props:C2e,setup(e){const t=e,n=Ie("carousel"),{active:r,animating:a,hover:i,inStage:o,isVertical:s,translate:l,isCardType:u,scale:c,ready:f,handleItemClick:d}=T2e(t),h=F(()=>{const v=`${`translate${y(s)?"Y":"X"}`}(${y(l)}px)`,g=`scale(${y(c)})`;return{transform:[v,g].join(" ")}});return(p,v)=>pt((O(),K("div",{class:j([y(n).e("item"),y(n).is("active",y(r)),y(n).is("in-stage",y(o)),y(n).is("hover",y(i)),y(n).is("animating",y(a)),{[y(n).em("item","card")]:y(u)}]),style:Ke(y(h)),onClick:v[0]||(v[0]=(...g)=>y(d)&&y(d)(...g))},[y(u)?pt((O(),K("div",{key:0,class:j(y(n).e("mask"))},null,2)),[[Yt,!y(r)]]):be("v-if",!0),ke(p.$slots,"default")],6)),[[Yt,y(f)]])}});var $9=Ve(A2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const M2e=At(x2e,{CarouselItem:$9}),P2e=Vn($9),R9={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:Rr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},O9={[Mt]:e=>dt(e)||lt(e)||er(e),change:e=>dt(e)||lt(e)||er(e)},dh=Symbol("checkboxGroupContextKey"),E2e=({model:e,isChecked:t})=>{const n=Ye(dh,void 0),r=F(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!Sr(s)&&e.value.length>=s&&!t.value||!Sr(l)&&e.value.length<=l&&t.value});return{isDisabled:La(F(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},I2e=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ye(dh,void 0),{formItem:s}=ya(),{emit:l}=St();function u(p){var v,g;return p===e.trueLabel||p===!0?(v=e.trueLabel)!=null?v:!0:(g=e.falseLabel)!=null?g:!1}function c(p,v){l("change",u(p),v)}function f(p){if(n.value)return;const v=p.target;l("change",u(v.checked),p)}async function d(p){n.value||!r.value&&!a.value&&i.value&&(p.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Xe(),c(t.value,p)))}const h=F(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Ae(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(p=>void 0))}),{handleChange:f,onClickRoot:d}},D2e=e=>{const t=U(!1),{emit:n}=St(),r=Ye(dh,void 0),a=F(()=>Sr(r)===!1),i=U(!1);return{model:F({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&Ze(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value),i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(Mt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},L2e=(e,t,{model:n})=>{const r=Ye(dh,void 0),a=U(!1),i=F(()=>{const u=n.value;return er(u)?u:Ze(u)?It(e.label)?u.map(on).some(c=>Ya(c,e.label)):u.map(on).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=nr(F(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=nr(F(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=F(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},$2e=(e,{model:t})=>{function n(){Ze(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},N9=(e,t)=>{const{formItem:n}=ya(),{model:r,isGroup:a,isLimitExceeded:i}=D2e(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=L2e(e,t,{model:r}),{isDisabled:f}=E2e({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=uu(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:p,onClickRoot:v}=I2e(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return $2e(e,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:p,onClickRoot:v}},R2e=["tabindex","role","aria-checked"],O2e=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],N2e=["id","aria-hidden","disabled","value","name","tabindex"],B2e=ge({name:"ElCheckbox"}),F2e=ge({...B2e,props:R9,emits:O9,setup(e){const t=e,n=Tr(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=N9(t,n),h=Ie("checkbox"),p=F(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),v=F(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(O(),we(Lt(!y(u)&&y(a)?"span":"label"),{class:j(y(p)),"aria-controls":g.indeterminate?g.controls:null,onClick:y(d)},{default:fe(()=>[W("span",{class:j(y(v)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?pt((O(),K("input",{key:0,id:y(r),"onUpdate:modelValue":m[0]||(m[0]=_=>vn(c)?c.value=_:null),class:j(y(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:y(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(..._)=>y(f)&&y(f)(..._)),onFocus:m[2]||(m[2]=_=>s.value=!0),onBlur:m[3]||(m[3]=_=>s.value=!1)},null,42,O2e)),[[Sb,y(c)]]):pt((O(),K("input",{key:1,id:y(r),"onUpdate:modelValue":m[4]||(m[4]=_=>vn(c)?c.value=_:null),class:j(y(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:y(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(..._)=>y(f)&&y(f)(..._)),onFocus:m[6]||(m[6]=_=>s.value=!0),onBlur:m[7]||(m[7]=_=>s.value=!1)},null,42,N2e)),[[Sb,y(c)]]),W("span",{class:j(y(h).e("inner"))},null,2)],10,R2e),y(u)?(O(),K("span",{key:0,class:j(y(h).e("label"))},[ke(g.$slots,"default"),g.$slots.default?be("v-if",!0):(O(),K(He,{key:0},[yt($e(g.label),1)],64))],2)):be("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var V2e=Ve(F2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const z2e=["name","tabindex","disabled","true-value","false-value"],H2e=["name","tabindex","disabled","value"],G2e=ge({name:"ElCheckboxButton"}),W2e=ge({...G2e,props:R9,emits:O9,setup(e){const t=e,n=Tr(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=N9(t,n),u=Ye(dh,void 0),c=Ie("checkbox"),f=F(()=>{var h,p,v,g;const m=(p=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?p:"";return{backgroundColor:m,borderColor:m,color:(g=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=F(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,p)=>(O(),K("label",{class:j(y(d))},[h.trueLabel||h.falseLabel?pt((O(),K("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=v=>vn(s)?s.value=v:null),class:j(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:p[1]||(p[1]=(...v)=>y(l)&&y(l)(...v)),onFocus:p[2]||(p[2]=v=>r.value=!0),onBlur:p[3]||(p[3]=v=>r.value=!1)},null,42,z2e)),[[Sb,y(s)]]):pt((O(),K("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=v=>vn(s)?s.value=v:null),class:j(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),value:h.label,onChange:p[5]||(p[5]=(...v)=>y(l)&&y(l)(...v)),onFocus:p[6]||(p[6]=v=>r.value=!0),onBlur:p[7]||(p[7]=v=>r.value=!1)},null,42,H2e)),[[Sb,y(s)]]),h.$slots.default||h.label?(O(),K("span",{key:2,class:j(y(c).be("button","inner")),style:Ke(y(a)?y(f):void 0)},[ke(h.$slots,"default",{},()=>[yt($e(h.label),1)])],6)):be("v-if",!0)],2))}});var B9=Ve(W2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const U2e=ze({modelValue:{type:xe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Rr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),j2e={[Mt]:e=>Ze(e),change:e=>Ze(e)},K2e=ge({name:"ElCheckboxGroup"}),Y2e=ge({...K2e,props:U2e,emits:j2e,setup(e,{emit:t}){const n=e,r=Ie("checkbox"),{formItem:a}=ya(),{inputId:i,isLabeledByFormItem:o}=uu(n,{formItemContext:a}),s=async u=>{t(Mt,u),await Xe(),t("change",u)},l=F({get(){return n.modelValue},set(u){s(u)}});return $t(dh,{...Ss(or(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ae(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return O(),we(Lt(u.tag),{id:y(i),class:j(y(r).b("group")),role:"group","aria-label":y(o)?void 0:u.label||"checkbox-group","aria-labelledby":y(o)?(f=y(a))==null?void 0:f.labelId:void 0},{default:fe(()=>[ke(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var F9=Ve(Y2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Ai=At(V2e,{CheckboxButton:B9,CheckboxGroup:F9}),q2e=Vn(B9),V9=Vn(F9),z9=ze({size:Rr,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),X2e=ze({...z9,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),H9={[Mt]:e=>dt(e)||lt(e)||er(e),[Tn]:e=>dt(e)||lt(e)||er(e)},G9=Symbol("radioGroupKey"),W9=(e,t)=>{const n=U(),r=Ye(G9,void 0),a=F(()=>!!r),i=F({get(){return a.value?r.modelValue:e.modelValue},set(c){a.value?r.changeEvent(c):t&&t(Mt,c),n.value.checked=e.modelValue===e.label}}),o=nr(F(()=>r==null?void 0:r.size)),s=La(F(()=>r==null?void 0:r.disabled)),l=U(!1),u=F(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:r,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},Z2e=["value","name","disabled"],J2e=ge({name:"ElRadio"}),Q2e=ge({...J2e,props:X2e,emits:H9,setup(e,{emit:t}){const n=e,r=Ie("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=W9(n,t);function c(){Xe(()=>t("change",u.value))}return(f,d)=>{var h;return O(),K("label",{class:j([y(r).b(),y(r).is("disabled",y(l)),y(r).is("focus",y(o)),y(r).is("bordered",f.border),y(r).is("checked",y(u)===f.label),y(r).m(y(s))])},[W("span",{class:j([y(r).e("input"),y(r).is("disabled",y(l)),y(r).is("checked",y(u)===f.label)])},[pt(W("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=p=>vn(u)?u.value=p:null),class:j(y(r).e("original")),value:f.label,name:f.name||((h=y(i))==null?void 0:h.name),disabled:y(l),type:"radio",onFocus:d[1]||(d[1]=p=>o.value=!0),onBlur:d[2]||(d[2]=p=>o.value=!1),onChange:c},null,42,Z2e),[[Az,y(u)]]),W("span",{class:j(y(r).e("inner"))},null,2)],2),W("span",{class:j(y(r).e("label")),onKeydown:d[3]||(d[3]=st(()=>{},["stop"]))},[ke(f.$slots,"default",{},()=>[yt($e(f.label),1)])],34)],2)}}});var eTe=Ve(Q2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const tTe=ze({...z9,name:{type:String,default:""}}),nTe=["value","name","disabled"],rTe=ge({name:"ElRadioButton"}),aTe=ge({...rTe,props:tTe,setup(e){const t=e,n=Ie("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=W9(t),u=F(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,f)=>{var d;return O(),K("label",{class:j([y(n).b("button"),y(n).is("active",y(s)===c.label),y(n).is("disabled",y(o)),y(n).is("focus",y(a)),y(n).bm("button",y(i))])},[pt(W("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>vn(s)?s.value=h:null),class:j(y(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=y(l))==null?void 0:d.name),disabled:y(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1)},null,42,nTe),[[Az,y(s)]]),W("span",{class:j(y(n).be("button","inner")),style:Ke(y(s)===c.label?y(u):{}),onKeydown:f[3]||(f[3]=st(()=>{},["stop"]))},[ke(c.$slots,"default",{},()=>[yt($e(c.label),1)])],38)],2)}}});var U9=Ve(aTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const iTe=ze({id:{type:String,default:void 0},size:Rr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),oTe=H9,sTe=["id","aria-label","aria-labelledby"],lTe=ge({name:"ElRadioGroup"}),uTe=ge({...lTe,props:iTe,emits:oTe,setup(e,{emit:t}){const n=e,r=Ie("radio"),a=ki(),i=U(),{formItem:o}=ya(),{inputId:s,isLabeledByFormItem:l}=uu(n,{formItemContext:o}),u=f=>{t(Mt,f),Xe(()=>t("change",f))};nt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=F(()=>n.name||a.value);return $t(G9,vt({...or(n),changeEvent:u,name:c})),Ae(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(O(),K("div",{id:y(s),ref_key:"radioGroupRef",ref:i,class:j(y(r).b("group")),role:"radiogroup","aria-label":y(l)?void 0:f.label||"radio-group","aria-labelledby":y(l)?y(o).labelId:void 0},[ke(f.$slots,"default")],10,sTe))}});var j9=Ve(uTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const K9=At(eTe,{RadioButton:U9,RadioGroup:j9}),cTe=Vn(j9),fTe=Vn(U9);var dTe=ge({name:"NodeContent",setup(){return{ns:Ie("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return et("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const WM=Symbol(),hTe=ge({name:"ElCascaderNode",components:{ElCheckbox:Ai,ElRadio:K9,NodeContent:dTe,ElIcon:Je,Check:Qg,Loading:su,ArrowRight:oa},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Ye(WM),r=Ie("cascader-node"),a=F(()=>n.isHoverMenu),i=F(()=>n.config.multiple),o=F(()=>n.config.checkStrictly),s=F(()=>{var x;return(x=n.checkedNodes[0])==null?void 0:x.uid}),l=F(()=>e.node.isDisabled),u=F(()=>e.node.isLeaf),c=F(()=>o.value&&!u.value||!l.value),f=F(()=>h(n.expandingNode)),d=F(()=>o.value&&n.checkedNodes.some(h)),h=x=>{var C;const{level:T,uid:k}=e.node;return((C=x==null?void 0:x.pathNodes[T-1])==null?void 0:C.uid)===k},p=()=>{f.value||n.expandNode(e.node)},v=x=>{const{node:C}=e;x!==C.checked&&n.handleCheckChange(C,x)},g=()=>{n.lazyLoad(e.node,()=>{u.value||p()})},m=x=>{a.value&&(_(),!u.value&&t("expand",x))},_=()=>{const{node:x}=e;!c.value||x.loading||(x.loaded?p():g())},b=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?S(!0):_())},w=x=>{o.value?(v(x),e.node.loaded&&p()):S(x)},S=x=>{e.node.loaded?(v(x),!o.value&&p()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:m,handleExpand:_,handleClick:b,handleCheck:S,handleSelectCheck:w}}}),pTe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],vTe=W("span",null,null,-1);function gTe(e,t,n,r,a,i){const o=Fe("el-checkbox"),s=Fe("el-radio"),l=Fe("check"),u=Fe("el-icon"),c=Fe("node-content"),f=Fe("loading"),d=Fe("arrow-right");return O(),K("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:j([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[be(" prefix "),e.multiple?(O(),we(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=st(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(O(),we(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=st(()=>{},["stop"]))},{default:fe(()=>[be(`
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),vTe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(O(),we(u,{key:2,class:j(e.ns.e("prefix"))},{default:fe(()=>[V(l)]),_:1},8,["class"])):be("v-if",!0),be(" content "),V(c),be(" postfix "),e.isLeaf?be("v-if",!0):(O(),K(He,{key:3},[e.node.loading?(O(),we(u,{key:0,class:j([e.ns.is("loading"),e.ns.e("postfix")])},{default:fe(()=>[V(f)]),_:1},8,["class"])):(O(),we(u,{key:1,class:j(["arrow-right",e.ns.e("postfix")])},{default:fe(()=>[V(d)]),_:1},8,["class"]))],64))],42,pTe)}var mTe=Ve(hTe,[["render",gTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const yTe=ge({name:"ElCascaderMenu",components:{Loading:su,ElIcon:Je,ElScrollbar:Ks,ElCascaderNode:mTe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=St(),n=Ie("cascader-menu"),{t:r}=jt(),a=A_();let i=null,o=null;const s=Ye(WM),l=U(null),u=F(()=>!e.nodes.length),c=F(()=>!s.initialLoaded),f=F(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){p();const m=t.vnode.el,{left:_}=m.getBoundingClientRect(),{offsetWidth:b,offsetHeight:w}=m,S=g.clientX-_,x=i.offsetTop,C=x+i.offsetHeight;l.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${x} L${b} 0 V${x} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${C} L${b} ${w} V${C} Z" />
`}else o||(o=window.setTimeout(v,s.config.hoverThreshold))},p=()=>{o&&(clearTimeout(o),o=null)},v=()=>{l.value&&(l.value.innerHTML="",p())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:v}}});function bTe(e,t,n,r,a,i){const o=Fe("el-cascader-node"),s=Fe("loading"),l=Fe("el-icon"),u=Fe("el-scrollbar");return O(),we(u,{key:e.menuId,tag:"ul",role:"menu",class:j(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:fe(()=>{var c;return[(O(!0),K(He,null,ct(e.nodes,f=>(O(),we(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(O(),K("div",{key:0,class:j(e.ns.e("empty-text"))},[V(l,{size:"14",class:j(e.ns.is("loading"))},{default:fe(()=>[V(s)]),_:1},8,["class"]),yt(" "+$e(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(O(),K("div",{key:1,class:j(e.ns.e("empty-text"))},$e(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(O(),K("svg",{key:2,ref:"hoverZone",class:j(e.ns.e("hover-zone"))},null,2)):be("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var _Te=Ve(yTe,[["render",bTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let wTe=0;const STe=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let j2=class K2{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=wTe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=STe(this);this.level=a?0:r?r.level+1:1,this.value=t[i],this.label=t[o],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new K2(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!vi(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(ft(a)?a(t,this):!!t[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=ft(o)?o(t,this):t[o];return Sr(s)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new K2(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${Lo(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${Lo(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const Y2=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(Y2(r.children,t))),n),[]);class y3{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new j2(a,this.config));this.nodes=r,this.allNodes=Y2(r,!1),this.leafNodes=Y2(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new j2(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>Ya(a.value,t)||Ya(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>Ya(t.value,r)&&t.level===a)||null}}const Y9=ze({modelValue:{type:xe([Number,String,Array])},options:{type:xe(Array),default:()=>[]},props:{type:xe(Object),default:()=>({})}}),xTe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:un,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},CTe=e=>F(()=>({...xTe,...e.props})),b3=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},TTe=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():oH(e)&&e.click()},kTe=(e,t)=>{const n=t.slice(0),r=n.map(i=>i.uid),a=e.reduce((i,o)=>{const s=r.indexOf(o.uid);return s>-1&&(i.push(o),n.splice(s,1),r.splice(s,1)),i},[]);return a.push(...n),a},ATe=ge({name:"ElCascaderPanel",components:{ElCascaderMenu:_Te},props:{...Y9,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Mt,Tn,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Ie("cascader"),i=CTe(e);let o=null;const s=U(!0),l=U([]),u=U(null),c=U([]),f=U(null),d=U([]),h=F(()=>i.value.expandTrigger==="hover"),p=F(()=>e.renderLabel||n.default),v=()=>{const{options:I}=e,E=i.value;r=!1,o=new y3(I,E),c.value=[o.getNodes()],E.lazy&&vi(e.options)?(s.value=!1,g(void 0,L=>{L&&(o=new y3(L,E),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(I,E)=>{const L=i.value;I=I||new j2({},L,void 0,!0),I.loading=!0;const N=$=>{const P=I,R=P.root?null:P;$&&(o==null||o.appendNodes($,R)),P.loading=!1,P.loaded=!0,P.childrenData=P.childrenData||[],E&&E($)};L.lazyLoad(I,N)},m=(I,E)=>{var L;const{level:N}=I,$=c.value.slice(0,N);let P;I.isLeaf?P=I.pathNodes[N-2]:(P=I,$.push(I.children)),((L=f.value)==null?void 0:L.uid)!==(P==null?void 0:P.uid)&&(f.value=I,c.value=$,!E&&t("expand-change",(I==null?void 0:I.pathValues)||[]))},_=(I,E,L=!0)=>{const{checkStrictly:N,multiple:$}=i.value,P=d.value[0];r=!0,!$&&(P==null||P.doCheck(!1)),I.doCheck(E),C(),L&&!$&&!N&&t("close"),!L&&!$&&!N&&b(I)},b=I=>{I&&(I=I.parent,b(I),I&&m(I))},w=I=>o==null?void 0:o.getFlattedNodes(I),S=I=>{var E;return(E=w(I))==null?void 0:E.filter(L=>L.checked!==!1)},x=()=>{d.value.forEach(I=>I.doCheck(!1)),C(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},C=()=>{var I;const{checkStrictly:E,multiple:L}=i.value,N=d.value,$=S(!E),P=kTe(N,$),R=P.map(D=>D.valueByOption);d.value=P,u.value=L?R:(I=R[0])!=null?I:null},T=(I=!1,E=!1)=>{const{modelValue:L}=e,{lazy:N,multiple:$,checkStrictly:P}=i.value,R=!P;if(!(!s.value||r||!E&&Ya(L,u.value)))if(N&&!I){const B=mO($ve(Ms(L))).map(H=>o==null?void 0:o.getNodeByValue(H)).filter(H=>!!H&&!H.loaded&&!H.loading);B.length?B.forEach(H=>{g(H,()=>T(!1,E))}):T(!0,E)}else{const D=$?Ms(L):[L],B=mO(D.map(H=>o==null?void 0:o.getNodeByValue(H,R)));k(B,E),u.value=vM(L)}},k=(I,E=!0)=>{const{checkStrictly:L}=i.value,N=d.value,$=I.filter(D=>!!D&&(L||D.isLeaf)),P=o==null?void 0:o.getSameNode(f.value),R=E&&P||$[0];R?R.pathNodes.forEach(D=>m(D,!0)):f.value=null,N.forEach(D=>D.doCheck(!1)),$.forEach(D=>D.doCheck(!0)),d.value=$,Xe(A)},A=()=>{Ht&&l.value.forEach(I=>{const E=I==null?void 0:I.$el;if(E){const L=E.querySelector(`.${a.namespace.value}-scrollbar__wrap`),N=E.querySelector(`.${a.b("node")}.${a.is("active")}`)||E.querySelector(`.${a.b("node")}.in-active-path`);qH(L,N)}})},M=I=>{const E=I.target,{code:L}=I;switch(L){case tt.up:case tt.down:{I.preventDefault();const N=L===tt.up?-1:1;k0(sH(E,N,`.${a.b("node")}[tabindex="-1"]`));break}case tt.left:{I.preventDefault();const N=l.value[b3(E)-1],$=N==null?void 0:N.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);k0($);break}case tt.right:{I.preventDefault();const N=l.value[b3(E)+1],$=N==null?void 0:N.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);k0($);break}case tt.enter:TTe(E);break}};return $t(WM,vt({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:p,lazyLoad:g,expandNode:m,handleCheckChange:_})),Ae([i,()=>e.options],v,{deep:!0,immediate:!0}),Ae(()=>e.modelValue,()=>{r=!1,T()},{deep:!0}),Ae(()=>u.value,I=>{Ya(I,e.modelValue)||(t(Mt,I),t(Tn,I))}),nz(()=>l.value=[]),nt(()=>!vi(e.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:M,handleCheckChange:_,getFlattedNodes:w,getCheckedNodes:S,clearCheckedNodes:x,calculateCheckedValue:C,scrollToExpandingNode:A}}});function MTe(e,t,n,r,a,i){const o=Fe("el-cascader-menu");return O(),K("div",{class:j([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(O(!0),K(He,null,ct(e.menus,(s,l)=>(O(),we(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var $0=Ve(ATe,[["render",MTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);$0.install=e=>{e.component($0.name,$0)};const q9=$0,PTe=q9,UM=ze({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:as,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),ETe={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},ITe=ge({name:"ElTag"}),DTe=ge({...ITe,props:UM,emits:ETe,setup(e,{emit:t}){const n=e,r=nr(),a=Ie("tag"),i=F(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[a.b(),a.is("closable",f),a.m(l),a.m(r.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(O(),K("span",{key:0,class:j(y(i)),style:Ke({backgroundColor:l.color}),onClick:s},[W("span",{class:j(y(a).e("content"))},[ke(l.$slots,"default")],2),l.closable?(O(),we(y(Je),{key:0,class:j(y(a).e("close")),onClick:st(o,["stop"])},{default:fe(()=>[V(y(so))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)):(O(),we(Kn,{key:1,name:`${y(a).namespace.value}-zoom-in-center`,appear:""},{default:fe(()=>[W("span",{class:j(y(i)),style:Ke({backgroundColor:l.color}),onClick:s},[W("span",{class:j(y(a).e("content"))},[ke(l.$slots,"default")],2),l.closable?(O(),we(y(Je),{key:0,class:j(y(a).e("close")),onClick:st(o,["stop"])},{default:fe(()=>[V(y(so))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)]),_:3},8,["name"]))}});var LTe=Ve(DTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const Jv=At(LTe),$Te=ze({...Y9,size:Rr,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:xe(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:xe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:br.teleported,tagType:{...UM.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),RTe={[Mt]:e=>!!e||e===null,[Tn]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>er(e),expandChange:e=>!!e,removeTag:e=>!!e},OTe={key:0},NTe=["placeholder","onKeydown"],BTe=["onClick"],FTe="ElCascader",VTe=ge({name:FTe}),zTe=ge({...VTe,props:$Te,emits:RTe,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Ce})=>{const{modifiersData:ye,placement:_e}=Ce;["right","left","bottom","top"].includes(_e)||(ye.arrow.x=35)},requires:["arrow"]}]},i=uh();let o=0,s=0;const l=Ie("cascader"),u=Ie("input"),{t:c}=jt(),{form:f,formItem:d}=ya(),h=U(null),p=U(null),v=U(null),g=U(null),m=U(null),_=U(!1),b=U(!1),w=U(!1),S=U(!1),x=U(""),C=U(""),T=U([]),k=U([]),A=U([]),M=U(!1),I=F(()=>i.style),E=F(()=>r.disabled||(f==null?void 0:f.disabled)),L=F(()=>r.placeholder||c("el.cascader.placeholder")),N=F(()=>C.value||T.value.length>0||M.value?"":L.value),$=nr(),P=F(()=>["small"].includes($.value)?"small":"default"),R=F(()=>!!r.props.multiple),D=F(()=>!r.filterable||R.value),B=F(()=>R.value?C.value:x.value),H=F(()=>{var Ce;return((Ce=g.value)==null?void 0:Ce.checkedNodes)||[]}),G=F(()=>!r.clearable||E.value||w.value||!b.value?!1:!!H.value.length),X=F(()=>{const{showAllLevels:Ce,separator:ye}=r,_e=H.value;return _e.length?R.value?"":_e[0].calcText(Ce,ye):""}),ue=F({get(){return vM(r.modelValue)},set(Ce){n(Mt,Ce),n(Tn,Ce),r.validateEvent&&(d==null||d.validate("change").catch(ye=>void 0))}}),ie=F(()=>[l.b(),l.m($.value),l.is("disabled",E.value),i.class]),le=F(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",_.value)]),Q=F(()=>l.is("focus",_.value||S.value)),J=F(()=>{var Ce,ye;return(ye=(Ce=h.value)==null?void 0:Ce.popperRef)==null?void 0:ye.contentRef}),se=Ce=>{var ye,_e,Le;E.value||(Ce=Ce??!_.value,Ce!==_.value&&(_.value=Ce,(_e=(ye=p.value)==null?void 0:ye.input)==null||_e.setAttribute("aria-expanded",`${Ce}`),Ce?(he(),Xe((Le=g.value)==null?void 0:Le.scrollToExpandingNode)):r.filterable&&me(),n("visibleChange",Ce)))},he=()=>{Xe(()=>{var Ce;(Ce=h.value)==null||Ce.updatePopper()})},re=()=>{w.value=!1},z=Ce=>{const{showAllLevels:ye,separator:_e}=r;return{node:Ce,key:Ce.uid,text:Ce.calcText(ye,_e),hitState:!1,closable:!E.value&&!Ce.isDisabled,isCollapseTag:!1}},Y=Ce=>{var ye;const _e=Ce.node;_e.doCheck(!1),(ye=g.value)==null||ye.calculateCheckedValue(),n("removeTag",_e.valueByOption)},ee=()=>{if(!R.value)return;const Ce=H.value,ye=[],_e=[];if(Ce.forEach(Le=>_e.push(z(Le))),k.value=_e,Ce.length){const[Le,...je]=Ce,gt=je.length;ye.push(z(Le)),gt&&(r.collapseTags?ye.push({key:-1,text:`+ ${gt}`,closable:!1,isCollapseTag:!0}):je.forEach(Ee=>ye.push(z(Ee))))}T.value=ye},oe=()=>{var Ce,ye;const{filterMethod:_e,showAllLevels:Le,separator:je}=r,gt=(ye=(Ce=g.value)==null?void 0:Ce.getFlattedNodes(!r.props.checkStrictly))==null?void 0:ye.filter(Ee=>Ee.isDisabled?!1:(Ee.calcText(Le,je),_e(Ee,B.value)));R.value&&(T.value.forEach(Ee=>{Ee.hitState=!1}),k.value.forEach(Ee=>{Ee.hitState=!1})),w.value=!0,A.value=gt,he()},ve=()=>{var Ce;let ye;w.value&&m.value?ye=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):ye=(Ce=g.value)==null?void 0:Ce.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),ye&&(ye.focus(),!w.value&&ye.click())},Z=()=>{var Ce,ye;const _e=(Ce=p.value)==null?void 0:Ce.input,Le=v.value,je=(ye=m.value)==null?void 0:ye.$el;if(!(!Ht||!_e)){if(je){const gt=je.querySelector(`.${l.e("suggestion-list")}`);gt.style.minWidth=`${_e.offsetWidth}px`}if(Le){const{offsetHeight:gt}=Le,Ee=T.value.length>0?`${Math.max(gt+6,o)}px`:`${o}px`;_e.style.height=Ee,he()}}},ce=Ce=>{var ye;return(ye=g.value)==null?void 0:ye.getCheckedNodes(Ce)},q=Ce=>{he(),n("expandChange",Ce)},ae=Ce=>{var ye;const _e=(ye=Ce.target)==null?void 0:ye.value;if(Ce.type==="compositionend")M.value=!1,Xe(()=>Me(_e));else{const Le=_e[_e.length-1]||"";M.value=!T_(Le)}},ne=Ce=>{if(!M.value)switch(Ce.code){case tt.enter:se();break;case tt.down:se(!0),Xe(ve),Ce.preventDefault();break;case tt.esc:_.value===!0&&(Ce.preventDefault(),Ce.stopPropagation(),se(!1));break;case tt.tab:se(!1);break}},de=()=>{var Ce;(Ce=g.value)==null||Ce.clearCheckedNodes(),!_.value&&r.filterable&&me(),se(!1)},me=()=>{const{value:Ce}=X;x.value=Ce,C.value=Ce},pe=Ce=>{var ye,_e;const{checked:Le}=Ce;R.value?(ye=g.value)==null||ye.handleCheckChange(Ce,!Le,!1):(!Le&&((_e=g.value)==null||_e.handleCheckChange(Ce,!0,!1)),se(!1))},Se=Ce=>{const ye=Ce.target,{code:_e}=Ce;switch(_e){case tt.up:case tt.down:{const Le=_e===tt.up?-1:1;k0(sH(ye,Le,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case tt.enter:ye.click();break}},Pe=()=>{const Ce=T.value,ye=Ce[Ce.length-1];s=C.value?0:s+1,!(!ye||!s||r.collapseTags&&Ce.length>1)&&(ye.hitState?Y(ye):ye.hitState=!0)},Oe=Ce=>{const ye=Ce.target,_e=l.e("search-input");ye.className===_e&&(S.value=!0),n("focus",Ce)},Ne=Ce=>{S.value=!1,n("blur",Ce)},Te=fa(()=>{const{value:Ce}=B;if(!Ce)return;const ye=r.beforeFilter(Ce);kv(ye)?ye.then(oe).catch(()=>{}):ye!==!1?oe():re()},r.debounce),Me=(Ce,ye)=>{!_.value&&se(!0),!(ye!=null&&ye.isComposing)&&(Ce?Te():re())};return Ae(w,he),Ae([H,E],ee),Ae(T,()=>{Xe(()=>Z())}),Ae(X,me,{immediate:!0}),nt(()=>{const Ce=p.value.input,ye=Number.parseFloat(Eue(u.cssVarName("input-height"),Ce).value)-2;o=Ce.offsetHeight||ye,Yr(Ce,Z)}),t({getCheckedNodes:ce,cascaderPanelRef:g,togglePopperVisible:se,contentRef:J}),(Ce,ye)=>(O(),we(y(da),{ref_key:"tooltipRef",ref:h,visible:_.value,teleported:Ce.teleported,"popper-class":[y(l).e("dropdown"),Ce.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${y(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:re},{default:fe(()=>[pt((O(),K("div",{class:j(y(ie)),style:Ke(y(I)),onClick:ye[5]||(ye[5]=()=>se(y(D)?void 0:!0)),onKeydown:ne,onMouseenter:ye[6]||(ye[6]=_e=>b.value=!0),onMouseleave:ye[7]||(ye[7]=_e=>b.value=!1)},[V(y(jr),{ref_key:"input",ref:p,modelValue:x.value,"onUpdate:modelValue":ye[1]||(ye[1]=_e=>x.value=_e),placeholder:y(N),readonly:y(D),disabled:y(E),"validate-event":!1,size:y($),class:j(y(Q)),tabindex:y(R)&&Ce.filterable&&!y(E)?-1:void 0,onCompositionstart:ae,onCompositionupdate:ae,onCompositionend:ae,onFocus:Oe,onBlur:Ne,onInput:Me},{suffix:fe(()=>[y(G)?(O(),we(y(Je),{key:"clear",class:j([y(u).e("icon"),"icon-circle-close"]),onClick:st(de,["stop"])},{default:fe(()=>[V(y(ou))]),_:1},8,["class","onClick"])):(O(),we(y(Je),{key:"arrow-down",class:j(y(le)),onClick:ye[0]||(ye[0]=st(_e=>se(),["stop"]))},{default:fe(()=>[V(y(iu))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),y(R)?(O(),K("div",{key:0,ref_key:"tagWrapper",ref:v,class:j(y(l).e("tags"))},[(O(!0),K(He,null,ct(T.value,_e=>(O(),we(y(Jv),{key:_e.key,type:Ce.tagType,size:y(P),hit:_e.hitState,closable:_e.closable,"disable-transitions":"",onClose:Le=>Y(_e)},{default:fe(()=>[_e.isCollapseTag===!1?(O(),K("span",OTe,$e(_e.text),1)):(O(),we(y(da),{key:1,disabled:_.value||!Ce.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:fe(()=>[W("span",null,$e(_e.text),1)]),content:fe(()=>[W("div",{class:j(y(l).e("collapse-tags"))},[(O(!0),K(He,null,ct(k.value.slice(1),(Le,je)=>(O(),K("div",{key:je,class:j(y(l).e("collapse-tag"))},[(O(),we(y(Jv),{key:Le.key,class:"in-tooltip",type:Ce.tagType,size:y(P),hit:Le.hitState,closable:Le.closable,"disable-transitions":"",onClose:gt=>Y(Le)},{default:fe(()=>[W("span",null,$e(Le.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),Ce.filterable&&!y(E)?pt((O(),K("input",{key:0,"onUpdate:modelValue":ye[2]||(ye[2]=_e=>C.value=_e),type:"text",class:j(y(l).e("search-input")),placeholder:y(X)?"":y(L),onInput:ye[3]||(ye[3]=_e=>Me(C.value,_e)),onClick:ye[4]||(ye[4]=st(_e=>se(!0),["stop"])),onKeydown:Wt(Pe,["delete"]),onCompositionstart:ae,onCompositionupdate:ae,onCompositionend:ae,onFocus:Oe,onBlur:Ne},null,42,NTe)),[[jA,C.value]]):be("v-if",!0)],2)):be("v-if",!0)],38)),[[y(Yl),()=>se(!1),y(J)]])]),content:fe(()=>[pt(V(y(q9),{ref_key:"cascaderPanelRef",ref:g,modelValue:y(ue),"onUpdate:modelValue":ye[8]||(ye[8]=_e=>vn(ue)?ue.value=_e:null),options:Ce.options,props:r.props,border:!1,"render-label":Ce.$slots.default,onExpandChange:q,onClose:ye[9]||(ye[9]=_e=>Ce.$nextTick(()=>se(!1)))},null,8,["modelValue","options","props","render-label"]),[[Yt,!w.value]]),Ce.filterable?pt((O(),we(y(Ks),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:j(y(l).e("suggestion-panel")),"view-class":y(l).e("suggestion-list"),onKeydown:Se},{default:fe(()=>[A.value.length?(O(!0),K(He,{key:0},ct(A.value,_e=>(O(),K("li",{key:_e.uid,class:j([y(l).e("suggestion-item"),y(l).is("checked",_e.checked)]),tabindex:-1,onClick:Le=>pe(_e)},[W("span",null,$e(_e.text),1),_e.checked?(O(),we(y(Je),{key:0},{default:fe(()=>[V(y(Qg))]),_:1})):be("v-if",!0)],10,BTe))),128)):ke(Ce.$slots,"empty",{key:1},()=>[W("li",{class:j(y(l).e("empty-text"))},$e(y(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Yt,w.value]]):be("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var R0=Ve(zTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);R0.install=e=>{e.component(R0.name,R0)};const HTe=R0,GTe=HTe,WTe=ze({checked:{type:Boolean,default:!1}}),UTe={"update:checked":e=>er(e),[Tn]:e=>er(e)},jTe=ge({name:"ElCheckTag"}),KTe=ge({...jTe,props:WTe,emits:UTe,setup(e,{emit:t}){const n=e,r=Ie("check-tag"),a=()=>{const i=!n.checked;t(Tn,i),t("update:checked",i)};return(i,o)=>(O(),K("span",{class:j([y(r).b(),y(r).is("checked",i.checked)]),onClick:a},[ke(i.$slots,"default")],2))}});var YTe=Ve(KTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const qTe=At(YTe),X9=Symbol("rowContextKey"),XTe=["start","center","end","space-around","space-between","space-evenly"],ZTe=["top","middle","bottom"],JTe=ze({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:XTe,default:"start"},align:{type:String,values:ZTe,default:"top"}}),QTe=ge({name:"ElRow"}),eke=ge({...QTe,props:JTe,setup(e){const t=e,n=Ie("row"),r=F(()=>t.gutter);$t(X9,{gutter:r});const a=F(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=F(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(O(),we(Lt(o.tag),{class:j(y(i)),style:Ke(y(a))},{default:fe(()=>[ke(o.$slots,"default")]),_:3},8,["class","style"]))}});var tke=Ve(eke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const nke=At(tke),rke=ze({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:xe([Number,Object]),default:()=>In({})},sm:{type:xe([Number,Object]),default:()=>In({})},md:{type:xe([Number,Object]),default:()=>In({})},lg:{type:xe([Number,Object]),default:()=>In({})},xl:{type:xe([Number,Object]),default:()=>In({})}}),ake=ge({name:"ElCol"}),ike=ge({...ake,props:rke,setup(e){const t=e,{gutter:n}=Ye(X9,{gutter:F(()=>0)}),r=Ie("col"),a=F(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=F(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];lt(c)&&(u==="span"?o.push(r.b(`${t[u]}`)):c>0&&o.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{lt(t[u])?o.push(r.b(`${u}-${t[u]}`)):It(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(O(),we(Lt(o.tag),{class:j(y(i)),style:Ke(y(a))},{default:fe(()=>[ke(o.$slots,"default")]),_:3},8,["class","style"]))}});var oke=Ve(ike,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ske=At(oke),_3=e=>typeof lt(e),lke=ze({accordion:Boolean,modelValue:{type:xe([Array,String,Number]),default:()=>In([])}}),uke={[Mt]:_3,[Tn]:_3},Z9=Symbol("collapseContextKey"),cke=(e,t)=>{const n=U(Nd(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(Mt,o),t(Tn,o)},a=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const o=[...n.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),r(o)}};return Ae(()=>e.modelValue,()=>n.value=Nd(e.modelValue),{deep:!0}),$t(Z9,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},fke=()=>{const e=Ie("collapse");return{rootKls:F(()=>e.b())}},dke=ge({name:"ElCollapse"}),hke=ge({...dke,props:lke,emits:uke,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=cke(r,n),{rootKls:o}=fke();return t({activeNames:a,setActiveNames:i}),(s,l)=>(O(),K("div",{class:j(y(o)),role:"tablist","aria-multiselectable":"true"},[ke(s.$slots,"default")],2))}});var pke=Ve(hke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const vke=ge({name:"ElCollapseTransition"}),gke=ge({...vke,setup(e){const t=Ie("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,a)=>(O(),we(Kn,Dt({name:y(t).b()},oee(n)),{default:fe(()=>[ke(r.$slots,"default")]),_:3},16,["name"]))}});var O0=Ve(gke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);O0.install=e=>{e.component(O0.name,O0)};const O_=O0,mke=O_,yke=ze({title:{type:String,default:""},name:{type:xe([String,Number]),default:()=>A_()},disabled:Boolean}),bke=e=>{const t=Ye(Z9),n=U(!1),r=U(!1),a=U(A_()),i=F(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},_ke=(e,{focusing:t,isActive:n,id:r})=>{const a=Ie("collapse"),i=F(()=>[a.b("item"),a.is("active",y(n)),a.is("disabled",e.disabled)]),o=F(()=>[a.be("item","header"),a.is("active",y(n)),{focusing:y(t)&&!e.disabled}]),s=F(()=>[a.be("item","arrow"),a.is("active",y(n))]),l=F(()=>a.be("item","wrap")),u=F(()=>a.be("item","content")),c=F(()=>a.b(`content-${y(r)}`)),f=F(()=>a.b(`head-${y(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},wke=["aria-expanded","aria-controls","aria-describedby"],Ske=["id","tabindex"],xke=["id","aria-hidden","aria-labelledby"],Cke=ge({name:"ElCollapseItem"}),Tke=ge({...Cke,props:yke,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=bke(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:p,scopedHeadId:v}=_ke(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,m)=>(O(),K("div",{class:j(y(f))},[W("div",{role:"tab","aria-expanded":y(i),"aria-controls":y(p),"aria-describedby":y(p)},[W("div",{id:y(v),class:j(y(c)),role:"button",tabindex:g.disabled?-1:0,onClick:m[0]||(m[0]=(..._)=>y(s)&&y(s)(..._)),onKeypress:m[1]||(m[1]=Wt(st((..._)=>y(l)&&y(l)(..._),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(..._)=>y(o)&&y(o)(..._)),onBlur:m[3]||(m[3]=_=>r.value=!1)},[ke(g.$slots,"title",{},()=>[yt($e(g.title),1)]),V(y(Je),{class:j(y(u))},{default:fe(()=>[V(y(oa))]),_:1},8,["class"])],42,Ske)],8,wke),V(y(O_),null,{default:fe(()=>[pt(W("div",{id:y(p),class:j(y(d)),role:"tabpanel","aria-hidden":!y(i),"aria-labelledby":y(v)},[W("div",{class:j(y(h))},[ke(g.$slots,"default")],2)],10,xke),[[Yt,y(i)]])]),_:3})],2))}});var J9=Ve(Tke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const kke=At(pke,{CollapseItem:J9}),Ake=Vn(J9),Mke=ze({color:{type:xe(Object),required:!0},vertical:{type:Boolean,default:!1}});let fS=!1;function Qv(e,t){if(!Ht)return;const n=function(i){var o;(o=t.drag)==null||o.call(t,i)},r=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,fS=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;fS||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),fS=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const Pke=e=>{const t=St(),n=gn(),r=gn();function a(o){o.target!==n.value&&i(o)}function i(o){if(!r.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=eM(o);if(e.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),e.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),e.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:i,handleClick:a}},Eke=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=St(),i=Ie("color-alpha-slider"),o=U(0),s=U(0),l=U();function u(){if(!n.value||e.vertical)return 0;const _=a.vnode.el,b=e.color.get("alpha");return _?Math.round(b*(_.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const _=a.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return _?Math.round(b*(_.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:_,g:b,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${_}, ${b}, ${w}, 0) 0%, rgba(${_}, ${b}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}nt(()=>{if(!t.value||!n.value)return;const _={drag:b=>{r(b)},end:b=>{r(b)}};Qv(t.value,_),Qv(n.value,_),d()}),Ae(()=>e.color.get("alpha"),()=>d()),Ae(()=>e.color.value,()=>d());const h=F(()=>[i.b(),i.is("vertical",e.vertical)]),p=F(()=>i.e("bar")),v=F(()=>i.e("thumb")),g=F(()=>({background:l.value})),m=F(()=>({left:Wn(o.value),top:Wn(s.value)}));return{rootKls:h,barKls:p,barStyle:g,thumbKls:v,thumbStyle:m,update:d}},Ike="ElColorAlphaSlider",Dke=ge({name:Ike}),Lke=ge({...Dke,props:Mke,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:i,handleClick:o}=Pke(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=Eke(n,{bar:r,thumb:a,handleDrag:i});return t({update:d,bar:r,thumb:a}),(h,p)=>(O(),K("div",{class:j(y(s))},[W("div",{ref_key:"bar",ref:r,class:j(y(l)),style:Ke(y(u)),onClick:p[0]||(p[0]=(...v)=>y(o)&&y(o)(...v))},null,6),W("div",{ref_key:"thumb",ref:a,class:j(y(c)),style:Ke(y(f))},null,6)],2))}});var $ke=Ve(Lke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Rke=ge({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ie("color-hue-slider"),n=St(),r=U(),a=U(),i=U(0),o=U(0),s=F(()=>e.color.get("hue"));Ae(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:m}=eM(h);let _;if(e.vertical){let b=m-v.top;b=Math.min(b,v.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),_=Math.round((b-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let b=g-v.left;b=Math.min(b,v.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),_=Math.round((b-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}e.color.set("hue",_)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const p=e.color.get("hue");return h?Math.round(p*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const p=e.color.get("hue");return h?Math.round(p*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return nt(()=>{if(!a.value||!r.value)return;const h={drag:p=>{u(p)},end:p=>{u(p)}};Qv(a.value,h),Qv(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function Oke(e,t,n,r,a,i){return O(),K("div",{class:j([e.ns.b(),e.ns.is("vertical",e.vertical)])},[W("div",{ref:"bar",class:j(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),W("div",{ref:"thumb",class:j(e.ns.e("thumb")),style:Ke({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Nke=Ve(Rke,[["render",Oke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const Bke=ze({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Rr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:xe(Array)},validateEvent:{type:Boolean,default:!0}}),Fke={[Mt]:e=>dt(e)||tr(e),[Tn]:e=>dt(e)||tr(e),activeChange:e=>dt(e)||tr(e)},Q9=Symbol("colorPickerContextKey"),w3=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Vke=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},zke=function(e){return typeof e=="string"&&e.includes("%")},md=function(e,t){Vke(e)&&(e="100%");const n=zke(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},S3={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},N0=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${S3[t]||t}${S3[n]||n}`},x3=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${N0(e)}${N0(t)}${N0(n)}`},dS={A:10,B:11,C:12,D:13,E:14,F:15},_u=function(e){return e.length===2?(dS[e[0].toUpperCase()]||+e[0])*16+(dS[e[1].toUpperCase()]||+e[1]):dS[e[1].toUpperCase()]||+e[1]},Hke=function(e,t,n){t=t/100,n=n/100;let r=t;const a=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+t)/2,o=n===0?2*r/(a+r):2*t/(n+t);return{h:e,s:o*100,v:i*100}},C3=(e,t,n)=>{e=md(e,255),t=md(t,255),n=md(n,255);const r=Math.max(e,t,n),a=Math.min(e,t,n);let i;const o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:{i=(t-n)/s+(t<n?6:0);break}case t:{i=(n-e)/s+2;break}case n:{i=(e-t)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},Jh=function(e,t,n){e=md(e,360)*6,t=md(t,100),n=md(n,100);const r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class iv{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)Vt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)Vt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Jh(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,a,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=Hke(r[0],r[1],r[2]);n(a,i,o)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=C3(r[0],r[1],r[2]);n(a,i,o)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,o;r.length===3?(a=_u(r[0]+r[0]),i=_u(r[1]+r[1]),o=_u(r[2]+r[2])):(r.length===6||r.length===8)&&(a=_u(r.slice(0,2)),i=_u(r.slice(2,4)),o=_u(r.slice(4,6))),r.length===8?this._alpha=_u(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=C3(a,i,o);n(s,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=w3(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${x3(Jh(t,n,r))}${N0(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=Jh(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=w3(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=Jh(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=x3(Jh(t,n,r))}}}const Gke=ge({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ie("color-predefine"),{currentColor:n}=Ye(Q9),r=U(i(e.colors,e.color));Ae(()=>n.value,o=>{const s=new iv;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),Ka(()=>{r.value=i(e.colors,e.color)});function a(o){e.color.fromString(e.colors[o])}function i(o,s){return o.map(l=>{const u=new iv;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}}),Wke=["onClick"];function Uke(e,t,n,r,a,i){return O(),K("div",{class:j(e.ns.b())},[W("div",{class:j(e.ns.e("colors"))},[(O(!0),K(He,null,ct(e.rgbaColors,(o,s)=>(O(),K("div",{key:e.colors[s],class:j([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[W("div",{style:Ke({backgroundColor:o.value})},null,4)],10,Wke))),128))],2)],2)}var jke=Ve(Gke,[["render",Uke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Kke=ge({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ie("color-svpanel"),n=St(),r=U(0),a=U(0),i=U("hsl(0, 100%, 50%)"),o=F(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,r.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=eM(u);let p=d-f.left,v=h-f.top;p=Math.max(0,p),p=Math.min(p,f.width),v=Math.max(0,v),v=Math.min(v,f.height),a.value=p,r.value=v,e.color.set({saturation:p/f.width*100,value:100-v/f.height*100})}return Ae(()=>o.value,()=>{s()}),nt(()=>{Qv(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:t}}}),Yke=W("div",null,null,-1),qke=[Yke];function Xke(e,t,n,r,a,i){return O(),K("div",{class:j(e.ns.b()),style:Ke({backgroundColor:e.background})},[W("div",{class:j(e.ns.e("white"))},null,2),W("div",{class:j(e.ns.e("black"))},null,2),W("div",{class:j(e.ns.e("cursor")),style:Ke({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},qke,6)],6)}var Zke=Ve(Kke,[["render",Xke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Jke=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Qke=ge({name:"ElColorPicker"}),eAe=ge({...Qke,props:Bke,emits:Fke,setup(e,{expose:t,emit:n}){const r=e,{t:a}=jt(),i=Ie("color"),{formItem:o}=ya(),s=nr(),l=La(),{inputId:u,isLabeledByFormItem:c}=uu(r,{formItemContext:o}),f=U(),d=U(),h=U(),p=U();let v=!0;const g=vt(new iv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),m=U(!1),_=U(!1),b=U(""),w=F(()=>!r.modelValue&&!_.value?"transparent":k(g,r.showAlpha)),S=F(()=>!r.modelValue&&!_.value?"":g.value),x=F(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),C=F(()=>c.value?o==null?void 0:o.labelId:void 0),T=F(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function k(D,B){if(!(D instanceof iv))throw new TypeError("color should be instance of _color Class");const{r:H,g:G,b:X}=D.toRgb();return B?`rgba(${H}, ${G}, ${X}, ${D.get("alpha")/100})`:`rgb(${H}, ${G}, ${X})`}function A(D){m.value=D}const M=fa(A,100);function I(){l.value||A(!0)}function E(){M(!1),L()}function L(){Xe(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",Xe(()=>{_.value=!1}))})}function N(){l.value||M(!m.value)}function $(){g.fromString(b.value)}function P(){const D=g.value;n(Mt,D),n("change",D),r.validateEvent&&(o==null||o.validate("change").catch(B=>void 0)),M(!1),Xe(()=>{const B=new iv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(B)||L()})}function R(){M(!1),n(Mt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(D=>void 0)),L()}return nt(()=>{r.modelValue&&(b.value=S.value)}),Ae(()=>r.modelValue,D=>{D?D&&D!==g.value&&(v=!1,g.fromString(D)):_.value=!1}),Ae(()=>S.value,D=>{b.value=D,v&&n("activeChange",D),v=!0}),Ae(()=>g.value,()=>{!r.modelValue&&!_.value&&(_.value=!0)}),Ae(()=>m.value,()=>{Xe(()=>{var D,B,H;(D=f.value)==null||D.update(),(B=d.value)==null||B.update(),(H=h.value)==null||H.update()})}),$t(Q9,{currentColor:S}),t({color:g,show:I,hide:E}),(D,B)=>(O(),we(y(da),{ref_key:"popper",ref:p,visible:m.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[y(i).be("picker","panel"),y(i).b("dropdown"),D.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${y(i).namespace.value}-zoom-in-top`,persistent:""},{content:fe(()=>[pt((O(),K("div",null,[W("div",{class:j(y(i).be("dropdown","main-wrapper"))},[V(Nke,{ref_key:"hue",ref:f,class:"hue-slider",color:y(g),vertical:""},null,8,["color"]),V(Zke,{ref:"svPanel",color:y(g)},null,8,["color"])],2),D.showAlpha?(O(),we($ke,{key:0,ref_key:"alpha",ref:h,color:y(g)},null,8,["color"])):be("v-if",!0),D.predefine?(O(),we(jke,{key:1,ref:"predefine",color:y(g),colors:D.predefine},null,8,["color","colors"])):be("v-if",!0),W("div",{class:j(y(i).be("dropdown","btns"))},[W("span",{class:j(y(i).be("dropdown","value"))},[V(y(jr),{modelValue:b.value,"onUpdate:modelValue":B[0]||(B[0]=H=>b.value=H),"validate-event":!1,size:"small",onKeyup:Wt($,["enter"]),onBlur:$},null,8,["modelValue","onKeyup"])],2),V(y(Lr),{class:j(y(i).be("dropdown","link-btn")),text:"",size:"small",onClick:R},{default:fe(()=>[yt($e(y(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),V(y(Lr),{plain:"",size:"small",class:j(y(i).be("dropdown","btn")),onClick:P},{default:fe(()=>[yt($e(y(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[y(Yl),E]])]),default:fe(()=>[W("div",{id:y(u),class:j(y(T)),role:"button","aria-label":y(x),"aria-labelledby":y(C),"aria-description":y(a)("el.colorpicker.description",{color:D.modelValue||""}),tabindex:D.tabindex,onKeydown:Wt(N,["enter"])},[y(l)?(O(),K("div",{key:0,class:j(y(i).be("picker","mask"))},null,2)):be("v-if",!0),W("div",{class:j(y(i).be("picker","trigger")),onClick:N},[W("span",{class:j([y(i).be("picker","color"),y(i).is("alpha",D.showAlpha)])},[W("span",{class:j(y(i).be("picker","color-inner")),style:Ke({backgroundColor:y(w)})},[pt(V(y(Je),{class:j([y(i).be("picker","icon"),y(i).is("icon-arrow-down")])},{default:fe(()=>[V(y(iu))]),_:1},8,["class"]),[[Yt,D.modelValue||_.value]]),!D.modelValue&&!_.value?(O(),we(y(Je),{key:0,class:j([y(i).be("picker","empty"),y(i).is("icon-close")])},{default:fe(()=>[V(y(so))]),_:1},8,["class"])):be("v-if",!0)],6)],2)],2)],42,Jke)]),_:1},8,["visible","popper-class","transition"]))}});var tAe=Ve(eAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const nAe=At(tAe),rAe=ge({name:"ElContainer"}),aAe=ge({...rAe,props:{direction:{type:String}},setup(e){const t=e,n=Tr(),r=Ie("container"),a=F(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(O(),K("section",{class:j([y(r).b(),y(r).is("vertical",y(a))])},[ke(i.$slots,"default")],2))}});var iAe=Ve(aAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const oAe=ge({name:"ElAside"}),sAe=ge({...oAe,props:{width:{type:String,default:null}},setup(e){const t=e,n=Ie("aside"),r=F(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(O(),K("aside",{class:j(y(n).b()),style:Ke(y(r))},[ke(a.$slots,"default")],6))}});var eW=Ve(sAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const lAe=ge({name:"ElFooter"}),uAe=ge({...lAe,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ie("footer"),r=F(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(O(),K("footer",{class:j(y(n).b()),style:Ke(y(r))},[ke(a.$slots,"default")],6))}});var tW=Ve(uAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const cAe=ge({name:"ElHeader"}),fAe=ge({...cAe,props:{height:{type:String,default:null}},setup(e){const t=e,n=Ie("header"),r=F(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(O(),K("header",{class:j(y(n).b()),style:Ke(y(r))},[ke(a.$slots,"default")],6))}});var nW=Ve(fAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const dAe=ge({name:"ElMain"}),hAe=ge({...dAe,setup(e){const t=Ie("main");return(n,r)=>(O(),K("main",{class:j(y(t).b())},[ke(n.$slots,"default")],2))}});var rW=Ve(hAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const pAe=At(iAe,{Aside:eW,Footer:tW,Header:nW,Main:rW}),vAe=Vn(eW),gAe=Vn(tW),mAe=Vn(nW),yAe=Vn(rW);var aW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(c)}}})})(aW);var bAe=aW.exports;const _Ae=is(bAe);var iW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){var n="week",r="year";return function(a,i,o){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(r).add(1,r).date(u),f=o(this).endOf(n);if(c.isBefore(f))return 1}var d=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(iW);var wAe=iW.exports;const SAe=is(wAe);var oW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(oW);var xAe=oW.exports;const CAe=is(xAe);var sW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r,a){r.prototype.dayOfYear=function(i){var o=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(sW);var TAe=sW.exports;const kAe=is(TAe);var lW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(lW);var AAe=lW.exports;const MAe=is(AAe);var uW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ys,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(uW);var PAe=uW.exports;const EAe=is(PAe),jM=Symbol(),IAe=ze({type:{type:xe(String),default:"date"}}),DAe=["date","dates","year","month","week","range"],KM=ze({disabledDate:{type:xe(Function)},date:{type:xe(Object),required:!0},minDate:{type:xe(Object)},maxDate:{type:xe(Object)},parsedValue:{type:xe([Object,Array])},rangeState:{type:xe(Object),default:()=>({endDate:null,selecting:!1})}}),cW=ze({type:{type:xe(String),required:!0,values:Mbe}}),fW=ze({unlinkPanels:Boolean,parsedValue:{type:xe(Array)}}),dW=e=>({type:String,values:DAe,default:e}),LAe=ze({...cW,parsedValue:{type:xe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),$Ae=ze({...KM,cellClassName:{type:xe(Function)},showWeekNumber:Boolean,selectionMode:dW("date")}),q2=e=>{if(!Ze(e))return!1;const[t,n]=e;return Ct.isDayjs(t)&&Ct.isDayjs(n)&&t.isSameOrBefore(n)},hW=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(Ze(e)){let[i,o]=e.map(s=>Ct(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=Ct(e):a=Ct();return a=a.locale(t),[a,a.add(1,n)]},RAe=(e,t,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const f=t[c];for(let d=0;d<e.column;d++){let h=f[d+n];h||(h={row:c,column:d,type:"normal",inRange:!1,start:!1,end:!1});const p=c*e.column+d,v=s(p);h.dayjs=v,h.date=v.toDate(),h.timestamp=v.valueOf(),h.type="normal",h.inRange=!!(r&&v.isSameOrAfter(r,o)&&a&&v.isSameOrBefore(a,o))||!!(r&&v.isSameOrBefore(r,o)&&a&&v.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&v.isSame(a,o),h.end=r&&v.isSame(r,o)):(h.start=!!r&&v.isSame(r,o),h.end=!!a&&v.isSame(a,o)),v.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+n]=h}u==null||u(f)}},OAe=ze({cell:{type:xe(Object)}});var NAe=ge({name:"ElDatePickerCell",props:OAe,setup(e){const t=Ie("date-table-cell"),{slots:n}=Ye(jM);return()=>{const{cell:r}=e;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return V("div",{class:t.b()},[V("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const BAe=["aria-label","onMousedown"],FAe={key:0,scope:"col"},VAe=["aria-label"],zAe=["aria-current","aria-selected","tabindex"],HAe=ge({__name:"basic-date-table",props:$Ae,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=Ie("date-table"),{t:i,lang:o}=jt(),s=U(),l=U(),u=U(),c=U(),f=U([[],[],[],[],[],[]]);let d=!1;const h=r.date.$locale().weekStart||7,p=r.date.locale("en").localeData().weekdaysShort().map(G=>G.toLowerCase()),v=F(()=>h>3?7-h:-h),g=F(()=>{const G=r.date.startOf("month");return G.subtract(G.day()||7,"day")}),m=F(()=>p.concat(p).slice(h,h+7)),_=F(()=>CH(T.value).some(G=>G.isCurrent)),b=F(()=>{const G=r.date.startOf("month"),X=G.day()||7,ue=G.daysInMonth(),ie=G.subtract(1,"month").daysInMonth();return{startOfMonthDay:X,dateCountOfMonth:ue,dateCountOfLastMonth:ie}}),w=F(()=>r.selectionMode==="dates"?Ms(r.parsedValue):[]),S=(G,{count:X,rowIndex:ue,columnIndex:ie})=>{const{startOfMonthDay:le,dateCountOfMonth:Q,dateCountOfLastMonth:J}=y(b),se=y(v);if(ue>=0&&ue<=1){const he=le+se<0?7+le+se:le+se;if(ie+ue*7>=he)return G.text=X,!0;G.text=J-(he-ie%7)+1+ue*7,G.type="prev-month"}else return X<=Q?G.text=X:(G.text=X-Q,G.type="next-month"),!0;return!1},x=(G,{columnIndex:X,rowIndex:ue},ie)=>{const{disabledDate:le,cellClassName:Q}=r,J=y(w),se=S(G,{count:ie,rowIndex:ue,columnIndex:X}),he=G.dayjs.toDate();return G.selected=J.find(re=>re.valueOf()===G.dayjs.valueOf()),G.isSelected=!!G.selected,G.isCurrent=M(G),G.disabled=le==null?void 0:le(he),G.customClass=Q==null?void 0:Q(he),se},C=G=>{if(r.selectionMode==="week"){const[X,ue]=r.showWeekNumber?[1,7]:[0,6],ie=H(G[X+1]);G[X].inRange=ie,G[X].start=ie,G[ue].inRange=ie,G[ue].end=ie}},T=F(()=>{const{minDate:G,maxDate:X,rangeState:ue,showWeekNumber:ie}=r,le=v.value,Q=f.value,J="day";let se=1;if(ie)for(let he=0;he<6;he++)Q[he][0]||(Q[he][0]={type:"week",text:g.value.add(he*7+1,J).week()});return RAe({row:6,column:7},Q,{startDate:G,columnIndexOffset:ie?1:0,nextEndDate:ue.endDate||X||ue.selecting&&G||null,now:Ct().locale(y(o)).startOf(J),unit:J,relativeDateGetter:he=>g.value.add(he-le,J),setCellMetadata:(...he)=>{x(...he,se)&&(se+=1)},setRowMetadata:C}),Q});Ae(()=>r.date,async()=>{var G,X;(G=s.value)!=null&&G.contains(document.activeElement)&&(await Xe(),(X=l.value)==null||X.focus())});const k=async()=>{var G;(G=l.value)==null||G.focus()},A=(G="")=>["normal","today"].includes(G),M=G=>r.selectionMode==="date"&&A(G.type)&&I(G,r.parsedValue),I=(G,X)=>X?Ct(X).locale(o.value).isSame(r.date.date(Number(G.text)),"day"):!1,E=G=>{const X=[];return A(G.type)&&!G.disabled?(X.push("available"),G.type==="today"&&X.push("today")):X.push(G.type),M(G)&&X.push("current"),G.inRange&&(A(G.type)||r.selectionMode==="week")&&(X.push("in-range"),G.start&&X.push("start-date"),G.end&&X.push("end-date")),G.disabled&&X.push("disabled"),G.selected&&X.push("selected"),G.customClass&&X.push(G.customClass),X.join(" ")},L=(G,X)=>{const ue=G*7+(X-(r.showWeekNumber?1:0))-v.value;return g.value.add(ue,"day")},N=G=>{var X;if(!r.rangeState.selecting)return;let ue=G.target;if(ue.tagName==="SPAN"&&(ue=(X=ue.parentNode)==null?void 0:X.parentNode),ue.tagName==="DIV"&&(ue=ue.parentNode),ue.tagName!=="TD")return;const ie=ue.parentNode.rowIndex-1,le=ue.cellIndex;T.value[ie][le].disabled||(ie!==u.value||le!==c.value)&&(u.value=ie,c.value=le,n("changerange",{selecting:!0,endDate:L(ie,le)}))},$=G=>!_.value&&(G==null?void 0:G.text)===1&&G.type==="normal"||G.isCurrent,P=G=>{d||_.value||r.selectionMode!=="date"||B(G,!0)},R=G=>{G.target.closest("td")&&(d=!0)},D=G=>{G.target.closest("td")&&(d=!1)},B=(G,X=!1)=>{const ue=G.target.closest("td");if(!ue)return;const ie=ue.parentNode.rowIndex-1,le=ue.cellIndex,Q=T.value[ie][le];if(Q.disabled||Q.type==="week")return;const J=L(ie,le);if(r.selectionMode==="range")!r.rangeState.selecting||!r.minDate?(n("pick",{minDate:J,maxDate:null}),n("select",!0)):(J>=r.minDate?n("pick",{minDate:r.minDate,maxDate:J}):n("pick",{minDate:J,maxDate:r.minDate}),n("select",!1));else if(r.selectionMode==="date")n("pick",J,X);else if(r.selectionMode==="week"){const se=J.week(),he=`${J.year()}w${se}`;n("pick",{year:J.year(),week:se,value:he,date:J.startOf("week")})}else if(r.selectionMode==="dates"){const se=Q.selected?Ms(r.parsedValue).filter(he=>(he==null?void 0:he.valueOf())!==J.valueOf()):Ms(r.parsedValue).concat([J]);n("pick",se)}},H=G=>{if(r.selectionMode!=="week")return!1;let X=r.date.startOf("day");if(G.type==="prev-month"&&(X=X.subtract(1,"month")),G.type==="next-month"&&(X=X.add(1,"month")),X=X.date(Number.parseInt(G.text,10)),r.parsedValue&&!Array.isArray(r.parsedValue)){const ue=(r.parsedValue.day()-h+7)%7-1;return r.parsedValue.subtract(ue,"day").isSame(X,"day")}return!1};return t({focus:k}),(G,X)=>(O(),K("table",{role:"grid","aria-label":y(i)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:j([y(a).b(),{"is-week-mode":G.selectionMode==="week"}]),onClick:B,onMousemove:N,onMousedown:st(R,["prevent"]),onMouseup:D},[W("tbody",{ref_key:"tbodyRef",ref:s},[W("tr",null,[G.showWeekNumber?(O(),K("th",FAe,$e(y(i)("el.datepicker.week")),1)):be("v-if",!0),(O(!0),K(He,null,ct(y(m),(ue,ie)=>(O(),K("th",{key:ie,scope:"col","aria-label":y(i)("el.datepicker.weeksFull."+ue)},$e(y(i)("el.datepicker.weeks."+ue)),9,VAe))),128))]),(O(!0),K(He,null,ct(y(T),(ue,ie)=>(O(),K("tr",{key:ie,class:j([y(a).e("row"),{current:H(ue[1])}])},[(O(!0),K(He,null,ct(ue,(le,Q)=>(O(),K("td",{key:`${ie}.${Q}`,ref_for:!0,ref:J=>$(le)&&(l.value=J),class:j(E(le)),"aria-current":le.isCurrent?"date":void 0,"aria-selected":le.isCurrent,tabindex:$(le)?0:-1,onFocus:P},[V(y(NAe),{cell:le},null,8,["cell"])],42,zAe))),128))],2))),128))],512)],42,BAe))}});var X2=Ve(HAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const GAe=ze({...KM,selectionMode:dW("month")}),WAe=["aria-label"],UAe=["aria-selected","aria-label","tabindex","onKeydown"],jAe={class:"cell"},KAe=ge({__name:"basic-month-table",props:GAe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(w,S,x)=>{const C=Ct().locale(x).startOf("month").month(S).year(w),T=C.daysInMonth();return Rl(T).map(k=>C.add(k,"day").toDate())},i=Ie("month-table"),{t:o,lang:s}=jt(),l=U(),u=U(),c=U(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=U([[],[],[]]),d=U(),h=U(),p=F(()=>{var w,S;const x=f.value,C=Ct().locale(s.value).startOf("month");for(let T=0;T<3;T++){const k=x[T];for(let A=0;A<4;A++){const M=k[A]||(k[A]={row:T,column:A,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});M.type="normal";const I=T*4+A,E=r.date.startOf("year").month(I),L=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;M.inRange=!!(r.minDate&&E.isSameOrAfter(r.minDate,"month")&&L&&E.isSameOrBefore(L,"month"))||!!(r.minDate&&E.isSameOrBefore(r.minDate,"month")&&L&&E.isSameOrAfter(L,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(L)?(M.start=!!(L&&E.isSame(L,"month")),M.end=r.minDate&&E.isSame(r.minDate,"month")):(M.start=!!(r.minDate&&E.isSame(r.minDate,"month")),M.end=!!(L&&E.isSame(L,"month"))),C.isSame(E)&&(M.type="today"),M.text=I,M.disabled=((S=r.disabledDate)==null?void 0:S.call(r,E.toDate()))||!1}}return x}),v=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const S={},x=r.date.year(),C=new Date,T=w.text;return S.disabled=r.disabledDate?a(x,T,s.value).every(r.disabledDate):!1,S.current=Ms(r.parsedValue).findIndex(k=>Ct.isDayjs(k)&&k.year()===x&&k.month()===T)>=0,S.today=C.getFullYear()===x&&C.getMonth()===T,w.inRange&&(S["in-range"]=!0,w.start&&(S["start-date"]=!0),w.end&&(S["end-date"]=!0)),S},m=w=>{const S=r.date.year(),x=w.text;return Ms(r.date).findIndex(C=>C.year()===S&&C.month()===x)>=0},_=w=>{var S;if(!r.rangeState.selecting)return;let x=w.target;if(x.tagName==="A"&&(x=(S=x.parentNode)==null?void 0:S.parentNode),x.tagName==="DIV"&&(x=x.parentNode),x.tagName!=="TD")return;const C=x.parentNode.rowIndex,T=x.cellIndex;p.value[C][T].disabled||(C!==d.value||T!==h.value)&&(d.value=C,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(C*4+T)}))},b=w=>{var S;const x=(S=w.target)==null?void 0:S.closest("td");if((x==null?void 0:x.tagName)!=="TD"||Ji(x,"disabled"))return;const C=x.cellIndex,k=x.parentNode.rowIndex*4+C,A=r.date.startOf("year").month(k);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&A>=r.minDate?n("pick",{minDate:r.minDate,maxDate:A}):n("pick",{minDate:A,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:A,maxDate:null}),n("select",!0)):n("pick",k)};return Ae(()=>r.date,async()=>{var w,S;(w=l.value)!=null&&w.contains(document.activeElement)&&(await Xe(),(S=u.value)==null||S.focus())}),t({focus:v}),(w,S)=>(O(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.monthTablePrompt"),class:j(y(i).b()),onClick:b,onMousemove:_},[W("tbody",{ref_key:"tbodyRef",ref:l},[(O(!0),K(He,null,ct(y(p),(x,C)=>(O(),K("tr",{key:C},[(O(!0),K(He,null,ct(x,(T,k)=>(O(),K("td",{key:k,ref_for:!0,ref:A=>m(T)&&(u.value=A),class:j(g(T)),"aria-selected":`${m(T)}`,"aria-label":y(o)(`el.datepicker.month${+T.text+1}`),tabindex:m(T)?0:-1,onKeydown:[Wt(st(b,["prevent","stop"]),["space"]),Wt(st(b,["prevent","stop"]),["enter"])]},[W("div",null,[W("span",jAe,$e(y(o)("el.datepicker.months."+c.value[T.text])),1)])],42,UAe))),128))]))),128))],512)],42,WAe))}});var Z2=Ve(KAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:YAe,disabledDate:qAe,parsedValue:XAe}=KM,ZAe=ze({date:YAe,disabledDate:qAe,parsedValue:XAe}),JAe=["aria-label"],QAe=["aria-selected","tabindex","onKeydown"],eMe={class:"cell"},tMe={key:1},nMe=ge({__name:"basic-year-table",props:ZAe,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(v,g)=>{const m=Ct(String(v)).locale(g).startOf("year"),b=m.endOf("year").dayOfYear();return Rl(b).map(w=>m.add(w,"day").toDate())},i=Ie("year-table"),{t:o,lang:s}=jt(),l=U(),u=U(),c=F(()=>Math.floor(r.date.year()/10)*10),f=()=>{var v;(v=u.value)==null||v.focus()},d=v=>{const g={},m=Ct().locale(s.value);return g.disabled=r.disabledDate?a(v,s.value).every(r.disabledDate):!1,g.current=Ms(r.parsedValue).findIndex(_=>_.year()===v)>=0,g.today=m.year()===v,g},h=v=>v===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||Ms(r.date).findIndex(g=>g.year()===v)>=0,p=v=>{const m=v.target.closest("td");if(m&&m.textContent){if(Ji(m,"disabled"))return;const _=m.textContent||m.innerText;n("pick",Number(_))}};return Ae(()=>r.date,async()=>{var v,g;(v=l.value)!=null&&v.contains(document.activeElement)&&(await Xe(),(g=u.value)==null||g.focus())}),t({focus:f}),(v,g)=>(O(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.yearTablePrompt"),class:j(y(i).b()),onClick:p},[W("tbody",{ref_key:"tbodyRef",ref:l},[(O(),K(He,null,ct(3,(m,_)=>W("tr",{key:_},[(O(),K(He,null,ct(4,(b,w)=>(O(),K(He,{key:_+"_"+w},[_*4+w<10?(O(),K("td",{key:0,ref_for:!0,ref:S=>h(y(c)+_*4+w)&&(u.value=S),class:j(["available",d(y(c)+_*4+w)]),"aria-selected":`${h(y(c)+_*4+w)}`,tabindex:h(y(c)+_*4+w)?0:-1,onKeydown:[Wt(st(p,["prevent","stop"]),["space"]),Wt(st(p,["prevent","stop"]),["enter"])]},[W("span",eMe,$e(y(c)+_*4+w),1)],42,QAe)):(O(),K("td",tMe))],64))),64))])),64))],512)],10,JAe))}});var rMe=Ve(nMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const aMe=["onClick"],iMe=["aria-label"],oMe=["aria-label"],sMe=["aria-label"],lMe=["aria-label"],uMe=ge({__name:"panel-date-pick",props:LAe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(Te,Me,Ce)=>!0,a=Ie("picker-panel"),i=Ie("date-picker"),o=uh(),s=Tr(),{t:l,lang:u}=jt(),c=Ye("EP_PICKER_BASE"),f=Ye(R_),{shortcuts:d,disabledDate:h,cellClassName:p,defaultTime:v,arrowControl:g}=c.props,m=Qt(c.props,"defaultValue"),_=U(),b=U(Ct().locale(u.value)),w=U(!1),S=F(()=>Ct(v).locale(u.value)),x=F(()=>b.value.month()),C=F(()=>b.value.year()),T=U([]),k=U(null),A=U(null),M=Te=>T.value.length>0?r(Te,T.value,n.format||"HH:mm:ss"):!0,I=Te=>v&&!z.value&&!w.value?S.value.year(Te.year()).month(Te.month()).date(Te.date()):le.value?Te.millisecond(0):Te.startOf("day"),E=(Te,...Me)=>{if(!Te)t("pick",Te,...Me);else if(Ze(Te)){const Ce=Te.map(I);t("pick",Ce,...Me)}else t("pick",I(Te),...Me);k.value=null,A.value=null,w.value=!1},L=(Te,Me)=>{if(B.value==="date"){Te=Te;let Ce=n.parsedValue?n.parsedValue.year(Te.year()).month(Te.month()).date(Te.date()):Te;M(Ce)||(Ce=T.value[0][0].year(Te.year()).month(Te.month()).date(Te.date())),b.value=Ce,E(Ce,le.value||Me)}else B.value==="week"?E(Te.date):B.value==="dates"&&E(Te,!0)},N=Te=>{const Me=Te?"add":"subtract";b.value=b.value[Me](1,"month"),Ne("month")},$=Te=>{const Me=b.value,Ce=Te?"add":"subtract";b.value=P.value==="year"?Me[Ce](10,"year"):Me[Ce](1,"year"),Ne("year")},P=U("date"),R=F(()=>{const Te=l("el.datepicker.year");if(P.value==="year"){const Me=Math.floor(C.value/10)*10;return Te?`${Me} ${Te} - ${Me+9} ${Te}`:`${Me} - ${Me+9}`}return`${C.value} ${Te}`}),D=Te=>{const Me=ft(Te.value)?Te.value():Te.value;if(Me){E(Ct(Me).locale(u.value));return}Te.onClick&&Te.onClick({attrs:o,slots:s,emit:t})},B=F(()=>{const{type:Te}=n;return["week","month","year","dates"].includes(Te)?Te:"date"}),H=F(()=>B.value==="date"?P.value:B.value),G=F(()=>!!d.length),X=async Te=>{b.value=b.value.startOf("month").month(Te),B.value==="month"?E(b.value,!1):(P.value="date",["month","year","date","week"].includes(B.value)&&(E(b.value,!0),await Xe(),Se())),Ne("month")},ue=async Te=>{B.value==="year"?(b.value=b.value.startOf("year").year(Te),E(b.value,!1)):(b.value=b.value.year(Te),P.value="month",["month","year","date","week"].includes(B.value)&&(E(b.value,!0),await Xe(),Se())),Ne("year")},ie=async Te=>{P.value=Te,await Xe(),Se()},le=F(()=>n.type==="datetime"||n.type==="datetimerange"),Q=F(()=>le.value||B.value==="dates"),J=()=>{if(B.value==="dates")E(n.parsedValue);else{let Te=n.parsedValue;if(!Te){const Me=Ct(v).locale(u.value),Ce=pe();Te=Me.year(Ce.year()).month(Ce.month()).date(Ce.date())}b.value=Te,E(Te)}},se=()=>{const Me=Ct().locale(u.value).toDate();w.value=!0,(!h||!h(Me))&&M(Me)&&(b.value=Ct().locale(u.value),E(b.value))},he=F(()=>g9(n.format)),re=F(()=>v9(n.format)),z=F(()=>{if(A.value)return A.value;if(!(!n.parsedValue&&!m.value))return(n.parsedValue||b.value).format(he.value)}),Y=F(()=>{if(k.value)return k.value;if(!(!n.parsedValue&&!m.value))return(n.parsedValue||b.value).format(re.value)}),ee=U(!1),oe=()=>{ee.value=!0},ve=()=>{ee.value=!1},Z=Te=>({hour:Te.hour(),minute:Te.minute(),second:Te.second(),year:Te.year(),month:Te.month(),date:Te.date()}),ce=(Te,Me,Ce)=>{const{hour:ye,minute:_e,second:Le}=Z(Te),je=n.parsedValue?n.parsedValue.hour(ye).minute(_e).second(Le):Te;b.value=je,E(b.value,!0),Ce||(ee.value=Me)},q=Te=>{const Me=Ct(Te,he.value).locale(u.value);if(Me.isValid()&&M(Me)){const{year:Ce,month:ye,date:_e}=Z(b.value);b.value=Me.year(Ce).month(ye).date(_e),A.value=null,ee.value=!1,E(b.value,!0)}},ae=Te=>{const Me=Ct(Te,re.value).locale(u.value);if(Me.isValid()){if(h&&h(Me.toDate()))return;const{hour:Ce,minute:ye,second:_e}=Z(b.value);b.value=Me.hour(Ce).minute(ye).second(_e),k.value=null,E(b.value,!0)}},ne=Te=>Ct.isDayjs(Te)&&Te.isValid()&&(h?!h(Te.toDate()):!0),de=Te=>B.value==="dates"?Te.map(Me=>Me.format(n.format)):Te.format(n.format),me=Te=>Ct(Te,n.format).locale(u.value),pe=()=>{const Te=Ct(m.value).locale(u.value);if(!m.value){const Me=S.value;return Ct().hour(Me.hour()).minute(Me.minute()).second(Me.second()).locale(u.value)}return Te},Se=async()=>{var Te;["week","month","year","date"].includes(B.value)&&((Te=_.value)==null||Te.focus(),B.value==="week"&&Oe(tt.down))},Pe=Te=>{const{code:Me}=Te;[tt.up,tt.down,tt.left,tt.right,tt.home,tt.end,tt.pageUp,tt.pageDown].includes(Me)&&(Oe(Me),Te.stopPropagation(),Te.preventDefault()),[tt.enter,tt.space,tt.numpadEnter].includes(Me)&&k.value===null&&A.value===null&&(Te.preventDefault(),E(b.value,!1))},Oe=Te=>{var Me;const{up:Ce,down:ye,left:_e,right:Le,home:je,end:gt,pageUp:Ee,pageDown:qe}=tt,xt={year:{[Ce]:-4,[ye]:4,[_e]:-1,[Le]:1,offset:(Bt,ln)=>Bt.setFullYear(Bt.getFullYear()+ln)},month:{[Ce]:-4,[ye]:4,[_e]:-1,[Le]:1,offset:(Bt,ln)=>Bt.setMonth(Bt.getMonth()+ln)},week:{[Ce]:-1,[ye]:1,[_e]:-1,[Le]:1,offset:(Bt,ln)=>Bt.setDate(Bt.getDate()+ln*7)},date:{[Ce]:-7,[ye]:7,[_e]:-1,[Le]:1,[je]:Bt=>-Bt.getDay(),[gt]:Bt=>-Bt.getDay()+6,[Ee]:Bt=>-new Date(Bt.getFullYear(),Bt.getMonth(),0).getDate(),[qe]:Bt=>new Date(Bt.getFullYear(),Bt.getMonth()+1,0).getDate(),offset:(Bt,ln)=>Bt.setDate(Bt.getDate()+ln)}},wt=b.value.toDate();for(;Math.abs(b.value.diff(wt,"year",!0))<1;){const Bt=xt[H.value];if(!Bt)return;if(Bt.offset(wt,ft(Bt[Te])?Bt[Te](wt):(Me=Bt[Te])!=null?Me:0),h&&h(wt))break;const ln=Ct(wt).locale(u.value);b.value=ln,t("pick",ln,!0);break}},Ne=Te=>{t("panel-change",b.value.toDate(),Te,P.value)};return Ae(()=>B.value,Te=>{if(["month","year"].includes(Te)){P.value=Te;return}P.value="date"},{immediate:!0}),Ae(()=>P.value,()=>{f==null||f.updatePopper()}),Ae(()=>m.value,Te=>{Te&&(b.value=pe())},{immediate:!0}),Ae(()=>n.parsedValue,Te=>{if(Te){if(B.value==="dates"||Array.isArray(Te))return;b.value=Te}else b.value=pe()},{immediate:!0}),t("set-picker-option",["isValidValue",ne]),t("set-picker-option",["formatToString",de]),t("set-picker-option",["parseUserInput",me]),t("set-picker-option",["handleFocusPicker",Se]),(Te,Me)=>(O(),K("div",{class:j([y(a).b(),y(i).b(),{"has-sidebar":Te.$slots.sidebar||y(G),"has-time":y(le)}])},[W("div",{class:j(y(a).e("body-wrapper"))},[ke(Te.$slots,"sidebar",{class:j(y(a).e("sidebar"))}),y(G)?(O(),K("div",{key:0,class:j(y(a).e("sidebar"))},[(O(!0),K(He,null,ct(y(d),(Ce,ye)=>(O(),K("button",{key:ye,type:"button",class:j(y(a).e("shortcut")),onClick:_e=>D(Ce)},$e(Ce.text),11,aMe))),128))],2)):be("v-if",!0),W("div",{class:j(y(a).e("body"))},[y(le)?(O(),K("div",{key:0,class:j(y(i).e("time-header"))},[W("span",{class:j(y(i).e("editor-wrap"))},[V(y(jr),{placeholder:y(l)("el.datepicker.selectDate"),"model-value":y(Y),size:"small","validate-event":!1,onInput:Me[0]||(Me[0]=Ce=>k.value=Ce),onChange:ae},null,8,["placeholder","model-value"])],2),pt((O(),K("span",{class:j(y(i).e("editor-wrap"))},[V(y(jr),{placeholder:y(l)("el.datepicker.selectTime"),"model-value":y(z),size:"small","validate-event":!1,onFocus:oe,onInput:Me[1]||(Me[1]=Ce=>A.value=Ce),onChange:q},null,8,["placeholder","model-value"]),V(y($b),{visible:ee.value,format:y(he),"time-arrow-control":y(g),"parsed-value":b.value,onPick:ce},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[y(Yl),ve]])],2)):be("v-if",!0),pt(W("div",{class:j([y(i).e("header"),(P.value==="year"||P.value==="month")&&y(i).e("header--bordered")])},[W("span",{class:j(y(i).e("prev-btn"))},[W("button",{type:"button","aria-label":y(l)("el.datepicker.prevYear"),class:j(["d-arrow-left",y(a).e("icon-btn")]),onClick:Me[2]||(Me[2]=Ce=>$(!1))},[V(y(Je),null,{default:fe(()=>[V(y(Bd))]),_:1})],10,iMe),pt(W("button",{type:"button","aria-label":y(l)("el.datepicker.prevMonth"),class:j([y(a).e("icon-btn"),"arrow-left"]),onClick:Me[3]||(Me[3]=Ce=>N(!1))},[V(y(Je),null,{default:fe(()=>[V(y(Ul))]),_:1})],10,oMe),[[Yt,P.value==="date"]])],2),W("span",{role:"button",class:j(y(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Me[4]||(Me[4]=Wt(Ce=>ie("year"),["enter"])),onClick:Me[5]||(Me[5]=Ce=>ie("year"))},$e(y(R)),35),pt(W("span",{role:"button","aria-live":"polite",tabindex:"0",class:j([y(i).e("header-label"),{active:P.value==="month"}]),onKeydown:Me[6]||(Me[6]=Wt(Ce=>ie("month"),["enter"])),onClick:Me[7]||(Me[7]=Ce=>ie("month"))},$e(y(l)(`el.datepicker.month${y(x)+1}`)),35),[[Yt,P.value==="date"]]),W("span",{class:j(y(i).e("next-btn"))},[pt(W("button",{type:"button","aria-label":y(l)("el.datepicker.nextMonth"),class:j([y(a).e("icon-btn"),"arrow-right"]),onClick:Me[8]||(Me[8]=Ce=>N(!0))},[V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})],10,sMe),[[Yt,P.value==="date"]]),W("button",{type:"button","aria-label":y(l)("el.datepicker.nextYear"),class:j([y(a).e("icon-btn"),"d-arrow-right"]),onClick:Me[9]||(Me[9]=Ce=>$(!0))},[V(y(Je),null,{default:fe(()=>[V(y(Fd))]),_:1})],10,lMe)],2)],2),[[Yt,P.value!=="time"]]),W("div",{class:j(y(a).e("content")),onKeydown:Pe},[P.value==="date"?(O(),we(X2,{key:0,ref_key:"currentViewRef",ref:_,"selection-mode":y(B),date:b.value,"parsed-value":Te.parsedValue,"disabled-date":y(h),"cell-class-name":y(p),onPick:L},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):be("v-if",!0),P.value==="year"?(O(),we(rMe,{key:1,ref_key:"currentViewRef",ref:_,date:b.value,"disabled-date":y(h),"parsed-value":Te.parsedValue,onPick:ue},null,8,["date","disabled-date","parsed-value"])):be("v-if",!0),P.value==="month"?(O(),we(Z2,{key:2,ref_key:"currentViewRef",ref:_,date:b.value,"parsed-value":Te.parsedValue,"disabled-date":y(h),onPick:X},null,8,["date","parsed-value","disabled-date"])):be("v-if",!0)],34)],2)],2),pt(W("div",{class:j(y(a).e("footer"))},[pt(V(y(Lr),{text:"",size:"small",class:j(y(a).e("link-btn")),onClick:se},{default:fe(()=>[yt($e(y(l)("el.datepicker.now")),1)]),_:1},8,["class"]),[[Yt,y(B)!=="dates"]]),V(y(Lr),{plain:"",size:"small",class:j(y(a).e("link-btn")),onClick:J},{default:fe(()=>[yt($e(y(l)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[Yt,y(Q)&&P.value==="date"]])],2))}});var cMe=Ve(uMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const fMe=ze({...cW,...fW}),dMe=e=>{const{emit:t}=St(),n=uh(),r=Tr();return i=>{const o=ft(i.value)?i.value():i.value;if(o){t("pick",[Ct(o[0]).locale(e.value),Ct(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},pW=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=St(),{pickerNs:s}=Ye(jM),l=Ie("date-range-picker"),{t:u,lang:c}=jt(),f=dMe(c),d=U(),h=U(),p=U({endDate:null,selecting:!1}),v=b=>{p.value=b},g=(b=!1)=>{const w=y(d),S=y(h);q2([w,S])&&o("pick",[w,S],b)},m=b=>{p.value.selecting=b,b||(p.value.endDate=null)},_=()=>{const[b,w]=hW(y(t),{lang:y(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,n.value=b,r.value=w};return Ae(t,b=>{b&&_()},{immediate:!0}),Ae(()=>e.parsedValue,b=>{if(Ze(b)&&b.length===2){const[w,S]=b;d.value=w,n.value=w,h.value=S,i(y(d),y(h))}else _()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:p,lang:c,ppNs:s,drpNs:l,handleChangeRange:v,handleRangeConfirm:g,handleShortcutClick:f,onSelect:m,t:u}},hMe=["onClick"],pMe=["disabled"],vMe=["disabled"],gMe=["disabled"],mMe=["disabled"],fy="month",yMe=ge({__name:"panel-date-range",props:fMe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Ye("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,arrowControl:l,clearable:u}=r.props,c=Qt(r.props,"shortcuts"),f=Qt(r.props,"defaultValue"),{lang:d}=jt(),h=U(Ct().locale(d.value)),p=U(Ct().locale(d.value).add(1,fy)),{minDate:v,maxDate:g,rangeState:m,ppNs:_,drpNs:b,handleChangeRange:w,handleRangeConfirm:S,handleShortcutClick:x,onSelect:C,t:T}=pW(n,{defaultValue:f,leftDate:h,rightDate:p,unit:fy,onParsedValueChanged:ye}),k=U({min:null,max:null}),A=U({min:null,max:null}),M=F(()=>`${h.value.year()} ${T("el.datepicker.year")} ${T(`el.datepicker.month${h.value.month()+1}`)}`),I=F(()=>`${p.value.year()} ${T("el.datepicker.year")} ${T(`el.datepicker.month${p.value.month()+1}`)}`),E=F(()=>h.value.year()),L=F(()=>h.value.month()),N=F(()=>p.value.year()),$=F(()=>p.value.month()),P=F(()=>!!c.value.length),R=F(()=>k.value.min!==null?k.value.min:v.value?v.value.format(X.value):""),D=F(()=>k.value.max!==null?k.value.max:g.value||v.value?(g.value||v.value).format(X.value):""),B=F(()=>A.value.min!==null?A.value.min:v.value?v.value.format(G.value):""),H=F(()=>A.value.max!==null?A.value.max:g.value||v.value?(g.value||v.value).format(G.value):""),G=F(()=>g9(o)),X=F(()=>v9(o)),ue=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(p.value=h.value.add(1,"month")),z("year")},ie=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(p.value=h.value.add(1,"month")),z("month")},le=()=>{n.unlinkPanels?p.value=p.value.add(1,"year"):(h.value=h.value.add(1,"year"),p.value=h.value.add(1,"month")),z("year")},Q=()=>{n.unlinkPanels?p.value=p.value.add(1,"month"):(h.value=h.value.add(1,"month"),p.value=h.value.add(1,"month")),z("month")},J=()=>{h.value=h.value.add(1,"year"),z("year")},se=()=>{h.value=h.value.add(1,"month"),z("month")},he=()=>{p.value=p.value.subtract(1,"year"),z("year")},re=()=>{p.value=p.value.subtract(1,"month"),z("month")},z=_e=>{t("panel-change",[h.value.toDate(),p.value.toDate()],_e)},Y=F(()=>{const _e=(L.value+1)%12,Le=L.value+1>=12?1:0;return n.unlinkPanels&&new Date(E.value+Le,_e)<new Date(N.value,$.value)}),ee=F(()=>n.unlinkPanels&&N.value*12+$.value-(E.value*12+L.value+1)>=12),oe=F(()=>!(v.value&&g.value&&!m.value.selecting&&q2([v.value,g.value]))),ve=F(()=>n.type==="datetime"||n.type==="datetimerange"),Z=(_e,Le)=>{if(_e)return s?Ct(s[Le]||s).locale(d.value).year(_e.year()).month(_e.month()).date(_e.date()):_e},ce=(_e,Le=!0)=>{const je=_e.minDate,gt=_e.maxDate,Ee=Z(je,0),qe=Z(gt,1);g.value===qe&&v.value===Ee||(t("calendar-change",[je.toDate(),gt&&gt.toDate()]),g.value=qe,v.value=Ee,!(!Le||ve.value)&&S())},q=U(!1),ae=U(!1),ne=()=>{q.value=!1},de=()=>{ae.value=!1},me=(_e,Le)=>{k.value[Le]=_e;const je=Ct(_e,X.value).locale(d.value);if(je.isValid()){if(a&&a(je.toDate()))return;Le==="min"?(h.value=je,v.value=(v.value||h.value).year(je.year()).month(je.month()).date(je.date()),n.unlinkPanels||(p.value=je.add(1,"month"),g.value=v.value.add(1,"month"))):(p.value=je,g.value=(g.value||p.value).year(je.year()).month(je.month()).date(je.date()),n.unlinkPanels||(h.value=je.subtract(1,"month"),v.value=g.value.subtract(1,"month")))}},pe=(_e,Le)=>{k.value[Le]=null},Se=(_e,Le)=>{A.value[Le]=_e;const je=Ct(_e,G.value).locale(d.value);je.isValid()&&(Le==="min"?(q.value=!0,v.value=(v.value||h.value).hour(je.hour()).minute(je.minute()).second(je.second()),(!g.value||g.value.isBefore(v.value))&&(g.value=v.value)):(ae.value=!0,g.value=(g.value||p.value).hour(je.hour()).minute(je.minute()).second(je.second()),p.value=g.value,g.value&&g.value.isBefore(v.value)&&(v.value=g.value)))},Pe=(_e,Le)=>{A.value[Le]=null,Le==="min"?(h.value=v.value,q.value=!1):(p.value=g.value,ae.value=!1)},Oe=(_e,Le,je)=>{A.value.min||(_e&&(h.value=_e,v.value=(v.value||h.value).hour(_e.hour()).minute(_e.minute()).second(_e.second())),je||(q.value=Le),(!g.value||g.value.isBefore(v.value))&&(g.value=v.value,p.value=_e))},Ne=(_e,Le,je)=>{A.value.max||(_e&&(p.value=_e,g.value=(g.value||p.value).hour(_e.hour()).minute(_e.minute()).second(_e.second())),je||(ae.value=Le),g.value&&g.value.isBefore(v.value)&&(v.value=g.value))},Te=()=>{h.value=hW(y(f),{lang:y(d),unit:"month",unlinkPanels:n.unlinkPanels})[0],p.value=h.value.add(1,"month"),t("pick",null)},Me=_e=>Ze(_e)?_e.map(Le=>Le.format(o)):_e.format(o),Ce=_e=>Ze(_e)?_e.map(Le=>Ct(Le,o).locale(d.value)):Ct(_e,o).locale(d.value);function ye(_e,Le){if(n.unlinkPanels&&Le){const je=(_e==null?void 0:_e.year())||0,gt=(_e==null?void 0:_e.month())||0,Ee=Le.year(),qe=Le.month();p.value=je===Ee&&gt===qe?Le.add(1,fy):Le}else p.value=h.value.add(1,fy),Le&&(p.value=p.value.hour(Le.hour()).minute(Le.minute()).second(Le.second()))}return t("set-picker-option",["isValidValue",q2]),t("set-picker-option",["parseUserInput",Ce]),t("set-picker-option",["formatToString",Me]),t("set-picker-option",["handleClear",Te]),(_e,Le)=>(O(),K("div",{class:j([y(_).b(),y(b).b(),{"has-sidebar":_e.$slots.sidebar||y(P),"has-time":y(ve)}])},[W("div",{class:j(y(_).e("body-wrapper"))},[ke(_e.$slots,"sidebar",{class:j(y(_).e("sidebar"))}),y(P)?(O(),K("div",{key:0,class:j(y(_).e("sidebar"))},[(O(!0),K(He,null,ct(y(c),(je,gt)=>(O(),K("button",{key:gt,type:"button",class:j(y(_).e("shortcut")),onClick:Ee=>y(x)(je)},$e(je.text),11,hMe))),128))],2)):be("v-if",!0),W("div",{class:j(y(_).e("body"))},[y(ve)?(O(),K("div",{key:0,class:j(y(b).e("time-header"))},[W("span",{class:j(y(b).e("editors-wrap"))},[W("span",{class:j(y(b).e("time-picker-wrap"))},[V(y(jr),{size:"small",disabled:y(m).selecting,placeholder:y(T)("el.datepicker.startDate"),class:j(y(b).e("editor")),"model-value":y(R),"validate-event":!1,onInput:Le[0]||(Le[0]=je=>me(je,"min")),onChange:Le[1]||(Le[1]=je=>pe(je,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),pt((O(),K("span",{class:j(y(b).e("time-picker-wrap"))},[V(y(jr),{size:"small",class:j(y(b).e("editor")),disabled:y(m).selecting,placeholder:y(T)("el.datepicker.startTime"),"model-value":y(B),"validate-event":!1,onFocus:Le[2]||(Le[2]=je=>q.value=!0),onInput:Le[3]||(Le[3]=je=>Se(je,"min")),onChange:Le[4]||(Le[4]=je=>Pe(je,"min"))},null,8,["class","disabled","placeholder","model-value"]),V(y($b),{visible:q.value,format:y(G),"datetime-role":"start","time-arrow-control":y(l),"parsed-value":h.value,onPick:Oe},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[y(Yl),ne]])],2),W("span",null,[V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})]),W("span",{class:j([y(b).e("editors-wrap"),"is-right"])},[W("span",{class:j(y(b).e("time-picker-wrap"))},[V(y(jr),{size:"small",class:j(y(b).e("editor")),disabled:y(m).selecting,placeholder:y(T)("el.datepicker.endDate"),"model-value":y(D),readonly:!y(v),"validate-event":!1,onInput:Le[5]||(Le[5]=je=>me(je,"max")),onChange:Le[6]||(Le[6]=je=>pe(je,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),pt((O(),K("span",{class:j(y(b).e("time-picker-wrap"))},[V(y(jr),{size:"small",class:j(y(b).e("editor")),disabled:y(m).selecting,placeholder:y(T)("el.datepicker.endTime"),"model-value":y(H),readonly:!y(v),"validate-event":!1,onFocus:Le[7]||(Le[7]=je=>y(v)&&(ae.value=!0)),onInput:Le[8]||(Le[8]=je=>Se(je,"max")),onChange:Le[9]||(Le[9]=je=>Pe(je,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),V(y($b),{"datetime-role":"end",visible:ae.value,format:y(G),"time-arrow-control":y(l),"parsed-value":p.value,onPick:Ne},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[y(Yl),de]])],2)],2)):be("v-if",!0),W("div",{class:j([[y(_).e("content"),y(b).e("content")],"is-left"])},[W("div",{class:j(y(b).e("header"))},[W("button",{type:"button",class:j([y(_).e("icon-btn"),"d-arrow-left"]),onClick:ue},[V(y(Je),null,{default:fe(()=>[V(y(Bd))]),_:1})],2),W("button",{type:"button",class:j([y(_).e("icon-btn"),"arrow-left"]),onClick:ie},[V(y(Je),null,{default:fe(()=>[V(y(Ul))]),_:1})],2),_e.unlinkPanels?(O(),K("button",{key:0,type:"button",disabled:!y(ee),class:j([[y(_).e("icon-btn"),{"is-disabled":!y(ee)}],"d-arrow-right"]),onClick:J},[V(y(Je),null,{default:fe(()=>[V(y(Fd))]),_:1})],10,pMe)):be("v-if",!0),_e.unlinkPanels?(O(),K("button",{key:1,type:"button",disabled:!y(Y),class:j([[y(_).e("icon-btn"),{"is-disabled":!y(Y)}],"arrow-right"]),onClick:se},[V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})],10,vMe)):be("v-if",!0),W("div",null,$e(y(M)),1)],2),V(X2,{"selection-mode":"range",date:h.value,"min-date":y(v),"max-date":y(g),"range-state":y(m),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(w),onPick:ce,onSelect:y(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),W("div",{class:j([[y(_).e("content"),y(b).e("content")],"is-right"])},[W("div",{class:j(y(b).e("header"))},[_e.unlinkPanels?(O(),K("button",{key:0,type:"button",disabled:!y(ee),class:j([[y(_).e("icon-btn"),{"is-disabled":!y(ee)}],"d-arrow-left"]),onClick:he},[V(y(Je),null,{default:fe(()=>[V(y(Bd))]),_:1})],10,gMe)):be("v-if",!0),_e.unlinkPanels?(O(),K("button",{key:1,type:"button",disabled:!y(Y),class:j([[y(_).e("icon-btn"),{"is-disabled":!y(Y)}],"arrow-left"]),onClick:re},[V(y(Je),null,{default:fe(()=>[V(y(Ul))]),_:1})],10,mMe)):be("v-if",!0),W("button",{type:"button",class:j([y(_).e("icon-btn"),"d-arrow-right"]),onClick:le},[V(y(Je),null,{default:fe(()=>[V(y(Fd))]),_:1})],2),W("button",{type:"button",class:j([y(_).e("icon-btn"),"arrow-right"]),onClick:Q},[V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})],2),W("div",null,$e(y(I)),1)],2),V(X2,{"selection-mode":"range",date:p.value,"min-date":y(v),"max-date":y(g),"range-state":y(m),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(w),onPick:ce,onSelect:y(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),y(ve)?(O(),K("div",{key:0,class:j(y(_).e("footer"))},[y(u)?(O(),we(y(Lr),{key:0,text:"",size:"small",class:j(y(_).e("link-btn")),onClick:Te},{default:fe(()=>[yt($e(y(T)("el.datepicker.clear")),1)]),_:1},8,["class"])):be("v-if",!0),V(y(Lr),{plain:"",size:"small",class:j(y(_).e("link-btn")),disabled:y(oe),onClick:Le[10]||(Le[10]=je=>y(S)(!1))},{default:fe(()=>[yt($e(y(T)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):be("v-if",!0)],2))}});var bMe=Ve(yMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const _Me=ze({...fW}),wMe=["pick","set-picker-option"],SMe=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=jt(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=F(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=F(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=F(()=>t.value.year()),f=F(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},xMe=["onClick"],CMe=["disabled"],TMe=["disabled"],dy="year",kMe=ge({name:"DatePickerMonthRange"}),AMe=ge({...kMe,props:_Me,emits:wMe,setup(e,{emit:t}){const n=e,{lang:r}=jt(),a=Ye("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Qt(a.props,"defaultValue"),u=U(Ct().locale(r.value)),c=U(Ct().locale(r.value).add(1,dy)),{minDate:f,maxDate:d,rangeState:h,ppNs:p,drpNs:v,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:_,onSelect:b}=pW(n,{defaultValue:l,leftDate:u,rightDate:c,unit:dy,onParsedValueChanged:$}),w=F(()=>!!i.length),{leftPrevYear:S,rightNextYear:x,leftNextYear:C,rightPrevYear:T,leftLabel:k,rightLabel:A,leftYear:M,rightYear:I}=SMe({unlinkPanels:Qt(n,"unlinkPanels"),leftDate:u,rightDate:c}),E=F(()=>n.unlinkPanels&&I.value>M.value+1),L=(P,R=!0)=>{const D=P.minDate,B=P.maxDate;d.value===B&&f.value===D||(d.value=B,f.value=D,R&&m())},N=P=>P.map(R=>R.format(s));function $(P,R){if(n.unlinkPanels&&R){const D=(P==null?void 0:P.year())||0,B=R.year();c.value=D===B?R.add(1,dy):R}else c.value=u.value.add(1,dy)}return t("set-picker-option",["formatToString",N]),(P,R)=>(O(),K("div",{class:j([y(p).b(),y(v).b(),{"has-sidebar":!!P.$slots.sidebar||y(w)}])},[W("div",{class:j(y(p).e("body-wrapper"))},[ke(P.$slots,"sidebar",{class:j(y(p).e("sidebar"))}),y(w)?(O(),K("div",{key:0,class:j(y(p).e("sidebar"))},[(O(!0),K(He,null,ct(y(i),(D,B)=>(O(),K("button",{key:B,type:"button",class:j(y(p).e("shortcut")),onClick:H=>y(_)(D)},$e(D.text),11,xMe))),128))],2)):be("v-if",!0),W("div",{class:j(y(p).e("body"))},[W("div",{class:j([[y(p).e("content"),y(v).e("content")],"is-left"])},[W("div",{class:j(y(v).e("header"))},[W("button",{type:"button",class:j([y(p).e("icon-btn"),"d-arrow-left"]),onClick:R[0]||(R[0]=(...D)=>y(S)&&y(S)(...D))},[V(y(Je),null,{default:fe(()=>[V(y(Bd))]),_:1})],2),P.unlinkPanels?(O(),K("button",{key:0,type:"button",disabled:!y(E),class:j([[y(p).e("icon-btn"),{[y(p).is("disabled")]:!y(E)}],"d-arrow-right"]),onClick:R[1]||(R[1]=(...D)=>y(C)&&y(C)(...D))},[V(y(Je),null,{default:fe(()=>[V(y(Fd))]),_:1})],10,CMe)):be("v-if",!0),W("div",null,$e(y(k)),1)],2),V(Z2,{"selection-mode":"range",date:u.value,"min-date":y(f),"max-date":y(d),"range-state":y(h),"disabled-date":y(o),onChangerange:y(g),onPick:L,onSelect:y(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),W("div",{class:j([[y(p).e("content"),y(v).e("content")],"is-right"])},[W("div",{class:j(y(v).e("header"))},[P.unlinkPanels?(O(),K("button",{key:0,type:"button",disabled:!y(E),class:j([[y(p).e("icon-btn"),{"is-disabled":!y(E)}],"d-arrow-left"]),onClick:R[2]||(R[2]=(...D)=>y(T)&&y(T)(...D))},[V(y(Je),null,{default:fe(()=>[V(y(Bd))]),_:1})],10,TMe)):be("v-if",!0),W("button",{type:"button",class:j([y(p).e("icon-btn"),"d-arrow-right"]),onClick:R[3]||(R[3]=(...D)=>y(x)&&y(x)(...D))},[V(y(Je),null,{default:fe(()=>[V(y(Fd))]),_:1})],2),W("div",null,$e(y(A)),1)],2),V(Z2,{"selection-mode":"range",date:c.value,"min-date":y(f),"max-date":y(d),"range-state":y(h),"disabled-date":y(o),onChangerange:y(g),onPick:L,onSelect:y(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MMe=Ve(AMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const PMe=function(e){switch(e){case"daterange":case"datetimerange":return bMe;case"monthrange":return MMe;default:return cMe}};Ct.extend(D9);Ct.extend(_Ae);Ct.extend(HM);Ct.extend(SAe);Ct.extend(CAe);Ct.extend(kAe);Ct.extend(MAe);Ct.extend(EAe);var EMe=ge({name:"ElDatePicker",install:null,props:{...GM,...IAe},emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=Ie("picker-panel");$t("ElPopperOptions",vt(Qt(e,"popperOptions"))),$t(jM,{slots:r,pickerNs:a});const i=U();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:vCe[e.type]||Yf,c=PMe(e.type);return V(b9,Dt(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>V(c,f,null),"range-separator":r["range-separator"]})}}});const B0=EMe;B0.install=e=>{e.component(B0.name,B0)};const IMe=B0,YM=Symbol("elDescriptions");var Qh=ge({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ye(YM,{})}},render(){var e,t,n,r,a,i;const o=Lbe(this.cell),{border:s,direction:l}=this.descriptions,u=l==="vertical",c=((n=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:n.call(t))||o.label,f=(i=(a=(r=this.cell)==null?void 0:r.children)==null?void 0:a.default)==null?void 0:i.call(a),d=o.span,h=o.align?`is-${o.align}`:"",p=o.labelAlign?`is-${o.labelAlign}`:h,v=o.className,g=o.labelClassName,m={width:Wn(o.width),minWidth:Wn(o.minWidth)},_=Ie("descriptions");switch(this.type){case"label":return et(this.tag,{style:m,class:[_.e("cell"),_.e("label"),_.is("bordered-label",s),_.is("vertical-label",u),p,g],colSpan:u?d:1},c);case"content":return et(this.tag,{style:m,class:[_.e("cell"),_.e("content"),_.is("bordered-content",s),_.is("vertical-content",u),h,v],colSpan:u?d:d*2-1},f);default:return et("td",{style:m,class:[_.e("cell"),h],colSpan:d},[tr(c)?void 0:et("span",{class:[_.e("label"),g]},c),et("span",{class:[_.e("content"),v]},f)])}}});const DMe=ze({row:{type:Array,default:()=>[]}}),LMe={key:1},$Me=ge({name:"ElDescriptionsRow"}),RMe=ge({...$Me,props:DMe,setup(e){const t=Ye(YM,{});return(n,r)=>y(t).direction==="vertical"?(O(),K(He,{key:0},[W("tr",null,[(O(!0),K(He,null,ct(n.row,(a,i)=>(O(),we(y(Qh),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),W("tr",null,[(O(!0),K(He,null,ct(n.row,(a,i)=>(O(),we(y(Qh),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(O(),K("tr",LMe,[(O(!0),K(He,null,ct(n.row,(a,i)=>(O(),K(He,{key:`tr3-${i}`},[y(t).border?(O(),K(He,{key:0},[V(y(Qh),{cell:a,tag:"td",type:"label"},null,8,["cell"]),V(y(Qh),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(O(),we(y(Qh),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var OMe=Ve(RMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const NMe=ze({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Rr,title:{type:String,default:""},extra:{type:String,default:""}}),BMe=ge({name:"ElDescriptions"}),FMe=ge({...BMe,props:NMe,setup(e){const t=e,n=Ie("descriptions"),r=nr(),a=Tr();$t(YM,t);const i=F(()=>[n.b(),n.m(r.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{var l;const u=vd((l=a.default)==null?void 0:l.call(a)).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)==="ElDescriptionsItem"}),c=[];let f=[],d=t.column,h=0;return u.forEach((p,v)=>{var g;const m=((g=p.props)==null?void 0:g.span)||1;if(v<u.length-1&&(h+=m>d?d:m),v===u.length-1){const _=t.column-h%t.column;f.push(o(p,_,d,!0)),c.push(f);return}m<d?(d-=m,f.push(p)):(f.push(o(p,m,d)),c.push(f),d=t.column,f=[])}),c};return(l,u)=>(O(),K("div",{class:j(y(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(O(),K("div",{key:0,class:j(y(n).e("header"))},[W("div",{class:j(y(n).e("title"))},[ke(l.$slots,"title",{},()=>[yt($e(l.title),1)])],2),W("div",{class:j(y(n).e("extra"))},[ke(l.$slots,"extra",{},()=>[yt($e(l.extra),1)])],2)],2)):be("v-if",!0),W("div",{class:j(y(n).e("body"))},[W("table",{class:j([y(n).e("table"),y(n).is("bordered",l.border)])},[W("tbody",null,[(O(!0),K(He,null,ct(s(),(c,f)=>(O(),we(OMe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var VMe=Ve(FMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),vW=ge({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const zMe=At(VMe,{DescriptionsItem:vW}),HMe=Vn(vW),GMe=ze({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:xe([String,Array,Object])},zIndex:{type:xe([String,Number])}}),WMe={click:e=>e instanceof MouseEvent},UMe="overlay";var jMe=ge({name:"ElOverlay",props:GMe,emits:WMe,setup(e,{slots:t,emit:n}){const r=Ie(UMe),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=DM(e.customMaskEvent?void 0:a);return()=>e.mask?V("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[ke(t,"default")],ci.STYLE|ci.CLASS|ci.PROPS,["onClick","onMouseup","onMousedown"]):et("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ke(t,"default")])}});const qM=jMe,gW=Symbol("dialogInjectionKey"),mW=ze({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:_n},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),KMe={close:()=>!0},YMe=["aria-label"],qMe=["id"],XMe=ge({name:"ElDialogContent"}),ZMe=ge({...XMe,props:mW,emits:KMe,setup(e){const t=e,{t:n}=jt(),{Close:r}=nG,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ye(gW),{focusTrapRef:u}=Ye(FM),c=x_(u,a),f=F(()=>t.draggable);return oG(a,i,f),(d,h)=>(O(),K("div",{ref:y(c),class:j([y(s).b(),y(s).is("fullscreen",d.fullscreen),y(s).is("draggable",y(f)),y(s).is("align-center",d.alignCenter),{[y(s).m("center")]:d.center},d.customClass]),style:Ke(y(l)),tabindex:"-1"},[W("header",{ref_key:"headerRef",ref:i,class:j(y(s).e("header"))},[ke(d.$slots,"header",{},()=>[W("span",{role:"heading",class:j(y(s).e("title"))},$e(d.title),3)]),d.showClose?(O(),K("button",{key:0,"aria-label":y(n)("el.dialog.close"),class:j(y(s).e("headerbtn")),type:"button",onClick:h[0]||(h[0]=p=>d.$emit("close"))},[V(y(Je),{class:j(y(s).e("close"))},{default:fe(()=>[(O(),we(Lt(d.closeIcon||y(r))))]),_:1},8,["class"])],10,YMe)):be("v-if",!0)],2),W("div",{id:y(o),class:j(y(s).e("body"))},[ke(d.$slots,"default")],10,qMe),d.$slots.footer?(O(),K("footer",{key:0,class:j(y(s).e("footer"))},[ke(d.$slots,"footer")],2)):be("v-if",!0)],6))}});var JMe=Ve(ZMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const yW=ze({...mW,appendToBody:{type:Boolean,default:!1},beforeClose:{type:xe(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),bW={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Mt]:e=>er(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},_W=(e,t)=>{const r=St().emit,{nextZIndex:a}=of();let i="";const o=ki(),s=ki(),l=U(!1),u=U(!1),c=U(!1),f=U(e.zIndex||a());let d,h;const p=I_("namespace",Pb),v=F(()=>{const L={},N=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(L[`${N}-margin-top`]=e.top),e.width&&(L[`${N}-width`]=Wn(e.width))),L}),g=F(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function _(){r("closed"),r(Mt,!1),e.destroyOnClose&&(c.value=!1)}function b(){r("close")}function w(){h==null||h(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=zc(()=>T(),e.openDelay):T()}function S(){d==null||d(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=zc(()=>k(),e.closeDelay):k()}function x(){function L(N){N||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(L):S()}function C(){e.closeOnClickModal&&x()}function T(){Ht&&(l.value=!0)}function k(){l.value=!1}function A(){r("openAutoFocus")}function M(){r("closeAutoFocus")}function I(L){var N;((N=L.detail)==null?void 0:N.focusReason)==="pointer"&&L.preventDefault()}e.lockScroll&&uG(l);function E(){e.closeOnPressEscape&&x()}return Ae(()=>e.modelValue,L=>{L?(u.value=!1,w(),c.value=!0,f.value=e.zIndex?f.value++:a(),Xe(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&S()}),Ae(()=>e.fullscreen,L=>{t.value&&(L?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),nt(()=>{e.modelValue&&(l.value=!0,c.value=!0,w())}),{afterEnter:m,afterLeave:_,beforeLeave:b,handleClose:x,onModalClick:C,close:S,doClose:k,onOpenAutoFocus:A,onCloseAutoFocus:M,onCloseRequested:E,onFocusoutPrevented:I,titleId:o,bodyId:s,closed:u,style:v,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},QMe=["aria-label","aria-labelledby","aria-describedby"],ePe=ge({name:"ElDialog",inheritAttrs:!1}),tPe=ge({...ePe,props:yW,emits:bW,setup(e,{expose:t}){const n=e,r=Tr();Yo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},F(()=>!!r.title)),Yo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},F(()=>!!n.customClass));const a=Ie("dialog"),i=U(),o=U(),s=U(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:p,afterEnter:v,afterLeave:g,beforeLeave:m,handleClose:_,onModalClick:b,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:x,onFocusoutPrevented:C}=_W(n,i);$t(gW,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=DM(b),k=F(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(A,M)=>(O(),we(Hg,{to:"body",disabled:!A.appendToBody},[V(Kn,{name:"dialog-fade",onAfterEnter:y(v),onAfterLeave:y(g),onBeforeLeave:y(m),persisted:""},{default:fe(()=>[pt(V(y(qM),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":y(p)},{default:fe(()=>[W("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:y(u),"aria-describedby":y(c),class:j(`${y(a).namespace.value}-overlay-dialog`),style:Ke(y(d)),onClick:M[0]||(M[0]=(...I)=>y(T).onClick&&y(T).onClick(...I)),onMousedown:M[1]||(M[1]=(...I)=>y(T).onMousedown&&y(T).onMousedown(...I)),onMouseup:M[2]||(M[2]=(...I)=>y(T).onMouseup&&y(T).onMouseup(...I))},[V(y($_),{loop:"",trapped:y(l),"focus-start-el":"container",onFocusAfterTrapped:y(w),onFocusAfterReleased:y(S),onFocusoutPrevented:y(C),onReleaseRequested:y(x)},{default:fe(()=>[y(h)?(O(),we(JMe,Dt({key:0,ref_key:"dialogContentRef",ref:s},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:y(k),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,onClose:y(_)}),Ls({header:fe(()=>[A.$slots.title?ke(A.$slots,"title",{key:1}):ke(A.$slots,"header",{key:0,close:y(_),titleId:y(u),titleClass:y(a).e("title")})]),default:fe(()=>[ke(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:fe(()=>[ke(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):be("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,QMe)]),_:3},8,["mask","overlay-class","z-index"]),[[Yt,y(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var nPe=Ve(tPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const rPe=At(nPe),aPe=ze({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:xe(String),default:"solid"}}),iPe=ge({name:"ElDivider"}),oPe=ge({...iPe,props:aPe,setup(e){const t=e,n=Ie("divider"),r=F(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>(O(),K("div",{class:j([y(n).b(),y(n).m(a.direction)]),style:Ke(y(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(O(),K("div",{key:0,class:j([y(n).e("text"),y(n).is(a.contentPosition)])},[ke(a.$slots,"default")],2)):be("v-if",!0)],6))}});var sPe=Ve(oPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const wW=At(sPe),lPe=ze({...yW,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),uPe=bW,cPe=ge({name:"ElDrawer",components:{ElOverlay:qM,ElFocusTrap:$_,ElIcon:Je,Close:so},inheritAttrs:!1,props:lPe,emits:uPe,setup(e,{slots:t}){Yo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},F(()=>!!t.title)),Yo({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},F(()=>!!e.customClass));const n=U(),r=U(),a=Ie("drawer"),{t:i}=jt(),o=F(()=>e.direction==="rtl"||e.direction==="ltr"),s=F(()=>Wn(e.size));return{..._W(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),fPe=["aria-label","aria-labelledby","aria-describedby"],dPe=["id"],hPe=["aria-label"],pPe=["id"];function vPe(e,t,n,r,a,i){const o=Fe("close"),s=Fe("el-icon"),l=Fe("el-focus-trap"),u=Fe("el-overlay");return O(),we(Hg,{to:"body",disabled:!e.appendToBody},[V(Kn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:fe(()=>[pt(V(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:fe(()=>[V(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:fe(()=>[W("div",Dt({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=st(()=>{},["stop"]))}),[W("span",{ref:"focusStartRef",class:j(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(O(),K("header",{key:0,class:j(e.ns.e("header"))},[e.$slots.title?ke(e.$slots,"title",{key:1},()=>[be(" DEPRECATED SLOT ")]):ke(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?be("v-if",!0):(O(),K("span",{key:0,id:e.titleId,role:"heading",class:j(e.ns.e("title"))},$e(e.title),11,dPe))]),e.showClose?(O(),K("button",{key:2,"aria-label":e.t("el.drawer.close"),class:j(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[V(s,{class:j(e.ns.e("close"))},{default:fe(()=>[V(o)]),_:1},8,["class"])],10,hPe)):be("v-if",!0)],2)):be("v-if",!0),e.rendered?(O(),K("div",{key:1,id:e.bodyId,class:j(e.ns.e("body"))},[ke(e.$slots,"default")],10,pPe)):be("v-if",!0),e.$slots.footer?(O(),K("div",{key:2,class:j(e.ns.e("footer"))},[ke(e.$slots,"footer")],2)):be("v-if",!0)],16,fPe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Yt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var gPe=Ve(cPe,[["render",vPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const mPe=At(gPe),yPe=ge({inheritAttrs:!1});function bPe(e,t,n,r,a,i){return ke(e.$slots,"default")}var _Pe=Ve(yPe,[["render",bPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const wPe=ge({name:"ElCollectionItem",inheritAttrs:!1});function SPe(e,t,n,r,a,i){return ke(e.$slots,"default")}var xPe=Ve(wPe,[["render",SPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const SW="data-el-collection-item",xW=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={..._Pe,name:t,setup(){const s=U(null),l=new Map;$t(r,{itemMap:l,getItems:()=>{const c=y(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${SW}]`));return[...l.values()].sort((h,p)=>f.indexOf(h.ref)-f.indexOf(p.ref))},collectionRef:s})}},o={...xPe,name:n,setup(s,{attrs:l}){const u=U(null),c=Ye(r,void 0);$t(a,{collectionItemRef:u}),nt(()=>{const f=y(u);f&&c.itemMap.set(f,{ref:f,...l})}),pn(()=>{const f=y(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},CPe=ze({style:{type:xe([String,Array,Object])},currentTabId:{type:xe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:xe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:TPe,ElCollectionItem:kPe,COLLECTION_INJECTION_KEY:XM,COLLECTION_ITEM_INJECTION_KEY:APe}=xW("RovingFocusGroup"),ZM=Symbol("elRovingFocusGroup"),CW=Symbol("elRovingFocusGroupItem"),MPe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},PPe=(e,t)=>{if(t!=="rtl")return e;switch(e){case tt.right:return tt.left;case tt.left:return tt.right;default:return e}},EPe=(e,t,n)=>{const r=PPe(e.key,n);if(!(t==="vertical"&&[tt.left,tt.right].includes(r))&&!(t==="horizontal"&&[tt.up,tt.down].includes(r)))return MPe[r]},IPe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),JM=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},T3="currentTabIdChange",k3="rovingFocusGroup.entryFocus",DPe={bubbles:!1,cancelable:!0},LPe=ge({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:CPe,emits:[T3,"entryFocus"],setup(e,{emit:t}){var n;const r=U((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=U(!1),i=U(!1),o=U(null),{getItems:s}=Ye(XM,void 0),l=F(()=>[{outline:"none"},e.style]),u=v=>{t(T3,v)},c=()=>{a.value=!0},f=Bn(v=>{var g;(g=e.onMousedown)==null||g.call(e,v)},()=>{i.value=!0}),d=Bn(v=>{var g;(g=e.onFocus)==null||g.call(e,v)},v=>{const g=!y(i),{target:m,currentTarget:_}=v;if(m===_&&g&&!y(a)){const b=new Event(k3,DPe);if(_==null||_.dispatchEvent(b),!b.defaultPrevented){const w=s().filter(k=>k.focusable),S=w.find(k=>k.active),x=w.find(k=>k.id===y(r)),T=[S,x,...w].filter(Boolean).map(k=>k.ref);JM(T)}}i.value=!1}),h=Bn(v=>{var g;(g=e.onBlur)==null||g.call(e,v)},()=>{a.value=!1}),p=(...v)=>{t("entryFocus",...v)};$t(ZM,{currentTabbedId:sh(r),loop:Qt(e,"loop"),tabIndex:F(()=>y(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Qt(e,"orientation"),dir:Qt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Ae(()=>e.currentTabId,v=>{r.value=v??null}),Dn(o,k3,p)}});function $Pe(e,t,n,r,a,i){return ke(e.$slots,"default")}var RPe=Ve(LPe,[["render",$Pe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const OPe=ge({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:TPe,ElRovingFocusGroupImpl:RPe}});function NPe(e,t,n,r,a,i){const o=Fe("el-roving-focus-group-impl"),s=Fe("el-focus-group-collection");return O(),we(s,null,{default:fe(()=>[V(o,ji(a_(e.$attrs)),{default:fe(()=>[ke(e.$slots,"default")]),_:3},16)]),_:3})}var BPe=Ve(OPe,[["render",NPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const FPe=ge({components:{ElRovingFocusCollectionItem:kPe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=Ye(ZM,void 0),{getItems:o}=Ye(XM,void 0),s=ki(),l=U(null),u=Bn(h=>{t("mousedown",h)},h=>{e.focusable?a(y(s)):h.preventDefault()}),c=Bn(h=>{t("focus",h)},()=>{a(y(s))}),f=Bn(h=>{t("keydown",h)},h=>{const{key:p,shiftKey:v,target:g,currentTarget:m}=h;if(p===tt.tab&&v){i();return}if(g!==m)return;const _=EPe(h);if(_){h.preventDefault();let w=o().filter(S=>S.focusable).map(S=>S.ref);switch(_){case"last":{w.reverse();break}case"prev":case"next":{_==="prev"&&w.reverse();const S=w.indexOf(m);w=r.value?IPe(w,S+1):w.slice(S+1);break}}Xe(()=>{JM(w)})}}),d=F(()=>n.value===y(s));return $t(CW,{rovingFocusGroupItemRef:l,tabIndex:F(()=>y(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function VPe(e,t,n,r,a,i){const o=Fe("el-roving-focus-collection-item");return O(),we(o,{id:e.id,focusable:e.focusable,active:e.active},{default:fe(()=>[ke(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var zPe=Ve(FPe,[["render",VPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const F0=ze({trigger:Zv.trigger,effect:{...br.effect,default:"light"},type:{type:xe(String)},placement:{type:xe(String),default:"bottom"},popperOptions:{type:xe(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:xe([Number,String]),default:0},maxHeight:{type:xe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:xe(Object)},teleported:br.teleported}),TW=ze({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:_n}}),HPe=ze({onKeydown:{type:xe(Function)}}),GPe=[tt.down,tt.pageDown,tt.home],kW=[tt.up,tt.pageUp,tt.end],WPe=[...GPe,...kW],{ElCollection:UPe,ElCollectionItem:jPe,COLLECTION_INJECTION_KEY:KPe,COLLECTION_ITEM_INJECTION_KEY:YPe}=xW("Dropdown"),N_=Symbol("elDropdown"),{ButtonGroup:qPe}=Lr,XPe=ge({name:"ElDropdown",components:{ElButton:Lr,ElButtonGroup:qPe,ElScrollbar:Ks,ElDropdownCollection:UPe,ElTooltip:da,ElRovingFocusGroup:BPe,ElOnlyChild:ZG,ElIcon:Je,ArrowDown:iu},props:F0,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=St(),r=Ie("dropdown"),{t:a}=jt(),i=U(),o=U(),s=U(null),l=U(null),u=U(null),c=U(null),f=U(!1),d=[tt.enter,tt.space,tt.down],h=F(()=>({maxHeight:Wn(e.maxHeight)})),p=F(()=>[r.m(w.value)]),v=ki().value,g=F(()=>e.id||v);Ae([i,Qt(e,"trigger")],([$,P],[R])=>{var D,B,H;const G=Ze(P)?P:[P];(D=R==null?void 0:R.$el)!=null&&D.removeEventListener&&R.$el.removeEventListener("pointerenter",x),(B=$==null?void 0:$.$el)!=null&&B.removeEventListener&&$.$el.removeEventListener("pointerenter",x),(H=$==null?void 0:$.$el)!=null&&H.addEventListener&&G.includes("hover")&&$.$el.addEventListener("pointerenter",x)},{immediate:!0}),pn(()=>{var $,P;(P=($=i.value)==null?void 0:$.$el)!=null&&P.removeEventListener&&i.value.$el.removeEventListener("pointerenter",x)});function m(){_()}function _(){var $;($=s.value)==null||$.onClose()}function b(){var $;($=s.value)==null||$.onOpen()}const w=nr();function S(...$){t("command",...$)}function x(){var $,P;(P=($=i.value)==null?void 0:$.$el)==null||P.focus()}function C(){}function T(){const $=y(l);$==null||$.focus(),c.value=null}function k($){c.value=$}function A($){f.value||($.preventDefault(),$.stopImmediatePropagation())}function M(){t("visible-change",!0)}function I($){($==null?void 0:$.type)==="keydown"&&l.value.focus()}function E(){t("visible-change",!1)}return $t(N_,{contentRef:l,role:F(()=>e.role),triggerId:g,isUsingKeyboard:f,onItemEnter:C,onItemLeave:T}),$t("elDropdown",{instance:n,dropdownSize:w,handleClick:m,commandHandler:S,trigger:Qt(e,"trigger"),hideOnClick:Qt(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:w,triggerId:g,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:k,handlerMainButtonClick:$=>{t("click",$)},handleEntryFocus:A,handleClose:_,handleOpen:b,handleBeforeShowTooltip:M,handleShowTooltip:I,handleBeforeHideTooltip:E,onFocusAfterTrapped:$=>{var P,R;$.preventDefault(),(R=(P=l.value)==null?void 0:P.focus)==null||R.call(P,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function ZPe(e,t,n,r,a,i){var o;const s=Fe("el-dropdown-collection"),l=Fe("el-roving-focus-group"),u=Fe("el-scrollbar"),c=Fe("el-only-child"),f=Fe("el-tooltip"),d=Fe("el-button"),h=Fe("arrow-down"),p=Fe("el-icon"),v=Fe("el-button-group");return O(),K("div",{class:j([e.ns.b(),e.ns.is("disabled",e.disabled)])},[V(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Ls({content:fe(()=>[V(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:fe(()=>[V(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:fe(()=>[V(s,null,{default:fe(()=>[ke(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:fe(()=>[V(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:fe(()=>[ke(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(O(),we(v,{key:0},{default:fe(()=>[V(d,Dt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:fe(()=>[ke(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),V(d,Dt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:fe(()=>[V(p,{class:j(e.ns.e("icon"))},{default:fe(()=>[V(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):be("v-if",!0)],2)}var JPe=Ve(XPe,[["render",ZPe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const QPe=ge({name:"DropdownItemImpl",components:{ElIcon:Je},props:TW,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ie("dropdown"),{role:r}=Ye(N_,void 0),{collectionItemRef:a}=Ye(YPe,void 0),{collectionItemRef:i}=Ye(APe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ye(CW,void 0),f=x_(a,i,o),d=F(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Bn(p=>{const{code:v}=p;if(v===tt.enter||v===tt.space)return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},u);return{ns:n,itemRef:f,dataset:{[SW]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),eEe=["aria-disabled","tabindex","role"];function tEe(e,t,n,r,a,i){const o=Fe("el-icon");return O(),K(He,null,[e.divided?(O(),K("li",Dt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):be("v-if",!0),W("li",Dt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=st((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon?(O(),we(o,{key:0},{default:fe(()=>[(O(),we(Lt(e.icon)))]),_:1})):be("v-if",!0),ke(e.$slots,"default")],16,eEe)],64)}var nEe=Ve(QPe,[["render",tEe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const AW=()=>{const e=Ye("elDropdown",{}),t=F(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},rEe=ge({name:"ElDropdownItem",components:{ElDropdownCollectionItem:jPe,ElRovingFocusItem:zPe,ElDropdownItemImpl:nEe},inheritAttrs:!1,props:TW,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=AW(),a=St(),i=U(null),o=F(()=>{var h,p;return(p=(h=y(i))==null?void 0:h.textContent)!=null?p:""}),{onItemEnter:s,onItemLeave:l}=Ye(N_,void 0),u=Bn(h=>(t("pointermove",h),h.defaultPrevented),CR(h=>{if(e.disabled){l(h);return}const p=h.currentTarget;p===document.activeElement||p.contains(document.activeElement)||(s(h),h.defaultPrevented||p==null||p.focus())})),c=Bn(h=>(t("pointerleave",h),h.defaultPrevented),CR(h=>{l(h)})),f=Bn(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var p,v,g;if(e.disabled){h.stopImmediatePropagation();return}(p=r==null?void 0:r.hideOnClick)!=null&&p.value&&((v=r.handleClick)==null||v.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,a,h)}),d=F(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function aEe(e,t,n,r,a,i){var o;const s=Fe("el-dropdown-item-impl"),l=Fe("el-roving-focus-item"),u=Fe("el-dropdown-collection-item");return O(),we(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:fe(()=>[V(l,{focusable:!e.disabled},{default:fe(()=>[V(s,Dt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:fe(()=>[ke(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var MW=Ve(rEe,[["render",aEe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const iEe=ge({name:"ElDropdownMenu",props:HPe,setup(e){const t=Ie("dropdown"),{_elDropdownSize:n}=AW(),r=n.value,{focusTrapRef:a,onKeydown:i}=Ye(FM,void 0),{contentRef:o,role:s,triggerId:l}=Ye(N_,void 0),{collectionRef:u,getItems:c}=Ye(KPe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:p,onFocus:v,onMousedown:g}=Ye(ZM,void 0),{collectionRef:m}=Ye(XM,void 0),_=F(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),b=x_(o,u,a,f,m),w=Bn(x=>{var C;(C=e.onKeydown)==null||C.call(e,x)},x=>{const{currentTarget:C,code:T,target:k}=x;if(C.contains(k),tt.tab===T&&x.stopImmediatePropagation(),x.preventDefault(),k!==y(o)||!WPe.includes(T))return;const M=c().filter(I=>!I.disabled).map(I=>I.ref);kW.includes(T)&&M.reverse(),JM(M)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:_,role:s,triggerId:l,dropdownListWrapperRef:b,handleKeydown:x=>{w(x),i(x)},onBlur:p,onFocus:v,onMousedown:g}}}),oEe=["role","aria-labelledby"];function sEe(e,t,n,r,a,i){return O(),K("ul",{ref:e.dropdownListWrapperRef,class:j(e.dropdownKls),style:Ke(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:t[1]||(t[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:t[2]||(t[2]=st((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=st((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[ke(e.$slots,"default")],46,oEe)}var PW=Ve(iEe,[["render",sEe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const lEe=At(JPe,{DropdownItem:MW,DropdownMenu:PW}),uEe=Vn(MW),cEe=Vn(PW),fEe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},dEe=["id"],hEe=["stop-color"],pEe=["stop-color"],vEe=["id"],gEe=["stop-color"],mEe=["stop-color"],yEe=["id"],bEe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_Ee={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},wEe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},SEe=["fill"],xEe=["fill"],CEe={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},TEe=["fill"],kEe=["fill"],AEe=["fill"],MEe=["fill"],PEe=["fill"],EEe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},IEe=["fill","xlink:href"],DEe=["fill","mask"],LEe=["fill"],$Ee=ge({name:"ImgEmpty"}),REe=ge({...$Ee,setup(e){const t=Ie("empty"),n=ki();return(r,a)=>(O(),K("svg",fEe,[W("defs",null,[W("linearGradient",{id:`linearGradient-1-${y(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[W("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,hEe),W("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,pEe)],8,dEe),W("linearGradient",{id:`linearGradient-2-${y(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[W("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,gEe),W("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,mEe)],8,vEe),W("rect",{id:`path-3-${y(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,yEe)]),W("g",bEe,[W("g",_Ee,[W("g",wEe,[W("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${y(t).cssVarBlockName("fill-color-3")})`},null,8,SEe),W("polygon",{id:"Rectangle-Copy-14",fill:`var(${y(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,xEe),W("g",CEe,[W("polygon",{id:"Rectangle-Copy-10",fill:`var(${y(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,TEe),W("polygon",{id:"Rectangle-Copy-11",fill:`var(${y(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,kEe),W("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${y(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,AEe),W("polygon",{id:"Rectangle-Copy-13",fill:`var(${y(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,MEe)]),W("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${y(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,PEe),W("g",EEe,[W("use",{id:"Mask",fill:`var(${y(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${y(n)}`},null,8,IEe),W("polygon",{id:"Rectangle-Copy",fill:`var(${y(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${y(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,DEe)]),W("polygon",{id:"Rectangle-Copy-18",fill:`var(${y(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,LEe)])])])]))}});var OEe=Ve(REe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const NEe=ze({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),BEe=["src"],FEe={key:1},VEe=ge({name:"ElEmpty"}),zEe=ge({...VEe,props:NEe,setup(e){const t=e,{t:n}=jt(),r=Ie("empty"),a=F(()=>t.description||n("el.table.emptyText")),i=F(()=>({width:Wn(t.imageSize)}));return(o,s)=>(O(),K("div",{class:j(y(r).b())},[W("div",{class:j(y(r).e("image")),style:Ke(y(i))},[o.image?(O(),K("img",{key:0,src:o.image,ondragstart:"return false"},null,8,BEe)):ke(o.$slots,"image",{key:1},()=>[V(OEe)])],6),W("div",{class:j(y(r).e("description"))},[o.$slots.description?ke(o.$slots,"description",{key:0}):(O(),K("p",FEe,$e(y(a)),1))],2),o.$slots.default?(O(),K("div",{key:0,class:j(y(r).e("bottom"))},[ke(o.$slots,"default")],2)):be("v-if",!0)],2))}});var HEe=Ve(zEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const EW=At(HEe),GEe=ze({urlList:{type:xe(Array),default:()=>In([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),WEe={close:()=>!0,switch:e=>lt(e)},UEe=["src"],jEe=ge({name:"ElImageViewer"}),KEe=ge({...jEe,props:GEe,emits:WEe,setup(e,{expose:t,emit:n}){const r=e,a={CONTAIN:{name:"contain",icon:kc(nye)},ORIGINAL:{name:"original",icon:kc(x0e)}},{t:i}=jt(),o=Ie("image-viewer"),{nextZIndex:s}=of(),l=U(),u=U([]),c=iQ(),f=U(!0),d=U(r.initialIndex),h=gn(a.CONTAIN),p=U({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=F(()=>{const{urlList:P}=r;return P.length<=1}),g=F(()=>d.value===0),m=F(()=>d.value===r.urlList.length-1),_=F(()=>r.urlList[d.value]),b=F(()=>{const{scale:P,deg:R,offsetX:D,offsetY:B,enableTransition:H}=p.value;let G=D/P,X=B/P;switch(R%360){case 90:case-270:[G,X]=[X,-G];break;case 180:case-180:[G,X]=[-G,-X];break;case 270:case-90:[G,X]=[-X,G];break}const ue={transform:`scale(${P}) rotate(${R}deg) translate(${G}px, ${X}px)`,transition:H?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(ue.maxWidth=ue.maxHeight="100%"),ue}),w=F(()=>lt(r.zIndex)?r.zIndex:s());function S(){C(),n("close")}function x(){const P=Mc(D=>{switch(D.code){case tt.esc:r.closeOnPressEscape&&S();break;case tt.space:I();break;case tt.left:L();break;case tt.up:$("zoomIn");break;case tt.right:N();break;case tt.down:$("zoomOut");break}}),R=Mc(D=>{const B=D.deltaY||D.deltaX;$(B<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{Dn(document,"keydown",P),Dn(document,"wheel",R)})}function C(){c.stop()}function T(){f.value=!1}function k(P){f.value=!1,P.target.alt=i("el.image.error")}function A(P){if(f.value||P.button!==0||!l.value)return;p.value.enableTransition=!1;const{offsetX:R,offsetY:D}=p.value,B=P.pageX,H=P.pageY,G=Mc(ue=>{p.value={...p.value,offsetX:R+ue.pageX-B,offsetY:D+ue.pageY-H}}),X=Dn(document,"mousemove",G);Dn(document,"mouseup",()=>{X()}),P.preventDefault()}function M(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(f.value)return;const P=Wv(a),R=Object.values(a),D=h.value.name,H=(R.findIndex(G=>G.name===D)+1)%P.length;h.value=a[P[H]],M()}function E(P){const R=r.urlList.length;d.value=(P+R)%R}function L(){g.value&&!r.infinite||E(d.value-1)}function N(){m.value&&!r.infinite||E(d.value+1)}function $(P,R={}){if(f.value)return;const{zoomRate:D,rotateDeg:B,enableTransition:H}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...R};switch(P){case"zoomOut":p.value.scale>.2&&(p.value.scale=Number.parseFloat((p.value.scale/D).toFixed(3)));break;case"zoomIn":p.value.scale<7&&(p.value.scale=Number.parseFloat((p.value.scale*D).toFixed(3)));break;case"clockwise":p.value.deg+=B;break;case"anticlockwise":p.value.deg-=B;break}p.value.enableTransition=H}return Ae(_,()=>{Xe(()=>{const P=u.value[0];P!=null&&P.complete||(f.value=!0)})}),Ae(d,P=>{M(),n("switch",P)}),nt(()=>{var P,R;x(),(R=(P=l.value)==null?void 0:P.focus)==null||R.call(P)}),t({setActiveItem:E}),(P,R)=>(O(),we(Hg,{to:"body",disabled:!P.teleported},[V(Kn,{name:"viewer-fade",appear:""},{default:fe(()=>[W("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:j(y(o).e("wrapper")),style:Ke({zIndex:y(w)})},[W("div",{class:j(y(o).e("mask")),onClick:R[0]||(R[0]=st(D=>P.hideOnClickModal&&S(),["self"]))},null,2),be(" CLOSE "),W("span",{class:j([y(o).e("btn"),y(o).e("close")]),onClick:S},[V(y(Je),null,{default:fe(()=>[V(y(so))]),_:1})],2),be(" ARROW "),y(v)?be("v-if",!0):(O(),K(He,{key:0},[W("span",{class:j([y(o).e("btn"),y(o).e("prev"),y(o).is("disabled",!P.infinite&&y(g))]),onClick:L},[V(y(Je),null,{default:fe(()=>[V(y(Ul))]),_:1})],2),W("span",{class:j([y(o).e("btn"),y(o).e("next"),y(o).is("disabled",!P.infinite&&y(m))]),onClick:N},[V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})],2)],64)),be(" ACTIONS "),W("div",{class:j([y(o).e("btn"),y(o).e("actions")])},[W("div",{class:j(y(o).e("actions__inner"))},[V(y(Je),{onClick:R[1]||(R[1]=D=>$("zoomOut"))},{default:fe(()=>[V(y(Tbe))]),_:1}),V(y(Je),{onClick:R[2]||(R[2]=D=>$("zoomIn"))},{default:fe(()=>[V(y(eG))]),_:1}),W("i",{class:j(y(o).e("actions__divider"))},null,2),V(y(Je),{onClick:I},{default:fe(()=>[(O(),we(Lt(y(h).icon)))]),_:1}),W("i",{class:j(y(o).e("actions__divider"))},null,2),V(y(Je),{onClick:R[3]||(R[3]=D=>$("anticlockwise"))},{default:fe(()=>[V(y(f0e))]),_:1}),V(y(Je),{onClick:R[4]||(R[4]=D=>$("clockwise"))},{default:fe(()=>[V(y(m0e))]),_:1})],2)],2),be(" CANVAS "),W("div",{class:j(y(o).e("canvas"))},[(O(!0),K(He,null,ct(P.urlList,(D,B)=>pt((O(),K("img",{ref_for:!0,ref:H=>u.value[B]=H,key:D,src:D,style:Ke(y(b)),class:j(y(o).e("img")),onLoad:T,onError:k,onMousedown:A},null,46,UEe)),[[Yt,B===d.value]])),128))],2),ke(P.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var YEe=Ve(KEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const IW=At(YEe),qEe=ze({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:xe([String,Object])},previewSrcList:{type:xe(Array),default:()=>In([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),XEe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>lt(e),close:()=>!0,show:()=>!0},ZEe=["src","loading"],JEe={key:0},QEe=ge({name:"ElImage",inheritAttrs:!1}),eIe=ge({...QEe,props:qEe,emits:XEe,setup(e,{emit:t}){const n=e;let r="";const{t:a}=jt(),i=Ie("image"),o=uh(),s=SM(),l=U(),u=U(!1),c=U(!0),f=U(!1),d=U(),h=U(),p=Ht&&"loading"in HTMLImageElement.prototype;let v,g;const m=F(()=>o.style),_=F(()=>{const{fit:P}=n;return Ht&&P?{objectFit:P}:{}}),b=F(()=>{const{previewSrcList:P}=n;return Array.isArray(P)&&P.length>0}),w=F(()=>{const{previewSrcList:P,initialIndex:R}=n;let D=R;return R>P.length-1&&(D=0),D}),S=F(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),x=()=>{Ht&&(c.value=!0,u.value=!1,l.value=n.src)};function C(P){c.value=!1,u.value=!1,t("load",P)}function T(P){c.value=!1,u.value=!0,t("error",P)}function k(){Gue(d.value,h.value)&&(x(),I())}const A=cH(k,200);async function M(){var P;if(!Ht)return;await Xe();const{scrollContainer:R}=n;oo(R)?h.value=R:dt(R)&&R!==""?h.value=(P=document.querySelector(R))!=null?P:void 0:d.value&&(h.value=mM(d.value)),h.value&&(v=Dn(h,"scroll",A),setTimeout(()=>k(),100))}function I(){!Ht||!h.value||!A||(v==null||v(),h.value=void 0)}function E(P){if(P.ctrlKey){if(P.deltaY<0)return P.preventDefault(),!1;if(P.deltaY>0)return P.preventDefault(),!1}}function L(){b.value&&(g=Dn("wheel",E,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function N(){g==null||g(),document.body.style.overflow=r,f.value=!1,t("close")}function $(P){t("switch",P)}return Ae(()=>n.src,()=>{S.value?(c.value=!0,u.value=!1,I(),M()):x()}),nt(()=>{S.value?M():x()}),(P,R)=>(O(),K("div",{ref_key:"container",ref:d,class:j([y(i).b(),P.$attrs.class]),style:Ke(y(m))},[l.value!==void 0&&!u.value?(O(),K("img",Dt({key:0},y(s),{src:l.value,loading:P.loading,style:y(_),class:[y(i).e("inner"),y(b)&&y(i).e("preview"),c.value&&y(i).is("loading")],onClick:L,onLoad:C,onError:T}),null,16,ZEe)):be("v-if",!0),c.value||u.value?(O(),K("div",{key:1,class:j(y(i).e("wrapper"))},[c.value?ke(P.$slots,"placeholder",{key:0},()=>[W("div",{class:j(y(i).e("placeholder"))},null,2)]):u.value?ke(P.$slots,"error",{key:1},()=>[W("div",{class:j(y(i).e("error"))},$e(y(a)("el.image.error")),3)]):be("v-if",!0)],2)):be("v-if",!0),y(b)?(O(),K(He,{key:2},[f.value?(O(),we(y(IW),{key:0,"z-index":P.zIndex,"initial-index":y(w),infinite:P.infinite,"zoom-rate":P.zoomRate,"url-list":P.previewSrcList,"hide-on-click-modal":P.hideOnClickModal,teleported:P.previewTeleported,"close-on-press-escape":P.closeOnPressEscape,onClose:N,onSwitch:$},{default:fe(()=>[P.$slots.viewer?(O(),K("div",JEe,[ke(P.$slots,"viewer")])):be("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):be("v-if",!0)],64)):be("v-if",!0)],6))}});var tIe=Ve(eIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const nIe=At(tIe),rIe=ze({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Rr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||lt(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),aIe={[Tn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[sa]:e=>lt(e)||tr(e),[Mt]:e=>lt(e)||tr(e)},iIe=["aria-label","onKeydown"],oIe=["aria-label","onKeydown"],sIe=ge({name:"ElInputNumber"}),lIe=ge({...sIe,props:rIe,emits:aIe,setup(e,{expose:t,emit:n}){const r=e,{t:a}=jt(),i=Ie("input-number"),o=U(),s=vt({currentValue:r.modelValue,userInput:null}),{formItem:l}=ya(),u=F(()=>lt(r.modelValue)&&r.modelValue<=r.min),c=F(()=>lt(r.modelValue)&&r.modelValue>=r.max),f=F(()=>{const E=m(r.step);return Sr(r.precision)?Math.max(m(r.modelValue),E):(E>r.precision,r.precision)}),d=F(()=>r.controls&&r.controlsPosition==="right"),h=nr(),p=La(),v=F(()=>{if(s.userInput!==null)return s.userInput;let E=s.currentValue;if(tr(E))return"";if(lt(E)){if(Number.isNaN(E))return"";Sr(r.precision)||(E=E.toFixed(r.precision))}return E}),g=(E,L)=>{if(Sr(L)&&(L=f.value),L===0)return Math.round(E);let N=String(E);const $=N.indexOf(".");if($===-1||!N.replace(".","").split("")[$+L])return E;const D=N.length;return N.charAt(D-1)==="5"&&(N=`${N.slice(0,Math.max(0,D-1))}6`),Number.parseFloat(Number(N).toFixed(L))},m=E=>{if(tr(E))return 0;const L=E.toString(),N=L.indexOf(".");let $=0;return N!==-1&&($=L.length-N-1),$},_=(E,L=1)=>lt(E)?g(E+r.step*L):s.currentValue,b=()=>{if(r.readonly||p.value||c.value)return;const E=Number(v.value)||0,L=_(E);x(L),n(sa,s.currentValue)},w=()=>{if(r.readonly||p.value||u.value)return;const E=Number(v.value)||0,L=_(E,-1);x(L),n(sa,s.currentValue)},S=(E,L)=>{const{max:N,min:$,step:P,precision:R,stepStrictly:D,valueOnClear:B}=r;let H=Number(E);if(tr(E)||Number.isNaN(H))return null;if(E===""){if(B===null)return null;H=dt(B)?{min:$,max:N}[B]:B}return D&&(H=g(Math.round(H/P)*P,R)),Sr(R)||(H=g(H,R)),(H>N||H<$)&&(H=H>N?N:$,L&&n(Mt,H)),H},x=(E,L=!0)=>{var N;const $=s.currentValue,P=S(E);if(!L){n(Mt,P);return}$!==P&&(s.userInput=null,n(Mt,P),n(Tn,P,$),r.validateEvent&&((N=l==null?void 0:l.validate)==null||N.call(l,"change").catch(R=>void 0)),s.currentValue=P)},C=E=>{s.userInput=E;const L=E===""?null:Number(E);n(sa,L),x(L,!1)},T=E=>{const L=E!==""?Number(E):"";(lt(L)&&!Number.isNaN(L)||E==="")&&x(L),s.userInput=null},k=()=>{var E,L;(L=(E=o.value)==null?void 0:E.focus)==null||L.call(E)},A=()=>{var E,L;(L=(E=o.value)==null?void 0:E.blur)==null||L.call(E)},M=E=>{n("focus",E)},I=E=>{var L;n("blur",E),r.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"blur").catch(N=>void 0))};return Ae(()=>r.modelValue,E=>{const L=S(s.userInput),N=S(E,!0);!lt(L)&&(!L||L!==N)&&(s.currentValue=N,s.userInput=null)},{immediate:!0}),nt(()=>{var E;const{min:L,max:N,modelValue:$}=r,P=(E=o.value)==null?void 0:E.input;if(P.setAttribute("role","spinbutton"),Number.isFinite(N)?P.setAttribute("aria-valuemax",String(N)):P.removeAttribute("aria-valuemax"),Number.isFinite(L)?P.setAttribute("aria-valuemin",String(L)):P.removeAttribute("aria-valuemin"),P.setAttribute("aria-valuenow",String(s.currentValue)),P.setAttribute("aria-disabled",String(p.value)),!lt($)&&$!=null){let R=Number($);Number.isNaN(R)&&(R=null),n(Mt,R)}}),Ws(()=>{var E;const L=(E=o.value)==null?void 0:E.input;L==null||L.setAttribute("aria-valuenow",`${s.currentValue}`)}),t({focus:k,blur:A}),(E,L)=>(O(),K("div",{class:j([y(i).b(),y(i).m(y(h)),y(i).is("disabled",y(p)),y(i).is("without-controls",!E.controls),y(i).is("controls-right",y(d))]),onDragstart:L[1]||(L[1]=st(()=>{},["prevent"]))},[E.controls?pt((O(),K("span",{key:0,role:"button","aria-label":y(a)("el.inputNumber.decrease"),class:j([y(i).e("decrease"),y(i).is("disabled",y(u))]),onKeydown:Wt(w,["enter"])},[V(y(Je),null,{default:fe(()=>[y(d)?(O(),we(y(iu),{key:0})):(O(),we(y(Tye),{key:1}))]),_:1})],42,iIe)),[[y(Lb),w]]):be("v-if",!0),E.controls?pt((O(),K("span",{key:1,role:"button","aria-label":y(a)("el.inputNumber.increase"),class:j([y(i).e("increase"),y(i).is("disabled",y(c))]),onKeydown:Wt(b,["enter"])},[V(y(Je),null,{default:fe(()=>[y(d)?(O(),we(y(w_),{key:0})):(O(),we(y(JH),{key:1}))]),_:1})],42,oIe)),[[y(Lb),b]]):be("v-if",!0),V(y(jr),{id:E.id,ref_key:"input",ref:o,type:"number",step:E.step,"model-value":y(v),placeholder:E.placeholder,readonly:E.readonly,disabled:y(p),size:y(h),max:E.max,min:E.min,name:E.name,label:E.label,"validate-event":!1,onWheel:L[0]||(L[0]=st(()=>{},["prevent"])),onKeydown:[Wt(st(b,["prevent"]),["up"]),Wt(st(w,["prevent"]),["down"])],onBlur:I,onFocus:M,onInput:C,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var uIe=Ve(lIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const DW=At(uIe),cIe=ze({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:_n}}),fIe={click:e=>e instanceof MouseEvent},dIe=["href"],hIe=ge({name:"ElLink"}),pIe=ge({...hIe,props:cIe,emits:fIe,setup(e,{emit:t}){const n=e,r=Ie("link"),a=F(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||t("click",o)}return(o,s)=>(O(),K("a",{class:j(y(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(O(),we(y(Je),{key:0},{default:fe(()=>[(O(),we(Lt(o.icon)))]),_:1})):be("v-if",!0),o.$slots.default?(O(),K("span",{key:1,class:j(y(r).e("inner"))},[ke(o.$slots,"default")],2)):be("v-if",!0),o.$slots.icon?ke(o.$slots,"icon",{key:2}):be("v-if",!0)],10,dIe))}});var vIe=Ve(pIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const gIe=At(vIe);let mIe=class{constructor(t,n){this.parent=t,this.domNode=n,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,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case tt.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case tt.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case tt.tab:{T0(t,"mouseleave");break}case tt.enter:case tt.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},yIe=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new mIe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case tt.down:{T0(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case tt.up:{T0(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case tt.tab:{T0(t.currentTarget,"mouseleave");break}case tt.enter:case tt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},bIe=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new yIe(r,t)})}};const _Ie=ge({name:"ElMenuCollapseTransition",setup(){const e=Ie("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Oo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){Ma(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Ji(n,e.m("collapse"))?(Ma(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Oo(n,e.m("collapse"))):(Oo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Ma(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Oo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function wIe(e,t,n,r,a,i){return O(),we(Kn,Dt({mode:"out-in"},e.listeners),{default:fe(()=>[ke(e.$slots,"default")]),_:3},16)}var SIe=Ve(_Ie,[["render",wIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function LW(e,t){const n=F(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:F(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function xIe(e){return F(()=>{const n=e.backgroundColor;return n?new c9(n).shade(20).toString():""})}const $W=(e,t)=>{const n=Ie("menu");return F(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":xIe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},CIe=ze({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},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:_n},expandOpenIcon:{type:_n},collapseCloseIcon:{type:_n},collapseOpenIcon:{type:_n}}),hy="ElSubMenu";var QM=ge({name:hy,props:CIe,setup(e,{slots:t,expose:n}){Yo({from:"popper-append-to-body",replacement:"teleported",scope:hy,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},F(()=>e.popperAppendToBody!==void 0));const r=St(),{indexPath:a,parentMenu:i}=LW(r,F(()=>e.index)),o=Ie("menu"),s=Ie("sub-menu"),l=Ye("rootMenu");l||sr(hy,"can not inject root menu");const u=Ye(`subMenu:${i.value.uid}`);u||sr(hy,"can not inject sub menu");const c=U({}),f=U({});let d;const h=U(!1),p=U(),v=U(null),g=F(()=>M.value==="horizontal"&&_.value?"bottom-start":"right-start"),m=F(()=>M.value==="horizontal"&&_.value||M.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:iu:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:oa),_=F(()=>u.level===0),b=F(()=>{var D;const B=(D=e.teleported)!=null?D:e.popperAppendToBody;return B===void 0?_.value:B}),w=F(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),S=F(()=>M.value==="horizontal"&&_.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"]),x=F(()=>l.openedMenus.includes(e.index)),C=F(()=>{let D=!1;return Object.values(c.value).forEach(B=>{B.active&&(D=!0)}),Object.values(f.value).forEach(B=>{B.active&&(D=!0)}),D}),T=F(()=>l.props.backgroundColor||""),k=F(()=>l.props.activeTextColor||""),A=F(()=>l.props.textColor||""),M=F(()=>l.props.mode),I=vt({index:e.index,indexPath:a,active:C}),E=F(()=>M.value!=="horizontal"?{color:A.value}:{borderBottomColor:C.value?l.props.activeTextColor?k.value:"":"transparent",color:C.value?k.value:A.value}),L=()=>{var D,B,H;return(H=(B=(D=v.value)==null?void 0:D.popperRef)==null?void 0:B.popperInstanceRef)==null?void 0:H.destroy()},N=D=>{D||L()},$=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:C.value})},P=(D,B=e.showTimeout)=>{var H;D.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}=zc(()=>{l.openMenu(e.index,a.value)},B),b.value&&((H=i.value.vnode.el)==null||H.dispatchEvent(new MouseEvent("mouseenter")))))},R=(D=!1)=>{var B,H;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=zc(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),b.value&&D&&((B=r.parent)==null?void 0:B.type.name)==="ElSubMenu"&&((H=u.handleMouseleave)==null||H.call(u,!0)))};Ae(()=>l.props.collapse,D=>N(!!D));{const D=H=>{f.value[H.index]=H},B=H=>{delete f.value[H.index]};$t(`subMenu:${r.uid}`,{addSubMenu:D,removeSubMenu:B,handleMouseleave:R,mouseInChild:h,level:u.level+1})}return n({opened:x}),nt(()=>{l.addSubMenu(I),u.addSubMenu(I)}),pn(()=>{u.removeSubMenu(I),l.removeSubMenu(I)}),()=>{var D;const B=[(D=t.title)==null?void 0:D.call(t),et(Je,{class:s.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>dt(m.value)?et(r.appContext.components[m.value]):et(m.value)})],H=$W(l.props,u.level+1),G=l.isMenuPopup?et(da,{ref:v,visible:x.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:b.value,fallbackPlacements:S.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var X;return et("div",{class:[o.m(M.value),o.m("popup-container"),e.popperClass],onMouseenter:ue=>P(ue,100),onMouseleave:()=>R(!0),onFocus:ue=>P(ue,100)},[et("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:H.value},[(X=t.default)==null?void 0:X.call(t)])])},default:()=>et("div",{class:s.e("title"),style:[E.value,{backgroundColor:T.value}],onClick:$},B)}):et(He,{},[et("div",{class:s.e("title"),style:[E.value,{backgroundColor:T.value}],ref:p,onClick:$},B),et(O_,{},{default:()=>{var X;return pt(et("ul",{role:"menu",class:[o.b(),o.m("inline")],style:H.value},[(X=t.default)==null?void 0:X.call(t)]),[[Yt,x.value]])}})]);return et("li",{class:[s.b(),s.is("active",C.value),s.is("opened",x.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:P,onMouseleave:()=>R(!0),onFocus:P},[G])}}});const TIe=ze({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:xe(Array),default:()=>In([])},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"}}),hS=e=>Array.isArray(e)&&e.every(t=>dt(t)),kIe={close:(e,t)=>dt(e)&&hS(t),open:(e,t)=>dt(e)&&hS(t),select:(e,t,n,r)=>dt(e)&&hS(t)&&It(n)&&(r===void 0||r instanceof Promise)};var AIe=ge({name:"ElMenu",props:TIe,emits:kIe,setup(e,{emit:t,slots:n,expose:r}){const a=St(),i=a.appContext.config.globalProperties.$router,o=U(),s=Ie("menu"),l=Ie("sub-menu"),u=U(-1),c=U(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=U(e.defaultActive),d=U({}),h=U({}),p=F(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const M=f.value&&d.value[f.value];if(!M||e.mode==="horizontal"||e.collapse)return;M.indexPath.forEach(E=>{const L=h.value[E];L&&g(E,L.indexPath)})},g=(M,I)=>{c.value.includes(M)||(e.uniqueOpened&&(c.value=c.value.filter(E=>I.includes(E))),c.value.push(M),t("open",M,I))},m=M=>{const I=c.value.indexOf(M);I!==-1&&c.value.splice(I,1)},_=(M,I)=>{m(M),t("close",M,I)},b=({index:M,indexPath:I})=>{c.value.includes(M)?_(M,I):g(M,I)},w=M=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:I,indexPath:E}=M;if(!(tr(I)||tr(E)))if(e.router&&i){const L=M.route||I,N=i.push(L).then($=>($||(f.value=I),$));t("select",I,E,{index:I,indexPath:E,route:L},N)}else f.value=I,t("select",I,E,{index:I,indexPath:E})},S=M=>{const I=d.value,E=I[M]||f.value&&I[f.value]||I[e.defaultActive];E?f.value=E.index:f.value=M},x=()=>{var M,I;if(!o.value)return-1;const E=Array.from((I=(M=o.value)==null?void 0:M.childNodes)!=null?I:[]).filter(B=>B.nodeName!=="#text"||B.nodeValue),L=64,N=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),$=Number.parseInt(getComputedStyle(o.value).paddingRight,10),P=o.value.clientWidth-N-$;let R=0,D=0;return E.forEach((B,H)=>{R+=B.offsetWidth||0,R<=P-L&&(D=H+1)}),D===E.length?-1:D},C=(M,I=33.34)=>{let E;return()=>{E&&clearTimeout(E),E=setTimeout(()=>{M()},I)}};let T=!0;const k=()=>{const M=()=>{u.value=-1,Xe(()=>{u.value=x()})};T?M():C(M)(),T=!1};Ae(()=>e.defaultActive,M=>{d.value[M]||(f.value=""),S(M)}),Ae(()=>e.collapse,M=>{M&&(c.value=[])}),Ae(d.value,v);let A;Ka(()=>{e.mode==="horizontal"&&e.ellipsis?A=Yr(o,k).stop:A==null||A()});{const M=N=>{h.value[N.index]=N},I=N=>{delete h.value[N.index]};$t("rootMenu",vt({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:p,addMenuItem:N=>{d.value[N.index]=N},removeMenuItem:N=>{delete d.value[N.index]},addSubMenu:M,removeSubMenu:I,openMenu:g,closeMenu:_,handleMenuItemClick:w,handleSubMenuClick:b})),$t(`subMenu:${a.uid}`,{addSubMenu:M,removeSubMenu:I,mouseInChild:U(!1),level:0})}return nt(()=>{e.mode==="horizontal"&&new bIe(a.vnode.el,s.namespace.value)}),r({open:I=>{const{indexPath:E}=h.value[I];E.forEach(L=>g(L,E))},close:m,handleResize:k}),()=>{var M,I;let E=(I=(M=n.default)==null?void 0:M.call(n))!=null?I:[];const L=[];if(e.mode==="horizontal"&&o.value){const P=vd(E),R=u.value===-1?P:P.slice(0,u.value),D=u.value===-1?[]:P.slice(u.value);D!=null&&D.length&&e.ellipsis&&(E=R,L.push(et(QM,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>et(Je,{class:l.e("icon-more")},{default:()=>et(Oye)}),default:()=>D})))}const N=$W(e,0),$=et("ul",{key:String(e.collapse),role:"menubar",ref:o,style:N.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...E,...L]);return e.collapseTransition&&e.mode==="vertical"?et(SIe,()=>$):$}}});const MIe=ze({index:{type:xe([String,null]),default:null},route:{type:xe([String,Object])},disabled:Boolean}),PIe={click:e=>dt(e.index)&&Array.isArray(e.indexPath)},pS="ElMenuItem",EIe=ge({name:pS,components:{ElTooltip:da},props:MIe,emits:PIe,setup(e,{emit:t}){const n=St(),r=Ye("rootMenu"),a=Ie("menu"),i=Ie("menu-item");r||sr(pS,"can not inject root menu");const{parentMenu:o,indexPath:s}=LW(n,Qt(e,"index")),l=Ye(`subMenu:${o.value.uid}`);l||sr(pS,"can not inject sub menu");const u=F(()=>e.index===r.activeIndex),c=vt({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return nt(()=>{l.addSubMenu(c),r.addMenuItem(c)}),pn(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function IIe(e,t,n,r,a,i){const o=Fe("el-tooltip");return O(),K("li",{class:j([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?(O(),we(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:fe(()=>[ke(e.$slots,"title")]),default:fe(()=>[W("div",{class:j(e.nsMenu.be("tooltip","trigger"))},[ke(e.$slots,"default")],2)]),_:3},8,["effect"])):(O(),K(He,{key:1},[ke(e.$slots,"default"),ke(e.$slots,"title")],64))],2)}var RW=Ve(EIe,[["render",IIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const DIe={title:String},LIe="ElMenuItemGroup",$Ie=ge({name:LIe,props:DIe,setup(){return{ns:Ie("menu-item-group")}}});function RIe(e,t,n,r,a,i){return O(),K("li",{class:j(e.ns.b())},[W("div",{class:j(e.ns.e("title"))},[e.$slots.title?ke(e.$slots,"title",{key:1}):(O(),K(He,{key:0},[yt($e(e.title),1)],64))],2),W("ul",null,[ke(e.$slots,"default")])],2)}var OW=Ve($Ie,[["render",RIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const OIe=At(AIe,{MenuItem:RW,MenuItemGroup:OW,SubMenu:QM}),NIe=Vn(RW),BIe=Vn(OW),FIe=Vn(QM),VIe=ze({icon:{type:_n,default:()=>Tge},title:String,content:{type:String,default:""}}),zIe={back:()=>!0},HIe=["aria-label"],GIe=ge({name:"ElPageHeader"}),WIe=ge({...GIe,props:VIe,emits:zIe,setup(e,{emit:t}){const n=Tr(),{t:r}=jt(),a=Ie("page-header"),i=F(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function o(){t("back")}return(s,l)=>(O(),K("div",{class:j(y(i))},[s.$slots.breadcrumb?(O(),K("div",{key:0,class:j(y(a).e("breadcrumb"))},[ke(s.$slots,"breadcrumb")],2)):be("v-if",!0),W("div",{class:j(y(a).e("header"))},[W("div",{class:j(y(a).e("left"))},[W("div",{class:j(y(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(O(),K("div",{key:0,"aria-label":s.title||y(r)("el.pageHeader.title"),class:j(y(a).e("icon"))},[ke(s.$slots,"icon",{},()=>[s.icon?(O(),we(y(Je),{key:0},{default:fe(()=>[(O(),we(Lt(s.icon)))]),_:1})):be("v-if",!0)])],10,HIe)):be("v-if",!0),W("div",{class:j(y(a).e("title"))},[ke(s.$slots,"title",{},()=>[yt($e(s.title||y(r)("el.pageHeader.title")),1)])],2)],2),V(y(wW),{direction:"vertical"}),W("div",{class:j(y(a).e("content"))},[ke(s.$slots,"content",{},()=>[yt($e(s.content),1)])],2)],2),s.$slots.extra?(O(),K("div",{key:0,class:j(y(a).e("extra"))},[ke(s.$slots,"extra")],2)):be("v-if",!0)],2),s.$slots.default?(O(),K("div",{key:1,class:j(y(a).e("main"))},[ke(s.$slots,"default")],2)):be("v-if",!0)],2))}});var UIe=Ve(WIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const jIe=At(UIe),NW=Symbol("elPaginationKey"),KIe=ze({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:_n}}),YIe={click:e=>e instanceof MouseEvent},qIe=["disabled","aria-label","aria-disabled"],XIe={key:0},ZIe=ge({name:"ElPaginationPrev"}),JIe=ge({...ZIe,props:KIe,emits:YIe,setup(e){const t=e,{t:n}=jt(),r=F(()=>t.disabled||t.currentPage<=1);return(a,i)=>(O(),K("button",{type:"button",class:"btn-prev",disabled:y(r),"aria-label":a.prevText||y(n)("el.pagination.prev"),"aria-disabled":y(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(O(),K("span",XIe,$e(a.prevText),1)):(O(),we(y(Je),{key:1},{default:fe(()=>[(O(),we(Lt(a.prevIcon)))]),_:1}))],8,qIe))}});var QIe=Ve(JIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const eDe=ze({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:_n}}),tDe=["disabled","aria-label","aria-disabled"],nDe={key:0},rDe=ge({name:"ElPaginationNext"}),aDe=ge({...rDe,props:eDe,emits:["click"],setup(e){const t=e,{t:n}=jt(),r=F(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(O(),K("button",{type:"button",class:"btn-next",disabled:y(r),"aria-label":a.nextText||y(n)("el.pagination.next"),"aria-disabled":y(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(O(),K("span",nDe,$e(a.nextText),1)):(O(),we(y(Je),{key:1},{default:fe(()=>[(O(),we(Lt(a.nextIcon)))]),_:1}))],8,tDe))}});var iDe=Ve(aDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const BW=Symbol("ElSelectGroup"),rm=Symbol("ElSelect");function oDe(e,t){const n=Ye(rm),r=Ye(BW,{disabled:!1}),a=F(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=F(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),o=F(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!i.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=F(()=>e.label||(a.value?"":e.value)),l=F(()=>e.value||e.label||""),u=F(()=>e.disabled||t.groupDisabled||o.value),c=St(),f=(v=[],g)=>{if(a.value){const m=n.props.valueKey;return v&&v.some(_=>on(En(_,m))===En(g,m))}else return v&&v.includes(g)},d=(v,g)=>{if(a.value){const{valueKey:m}=n.props;return En(v,m)===En(g,m)}else return v===g},h=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Ae(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Ae(()=>e.value,(v,g)=>{const{remote:m,valueKey:_}=n.props;if(Object.is(v,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(_&&typeof v=="object"&&typeof g=="object"&&v[_]===g[_])return;n.setSelected()}}),Ae(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:p}=on(n);return Ae(p,v=>{const{query:g}=y(v),m=new RegExp(jH(g),"i");t.visible=m.test(s.value)||e.created,t.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:h}}const sDe=ge({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Ie("select"),n=vt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:a,isDisabled:i,select:o,hoverItem:s}=oDe(e,n),{visible:l,hover:u}=or(n),c=St().proxy;o.onOptionCreate(c),pn(()=>{const d=c.value,{selected:h}=o,v=(o.props.multiple?h:[h]).some(g=>g.value===c.value);Xe(()=>{o.cachedOptions.get(d)===c&&!v&&o.cachedOptions.delete(d)}),o.onOptionDestroy(d,c)});function f(){e.disabled!==!0&&n.groupDisabled!==!0&&o.handleOptionSelect(c,!0)}return{ns:t,currentLabel:r,itemSelected:a,isDisabled:i,select:o,hoverItem:s,visible:l,hover:u,selectOptionClick:f,states:n}}});function lDe(e,t,n,r,a,i){return pt((O(),K("li",{class:j([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=st((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[ke(e.$slots,"default",{},()=>[W("span",null,$e(e.currentLabel),1)])],34)),[[Yt,e.visible]])}var eP=Ve(sDe,[["render",lDe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const uDe=ge({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ye(rm),t=Ie("select"),n=F(()=>e.props.popperClass),r=F(()=>e.props.multiple),a=F(()=>e.props.fitInputWidth),i=U("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return nt(()=>{o(),Yr(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function cDe(e,t,n,r,a,i){return O(),K("div",{class:j([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ke({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[ke(e.$slots,"default")],6)}var fDe=Ve(uDe,[["render",cDe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function dDe(e){const{t}=jt();return vt({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const hDe=(e,t,n)=>{const{t:r}=jt(),a=Ie("select");Yo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},F(()=>e.suffixTransition===!1));const i=U(null),o=U(null),s=U(null),l=U(null),u=U(null),c=U(null),f=U(null),d=U(-1),h=gn({query:""}),p=gn(""),v=U([]);let g=0;const{form:m,formItem:_}=ya(),b=F(()=>!e.filterable||e.multiple||!t.visible),w=F(()=>e.disabled||(m==null?void 0:m.disabled)),S=F(()=>{const Ee=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!w.value&&t.inputHovering&&Ee}),x=F(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),C=F(()=>a.is("reverse",x.value&&t.visible&&e.suffixTransition)),T=F(()=>e.remote?300:0),k=F(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),A=F(()=>{const Ee=Array.from(t.options.values()),qe=[];return v.value.forEach(xt=>{const wt=Ee.findIndex(Bt=>Bt.currentLabel===xt);wt>-1&&qe.push(Ee[wt])}),qe.length?qe:Ee}),M=F(()=>Array.from(t.cachedOptions.values())),I=F(()=>{const Ee=A.value.filter(qe=>!qe.created).some(qe=>qe.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!Ee}),E=nr(),L=F(()=>["small"].includes(E.value)?"small":"default"),N=F({get(){return t.visible&&k.value!==!1},set(Ee){t.visible=Ee}});Ae([()=>w.value,()=>E.value,()=>m==null?void 0:m.size],()=>{Xe(()=>{$()})}),Ae(()=>e.placeholder,Ee=>{t.cachedPlaceHolder=t.currentPlaceholder=Ee}),Ae(()=>e.modelValue,(Ee,qe)=>{e.multiple&&($(),Ee&&Ee.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",P(t.query))),B(),e.filterable&&!e.multiple&&(t.inputLength=20),!Ya(Ee,qe)&&e.validateEvent&&(_==null||_.validate("change").catch(xt=>void 0))},{flush:"post",deep:!0}),Ae(()=>t.visible,Ee=>{var qe,xt,wt,Bt,ln;Ee?((xt=(qe=l.value)==null?void 0:qe.updatePopper)==null||xt.call(qe),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Bt=(wt=s.value)==null?void 0:wt.focus)==null||Bt.call(wt),e.multiple?(ln=o.value)==null||ln.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),P(t.query),!e.multiple&&!e.remote&&(h.value.query="",Rh(h),Rh(p)))):(e.filterable&&(ft(e.filterMethod)&&e.filterMethod(""),ft(e.remoteMethod)&&e.remoteMethod("")),o.value&&o.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,G(),Xe(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",Ee)}),Ae(()=>t.options.entries(),()=>{var Ee,qe,xt;if(!Ht)return;(qe=(Ee=l.value)==null?void 0:Ee.updatePopper)==null||qe.call(Ee),e.multiple&&$();const wt=((xt=c.value)==null?void 0:xt.querySelectorAll("input"))||[];Array.from(wt).includes(document.activeElement)||B(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&D()},{flush:"post"}),Ae(()=>t.hoverIndex,Ee=>{lt(Ee)&&Ee>-1?d.value=A.value[Ee]||{}:d.value={},A.value.forEach(qe=>{qe.hover=d.value===qe})});const $=()=>{Xe(()=>{var Ee,qe;if(!i.value)return;const xt=i.value.$el.querySelector("input");g=g||(xt.clientHeight>0?xt.clientHeight+2:0);const wt=u.value,Bt=Ebe(E.value||(m==null?void 0:m.size)),ln=Bt===g||g<=0?Bt:g;!(xt.offsetParent===null)&&(xt.style.height=`${(t.selected.length===0?ln:Math.max(wt?wt.clientHeight+(wt.clientHeight>ln?6:0):0,ln))-2}px`),t.tagInMultiLine=Number.parseFloat(xt.style.height)>=ln,t.visible&&k.value!==!1&&((qe=(Ee=l.value)==null?void 0:Ee.updatePopper)==null||qe.call(Ee))})},P=async Ee=>{if(!(t.previousQuery===Ee||t.isOnComposition)){if(t.previousQuery===null&&(ft(e.filterMethod)||ft(e.remoteMethod))){t.previousQuery=Ee;return}t.previousQuery=Ee,Xe(()=>{var qe,xt;t.visible&&((xt=(qe=l.value)==null?void 0:qe.updatePopper)==null||xt.call(qe))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Xe(()=>{const qe=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,qe):qe,R(),$()}),e.remote&&ft(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(Ee)):ft(e.filterMethod)?(e.filterMethod(Ee),Rh(p)):(t.filteredOptionsCount=t.optionsCount,h.value.query=Ee,Rh(h),Rh(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Xe(),D())}},R=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},D=()=>{const Ee=A.value.filter(wt=>wt.visible&&!wt.disabled&&!wt.states.groupDisabled),qe=Ee.find(wt=>wt.created),xt=Ee[0];t.hoverIndex=Y(A.value,qe||xt)},B=()=>{var Ee;if(e.multiple)t.selectedLabel="";else{const xt=H(e.modelValue);(Ee=xt.props)!=null&&Ee.created?(t.createdLabel=xt.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=xt.currentLabel,t.selected=xt,e.filterable&&(t.query=t.selectedLabel);return}const qe=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(xt=>{qe.push(H(xt))}),t.selected=qe,Xe(()=>{$()})},H=Ee=>{let qe;const xt=_0(Ee).toLowerCase()==="object",wt=_0(Ee).toLowerCase()==="null",Bt=_0(Ee).toLowerCase()==="undefined";for(let Re=t.cachedOptions.size-1;Re>=0;Re--){const at=M.value[Re];if(xt?En(at.value,e.valueKey)===En(Ee,e.valueKey):at.value===Ee){qe={value:Ee,currentLabel:at.currentLabel,isDisabled:at.isDisabled};break}}if(qe)return qe;const ln=xt?Ee.label:!wt&&!Bt?Ee:"",ur={value:Ee,currentLabel:ln};return e.multiple&&(ur.hitState=!1),ur},G=()=>{setTimeout(()=>{const Ee=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(qe=>A.value.findIndex(xt=>En(xt,Ee)===En(qe,Ee)))):t.hoverIndex=-1:t.hoverIndex=A.value.findIndex(qe=>Me(qe)===Me(t.selected))},300)},X=()=>{var Ee,qe;ue(),(qe=(Ee=l.value)==null?void 0:Ee.updatePopper)==null||qe.call(Ee),e.multiple&&$()},ue=()=>{var Ee;t.inputWidth=(Ee=i.value)==null?void 0:Ee.$el.offsetWidth},ie=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,P(t.query))},le=fa(()=>{ie()},T.value),Q=fa(Ee=>{P(Ee.target.value)},T.value),J=Ee=>{Ya(e.modelValue,Ee)||n.emit(Tn,Ee)},se=Ee=>{if(Ee.target.value.length<=0&&!q()){const qe=e.modelValue.slice();qe.pop(),n.emit(Mt,qe),J(qe)}Ee.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},he=(Ee,qe)=>{const xt=t.selected.indexOf(qe);if(xt>-1&&!w.value){const wt=e.modelValue.slice();wt.splice(xt,1),n.emit(Mt,wt),J(wt),n.emit("remove-tag",qe.value)}Ee.stopPropagation()},re=Ee=>{Ee.stopPropagation();const qe=e.multiple?[]:"";if(!dt(qe))for(const xt of t.selected)xt.isDisabled&&qe.push(xt.value);n.emit(Mt,qe),J(qe),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},z=(Ee,qe)=>{var xt;if(e.multiple){const wt=(e.modelValue||[]).slice(),Bt=Y(wt,Ee.value);Bt>-1?wt.splice(Bt,1):(e.multipleLimit<=0||wt.length<e.multipleLimit)&&wt.push(Ee.value),n.emit(Mt,wt),J(wt),Ee.created&&(t.query="",P(""),t.inputLength=20),e.filterable&&((xt=o.value)==null||xt.focus())}else n.emit(Mt,Ee.value),J(Ee.value),t.visible=!1;t.isSilentBlur=qe,ee(),!t.visible&&Xe(()=>{oe(Ee)})},Y=(Ee=[],qe)=>{if(!It(qe))return Ee.indexOf(qe);const xt=e.valueKey;let wt=-1;return Ee.some((Bt,ln)=>on(En(Bt,xt))===En(qe,xt)?(wt=ln,!0):!1),wt},ee=()=>{t.softFocus=!0;const Ee=o.value||i.value;Ee&&(Ee==null||Ee.focus())},oe=Ee=>{var qe,xt,wt,Bt,ln;const ur=Array.isArray(Ee)?Ee[0]:Ee;let Re=null;if(ur!=null&&ur.value){const at=A.value.filter(Kt=>Kt.value===ur.value);at.length>0&&(Re=at[0].$el)}if(l.value&&Re){const at=(Bt=(wt=(xt=(qe=l.value)==null?void 0:qe.popperRef)==null?void 0:xt.contentRef)==null?void 0:wt.querySelector)==null?void 0:Bt.call(wt,`.${a.be("dropdown","wrap")}`);at&&qH(at,Re)}(ln=f.value)==null||ln.handleScroll()},ve=Ee=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(Ee.value,Ee),t.cachedOptions.set(Ee.value,Ee)},Z=(Ee,qe)=>{t.options.get(Ee)===qe&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(Ee))},ce=Ee=>{Ee.code!==tt.backspace&&q(!1),t.inputLength=o.value.value.length*15+20,$()},q=Ee=>{if(!Array.isArray(t.selected))return;const qe=t.selected[t.selected.length-1];if(qe)return Ee===!0||Ee===!1?(qe.hitState=Ee,Ee):(qe.hitState=!qe.hitState,qe.hitState)},ae=Ee=>{const qe=Ee.target.value;if(Ee.type==="compositionend")t.isOnComposition=!1,Xe(()=>P(qe));else{const xt=qe[qe.length-1]||"";t.isOnComposition=!T_(xt)}},ne=()=>{Xe(()=>oe(t.selected))},de=Ee=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",Ee))},me=()=>{var Ee,qe,xt;t.visible=!1,(Ee=i.value)==null||Ee.blur(),(xt=(qe=s.value)==null?void 0:qe.blur)==null||xt.call(qe)},pe=Ee=>{Xe(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",Ee)}),t.softFocus=!1},Se=Ee=>{re(Ee)},Pe=()=>{t.visible=!1},Oe=Ee=>{t.visible&&(Ee.preventDefault(),Ee.stopPropagation(),t.visible=!1)},Ne=Ee=>{var qe;Ee&&!t.mouseEnter||w.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),t.visible&&((qe=o.value||i.value)==null||qe.focus()))},Te=()=>{t.visible?A.value[t.hoverIndex]&&z(A.value[t.hoverIndex],void 0):Ne()},Me=Ee=>It(Ee.value)?En(Ee.value,e.valueKey):Ee.value,Ce=F(()=>A.value.filter(Ee=>Ee.visible).every(Ee=>Ee.disabled)),ye=F(()=>t.selected.slice(0,e.maxCollapseTags)),_e=F(()=>t.selected.slice(e.maxCollapseTags)),Le=Ee=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ce.value){Ee==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):Ee==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const qe=A.value[t.hoverIndex];(qe.disabled===!0||qe.states.groupDisabled===!0||!qe.visible)&&Le(Ee),Xe(()=>oe(d.value))}};return{optionList:v,optionsArray:A,selectSize:E,handleResize:X,debouncedOnInputChange:le,debouncedQueryChange:Q,deletePrevTag:se,deleteTag:he,deleteSelected:re,handleOptionSelect:z,scrollToOption:oe,readonly:b,resetInputHeight:$,showClose:S,iconComponent:x,iconReverse:C,showNewOption:I,collapseTagSize:L,setSelected:B,managePlaceholder:R,selectDisabled:w,emptyText:k,toggleLastOptionHitState:q,resetInputState:ce,handleComposition:ae,onOptionCreate:ve,onOptionDestroy:Z,handleMenuEnter:ne,handleFocus:de,blur:me,handleBlur:pe,handleClearClick:Se,handleClose:Pe,handleKeydownEscape:Oe,toggleMenu:Ne,selectOption:Te,getValueKey:Me,navigateOptions:Le,dropMenuVisible:N,queryChange:h,groupQueryChange:p,showTagList:ye,collapseTagList:_e,reference:i,input:o,iOSInput:s,tooltipRef:l,tags:u,selectWrapper:c,scrollbar:f,handleMouseEnter:()=>{t.mouseEnter=!0},handleMouseLeave:()=>{t.mouseEnter=!1}}};var pDe=ge({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,p,v;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!dt(f.children)&&!Array.isArray(f.children)&&ft((h=f.children)==null?void 0:h.default)?(p=f.children)==null?void 0:p.default():f.children):g==="ElOption"?l.push((v=f.props)==null?void 0:v.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const A3="ElSelect",vDe=ge({name:A3,componentName:A3,components:{ElInput:jr,ElSelectMenu:fDe,ElOption:eP,ElOptions:pDe,ElTag:Jv,ElScrollbar:Ks,ElTooltip:da,ElIcon:Je},directives:{ClickOutside:Yl},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:C_},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:br.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:_n,default:ou},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:_n,default:iu},tagType:{...UM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:af,default:"bottom-start"}},emits:[Mt,Tn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Ie("select"),r=Ie("input"),{t:a}=jt(),i=dDe(e),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,deleteSelected:g,handleOptionSelect:m,scrollToOption:_,setSelected:b,resetInputHeight:w,managePlaceholder:S,showClose:x,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:A,emptyText:M,toggleLastOptionHitState:I,resetInputState:E,handleComposition:L,onOptionCreate:N,onOptionDestroy:$,handleMenuEnter:P,handleFocus:R,blur:D,handleBlur:B,handleClearClick:H,handleClose:G,handleKeydownEscape:X,toggleMenu:ue,selectOption:ie,getValueKey:le,navigateOptions:Q,dropMenuVisible:J,reference:se,input:he,iOSInput:re,tooltipRef:z,tags:Y,selectWrapper:ee,scrollbar:oe,queryChange:ve,groupQueryChange:Z,handleMouseEnter:ce,handleMouseLeave:q,showTagList:ae,collapseTagList:ne}=hDe(e,i,t),{focus:de}=Nbe(se),{inputWidth:me,selected:pe,inputLength:Se,filteredOptionsCount:Pe,visible:Oe,softFocus:Ne,selectedLabel:Te,hoverIndex:Me,query:Ce,inputHovering:ye,currentPlaceholder:_e,menuVisibleOnFocus:Le,isOnComposition:je,isSilentBlur:gt,options:Ee,cachedOptions:qe,optionsCount:xt,prefixWidth:wt,tagInMultiLine:Bt}=or(i),ln=F(()=>{const qt=[n.b()],yr=y(l);return yr&&qt.push(n.m(yr)),e.disabled&&qt.push(n.m("disabled")),qt}),ur=F(()=>({maxWidth:`${y(me)-32}px`,width:"100%"})),Re=F(()=>({maxWidth:`${y(me)>123?y(me)-123:y(me)-75}px`}));$t(rm,vt({props:e,options:Ee,optionsArray:s,cachedOptions:qe,optionsCount:xt,filteredOptionsCount:Pe,hoverIndex:Me,handleOptionSelect:m,onOptionCreate:N,onOptionDestroy:$,selectWrapper:ee,selected:pe,setSelected:b,queryChange:ve,groupQueryChange:Z})),nt(()=>{i.cachedPlaceHolder=_e.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(_e.value=""),Yr(ee,c),e.remote&&e.multiple&&w(),Xe(()=>{const qt=se.value&&se.value.$el;if(qt&&(me.value=qt.getBoundingClientRect().width,t.slots.prefix)){const yr=qt.querySelector(`.${r.e("prefix")}`);wt.value=Math.max(yr.getBoundingClientRect().width+5,30)}}),b()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Mt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Mt,"");const at=F(()=>{var qt,yr;return(yr=(qt=z.value)==null?void 0:qt.popperRef)==null?void 0:yr.contentRef});return{isIOS:lH,onOptionsRendered:qt=>{o.value=qt},tagInMultiLine:Bt,prefixWidth:wt,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,deleteSelected:g,handleOptionSelect:m,scrollToOption:_,inputWidth:me,selected:pe,inputLength:Se,filteredOptionsCount:Pe,visible:Oe,softFocus:Ne,selectedLabel:Te,hoverIndex:Me,query:Ce,inputHovering:ye,currentPlaceholder:_e,menuVisibleOnFocus:Le,isOnComposition:je,isSilentBlur:gt,options:Ee,resetInputHeight:w,managePlaceholder:S,showClose:x,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:A,emptyText:M,toggleLastOptionHitState:I,resetInputState:E,handleComposition:L,handleMenuEnter:P,handleFocus:R,blur:D,handleBlur:B,handleClearClick:H,handleClose:G,handleKeydownEscape:X,toggleMenu:ue,selectOption:ie,getValueKey:le,navigateOptions:Q,dropMenuVisible:J,focus:de,reference:se,input:he,iOSInput:re,tooltipRef:z,popperPaneRef:at,tags:Y,selectWrapper:ee,scrollbar:oe,wrapperKls:ln,selectTagsStyle:ur,nsSelect:n,tagTextStyle:Re,handleMouseEnter:ce,handleMouseLeave:q,showTagList:ae,collapseTagList:ne}}}),gDe=["disabled","autocomplete"],mDe=["disabled"],yDe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function bDe(e,t,n,r,a,i){const o=Fe("el-tag"),s=Fe("el-tooltip"),l=Fe("el-icon"),u=Fe("el-input"),c=Fe("el-option"),f=Fe("el-options"),d=Fe("el-scrollbar"),h=Fe("el-select-menu"),p=Ds("click-outside");return pt((O(),K("div",{ref:"selectWrapper",class:j(e.wrapperKls),onMouseenter:t[21]||(t[21]=(...v)=>e.handleMouseEnter&&e.handleMouseEnter(...v)),onMouseleave:t[22]||(t[22]=(...v)=>e.handleMouseLeave&&e.handleMouseLeave(...v)),onClick:t[23]||(t[23]=st((...v)=>e.toggleMenu&&e.toggleMenu(...v),["stop"]))},[V(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:fe(()=>[W("div",{class:"select-trigger",onMouseenter:t[19]||(t[19]=v=>e.inputHovering=!0),onMouseleave:t[20]||(t[20]=v=>e.inputHovering=!1)},[e.multiple?(O(),K("div",{key:0,ref:"tags",class:j([e.nsSelect.e("tags"),e.nsSelect.is("disabled",e.selectDisabled)]),style:Ke(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(O(),we(Kn,{key:0,onAfterLeave:e.resetInputHeight},{default:fe(()=>[W("span",{class:j([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(O(!0),K(He,null,ct(e.showTagList,v=>(O(),we(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:fe(()=>[W("span",{class:j(e.nsSelect.e("tags-text")),style:Ke(e.tagTextStyle)},$e(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(O(),we(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:fe(()=>[e.collapseTagsTooltip?(O(),we(s,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:fe(()=>[W("span",{class:j(e.nsSelect.e("tags-text"))},"+ "+$e(e.selected.length-e.maxCollapseTags),3)]),content:fe(()=>[W("div",{class:j(e.nsSelect.e("collapse-tags"))},[(O(!0),K(He,null,ct(e.collapseTagList,v=>(O(),K("div",{key:e.getValueKey(v),class:j(e.nsSelect.e("collapse-tag"))},[V(o,{class:"in-tooltip",closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.deleteTag(g,v)},{default:fe(()=>[W("span",{class:j(e.nsSelect.e("tags-text")),style:Ke({maxWidth:e.inputWidth-75+"px"})},$e(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(O(),K("span",{key:1,class:j(e.nsSelect.e("tags-text"))},"+ "+$e(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):be("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):be("v-if",!0),e.collapseTags?be("v-if",!0):(O(),we(Kn,{key:1,onAfterLeave:e.resetInputHeight},{default:fe(()=>[W("span",{class:j([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(O(!0),K(He,null,ct(e.selected,v=>(O(),we(o,{key:e.getValueKey(v),closable:!e.selectDisabled&&!v.isDisabled,size:e.collapseTagSize,hit:v.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,v)},{default:fe(()=>[W("span",{class:j(e.nsSelect.e("tags-text")),style:Ke({maxWidth:e.inputWidth-75+"px"})},$e(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),e.filterable?pt((O(),K("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=v=>e.query=v),type:"text",class:j([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.is("disabled",e.selectDisabled)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ke({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[1]||(t[1]=(...v)=>e.handleFocus&&e.handleFocus(...v)),onBlur:t[2]||(t[2]=(...v)=>e.handleBlur&&e.handleBlur(...v)),onKeyup:t[3]||(t[3]=(...v)=>e.managePlaceholder&&e.managePlaceholder(...v)),onKeydown:[t[4]||(t[4]=(...v)=>e.resetInputState&&e.resetInputState(...v)),t[5]||(t[5]=Wt(st(v=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Wt(st(v=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Wt((...v)=>e.handleKeydownEscape&&e.handleKeydownEscape(...v),["esc"])),t[8]||(t[8]=Wt(st((...v)=>e.selectOption&&e.selectOption(...v),["stop","prevent"]),["enter"])),t[9]||(t[9]=Wt((...v)=>e.deletePrevTag&&e.deletePrevTag(...v),["delete"])),t[10]||(t[10]=Wt(v=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionupdate:t[12]||(t[12]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onCompositionend:t[13]||(t[13]=(...v)=>e.handleComposition&&e.handleComposition(...v)),onInput:t[14]||(t[14]=(...v)=>e.debouncedQueryChange&&e.debouncedQueryChange(...v))},null,46,gDe)),[[jA,e.query]]):be("v-if",!0)],6)):be("v-if",!0),be(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(O(),K("input",{key:1,ref:"iOSInput",class:j([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize),e.nsSelect.em("input","iOS")]),disabled:e.selectDisabled,type:"text"},null,10,mDe)):be("v-if",!0),V(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[15]||(t[15]=v=>e.selectedLabel=v),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:j([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[16]||(t[16]=Wt(st(v=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[17]||(t[17]=Wt(st(v=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Wt(st(e.selectOption,["stop","prevent"]),["enter"]),Wt(e.handleKeydownEscape,["esc"]),t[18]||(t[18]=Wt(v=>e.visible=!1,["tab"]))]},Ls({suffix:fe(()=>[e.iconComponent&&!e.showClose?(O(),we(l,{key:0,class:j([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:fe(()=>[(O(),we(Lt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.showClose&&e.clearIcon?(O(),we(l,{key:1,class:j([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:fe(()=>[(O(),we(Lt(e.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:fe(()=>[W("div",yDe,[ke(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:fe(()=>[V(h,null,{default:fe(()=>[pt(V(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:j([e.nsSelect.is("empty",!e.allowCreate&&!!e.query&&e.filteredOptionsCount===0)])},{default:fe(()=>[e.showNewOption?(O(),we(c,{key:0,value:e.query,created:!0},null,8,["value"])):be("v-if",!0),V(f,{onUpdateOptions:e.onOptionsRendered},{default:fe(()=>[ke(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Yt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(O(),K(He,{key:0},[e.$slots.empty?ke(e.$slots,"empty",{key:0}):(O(),K("p",{key:1,class:j(e.nsSelect.be("dropdown","empty"))},$e(e.emptyText),3))],64)):be("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[p,e.handleClose,e.popperPaneRef]])}var _De=Ve(vDe,[["render",bDe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const wDe=ge({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Ie("select"),n=U(!0),r=St(),a=U([]);$t(BW,vt({...or(e)}));const i=Ye(rm);nt(()=>{a.value=o(r.subTree)});const o=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...o(c))}),u},{groupQueryChange:s}=on(i);return Ae(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function SDe(e,t,n,r,a,i){return pt((O(),K("ul",{class:j(e.ns.be("group","wrap"))},[W("li",{class:j(e.ns.be("group","title"))},$e(e.label),3),W("li",null,[W("ul",{class:j(e.ns.b("group"))},[ke(e.$slots,"default")],2)])],2)),[[Yt,e.visible]])}var FW=Ve(wDe,[["render",SDe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Gc=At(_De,{Option:eP,OptionGroup:FW}),Rb=Vn(eP),xDe=Vn(FW),tP=()=>Ye(NW,{}),CDe=ze({pageSize:{type:Number,required:!0},pageSizes:{type:xe(Array),default:()=>In([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:as}}),TDe=ge({name:"ElPaginationSizes"}),kDe=ge({...TDe,props:CDe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=jt(),a=Ie("pagination"),i=tP(),o=U(n.pageSize);Ae(()=>n.pageSizes,(u,c)=>{if(!Ya(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),Ae(()=>n.pageSize,u=>{o.value=u});const s=F(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(O(),K("span",{class:j(y(a).e("sizes"))},[V(y(Gc),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,"validate-event":!1,onChange:l},{default:fe(()=>[(O(!0),K(He,null,ct(y(s),f=>(O(),we(y(Rb),{key:f,value:f,label:f+y(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var ADe=Ve(kDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const MDe=ze({size:{type:String,values:as}}),PDe=["disabled"],EDe=ge({name:"ElPaginationJumper"}),IDe=ge({...EDe,props:MDe,setup(e){const{t}=jt(),n=Ie("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=tP(),s=U(),l=F(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(O(),K("span",{class:j(y(n).e("jump")),disabled:y(a)},[W("span",{class:j([y(n).e("goto")])},$e(y(t)("el.pagination.goto")),3),V(y(jr),{size:f.size,class:j([y(n).e("editor"),y(n).is("in-pagination")]),min:1,max:y(r),disabled:y(a),"model-value":y(l),"validate-event":!1,label:y(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),W("span",{class:j([y(n).e("classifier")])},$e(y(t)("el.pagination.pageClassifier")),3)],10,PDe))}});var DDe=Ve(IDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const LDe=ze({total:{type:Number,default:1e3}}),$De=["disabled"],RDe=ge({name:"ElPaginationTotal"}),ODe=ge({...RDe,props:LDe,setup(e){const{t}=jt(),n=Ie("pagination"),{disabled:r}=tP();return(a,i)=>(O(),K("span",{class:j(y(n).e("total")),disabled:y(r)},$e(y(t)("el.pagination.total",{total:a.total})),11,$De))}});var NDe=Ve(ODe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const BDe=ze({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),FDe=["onKeyup"],VDe=["aria-current","aria-label","tabindex"],zDe=["tabindex","aria-label"],HDe=["aria-current","aria-label","tabindex"],GDe=["tabindex","aria-label"],WDe=["aria-current","aria-label","tabindex"],UDe=ge({name:"ElPaginationPager"}),jDe=ge({...UDe,props:BDe,emits:["change"],setup(e,{emit:t}){const n=e,r=Ie("pager"),a=Ie("icon"),{t:i}=jt(),o=U(!1),s=U(!1),l=U(!1),u=U(!1),c=U(!1),f=U(!1),d=F(()=>{const _=n.pagerCount,b=(_-1)/2,w=Number(n.currentPage),S=Number(n.pageCount);let x=!1,C=!1;S>_&&(w>_-b&&(x=!0),w<S-b&&(C=!0));const T=[];if(x&&!C){const k=S-(_-2);for(let A=k;A<S;A++)T.push(A)}else if(!x&&C)for(let k=2;k<_;k++)T.push(k);else if(x&&C){const k=Math.floor(_/2)-1;for(let A=w-k;A<=w+k;A++)T.push(A)}else for(let k=2;k<S;k++)T.push(k);return T}),h=F(()=>n.disabled?-1:0);Ka(()=>{const _=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-_&&(o.value=!0),n.currentPage<n.pageCount-_&&(s.value=!0))});function p(_=!1){n.disabled||(_?l.value=!0:u.value=!0)}function v(_=!1){_?c.value=!0:f.value=!0}function g(_){const b=_.target;if(b.tagName.toLowerCase()==="li"&&Array.from(b.classList).includes("number")){const w=Number(b.textContent);w!==n.currentPage&&t("change",w)}else b.tagName.toLowerCase()==="li"&&Array.from(b.classList).includes("more")&&m(_)}function m(_){const b=_.target;if(b.tagName.toLowerCase()==="ul"||n.disabled)return;let w=Number(b.textContent);const S=n.pageCount,x=n.currentPage,C=n.pagerCount-2;b.className.includes("more")&&(b.className.includes("quickprev")?w=x-C:b.className.includes("quicknext")&&(w=x+C)),Number.isNaN(+w)||(w<1&&(w=1),w>S&&(w=S)),w!==x&&t("change",w)}return(_,b)=>(O(),K("ul",{class:j(y(r).b()),onClick:m,onKeyup:Wt(g,["enter"])},[_.pageCount>0?(O(),K("li",{key:0,class:j([[y(r).is("active",_.currentPage===1),y(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":y(i)("el.pagination.currentPage",{pager:1}),tabindex:y(h)}," 1 ",10,VDe)):be("v-if",!0),o.value?(O(),K("li",{key:1,class:j(["more","btn-quickprev",y(a).b(),y(r).is("disabled",_.disabled)]),tabindex:y(h),"aria-label":y(i)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:b[0]||(b[0]=w=>p(!0)),onMouseleave:b[1]||(b[1]=w=>l.value=!1),onFocus:b[2]||(b[2]=w=>v(!0)),onBlur:b[3]||(b[3]=w=>c.value=!1)},[(l.value||c.value)&&!_.disabled?(O(),we(y(Bd),{key:0})):(O(),we(y(vO),{key:1}))],42,zDe)):be("v-if",!0),(O(!0),K(He,null,ct(y(d),w=>(O(),K("li",{key:w,class:j([[y(r).is("active",_.currentPage===w),y(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===w,"aria-label":y(i)("el.pagination.currentPage",{pager:w}),tabindex:y(h)},$e(w),11,HDe))),128)),s.value?(O(),K("li",{key:2,class:j(["more","btn-quicknext",y(a).b(),y(r).is("disabled",_.disabled)]),tabindex:y(h),"aria-label":y(i)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:b[4]||(b[4]=w=>p()),onMouseleave:b[5]||(b[5]=w=>u.value=!1),onFocus:b[6]||(b[6]=w=>v()),onBlur:b[7]||(b[7]=w=>f.value=!1)},[(u.value||f.value)&&!_.disabled?(O(),we(y(Fd),{key:0})):(O(),we(y(vO),{key:1}))],42,GDe)):be("v-if",!0),_.pageCount>1?(O(),K("li",{key:3,class:j([[y(r).is("active",_.currentPage===_.pageCount),y(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":y(i)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:y(h)},$e(_.pageCount),11,WDe)):be("v-if",!0)],42,FDe))}});var KDe=Ve(jDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Jr=e=>typeof e!="number",YDe=ze({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>lt(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:xe(Array),default:()=>In([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:_n,default:()=>Ul},nextText:{type:String,default:""},nextIcon:{type:_n,default:()=>oa},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),qDe={"update:current-page":e=>lt(e),"update:page-size":e=>lt(e),"size-change":e=>lt(e),"current-change":e=>lt(e),"prev-click":e=>lt(e),"next-click":e=>lt(e)},M3="ElPagination";var XDe=ge({name:M3,props:YDe,emits:qDe,setup(e,{emit:t,slots:n}){const{t:r}=jt(),a=Ie("pagination"),i=St().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,s="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=F(()=>{if(Jr(e.total)&&Jr(e.pageCount)||!Jr(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Jr(e.pageCount)){if(!Jr(e.total)&&!Jr(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=U(Jr(e.defaultPageSize)?10:e.defaultPageSize),c=U(Jr(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=F({get(){return Jr(e.pageSize)?u.value:e.pageSize},set(b){Jr(e.pageSize)&&(u.value=b),s&&(t("update:page-size",b),t("size-change",b))}}),d=F(()=>{let b=0;return Jr(e.pageCount)?Jr(e.total)||(b=Math.max(1,Math.ceil(e.total/f.value))):b=e.pageCount,b}),h=F({get(){return Jr(e.currentPage)?c.value:e.currentPage},set(b){let w=b;b<1?w=1:b>d.value&&(w=d.value),Jr(e.currentPage)&&(c.value=w),o&&(t("update:current-page",w),t("current-change",w))}});Ae(d,b=>{h.value>b&&(h.value=b)});function p(b){h.value=b}function v(b){f.value=b;const w=d.value;h.value>w&&(h.value=w)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function m(){e.disabled||(h.value+=1,t("next-click",h.value))}function _(b,w){b&&(b.props||(b.props={}),b.props.class=[b.props.class,w].join(" "))}return $t(NW,{pageCount:d,disabled:F(()=>e.disabled),currentPage:h,changeEvent:p,handleSizeChange:v}),()=>{var b,w;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const S=[],x=[],C=et("div",{class:a.e("rightwrapper")},x),T={prev:et(QIe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:et(DDe,{size:e.small?"small":"default"}),pager:et(KDe,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:p,disabled:e.disabled}),next:et(iDe,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:et(ADe,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(b=n==null?void 0:n.default)==null?void 0:b.call(n))!=null?w:null,total:et(NDe,{total:Jr(e.total)?0:e.total})},k=e.layout.split(",").map(M=>M.trim());let A=!1;return k.forEach(M=>{if(M==="->"){A=!0;return}A?x.push(T[M]):S.push(T[M])}),_(S[0],a.is("first")),_(S[S.length-1],a.is("last")),A&&x.length>0&&(_(x[0],a.is("first")),_(x[x.length-1],a.is("last")),S.push(C)),et("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},S)}}});const ZDe=At(XDe),JDe=ze({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:D2,default:"primary"},cancelButtonType:{type:String,values:D2,default:"text"},icon:{type:_n,default:()=>i0e},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:br.teleported,persistent:br.persistent,width:{type:[String,Number],default:150}}),QDe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},eLe=ge({name:"ElPopconfirm"}),tLe=ge({...eLe,props:JDe,emits:QDe,setup(e,{emit:t}){const n=e,{t:r}=jt(),a=Ie("popconfirm"),i=U(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=F(()=>({width:Wn(n.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=F(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=F(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(O(),we(y(da),Dt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${y(a).namespace.value}-popover`,"popper-style":y(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:fe(()=>[W("div",{class:j(y(a).b())},[W("div",{class:j(y(a).e("main"))},[!d.hideIcon&&d.icon?(O(),we(y(Je),{key:0,class:j(y(a).e("icon")),style:Ke({color:d.iconColor})},{default:fe(()=>[(O(),we(Lt(d.icon)))]),_:1},8,["class","style"])):be("v-if",!0),yt(" "+$e(d.title),1)],2),W("div",{class:j(y(a).e("action"))},[V(y(Lr),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:fe(()=>[yt($e(y(f)),1)]),_:1},8,["type","text"]),V(y(Lr),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:fe(()=>[yt($e(y(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:fe(()=>[d.$slots.reference?ke(d.$slots,"reference",{key:0}):be("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var nLe=Ve(tLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const rLe=At(nLe),aLe=ze({trigger:Zv.trigger,placement:F0.placement,disabled:Zv.disabled,visible:br.visible,transition:br.transition,popperOptions:F0.popperOptions,tabindex:F0.tabindex,content:br.content,popperStyle:br.popperStyle,popperClass:br.popperClass,enterable:{...br.enterable,default:!0},effect:{...br.effect,default:"light"},teleported:br.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}}),iLe={"update:visible":e=>er(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},oLe="onUpdate:visible",sLe=ge({name:"ElPopover"}),lLe=ge({...sLe,props:aLe,emits:iLe,setup(e,{expose:t,emit:n}){const r=e,a=F(()=>r[oLe]),i=Ie("popover"),o=U(),s=F(()=>{var g;return(g=y(o))==null?void 0:g.popperRef}),l=F(()=>[{width:Wn(r.width)},r.popperStyle]),u=F(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=F(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},p=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(O(),we(y(da),Dt({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":y(u),"popper-style":y(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":y(c),"onUpdate:visible":y(a),onBeforeShow:d,onBeforeHide:h,onShow:p,onHide:v}),{content:fe(()=>[g.title?(O(),K("div",{key:0,class:j(y(i).e("title")),role:"title"},$e(g.title),3)):be("v-if",!0),ke(g.$slots,"default",{},()=>[yt($e(g.content),1)])]),default:fe(()=>[g.$slots.reference?ke(g.$slots,"reference",{key:0}):be("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 uLe=Ve(lLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const P3=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var cLe={mounted(e,t){P3(e,t)},updated(e,t){P3(e,t)}};const fLe="popover",VW=Abe(cLe,fLe),dLe=At(uLe,{directive:VW}),hLe=ze({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:xe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:xe([String,Array,Function]),default:""},format:{type:xe(Function),default:e=>`${e}%`}}),pLe=["aria-valuenow"],vLe={viewBox:"0 0 100 100"},gLe=["d","stroke","stroke-width"],mLe=["d","stroke","opacity","stroke-linecap","stroke-width"],yLe={key:0},bLe=ge({name:"ElProgress"}),_Le=ge({...bLe,props:hLe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Ie("progress"),a=F(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:_(t.percentage)})),i=F(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=F(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=F(()=>{const b=o.value,w=t.type==="dashboard";return`
M 50 50
m 0 ${w?"":"-"}${b}
a ${b} ${b} 0 1 1 0 ${w?"-":""}${b*2}
a ${b} ${b} 0 1 1 0 ${w?"":"-"}${b*2}
`}),l=F(()=>2*Math.PI*o.value),u=F(()=>t.type==="dashboard"?.75:1),c=F(()=>`${-1*l.value*(1-u.value)/2}px`),f=F(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=F(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=F(()=>{let b;return t.color?b=_(t.percentage):b=n[t.status]||n.default,b}),p=F(()=>t.status==="warning"?S_:t.type==="line"?t.status==="success"?yM:ou:t.status==="success"?Qg:so),v=F(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=F(()=>t.format(t.percentage));function m(b){const w=100/b.length;return b.map((x,C)=>dt(x)?{color:x,percentage:(C+1)*w}:x).sort((x,C)=>x.percentage-C.percentage)}const _=b=>{var w;const{color:S}=t;if(ft(S))return S(b);if(dt(S))return S;{const x=m(S);for(const C of x)if(C.percentage>b)return C.color;return(w=x[x.length-1])==null?void 0:w.color}};return(b,w)=>(O(),K("div",{class:j([y(r).b(),y(r).m(b.type),y(r).is(b.status),{[y(r).m("without-text")]:!b.showText,[y(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(O(),K("div",{key:0,class:j(y(r).b("bar"))},[W("div",{class:j(y(r).be("bar","outer")),style:Ke({height:`${b.strokeWidth}px`})},[W("div",{class:j([y(r).be("bar","inner"),{[y(r).bem("bar","inner","indeterminate")]:b.indeterminate}]),style:Ke(y(a))},[(b.showText||b.$slots.default)&&b.textInside?(O(),K("div",{key:0,class:j(y(r).be("bar","innerText"))},[ke(b.$slots,"default",{percentage:b.percentage},()=>[W("span",null,$e(y(g)),1)])],2)):be("v-if",!0)],6)],6)],2)):(O(),K("div",{key:1,class:j(y(r).b("circle")),style:Ke({height:`${b.width}px`,width:`${b.width}px`})},[(O(),K("svg",vLe,[W("path",{class:j(y(r).be("circle","track")),d:y(s),stroke:`var(${y(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":y(i),fill:"none",style:Ke(y(f))},null,14,gLe),W("path",{class:j(y(r).be("circle","path")),d:y(s),stroke:y(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":y(i),style:Ke(y(d))},null,14,mLe)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(O(),K("div",{key:2,class:j(y(r).e("text")),style:Ke({fontSize:`${y(v)}px`})},[ke(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(O(),we(y(Je),{key:1},{default:fe(()=>[(O(),we(Lt(y(p))))]),_:1})):(O(),K("span",yLe,$e(y(g)),1))])],6)):be("v-if",!0)],10,pLe))}});var wLe=Ve(_Le,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const zW=At(wLe),SLe=ze({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:xe([Array,Object]),default:()=>In(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:xe([Array,Object]),default:()=>[ey,ey,ey]},voidIcon:{type:_n,default:()=>J0e},disabledVoidIcon:{type:_n,default:()=>ey},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:xe(Array),default:()=>In(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Rr,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),xLe={[Tn]:e=>lt(e),[Mt]:e=>lt(e)},CLe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],TLe=["onMousemove","onClick"],kLe=ge({name:"ElRate"}),ALe=ge({...kLe,props:SLe,emits:xLe,setup(e,{expose:t,emit:n}){const r=e;function a($,P){const R=H=>It(H),D=Object.keys(P).map(H=>+H).filter(H=>{const G=P[H];return(R(G)?G.excluded:!1)?$<H:$<=H}).sort((H,G)=>H-G),B=P[D[0]];return R(B)&&B.value||B}const i=Ye(sf,void 0),o=Ye(Xo,void 0),s=nr(),l=Ie("rate"),{inputId:u,isLabeledByFormItem:c}=uu(r,{formItemContext:o}),f=U(r.modelValue),d=U(-1),h=U(!0),p=F(()=>[l.b(),l.m(s.value)]),v=F(()=>r.disabled||(i==null?void 0:i.disabled)),g=F(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),m=F(()=>{let $="";return r.showScore?$=r.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${r.modelValue}`:`${f.value}`):r.showText&&($=r.texts[Math.ceil(f.value)-1]),$}),_=F(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=F(()=>Ze(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=F(()=>{const $=a(f.value,b.value);return It($)?"":$}),S=F(()=>{let $="";return v.value?$=`${_.value}%`:r.allowHalf&&($="50%"),{color:w.value,width:$}}),x=F(()=>{let $=Ze(r.icons)?[...r.icons]:{...r.icons};return $=kc($),Ze($)?{[r.lowThreshold]:$[0],[r.highThreshold]:{value:$[1],excluded:!0},[r.max]:$[2]}:$}),C=F(()=>a(r.modelValue,x.value)),T=F(()=>v.value?dt(r.disabledVoidIcon)?r.disabledVoidIcon:kc(r.disabledVoidIcon):dt(r.voidIcon)?r.voidIcon:kc(r.voidIcon)),k=F(()=>a(f.value,x.value));function A($){const P=v.value&&_.value>0&&$-1<r.modelValue&&$>r.modelValue,R=r.allowHalf&&h.value&&$-.5<=f.value&&$>f.value;return P||R}function M($){r.clearable&&$===r.modelValue&&($=0),n(Mt,$),r.modelValue!==$&&n("change",$)}function I($){v.value||(r.allowHalf&&h.value?M(f.value):M($))}function E($){if(v.value)return;let P=f.value;const R=$.code;return R===tt.up||R===tt.right?(r.allowHalf?P+=.5:P+=1,$.stopPropagation(),$.preventDefault()):(R===tt.left||R===tt.down)&&(r.allowHalf?P-=.5:P-=1,$.stopPropagation(),$.preventDefault()),P=P<0?0:P,P=P>r.max?r.max:P,n(Mt,P),n("change",P),P}function L($,P){if(!v.value){if(r.allowHalf&&P){let R=P.target;Ji(R,l.e("item"))&&(R=R.querySelector(`.${l.e("icon")}`)),(R.clientWidth===0||Ji(R,l.e("decimal")))&&(R=R.parentNode),h.value=P.offsetX*2<=R.clientWidth,f.value=h.value?$-.5:$}else f.value=$;d.value=$}}function N(){v.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return Ae(()=>r.modelValue,$=>{f.value=$,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Mt,0),t({setCurrentValue:L,resetCurrentValue:N}),($,P)=>{var R;return O(),K("div",{id:y(u),class:j([y(p),y(l).is("disabled",y(v))]),role:"slider","aria-label":y(c)?void 0:$.label||"rating","aria-labelledby":y(c)?(R=y(o))==null?void 0:R.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y(m)||void 0,"aria-valuemin":"0","aria-valuemax":$.max,tabindex:"0",style:Ke(y(g)),onKeydown:E},[(O(!0),K(He,null,ct($.max,(D,B)=>(O(),K("span",{key:B,class:j(y(l).e("item")),onMousemove:H=>L(D,H),onMouseleave:N,onClick:H=>I(D)},[V(y(Je),{class:j([y(l).e("icon"),{hover:d.value===D},y(l).is("active",D<=f.value)])},{default:fe(()=>[A(D)?be("v-if",!0):(O(),K(He,{key:0},[pt((O(),we(Lt(y(k)),null,null,512)),[[Yt,D<=f.value]]),pt((O(),we(Lt(y(T)),null,null,512)),[[Yt,!(D<=f.value)]])],64)),A(D)?(O(),we(y(Je),{key:1,style:Ke(y(S)),class:j([y(l).e("icon"),y(l).e("decimal")])},{default:fe(()=>[(O(),we(Lt(y(C))))]),_:1},8,["style","class"])):be("v-if",!0)]),_:2},1032,["class"])],42,TLe))),128)),$.showText||$.showScore?(O(),K("span",{key:0,class:j(y(l).e("text"))},$e(y(m)),3)):be("v-if",!0)],46,CLe)}}});var MLe=Ve(ALe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const PLe=At(MLe),rd={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},E3={[rd.success]:Qge,[rd.warning]:S_,[rd.error]:bM,[rd.info]:_M},ELe=ze({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),ILe=ge({name:"ElResult"}),DLe=ge({...ILe,props:ELe,setup(e){const t=e,n=Ie("result"),r=F(()=>{const a=t.icon,i=a&&rd[a]?rd[a]:"icon-info",o=E3[i]||E3["icon-info"];return{class:i,component:o}});return(a,i)=>(O(),K("div",{class:j(y(n).b())},[W("div",{class:j(y(n).e("icon"))},[ke(a.$slots,"icon",{},()=>[y(r).component?(O(),we(Lt(y(r).component),{key:0,class:j(y(r).class)},null,8,["class"])):be("v-if",!0)])],2),a.title||a.$slots.title?(O(),K("div",{key:0,class:j(y(n).e("title"))},[ke(a.$slots,"title",{},()=>[W("p",null,$e(a.title),1)])],2)):be("v-if",!0),a.subTitle||a.$slots["sub-title"]?(O(),K("div",{key:1,class:j(y(n).e("subtitle"))},[ke(a.$slots,"sub-title",{},()=>[W("p",null,$e(a.subTitle),1)])],2)):be("v-if",!0),a.$slots.extra?(O(),K("div",{key:2,class:j(y(n).e("extra"))},[ke(a.$slots,"extra")],2)):be("v-if",!0)],2))}});var LLe=Ve(DLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const $Le=At(LLe);var I3=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function RLe(e,t){return!!(e===t||I3(e)&&I3(t))}function OLe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!RLe(e[n],t[n]))return!1;return!0}function NLe(e,t){t===void 0&&(t=OLe);var n=null;function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(n&&n.lastThis===this&&t(a,n.lastArgs))return n.lastResult;var o=e.apply(this,a);return n={lastResult:o,lastArgs:a,lastThis:this},o}return r.clear=function(){n=null},r}const HW=()=>{const t=St().proxy.$props;return F(()=>{const n=(r,a,i)=>({});return t.perfMode?y_(n):NLe(n)})},J2=50,Ob="itemRendered",Nb="scroll",ad="forward",Bb="backward",mi="auto",B_="smart",eg="start",No="center",tg="end",Ud="horizontal",nP="vertical",BLe="ltr",yd="rtl",ng="negative",rP="positive-ascending",aP="positive-descending",FLe={[Ud]:"left",[nP]:"top"},VLe=20,zLe={[Ud]:"deltaX",[nP]:"deltaY"},HLe=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let a,i=0;const o=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:o,onWheel:l=>{k_(a);const u=l[zLe[n.value]];o(i)&&o(i+u)||(i+=u,iG()||l.preventDefault(),a=Uv(()=>{r(i),i=0}))}}},Q2=mo({type:xe([Number,Function]),required:!0}),eT=mo({type:Number}),tT=mo({type:Number,default:2}),GLe=mo({type:String,values:["ltr","rtl"],default:"ltr"}),nT=mo({type:Number,default:0}),Fb=mo({type:Number,required:!0}),GW=mo({type:String,values:["horizontal","vertical"],default:nP}),WW=ze({className:{type:String,default:""},containerElement:{type:xe([String,Object]),default:"div"},data:{type:xe(Array),default:()=>In([])},direction:GLe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:xe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),UW=ze({cache:tT,estimatedItemSize:eT,layout:GW,initScrollOffset:nT,total:Fb,itemSize:Q2,...WW}),rT={type:Number,default:6},jW={type:Number,default:0},KW={type:Number,default:2},Ec=ze({columnCache:tT,columnWidth:Q2,estimatedColumnWidth:eT,estimatedRowHeight:eT,initScrollLeft:nT,initScrollTop:nT,itemKey:{type:xe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:tT,rowHeight:Q2,totalColumn:Fb,totalRow:Fb,hScrollbarSize:rT,vScrollbarSize:rT,scrollbarStartGap:jW,scrollbarEndGap:KW,role:String,...WW}),YW=ze({alwaysOn:Boolean,class:String,layout:GW,total:Fb,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:rT,startGap:jW,endGap:KW,visible:Boolean}),hc=(e,t)=>e<t?ad:Bb,rg=e=>e===BLe||e===yd||e===Ud,D3=e=>e===yd;let xf=null;function Vb(e=!1){if(xf===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?xf=aP:(t.scrollLeft=1,t.scrollLeft===0?xf=ng:xf=rP),document.body.removeChild(t),xf}return xf}function WLe({move:e,size:t,bar:n},r){const a={},i=`translate${n.axis}(${e}px)`;return a[n.size]=t,a.transform=i,a.msTransform=i,a.webkitTransform=i,r==="horizontal"?a.height="100%":a.width="100%",a}const aT=ge({name:"ElVirtualScrollBar",props:YW,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=F(()=>e.startGap+e.endGap),r=Ie("virtual-scrollbar"),a=Ie("scrollbar"),i=U(),o=U();let s=null,l=null;const u=vt({isDragging:!1,traveled:0}),c=F(()=>jG[e.layout]),f=F(()=>e.clientSize-y(n)),d=F(()=>({position:"absolute",width:`${Ud===e.layout?f.value:e.scrollbarSize}px`,height:`${Ud===e.layout?e.scrollbarSize:f.value}px`,[FLe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=F(()=>{const x=e.ratio,C=e.clientSize;if(x>=100)return Number.POSITIVE_INFINITY;if(x>=50)return x*C/100;const T=C/3;return Math.floor(Math.min(Math.max(x*C,VLe),T))}),p=F(()=>{if(!Number.isFinite(h.value))return{display:"none"};const x=`${h.value}px`;return WLe({bar:c.value,size:x,move:u.traveled},e.layout)}),v=F(()=>Math.floor(e.clientSize-h.value-y(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",b);const x=y(o);x&&(l=document.onselectstart,document.onselectstart=()=>!1,x.addEventListener("touchmove",w),x.addEventListener("touchend",b))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const x=y(o);x&&(x.removeEventListener("touchmove",w),x.removeEventListener("touchend",b))},_=x=>{x.stopImmediatePropagation(),!(x.ctrlKey||[1,2].includes(x.button))&&(u.isDragging=!0,u[c.value.axis]=x.currentTarget[c.value.offset]-(x[c.value.client]-x.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},b=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=x=>{const{isDragging:C}=u;if(!C||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;k_(s);const k=(i.value.getBoundingClientRect()[c.value.direction]-x[c.value.client])*-1,A=o.value[c.value.offset]-T,M=k-A;s=Uv(()=>{u.traveled=Math.max(e.startGap,Math.min(M,v.value)),t("scroll",M,v.value)})},S=x=>{const C=Math.abs(x.target.getBoundingClientRect()[c.value.direction]-x[c.value.client]),T=o.value[c.value.offset]/2,k=C-T;u.traveled=Math.max(0,Math.min(k,v.value)),t("scroll",k,v.value)};return Ae(()=>e.scrollFrom,x=>{u.isDragging||(u.traveled=Math.ceil(x*v.value))}),pn(()=>{m()}),()=>et("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:st(S,["stop","prevent"]),onTouchstartPrevent:_},et("div",{ref:o,class:a.e("thumb"),style:p.value,onMousedown:_},[]))}}),qW=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>ge({name:e??"ElVirtualList",props:UW,emits:[Ob,Nb],setup(c,{emit:f,expose:d}){u(c);const h=St(),p=Ie("vl"),v=U(s(c,h)),g=HW(),m=U(),_=U(),b=U(),w=U({isScrolling:!1,scrollDir:"forward",scrollOffset:lt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),S=F(()=>{const{total:X,cache:ue}=c,{isScrolling:ie,scrollDir:le,scrollOffset:Q}=y(w);if(X===0)return[0,0,0,0];const J=i(c,Q,y(v)),se=o(c,J,Q,y(v)),he=!ie||le===Bb?Math.max(1,ue):1,re=!ie||le===ad?Math.max(1,ue):1;return[Math.max(0,J-he),Math.max(0,Math.min(X-1,se+re)),J,se]}),x=F(()=>a(c,y(v))),C=F(()=>rg(c.layout)),T=F(()=>[{position:"relative",[`overflow-${C.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:lt(c.height)?`${c.height}px`:c.height,width:lt(c.width)?`${c.width}px`:c.width},c.style]),k=F(()=>{const X=y(x),ue=y(C);return{height:ue?"100%":`${X}px`,pointerEvents:y(w).isScrolling?"none":void 0,width:ue?`${X}px`:"100%"}}),A=F(()=>C.value?c.width:c.height),{onWheel:M}=HLe({atStartEdge:F(()=>w.value.scrollOffset<=0),atEndEdge:F(()=>w.value.scrollOffset>=x.value),layout:F(()=>c.layout)},X=>{var ue,ie;(ie=(ue=b.value).onMouseUp)==null||ie.call(ue),P(Math.min(w.value.scrollOffset+X,x.value-A.value))}),I=()=>{const{total:X}=c;if(X>0){const[Q,J,se,he]=y(S);f(Ob,Q,J,se,he)}const{scrollDir:ue,scrollOffset:ie,updateRequested:le}=y(w);f(Nb,ue,ie,le)},E=X=>{const{clientHeight:ue,scrollHeight:ie,scrollTop:le}=X.currentTarget,Q=y(w);if(Q.scrollOffset===le)return;const J=Math.max(0,Math.min(le,ie-ue));w.value={...Q,isScrolling:!0,scrollDir:hc(Q.scrollOffset,J),scrollOffset:J,updateRequested:!1},Xe(B)},L=X=>{const{clientWidth:ue,scrollLeft:ie,scrollWidth:le}=X.currentTarget,Q=y(w);if(Q.scrollOffset===ie)return;const{direction:J}=c;let se=ie;if(J===yd)switch(Vb()){case ng:{se=-ie;break}case aP:{se=le-ue-ie;break}}se=Math.max(0,Math.min(se,le-ue)),w.value={...Q,isScrolling:!0,scrollDir:hc(Q.scrollOffset,se),scrollOffset:se,updateRequested:!1},Xe(B)},N=X=>{y(C)?L(X):E(X),I()},$=(X,ue)=>{const ie=(x.value-A.value)/ue*X;P(Math.min(x.value-A.value,ie))},P=X=>{X=Math.max(X,0),X!==y(w).scrollOffset&&(w.value={...y(w),scrollOffset:X,scrollDir:hc(y(w).scrollOffset,X),updateRequested:!0},Xe(B))},R=(X,ue=mi)=>{const{scrollOffset:ie}=y(w);X=Math.max(0,Math.min(X,c.total-1)),P(t(c,X,ue,ie,y(v)))},D=X=>{const{direction:ue,itemSize:ie,layout:le}=c,Q=g.value(l&&ie,l&&le,l&&ue);let J;if(Vt(Q,String(X)))J=Q[X];else{const se=r(c,X,y(v)),he=n(c,X,y(v)),re=y(C),z=ue===yd,Y=re?se:0;Q[X]=J={position:"absolute",left:z?void 0:`${Y}px`,right:z?`${Y}px`:void 0,top:re?0:`${se}px`,height:re?"100%":`${he}px`,width:re?`${he}px`:"100%"}}return J},B=()=>{w.value.isScrolling=!1,Xe(()=>{g.value(-1,null,null)})},H=()=>{const X=m.value;X&&(X.scrollTop=0)};nt(()=>{if(!Ht)return;const{initScrollOffset:X}=c,ue=y(m);lt(X)&&ue&&(y(C)?ue.scrollLeft=X:ue.scrollTop=X),I()}),Ws(()=>{const{direction:X,layout:ue}=c,{scrollOffset:ie,updateRequested:le}=y(w),Q=y(m);if(le&&Q)if(ue===Ud)if(X===yd)switch(Vb()){case ng:{Q.scrollLeft=-ie;break}case rP:{Q.scrollLeft=ie;break}default:{const{clientWidth:J,scrollWidth:se}=Q;Q.scrollLeft=se-J-ie;break}}else Q.scrollLeft=ie;else Q.scrollTop=ie});const G={ns:p,clientSize:A,estimatedTotalSize:x,windowStyle:T,windowRef:m,innerRef:_,innerStyle:k,itemsToRender:S,scrollbarRef:b,states:w,getItemStyle:D,onScroll:N,onScrollbarScroll:$,onWheel:M,scrollTo:P,scrollToItem:R,resetScrollTop:H};return d({windowRef:m,innerRef:_,getItemStyleCache:g,scrollTo:P,scrollToItem:R,resetScrollTop:H,states:w}),G},render(c){var f;const{$slots:d,className:h,clientSize:p,containerElement:v,data:g,getItemStyle:m,innerElement:_,itemsToRender:b,innerStyle:w,layout:S,total:x,onScroll:C,onScrollbarScroll:T,onWheel:k,states:A,useIsScrolling:M,windowStyle:I,ns:E}=c,[L,N]=b,$=Lt(v),P=Lt(_),R=[];if(x>0)for(let G=L;G<=N;G++)R.push((f=d.default)==null?void 0:f.call(d,{data:g,key:G,index:G,isScrolling:M?A.isScrolling:void 0,style:m(G)}));const D=[et(P,{style:w,ref:"innerRef"},dt(P)?R:{default:()=>R})],B=et(aT,{ref:"scrollbarRef",clientSize:p,layout:S,onScroll:T,ratio:p*100/this.estimatedTotalSize,scrollFrom:A.scrollOffset/(this.estimatedTotalSize-p),total:x}),H=et($,{class:[E.e("window"),h],style:I,onScroll:C,onWheel:k,ref:"windowRef",key:0},dt($)?[D]:{default:()=>[D]});return et("div",{key:0,class:[E.e("wrapper"),A.scrollbarAlwaysOn?"always-on":""]},[H,B])}}),XW=qW({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:r,width:a},i,o,s)=>{const l=rg(r)?a:e,u=Math.max(0,t*n-l),c=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(o===B_&&(s>=f-l&&s<=c+l?o=mi:o=No),o){case eg:return c;case tg:return f;case No:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case mi:default:return s>=f&&s<=c?s:s<f?f:c}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:r,width:a},i,o)=>{const s=i*n,l=rg(r)?a:e,u=Math.ceil((l+o-s)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),id=(e,t,n)=>{const{itemSize:r}=e,{items:a,lastVisitedIndex:i}=n;if(t>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=t;s++){const l=r(s);a[s]={offset:o,size:l},o+=l}n.lastVisitedIndex=t}return a[t]},ULe=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?ZW(e,t,0,a,n):jLe(e,t,Math.max(0,a),n)},ZW=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=id(e,i,t).offset;if(o===a)return i;o<a?n=i+1:o>a&&(r=i-1)}return Math.max(0,n-1)},jLe=(e,t,n,r)=>{const{total:a}=e;let i=1;for(;n<a&&id(e,n,t).offset<r;)n+=i,i*=2;return ZW(e,t,Math.floor(n/2),Math.min(n,a-1),r)},L3=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:r})=>{let a=0;if(r>=e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const o=(e-r-1)*n;return a+o},KLe=qW({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>id(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:L3,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=rg(o)?s:i,u=id(e,t,a),c=L3(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===B_&&(r>=d-l&&r<=f+l?n=mi:n=No),n){case eg:return f;case tg:return d;case No:return Math.round(d+(f-d)/2);case mi:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>ULe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=rg(o)?s:a,u=id(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=id(e,d,r).size;return d},initCache({estimatedItemSize:e=J2},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=t.exposed)==null||i.getItemStyleCache(-1),a&&((o=t.proxy)==null||o.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),YLe=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:r},a)=>{let i=null,o=0,s=0;const l=(c,f)=>{const d=c<=0&&t.value||c>=0&&e.value,h=f<=0&&r.value||f>=0&&n.value;return d&&h};return{hasReachedEdge:l,onWheel:c=>{k_(i);let f=c.deltaX,d=c.deltaY;Math.abs(f)>Math.abs(d)?d=0:f=0,c.shiftKey&&d!==0&&(f=d,d=0),!(l(o,s)&&l(o+f,s+d))&&(o+=f,s+=d,c.preventDefault(),i=Uv(()=>{a(o,s),o=0,s=0}))}}},JW=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:p})=>ge({name:e??"ElVirtualList",props:Ec,emits:[Ob,Nb],setup(v,{emit:g,expose:m,slots:_}){const b=Ie("vl");p(v);const w=St(),S=U(d(v,w));h==null||h(w,S);const x=U(),C=U(),T=U(),k=U(null),A=U({isScrolling:!1,scrollLeft:lt(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:lt(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:ad,yAxisScrollDir:ad}),M=HW(),I=F(()=>Number.parseInt(`${v.height}`,10)),E=F(()=>Number.parseInt(`${v.width}`,10)),L=F(()=>{const{totalColumn:Z,totalRow:ce,columnCache:q}=v,{isScrolling:ae,xAxisScrollDir:ne,scrollLeft:de}=y(A);if(Z===0||ce===0)return[0,0,0,0];const me=r(v,de,y(S)),pe=a(v,me,de,y(S)),Se=!ae||ne===Bb?Math.max(1,q):1,Pe=!ae||ne===ad?Math.max(1,q):1;return[Math.max(0,me-Se),Math.max(0,Math.min(Z-1,pe+Pe)),me,pe]}),N=F(()=>{const{totalColumn:Z,totalRow:ce,rowCache:q}=v,{isScrolling:ae,yAxisScrollDir:ne,scrollTop:de}=y(A);if(Z===0||ce===0)return[0,0,0,0];const me=c(v,de,y(S)),pe=f(v,me,de,y(S)),Se=!ae||ne===Bb?Math.max(1,q):1,Pe=!ae||ne===ad?Math.max(1,q):1;return[Math.max(0,me-Se),Math.max(0,Math.min(ce-1,pe+Pe)),me,pe]}),$=F(()=>i(v,y(S))),P=F(()=>o(v,y(S))),R=F(()=>{var Z;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:lt(v.height)?`${v.height}px`:v.height,width:lt(v.width)?`${v.width}px`:v.width},(Z=v.style)!=null?Z:{}]}),D=F(()=>{const Z=`${y(P)}px`;return{height:`${y($)}px`,pointerEvents:y(A).isScrolling?"none":void 0,width:Z}}),B=()=>{const{totalColumn:Z,totalRow:ce}=v;if(Z>0&&ce>0){const[pe,Se,Pe,Oe]=y(L),[Ne,Te,Me,Ce]=y(N);g(Ob,{columnCacheStart:pe,columnCacheEnd:Se,rowCacheStart:Ne,rowCacheEnd:Te,columnVisibleStart:Pe,columnVisibleEnd:Oe,rowVisibleStart:Me,rowVisibleEnd:Ce})}const{scrollLeft:q,scrollTop:ae,updateRequested:ne,xAxisScrollDir:de,yAxisScrollDir:me}=y(A);g(Nb,{xAxisScrollDir:de,scrollLeft:q,yAxisScrollDir:me,scrollTop:ae,updateRequested:ne})},H=Z=>{const{clientHeight:ce,clientWidth:q,scrollHeight:ae,scrollLeft:ne,scrollTop:de,scrollWidth:me}=Z.currentTarget,pe=y(A);if(pe.scrollTop===de&&pe.scrollLeft===ne)return;let Se=ne;if(D3(v.direction))switch(Vb()){case ng:Se=-ne;break;case aP:Se=me-q-ne;break}A.value={...pe,isScrolling:!0,scrollLeft:Se,scrollTop:Math.max(0,Math.min(de,ae-ce)),updateRequested:!0,xAxisScrollDir:hc(pe.scrollLeft,Se),yAxisScrollDir:hc(pe.scrollTop,de)},Xe(()=>J()),se(),B()},G=(Z,ce)=>{const q=y(I),ae=($.value-q)/ce*Z;ie({scrollTop:Math.min($.value-q,ae)})},X=(Z,ce)=>{const q=y(E),ae=(P.value-q)/ce*Z;ie({scrollLeft:Math.min(P.value-q,ae)})},{onWheel:ue}=YLe({atXStartEdge:F(()=>A.value.scrollLeft<=0),atXEndEdge:F(()=>A.value.scrollLeft>=P.value-y(E)),atYStartEdge:F(()=>A.value.scrollTop<=0),atYEndEdge:F(()=>A.value.scrollTop>=$.value-y(I))},(Z,ce)=>{var q,ae,ne,de;(ae=(q=C.value)==null?void 0:q.onMouseUp)==null||ae.call(q),(de=(ne=C.value)==null?void 0:ne.onMouseUp)==null||de.call(ne);const me=y(E),pe=y(I);ie({scrollLeft:Math.min(A.value.scrollLeft+Z,P.value-me),scrollTop:Math.min(A.value.scrollTop+ce,$.value-pe)})}),ie=({scrollLeft:Z=A.value.scrollLeft,scrollTop:ce=A.value.scrollTop})=>{Z=Math.max(Z,0),ce=Math.max(ce,0);const q=y(A);ce===q.scrollTop&&Z===q.scrollLeft||(A.value={...q,xAxisScrollDir:hc(q.scrollLeft,Z),yAxisScrollDir:hc(q.scrollTop,ce),scrollLeft:Z,scrollTop:ce,updateRequested:!0},Xe(()=>J()),se(),B())},le=(Z=0,ce=0,q=mi)=>{const ae=y(A);ce=Math.max(0,Math.min(ce,v.totalColumn-1)),Z=Math.max(0,Math.min(Z,v.totalRow-1));const ne=YH(b.namespace.value),de=y(S),me=i(v,de),pe=o(v,de);ie({scrollLeft:s(v,ce,q,ae.scrollLeft,de,pe>v.width?ne:0),scrollTop:l(v,Z,q,ae.scrollTop,de,me>v.height?ne:0)})},Q=(Z,ce)=>{const{columnWidth:q,direction:ae,rowHeight:ne}=v,de=M.value(t&&q,t&&ne,t&&ae),me=`${Z},${ce}`;if(Vt(de,me))return de[me];{const[,pe]=n(v,ce,y(S)),Se=y(S),Pe=D3(ae),[Oe,Ne]=u(v,Z,Se),[Te]=n(v,ce,Se);return de[me]={position:"absolute",left:Pe?void 0:`${pe}px`,right:Pe?`${pe}px`:void 0,top:`${Ne}px`,height:`${Oe}px`,width:`${Te}px`},de[me]}},J=()=>{A.value.isScrolling=!1,Xe(()=>{M.value(-1,null,null)})};nt(()=>{if(!Ht)return;const{initScrollLeft:Z,initScrollTop:ce}=v,q=y(x);q&&(lt(Z)&&(q.scrollLeft=Z),lt(ce)&&(q.scrollTop=ce)),B()});const se=()=>{const{direction:Z}=v,{scrollLeft:ce,scrollTop:q,updateRequested:ae}=y(A),ne=y(x);if(ae&&ne){if(Z===yd)switch(Vb()){case ng:{ne.scrollLeft=-ce;break}case rP:{ne.scrollLeft=ce;break}default:{const{clientWidth:de,scrollWidth:me}=ne;ne.scrollLeft=me-de-ce;break}}else ne.scrollLeft=Math.max(0,ce);ne.scrollTop=Math.max(0,q)}},{resetAfterColumnIndex:he,resetAfterRowIndex:re,resetAfter:z}=w.proxy;m({windowRef:x,innerRef:k,getItemStyleCache:M,scrollTo:ie,scrollToItem:le,states:A,resetAfterColumnIndex:he,resetAfterRowIndex:re,resetAfter:z});const Y=()=>{const{scrollbarAlwaysOn:Z,scrollbarStartGap:ce,scrollbarEndGap:q,totalColumn:ae,totalRow:ne}=v,de=y(E),me=y(I),pe=y(P),Se=y($),{scrollLeft:Pe,scrollTop:Oe}=y(A),Ne=et(aT,{ref:C,alwaysOn:Z,startGap:ce,endGap:q,class:b.e("horizontal"),clientSize:de,layout:"horizontal",onScroll:X,ratio:de*100/pe,scrollFrom:Pe/(pe-de),total:ne,visible:!0}),Te=et(aT,{ref:T,alwaysOn:Z,startGap:ce,endGap:q,class:b.e("vertical"),clientSize:me,layout:"vertical",onScroll:G,ratio:me*100/Se,scrollFrom:Oe/(Se-me),total:ae,visible:!0});return{horizontalScrollbar:Ne,verticalScrollbar:Te}},ee=()=>{var Z;const[ce,q]=y(L),[ae,ne]=y(N),{data:de,totalColumn:me,totalRow:pe,useIsScrolling:Se,itemKey:Pe}=v,Oe=[];if(pe>0&&me>0)for(let Ne=ae;Ne<=ne;Ne++)for(let Te=ce;Te<=q;Te++)Oe.push((Z=_.default)==null?void 0:Z.call(_,{columnIndex:Te,data:de,key:Pe({columnIndex:Te,data:de,rowIndex:Ne}),isScrolling:Se?y(A).isScrolling:void 0,style:Q(Ne,Te),rowIndex:Ne}));return Oe},oe=()=>{const Z=Lt(v.innerElement),ce=ee();return[et(Z,{style:y(D),ref:k},dt(Z)?ce:{default:()=>ce})]};return()=>{const Z=Lt(v.containerElement),{horizontalScrollbar:ce,verticalScrollbar:q}=Y(),ae=oe();return et("div",{key:0,class:b.e("wrapper"),role:v.role},[et(Z,{class:v.className,style:y(R),onScroll:H,onWheel:ue,ref:x},dt(Z)?ae:{default:()=>ae}),ce,q])}}}),qLe=JW({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},r,a,i,o,s)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,r*t),c=Math.max(0,r*t-n+s+t);switch(a==="smart"&&(i>=c-n&&i<=u+n?a=mi:a=No),a){case eg:return u;case tg:return c;case No:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case mi:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},r,a,i,o,s)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,r*e),c=Math.max(0,r*e-t+s+e);switch(a===B_&&(i>=c-t&&i<=u+t?a=mi:a=No),a){case eg:return u;case tg:return c;case No:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case mi:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},r,a)=>{const i=r*e,o=Math.ceil((n+a-i)/e);return Math.max(0,Math.min(t-1,r+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:zb,min:QW,floor:e7}=Math,XLe={column:"columnWidth",row:"rowHeight"},iT={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},bs=(e,t,n,r)=>{const[a,i,o]=[n[r],e[XLe[r]],n[iT[r]]];if(t>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=t;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}n[iT[r]]=t}return a[t]},t7=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+e7((r-n)/2),s=bs(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return zb(0,n-1)},ZLe=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&bs(e,n,t,a).offset<r;)n+=o,o*=2;return t7(e,t,e7(n/2),QW(n,i-1),r,a)},$3=(e,t,n,r)=>{const[a,i]=[t[r],t[iT[r]]];return(i>0?a[i].offset:0)>=n?t7(e,t,0,i,n,r):ZLe(e,t,zb(0,i),n,r)},n7=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=e&&(n=e-1),n>=0){const s=r[n];a=s.offset+s.size}const o=(e-n-1)*t;return a+o},r7=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>e&&(r=e-1),r>=0){const s=t[r];a=s.offset+s.size}const o=(e-r-1)*n;return a+o},JLe={column:r7,row:n7},R3=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,JLe[i]],u=bs(e,t,a,i),c=l(e,a),f=zb(0,QW(c-s,u.offset)),d=zb(0,u.offset-s+o+u.size);switch(n===B_&&(r>=d-s&&r<=f+s?n=mi:n=No),n){case eg:return f;case tg:return d;case No:return Math.round(d+(f-d)/2);case mi:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},QLe=JW({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=bs(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=bs(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>R3(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>R3(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>$3(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=bs(e,t,r,"column"),i=n+e.width;let o=a.offset+a.size,s=t;for(;s<e.totalColumn-1&&o<i;)s++,o+=bs(e,t,r,"column").size;return s},getEstimatedTotalHeight:n7,getEstimatedTotalWidth:r7,getRowStartIndexForOffset:(e,t,n)=>$3(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=bs(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=bs(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=Sr(s)?!0:s,lt(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),lt(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,o)=>{n({columnIndex:i},o)},a=(i,o)=>{n({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=J2,estimatedRowHeight:t=J2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),e$e=ge({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Ie("select")}}});function t$e(e,t,n,r,a,i){return e.item.isTitle?(O(),K("div",{key:0,class:j(e.ns.be("group","title")),style:Ke([e.style,{lineHeight:`${e.height}px`}])},$e(e.item.label),7)):(O(),K("div",{key:1,class:j(e.ns.be("group","split")),style:Ke(e.style)},[W("span",{class:j(e.ns.be("group","split-dash")),style:Ke({top:`${e.height/2}px`})},null,6)],6))}var n$e=Ve(e$e,[["render",t$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function r$e(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const a$e={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:ou},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:br.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:C_},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:xe(String),values:af,default:"bottom-start"}},i$e={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},o$e=ge({props:i$e,emits:["select","hover"],setup(e,{emit:t}){const n=Ie("select"),{hoverItem:r,selectOptionClick:a}=r$e(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:a}}}),s$e=["aria-selected"];function l$e(e,t,n,r,a,i){return O(),K("li",{"aria-selected":e.selected,style:Ke(e.style),class:j([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=st((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[ke(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[W("span",null,$e(e.item.label),1)])],46,s$e)}var u$e=Ve(o$e,[["render",l$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const a7=Symbol("ElSelectV2Injection");var c$e=ge({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Ye(a7),a=Ie("select"),i=U([]),o=U(),s=F(()=>e.data.length);Ae(()=>s.value,()=>{var T,k;(k=(T=r.popper.value).updatePopper)==null||k.call(T)});const l=F(()=>Sr(r.props.estimatedOptionHeight)),u=F(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],k)=>{const{props:{valueKey:A}}=r;return It(k)?T&&T.some(M=>En(M,A)===En(k,A)):T.includes(k)},f=(T,k)=>{if(It(k)){const{valueKey:A}=r.props;return En(T,A)===En(k,A)}else return T===k},d=(T,k)=>{const{valueKey:A}=r.props;return r.props.multiple?c(T,En(k,A)):f(T,En(k,A))},h=(T,k)=>{const{disabled:A,multiple:M,multipleLimit:I}=r.props;return A||!k&&(M?I>0&&T.length>=I:!1)},p=T=>e.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:p,isItemSelected:d,scrollToItem:T=>{const k=o.value;k&&k.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const m=T=>{const{index:k,data:A,style:M}=T,I=y(l),{itemSize:E,estimatedSize:L}=y(u),{modelValue:N}=r.props,{onSelect:$,onHover:P}=r,R=A[k];if(R.type==="Group")return V(n$e,{item:R,style:M,height:I?E:L},null);const D=d(N,R),B=h(N,D),H=p(k);return V(u$e,Dt(T,{selected:D,disabled:R.disabled||B,created:!!R.created,hovering:H,item:R,onSelect:$,onHover:P}),{default:G=>{var X;return((X=t.default)==null?void 0:X.call(t,G))||V("span",null,[R.label])}})},{onKeyboardNavigate:_,onKeyboardSelect:b}=r,w=()=>{_("forward")},S=()=>{_("backward")},x=()=>{r.expanded=!1},C=T=>{const{code:k}=T,{tab:A,esc:M,down:I,up:E,enter:L}=tt;switch(k!==A&&(T.preventDefault(),T.stopPropagation()),k){case A:case M:{x();break}case I:{w();break}case E:{S();break}case L:{b();break}}};return()=>{var T;const{data:k,width:A}=e,{height:M,multiple:I,scrollbarAlwaysOn:E}=r.props;if(k.length===0)return V("div",{class:a.b("dropdown"),style:{width:`${A}px`}},[(T=t.empty)==null?void 0:T.call(t)]);const L=y(l)?XW:KLe;return V("div",{class:[a.b("dropdown"),a.is("multiple",I)]},[V(L,Dt({ref:o},y(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:E,data:k,height:M,width:A,total:k.length,onKeydown:C}),{default:N=>V(m,N,null)})])}}});function f$e(e,t){const n=U(0),r=U(null),a=F(()=>e.allowCreate&&e.filterable);function i(c){const f=d=>d.value===c;return e.options&&e.options.some(f)||t.createdOptions.some(f)}function o(c){a.value&&(e.multiple&&c.created?n.value++:r.value=c)}function s(c){if(a.value)if(c&&c.length>0&&!i(c)){const f={value:c,label:c,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=f:t.createdOptions.push(f)}else if(e.multiple)t.createdOptions.length=n.value;else{const f=r.value;t.createdOptions.length=0,f&&f.created&&t.createdOptions.push(f)}}function l(c){if(!a.value||!c||!c.created||c.created&&e.reserveKeyword&&t.inputValue===c.label)return;const f=t.createdOptions.findIndex(d=>d.value===c.value);~f&&(t.createdOptions.splice(f,1),n.value--)}function u(){a.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:s,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const d$e=e=>{const t=[];return e.forEach(n=>{Ze(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(r=>{t.push(r)}),t.push({type:"Group"})):t.push(n)}),t};function h$e(e){const t=U(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!T_(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,ft(e)&&e(i))}}}const O3="",N3=11,p$e={larget:51,default:42,small:33},v$e=(e,t)=>{const{t:n}=jt(),r=Ie("select-v2"),a=Ie("input"),{form:i,formItem:o}=ya(),s=vt({inputValue:O3,displayInputValue:O3,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),l=U(-1),u=U(-1),c=U(null),f=U(null),d=U(null),h=U(null),p=U(null),v=U(null),g=U(null),m=U(!1),_=F(()=>e.disabled||(i==null?void 0:i.disabled)),b=F(()=>{const Re=I.value.length*34;return Re>e.height?e.height:Re}),w=F(()=>!tr(e.modelValue)),S=F(()=>{const Re=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:w.value;return e.clearable&&!_.value&&s.comboBoxHovering&&Re}),x=F(()=>e.remote&&e.filterable?"":w_),C=F(()=>x.value&&r.is("reverse",m.value)),T=F(()=>(o==null?void 0:o.validateState)||""),k=F(()=>rG[T.value]),A=F(()=>e.remote?300:0),M=F(()=>{const Re=I.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&s.inputValue===""&&Re.length===0?!1:e.filterable&&s.inputValue&&Re.length>0?e.noMatchText||n("el.select.noMatch"):Re.length===0?e.noDataText||n("el.select.noData"):null}),I=F(()=>{const Re=at=>{const Kt=s.inputValue,qt=new RegExp(jH(Kt),"i");return Kt?qt.test(at.label||""):!0};return e.loading?[]:d$e(e.options.concat(s.createdOptions).map(at=>{if(Ze(at.options)){const Kt=at.options.filter(Re);if(Kt.length>0)return{...at,options:Kt}}else if(e.remote||Re(at))return at;return null}).filter(at=>at!==null))}),E=F(()=>I.value.every(Re=>Re.disabled)),L=nr(),N=F(()=>L.value==="small"?"small":"default"),$=F(()=>{const Re=v.value,at=N.value||"default",Kt=Re?Number.parseInt(getComputedStyle(Re).paddingLeft):0,qt=Re?Number.parseInt(getComputedStyle(Re).paddingRight):0;return s.selectWidth-qt-Kt-p$e[at]}),P=()=>{var Re;u.value=((Re=p.value)==null?void 0:Re.offsetWidth)||200},R=F(()=>({width:`${s.calculatedWidth===0?N3:Math.ceil(s.calculatedWidth)+N3}px`})),D=F(()=>Ze(e.modelValue)?e.modelValue.length===0&&!s.displayInputValue:e.filterable?s.displayInputValue.length===0:!0),B=F(()=>{const Re=e.placeholder||n("el.select.placeholder");return e.multiple||tr(e.modelValue)?Re:s.selectedLabel}),H=F(()=>{var Re,at;return(at=(Re=h.value)==null?void 0:Re.popperRef)==null?void 0:at.contentRef}),G=F(()=>{if(e.multiple){const Re=e.modelValue.length;if(e.modelValue.length>0)return I.value.findIndex(at=>at.value===e.modelValue[Re-1])}else if(e.modelValue)return I.value.findIndex(Re=>Re.value===e.modelValue);return-1}),X=F({get(){return m.value&&M.value!==!1},set(Re){m.value=Re}}),ue=F(()=>s.cachedOptions.slice(0,e.maxCollapseTags)),ie=F(()=>s.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:le,removeNewOption:Q,selectNewOption:J,clearAllNewOption:se}=f$e(e,s),{handleCompositionStart:he,handleCompositionUpdate:re,handleCompositionEnd:z}=h$e(Re=>xt(Re)),Y=()=>{var Re,at,Kt;(at=(Re=f.value)==null?void 0:Re.focus)==null||at.call(Re),(Kt=h.value)==null||Kt.updatePopper()},ee=()=>{if(!e.automaticDropdown&&!_.value)return s.isComposing&&(s.softFocus=!0),Xe(()=>{var Re,at;m.value=!m.value,(at=(Re=f.value)==null?void 0:Re.focus)==null||at.call(Re)})},oe=()=>(e.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),Z(s.inputValue),Xe(()=>{le(s.inputValue)})),ve=fa(oe,A.value),Z=Re=>{s.previousQuery!==Re&&(s.previousQuery=Re,e.filterable&&ft(e.filterMethod)?e.filterMethod(Re):e.filterable&&e.remote&&ft(e.remoteMethod)&&e.remoteMethod(Re))},ce=Re=>{Ya(e.modelValue,Re)||t(Tn,Re)},q=Re=>{t(Mt,Re),ce(Re),s.previousValue=Re==null?void 0:Re.toString()},ae=(Re=[],at)=>{if(!It(at))return Re.indexOf(at);const Kt=e.valueKey;let qt=-1;return Re.some((yr,wo)=>En(yr,Kt)===En(at,Kt)?(qt=wo,!0):!1),qt},ne=Re=>It(Re)?En(Re,e.valueKey):Re,de=Re=>It(Re)?Re.label:Re,me=()=>Xe(()=>{var Re,at;if(!f.value)return;const Kt=v.value;p.value.height=Kt.offsetHeight,m.value&&M.value!==!1&&((at=(Re=h.value)==null?void 0:Re.updatePopper)==null||at.call(Re))}),pe=()=>{var Re,at;if(Se(),P(),(at=(Re=h.value)==null?void 0:Re.updatePopper)==null||at.call(Re),e.multiple)return me()},Se=()=>{const Re=v.value;Re&&(s.selectWidth=Re.getBoundingClientRect().width)},Pe=(Re,at,Kt=!0)=>{var qt,yr;if(e.multiple){let wo=e.modelValue.slice();const Dm=ae(wo,ne(Re));Dm>-1?(wo=[...wo.slice(0,Dm),...wo.slice(Dm+1)],s.cachedOptions.splice(Dm,1),Q(Re)):(e.multipleLimit<=0||wo.length<e.multipleLimit)&&(wo=[...wo,ne(Re)],s.cachedOptions.push(Re),J(Re),gt(at)),q(wo),Re.created&&(s.query="",Z(""),s.inputLength=20),e.filterable&&!e.reserveKeyword&&((yr=(qt=f.value).focus)==null||yr.call(qt),_e("")),e.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),me(),qe()}else l.value=at,s.selectedLabel=Re.label,q(ne(Re)),m.value=!1,s.isComposing=!1,s.isSilentBlur=Kt,J(Re),Re.created||se(),gt(at)},Oe=(Re,at)=>{const{valueKey:Kt}=e,qt=e.modelValue.indexOf(En(at,Kt));if(qt>-1&&!_.value){const yr=[...e.modelValue.slice(0,qt),...e.modelValue.slice(qt+1)];return s.cachedOptions.splice(qt,1),q(yr),t("remove-tag",En(at,Kt)),s.softFocus=!0,Q(at),Xe(Y)}Re.stopPropagation()},Ne=Re=>{const at=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:at||t("focus",Re)},Te=Re=>(s.softFocus=!1,Xe(()=>{var at,Kt;(Kt=(at=f.value)==null?void 0:at.blur)==null||Kt.call(at),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&t("blur",Re),s.isComposing=!1})),Me=()=>{s.displayInputValue.length>0?_e(""):m.value=!1},Ce=Re=>{if(s.displayInputValue.length===0){Re.preventDefault();const at=e.modelValue.slice();at.pop(),Q(s.cachedOptions.pop()),q(at)}},ye=()=>{let Re;return Ze(e.modelValue)?Re=[]:Re=void 0,s.softFocus=!0,e.multiple?s.cachedOptions=[]:s.selectedLabel="",m.value=!1,q(Re),t("clear"),se(),Xe(Y)},_e=Re=>{s.displayInputValue=Re,s.inputValue=Re},Le=(Re,at=void 0)=>{const Kt=I.value;if(!["forward","backward"].includes(Re)||_.value||Kt.length<=0||E.value)return;if(!m.value)return ee();at===void 0&&(at=s.hoveringIndex);let qt=-1;Re==="forward"?(qt=at+1,qt>=Kt.length&&(qt=0)):Re==="backward"&&(qt=at-1,(qt<0||qt>=Kt.length)&&(qt=Kt.length-1));const yr=Kt[qt];if(yr.disabled||yr.type==="Group")return Le(Re,qt);gt(qt),ln(qt)},je=()=>{if(m.value)~s.hoveringIndex&&I.value[s.hoveringIndex]&&Pe(I.value[s.hoveringIndex],s.hoveringIndex,!1);else return ee()},gt=Re=>{s.hoveringIndex=Re},Ee=()=>{s.hoveringIndex=-1},qe=()=>{var Re;const at=f.value;at&&((Re=at.focus)==null||Re.call(at))},xt=Re=>{const at=Re.target.value;if(_e(at),s.displayInputValue.length>0&&!m.value&&(m.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&me(),e.remote)ve();else return oe()},wt=()=>(m.value=!1,Te()),Bt=()=>(s.inputValue=s.displayInputValue,Xe(()=>{~G.value&&(gt(G.value),ln(s.hoveringIndex))})),ln=Re=>{d.value.scrollToItem(Re)},ur=()=>{if(Ee(),e.multiple)if(e.modelValue.length>0){let Re=!1;s.cachedOptions.length=0,s.previousValue=e.modelValue.toString(),e.modelValue.forEach(at=>{const Kt=I.value.findIndex(qt=>ne(qt)===at);~Kt&&(s.cachedOptions.push(I.value[Kt]),Re||gt(Kt),Re=!0)})}else s.cachedOptions=[],s.previousValue=void 0;else if(w.value){s.previousValue=e.modelValue;const Re=I.value,at=Re.findIndex(Kt=>ne(Kt)===ne(e.modelValue));~at?(s.selectedLabel=Re[at].label,gt(at)):s.selectedLabel=`${e.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;se(),P()};return Ae(m,Re=>{var at,Kt;t("visible-change",Re),Re?(Kt=(at=h.value).update)==null||Kt.call(at):(s.displayInputValue="",s.previousQuery=null,le(""))}),Ae(()=>e.modelValue,(Re,at)=>{var Kt;(!Re||Re.toString()!==s.previousValue)&&ur(),!Ya(Re,at)&&e.validateEvent&&((Kt=o==null?void 0:o.validate)==null||Kt.call(o,"change").catch(qt=>void 0))},{deep:!0}),Ae(()=>e.options,()=>{const Re=f.value;(!Re||Re&&document.activeElement!==Re)&&ur()},{deep:!0}),Ae(I,()=>Xe(d.value.resetScrollTop)),Ae(()=>X.value,Re=>{Re||Ee()}),nt(()=>{ur()}),Yr(p,pe),{collapseTagSize:N,currentPlaceholder:B,expanded:m,emptyText:M,popupHeight:b,debounce:A,filteredOptions:I,iconComponent:x,iconReverse:C,inputWrapperStyle:R,popperSize:u,dropdownMenuVisible:X,hasModelValue:w,shouldShowPlaceholder:D,selectDisabled:_,selectSize:L,showClearBtn:S,states:s,tagMaxWidth:$,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:p,selectionRef:v,popperRef:H,validateState:T,validateIcon:k,showTagList:ue,collapseTagList:ie,debouncedOnInputChange:ve,deleteTag:Oe,getLabel:de,getValueKey:ne,handleBlur:Te,handleClear:ye,handleClickOutside:wt,handleDel:Ce,handleEsc:Me,handleFocus:Ne,handleMenuEnter:Bt,handleResize:pe,toggleMenu:ee,scrollTo:ln,onInput:xt,onKeyboardNavigate:Le,onKeyboardSelect:je,onSelect:Pe,onHover:gt,onUpdateInputValue:_e,handleCompositionStart:he,handleCompositionEnd:z,handleCompositionUpdate:re}},g$e=ge({name:"ElSelectV2",components:{ElSelectMenu:c$e,ElTag:Jv,ElTooltip:da,ElIcon:Je},directives:{ClickOutside:Yl,ModelText:jA},props:a$e,emits:[Mt,Tn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=F(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return Ze(a)?i?a:o:i?o:a}),r=v$e(vt({...or(e),modelValue:n}),t);return $t(a7,{props:vt({...or(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),m$e={key:0},y$e=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],b$e=["textContent"],_$e=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],w$e=["textContent"];function S$e(e,t,n,r,a,i){const o=Fe("el-tag"),s=Fe("el-tooltip"),l=Fe("el-icon"),u=Fe("el-select-menu"),c=Ds("model-text"),f=Ds("click-outside");return pt((O(),K("div",{ref:"selectRef",class:j([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=st((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"])),onMouseenter:t[25]||(t[25]=d=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=d=>e.states.comboBoxHovering=!1)},[V(s,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=d=>e.states.inputValue=e.states.displayInputValue)},{default:fe(()=>[W("div",{ref:"selectionRef",class:j([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(O(),K("div",m$e,[ke(e.$slots,"prefix")])):be("v-if",!0),e.multiple?(O(),K("div",{key:1,class:j(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(O(),K(He,{key:0},[(O(!0),K(He,null,ct(e.showTagList,d=>(O(),K("div",{key:e.getValueKey(d),class:j(e.nsSelectV2.e("selected-item"))},[V(o,{closable:!e.selectDisabled&&!(d!=null&&d.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:fe(()=>[W("span",{class:j(e.nsSelectV2.e("tags-text")),style:Ke({maxWidth:`${e.tagMaxWidth}px`})},$e(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),W("div",{class:j(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(O(),we(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:fe(()=>[e.collapseTagsTooltip?(O(),we(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:fe(()=>[W("span",{class:j(e.nsSelectV2.e("tags-text")),style:Ke({maxWidth:`${e.tagMaxWidth}px`})},"+ "+$e(e.modelValue.length-e.maxCollapseTags),7)]),content:fe(()=>[W("div",{class:j(e.nsSelectV2.e("selection"))},[(O(!0),K(He,null,ct(e.collapseTagList,d=>(O(),K("div",{key:e.getValueKey(d),class:j(e.nsSelectV2.e("selected-item"))},[V(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:fe(()=>[W("span",{class:j(e.nsSelectV2.e("tags-text")),style:Ke({maxWidth:`${e.tagMaxWidth}px`})},$e(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(O(),K("span",{key:1,class:j(e.nsSelectV2.e("tags-text")),style:Ke({maxWidth:`${e.tagMaxWidth}px`})},"+ "+$e(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):be("v-if",!0)],2)],64)):(O(!0),K(He,{key:1},ct(e.states.cachedOptions,d=>(O(),K("div",{key:e.getValueKey(d),class:j(e.nsSelectV2.e("selected-item"))},[V(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:fe(()=>[W("span",{class:j(e.nsSelectV2.e("tags-text")),style:Ke({maxWidth:`${e.tagMaxWidth}px`})},$e(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),W("div",{class:j([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Ke(e.inputWrapperStyle)},[pt(W("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:j([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[3]||(t[3]=(...d)=>e.onInput&&e.onInput(...d)),onCompositionstart:t[4]||(t[4]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[5]||(t[5]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[6]||(t[6]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onKeydown:[t[7]||(t[7]=Wt(st(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Wt(st(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Wt(st((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=Wt(st((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=Wt(st((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,y$e),[[c,e.states.displayInputValue]]),e.filterable?(O(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:j(e.nsSelectV2.e("input-calculator")),textContent:$e(e.states.displayInputValue)},null,10,b$e)):be("v-if",!0)],6)],2)):(O(),K(He,{key:2},[W("div",{class:j([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[pt(W("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:j(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onFocus:t[15]||(t[15]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[16]||(t[16]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[17]||(t[17]=(...d)=>e.onInput&&e.onInput(...d)),onKeydown:[t[18]||(t[18]=Wt(st(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=Wt(st(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=Wt(st((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=Wt(st((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,_$e),[[c,e.states.displayInputValue]])],2),e.filterable?(O(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:j([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:$e(e.states.displayInputValue)},null,10,w$e)):be("v-if",!0)],64)),e.shouldShowPlaceholder?(O(),K("span",{key:3,class:j([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},$e(e.currentPlaceholder),3)):be("v-if",!0),W("span",{class:j(e.nsSelectV2.e("suffix"))},[e.iconComponent?pt((O(),we(l,{key:0,class:j([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:fe(()=>[(O(),we(Lt(e.iconComponent)))]),_:1},8,["class"])),[[Yt,!e.showClearBtn]]):be("v-if",!0),e.showClearBtn&&e.clearIcon?(O(),we(l,{key:1,class:j([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:st(e.handleClear,["prevent","stop"])},{default:fe(()=>[(O(),we(Lt(e.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0),e.validateState&&e.validateIcon?(O(),we(l,{key:2,class:j([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:fe(()=>[(O(),we(Lt(e.validateIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)]),content:fe(()=>[V(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:fe(d=>[ke(e.$slots,"default",ji(a_(d)))]),empty:fe(()=>[ke(e.$slots,"empty",{},()=>[W("p",{class:j(e.nsSelectV2.e("empty"))},$e(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var V0=Ve(g$e,[["render",S$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);V0.install=e=>{e.component(V0.name,V0)};const x$e=V0,C$e=x$e,T$e=ze({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),k$e=ze({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),A$e=ge({name:"ElSkeletonItem"}),M$e=ge({...A$e,props:k$e,setup(e){const t=Ie("skeleton");return(n,r)=>(O(),K("div",{class:j([y(t).e("item"),y(t).e(n.variant)])},[n.variant==="image"?(O(),we(y(Hye),{key:0})):be("v-if",!0)],2))}});var Hb=Ve(M$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const P$e=ge({name:"ElSkeleton"}),E$e=ge({...P$e,props:T$e,setup(e,{expose:t}){const n=e,r=Ie("skeleton"),a=q1e(Qt(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>y(a)?(O(),K("div",Dt({key:0,class:[y(r).b(),y(r).is("animated",i.animated)]},i.$attrs),[(O(!0),K(He,null,ct(i.count,s=>(O(),K(He,{key:s},[i.loading?ke(i.$slots,"template",{key:s},()=>[V(Hb,{class:j(y(r).is("first")),variant:"p"},null,8,["class"]),(O(!0),K(He,null,ct(i.rows,l=>(O(),we(Hb,{key:l,class:j([y(r).e("paragraph"),y(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):be("v-if",!0)],64))),128))],16)):ke(i.$slots,"default",ji(Dt({key:1},i.$attrs)))}});var I$e=Ve(E$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const D$e=At(I$e,{SkeletonItem:Hb}),L$e=Vn(Hb),i7=Symbol("sliderContextKey"),$$e=ze({modelValue:{type:xe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Rr,inputSize:Rr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:xe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:xe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:af,default:"top"},marks:{type:xe(Object)},validateEvent:{type:Boolean,default:!0}}),vS=e=>lt(e)||Ze(e)&&e.every(lt),R$e={[Mt]:vS,[sa]:vS,[Tn]:vS},O$e=(e,t,n)=>{const r=U();return nt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Dn(window,"resize",n),await Xe(),n()}),{sliderWrapper:r}},N$e=e=>F(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),B$e=(e,t,n)=>{const{form:r,formItem:a}=ya(),i=gn(),o=U(),s=U(),l={firstButton:o,secondButton:s},u=F(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=F(()=>Math.min(t.firstValue,t.secondValue)),f=F(()=>Math.max(t.firstValue,t.secondValue)),d=F(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=F(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),p=F(()=>e.vertical?{height:e.height}:{}),v=F(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},m=M=>{const I=e.min+M*(e.max-e.min)/100;if(!e.range)return o;let E;return Math.abs(c.value-I)<Math.abs(f.value-I)?E=t.firstValue<t.secondValue?"firstButton":"secondButton":E=t.firstValue>t.secondValue?"firstButton":"secondButton",l[E]},_=M=>{const I=m(M);return I.value.setPosition(M),I},b=M=>{t.firstValue=M,S(e.range?[c.value,f.value]:M)},w=M=>{t.secondValue=M,e.range&&S([c.value,f.value])},S=M=>{n(Mt,M),n(sa,M)},x=async()=>{await Xe(),n(Tn,e.range?[c.value,f.value]:e.modelValue)},C=M=>{var I,E,L,N,$,P;if(u.value||t.dragging)return;g();let R=0;if(e.vertical){const D=(L=(E=(I=M.touches)==null?void 0:I.item(0))==null?void 0:E.clientY)!=null?L:M.clientY;R=(i.value.getBoundingClientRect().bottom-D)/t.sliderSize*100}else{const D=(P=($=(N=M.touches)==null?void 0:N.item(0))==null?void 0:$.clientX)!=null?P:M.clientX,B=i.value.getBoundingClientRect().left;R=(D-B)/t.sliderSize*100}if(!(R<0||R>100))return _(R)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:p,barStyle:v,resetSize:g,setPosition:_,emitChange:x,onSliderWrapperPrevent:M=>{var I,E;((I=l.firstButton.value)!=null&&I.dragging||(E=l.secondButton.value)!=null&&E.dragging)&&M.preventDefault()},onSliderClick:M=>{C(M)&&x()},onSliderDown:async M=>{const I=C(M);I&&(await Xe(),I.value.onButtonDown(M))},setFirstValue:b,setSecondValue:w}},{left:F$e,down:V$e,right:z$e,up:H$e,home:G$e,end:W$e,pageUp:U$e,pageDown:j$e}=tt,K$e=(e,t,n)=>{const r=U(),a=U(!1),i=F(()=>t.value instanceof Function),o=F(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=fa(()=>{n.value&&(a.value=!0)},50),l=fa(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},Y$e=(e,t,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=Ye(i7),{tooltip:p,tooltipVisible:v,formatValue:g,displayTooltip:m,hideTooltip:_}=K$e(e,c,s),b=U(),w=F(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),S=F(()=>e.vertical?{bottom:w.value}:{left:w.value}),x=()=>{t.hovering=!0,m()},C=()=>{t.hovering=!1,t.dragging||_()},T=G=>{r.value||(G.preventDefault(),R(G),window.addEventListener("mousemove",D),window.addEventListener("touchmove",D),window.addEventListener("mouseup",B),window.addEventListener("touchend",B),window.addEventListener("contextmenu",B),b.value.focus())},k=G=>{r.value||(t.newPosition=Number.parseFloat(w.value)+G/(i.value-a.value)*100,H(t.newPosition),f())},A=()=>{k(-o.value)},M=()=>{k(o.value)},I=()=>{k(-o.value*4)},E=()=>{k(o.value*4)},L=()=>{r.value||(H(0),f())},N=()=>{r.value||(H(100),f())},$=G=>{let X=!0;[F$e,V$e].includes(G.key)?A():[z$e,H$e].includes(G.key)?M():G.key===G$e?L():G.key===W$e?N():G.key===j$e?I():G.key===U$e?E():X=!1,X&&G.preventDefault()},P=G=>{let X,ue;return G.type.startsWith("touch")?(ue=G.touches[0].clientY,X=G.touches[0].clientX):(ue=G.clientY,X=G.clientX),{clientX:X,clientY:ue}},R=G=>{t.dragging=!0,t.isClick=!0;const{clientX:X,clientY:ue}=P(G);e.vertical?t.startY=ue:t.startX=X,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},D=G=>{if(t.dragging){t.isClick=!1,m(),d();let X;const{clientX:ue,clientY:ie}=P(G);e.vertical?(t.currentY=ie,X=(t.startY-t.currentY)/u.value*100):(t.currentX=ue,X=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+X,H(t.newPosition)}},B=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||_(),t.isClick||H(t.newPosition),f()},0),window.removeEventListener("mousemove",D),window.removeEventListener("touchmove",D),window.removeEventListener("mouseup",B),window.removeEventListener("touchend",B),window.removeEventListener("contextmenu",B))},H=async G=>{if(G===null||Number.isNaN(+G))return;G<0?G=0:G>100&&(G=100);const X=100/((i.value-a.value)/o.value);let ie=Math.round(G/X)*X*(i.value-a.value)*.01+a.value;ie=Number.parseFloat(ie.toFixed(l.value)),ie!==e.modelValue&&n(Mt,ie),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Xe(),t.dragging&&m(),p.value.updatePopper()};return Ae(()=>t.dragging,G=>{h(G)}),{disabled:r,button:b,tooltip:p,tooltipVisible:v,showTooltip:s,wrapperStyle:S,formatValue:g,handleMouseEnter:x,handleMouseLeave:C,onButtonDown:T,onKeyDown:$,setPosition:H}},q$e=(e,t,n,r)=>({stops:F(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),X$e=(e,t,n,r,a,i)=>{const o=u=>{a(Mt,u),a(sa,u)},s=()=>e.range?![n.value,r.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&sr("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]<e.min?o([e.min,e.min]):f[0]>e.max?o([e.max,e.max]):f[0]<e.min?o([e.min,f[1]]):f[1]>e.max?o([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<e.min?o(e.min):f>e.max?o(e.max):(t.firstValue=f,s()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),t.oldValue=f)))};l(),Ae(()=>t.dragging,u=>{u||l()}),Ae(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),Ae(()=>[e.min,e.max],()=>{l()})},Z$e=ze({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:af,default:"top"}}),J$e={[Mt]:e=>lt(e)},Q$e=["tabindex"],eRe=ge({name:"ElSliderButton"}),tRe=ge({...eRe,props:Z$e,emits:J$e,setup(e,{expose:t,emit:n}){const r=e,a=Ie("slider"),i=vt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:p,onButtonDown:v,onKeyDown:g,setPosition:m}=Y$e(r,i,n),{hovering:_,dragging:b}=or(i);return t({onButtonDown:v,onKeyDown:g,setPosition:m,hovering:_,dragging:b}),(w,S)=>(O(),K("div",{ref_key:"button",ref:s,class:j([y(a).e("button-wrapper"),{hover:y(_),dragging:y(b)}]),style:Ke(y(f)),tabindex:y(o)?-1:0,onMouseenter:S[0]||(S[0]=(...x)=>y(h)&&y(h)(...x)),onMouseleave:S[1]||(S[1]=(...x)=>y(p)&&y(p)(...x)),onMousedown:S[2]||(S[2]=(...x)=>y(v)&&y(v)(...x)),onTouchstart:S[3]||(S[3]=(...x)=>y(v)&&y(v)(...x)),onFocus:S[4]||(S[4]=(...x)=>y(h)&&y(h)(...x)),onBlur:S[5]||(S[5]=(...x)=>y(p)&&y(p)(...x)),onKeydown:S[6]||(S[6]=(...x)=>y(g)&&y(g)(...x))},[V(y(da),{ref_key:"tooltip",ref:l,visible:y(c),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!y(u),persistent:""},{content:fe(()=>[W("span",null,$e(y(d)),1)]),default:fe(()=>[W("div",{class:j([y(a).e("button"),{hover:y(_),dragging:y(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Q$e))}});var B3=Ve(tRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const nRe=ze({mark:{type:xe([String,Object]),default:void 0}});var rRe=ge({name:"ElSliderMarker",props:nRe,setup(e){const t=Ie("slider"),n=F(()=>dt(e.mark)?e.mark:e.mark.label),r=F(()=>dt(e.mark)?void 0:e.mark.style);return()=>et("div",{class:t.e("marks-text"),style:r.value},n.value)}});const aRe=["id","role","aria-label","aria-labelledby"],iRe={key:1},oRe=ge({name:"ElSlider"}),sRe=ge({...oRe,props:$$e,emits:R$e,setup(e,{expose:t,emit:n}){const r=e,a=Ie("slider"),{t:i}=jt(),o=vt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:p,barStyle:v,resetSize:g,emitChange:m,onSliderWrapperPrevent:_,onSliderClick:b,onSliderDown:w,setFirstValue:S,setSecondValue:x}=B$e(r,o,n),{stops:C,getStopStyle:T}=q$e(r,o,d,h),{inputId:k,isLabeledByFormItem:A}=uu(r,{formItemContext:s}),M=nr(),I=F(()=>r.inputSize||M.value),E=F(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),L=F(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):E.value),N=F(()=>r.formatValueText?r.formatValueText(G.value):`${G.value}`),$=F(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),P=F(()=>r.formatValueText?r.formatValueText(X.value):`${X.value}`),R=F(()=>[a.b(),a.m(M.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),D=N$e(r);X$e(r,o,d,h,n,s);const B=F(()=>{const le=[r.min,r.max,r.step].map(Q=>{const J=`${Q}`.split(".")[1];return J?J.length:0});return Math.max.apply(null,le)}),{sliderWrapper:H}=O$e(r,o,g),{firstValue:G,secondValue:X,sliderSize:ue}=or(o),ie=le=>{o.dragging=le};return $t(i7,{...or(r),sliderSize:ue,disabled:f,precision:B,emitChange:m,resetSize:g,updateDragging:ie}),t({onSliderClick:b}),(le,Q)=>{var J,se;return O(),K("div",{id:le.range?y(k):void 0,ref_key:"sliderWrapper",ref:H,class:j(y(R)),role:le.range?"group":void 0,"aria-label":le.range&&!y(A)?y(E):void 0,"aria-labelledby":le.range&&y(A)?(J=y(s))==null?void 0:J.labelId:void 0,onTouchstart:Q[2]||(Q[2]=(...he)=>y(_)&&y(_)(...he)),onTouchmove:Q[3]||(Q[3]=(...he)=>y(_)&&y(_)(...he))},[W("div",{ref_key:"slider",ref:l,class:j([y(a).e("runway"),{"show-input":le.showInput&&!le.range},y(a).is("disabled",y(f))]),style:Ke(y(p)),onMousedown:Q[0]||(Q[0]=(...he)=>y(w)&&y(w)(...he)),onTouchstart:Q[1]||(Q[1]=(...he)=>y(w)&&y(w)(...he))},[W("div",{class:j(y(a).e("bar")),style:Ke(y(v))},null,6),V(B3,{id:le.range?void 0:y(k),ref_key:"firstButton",ref:u,"model-value":y(G),vertical:le.vertical,"tooltip-class":le.tooltipClass,placement:le.placement,role:"slider","aria-label":le.range||!y(A)?y(L):void 0,"aria-labelledby":!le.range&&y(A)?(se=y(s))==null?void 0:se.labelId:void 0,"aria-valuemin":le.min,"aria-valuemax":le.range?y(X):le.max,"aria-valuenow":y(G),"aria-valuetext":y(N),"aria-orientation":le.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(S)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),le.range?(O(),we(B3,{key:0,ref_key:"secondButton",ref:c,"model-value":y(X),vertical:le.vertical,"tooltip-class":le.tooltipClass,placement:le.placement,role:"slider","aria-label":y($),"aria-valuemin":y(G),"aria-valuemax":le.max,"aria-valuenow":y(X),"aria-valuetext":y(P),"aria-orientation":le.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(x)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):be("v-if",!0),le.showStops?(O(),K("div",iRe,[(O(!0),K(He,null,ct(y(C),(he,re)=>(O(),K("div",{key:re,class:j(y(a).e("stop")),style:Ke(y(T)(he))},null,6))),128))])):be("v-if",!0),y(D).length>0?(O(),K(He,{key:2},[W("div",null,[(O(!0),K(He,null,ct(y(D),(he,re)=>(O(),K("div",{key:re,style:Ke(y(T)(he.position)),class:j([y(a).e("stop"),y(a).e("marks-stop")])},null,6))),128))]),W("div",{class:j(y(a).e("marks"))},[(O(!0),K(He,null,ct(y(D),(he,re)=>(O(),we(y(rRe),{key:re,mark:he.mark,style:Ke(y(T)(he.position))},null,8,["mark","style"]))),128))],2)],64)):be("v-if",!0)],38),le.showInput&&!le.range?(O(),we(y(DW),{key:0,ref:"input","model-value":y(G),class:j(y(a).e("input")),step:le.step,disabled:y(f),controls:le.showInputControls,min:le.min,max:le.max,debounce:le.debounce,size:y(I),"onUpdate:modelValue":y(S),onChange:y(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):be("v-if",!0)],42,aRe)}}});var lRe=Ve(sRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const uRe=At(lRe),cRe=ze({prefixCls:{type:String}}),F3=ge({name:"ElSpaceItem",props:cRe,setup(e,{slots:t}){const n=Ie("space"),r=F(()=>`${e.prefixCls||n.b()}__item`);return()=>et("div",{class:r.value},ke(t,"default"))}}),V3={small:8,default:12,large:16};function fRe(e){const t=Ie("space"),n=F(()=>[t.b(),t.m(e.direction),e.class]),r=U(0),a=U(0),i=F(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=F(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return Ka(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(Ze(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;lt(s)?f=s:f=V3[s||"small"]||V3.small,(l||c)&&u==="horizontal"?r.value=a.value=f:u==="horizontal"?(r.value=f,a.value=0):(a.value=f,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:o}}const dRe=ze({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:xe([String,Object,Array]),default:""},style:{type:xe([String,Array,Object]),default:""},alignment:{type:xe(String),default:"center"},prefixCls:{type:String},spacer:{type:xe([Object,String,Number,Array]),default:null,validator:e=>$n(e)||lt(e)||dt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:as,validator:e=>lt(e)||Ze(e)&&e.length===2&&e.every(lt)}}),hRe=ge({name:"ElSpace",props:dRe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=fRe(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{S2(c)?Ze(c.children)&&c.children.forEach((d,h)=>{S2(d)&&Ze(d.children)?i(d.children,`${s+h}-`,l):l.push(V(F3,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},ci.PROPS|ci.STYLE,["style","prefixCls"]))}):Dbe(c)&&l.push(V(F3,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},ci.PROPS|ci.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=ke(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(Ze(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,p)=>{const v=[...d,h];return p!==f&&v.push(V("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:p},[$n(s)?s:yt(s,ci.TEXT)],ci.STYLE)),v},[])}return V("div",{class:n.value,style:r.value},c,ci.STYLE|ci.CLASS)}return u.children}}}),pRe=At(hRe),vRe=ze({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:xe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:xe([String,Object,Array])}}),gRe=ge({name:"ElStatistic"}),mRe=ge({...gRe,props:vRe,setup(e,{expose:t}){const n=e,r=Ie("statistic"),a=F(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(ft(o))return o(i);if(!lt(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:a}),(i,o)=>(O(),K("div",{class:j(y(r).b())},[i.$slots.title||i.title?(O(),K("div",{key:0,class:j(y(r).e("head"))},[ke(i.$slots,"title",{},()=>[yt($e(i.title),1)])],2)):be("v-if",!0),W("div",{class:j(y(r).e("content"))},[i.$slots.prefix||i.prefix?(O(),K("div",{key:0,class:j(y(r).e("prefix"))},[ke(i.$slots,"prefix",{},()=>[W("span",null,$e(i.prefix),1)])],2)):be("v-if",!0),W("span",{class:j(y(r).e("number")),style:Ke(i.valueStyle)},$e(y(a)),7),i.$slots.suffix||i.suffix?(O(),K("div",{key:1,class:j(y(r).e("suffix"))},[ke(i.$slots,"suffix",{},()=>[W("span",null,$e(i.suffix),1)])],2)):be("v-if",!0)],2)],2))}});var yRe=Ve(mRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const o7=At(yRe),bRe=ze({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:xe([Number,Object]),default:0},valueStyle:{type:xe([String,Object,Array])}}),_Re={finish:()=>!0,[Tn]:e=>lt(e)},wRe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],z3=e=>lt(e)?new Date(e).getTime():e.valueOf(),H3=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return wRe.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(r,"$1")},SRe=ge({name:"ElCountdown"}),xRe=ge({...SRe,props:bRe,emits:_Re,setup(e,{expose:t,emit:n}){const r=e;let a;const i=U(z3(r.value)-Date.now()),o=F(()=>H3(i.value,r.format)),s=c=>H3(c,r.format),l=()=>{a&&(k_(a),a=void 0)},u=()=>{const c=z3(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=Uv(f),i.value=d};a=Uv(f)};return Ae(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),pn(()=>{l()}),t({displayValue:o}),(c,f)=>(O(),we(y(o7),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Ls({_:2},[ct(c.$slots,(d,h)=>({name:h,fn:fe(()=>[ke(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var CRe=Ve(xRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const TRe=At(CRe),kRe=ze({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),ARe={[Tn]:(e,t)=>[e,t].every(lt)},MRe=ge({name:"ElSteps"}),PRe=ge({...MRe,props:kRe,emits:ARe,setup(e,{emit:t}){const n=e,r=Ie("steps"),a=U([]);return Ae(a,()=>{a.value.forEach((i,o)=>{i.setIndex(o)})}),$t("ElSteps",{props:n,steps:a}),Ae(()=>n.active,(i,o)=>{t(Tn,i,o)}),(i,o)=>(O(),K("div",{class:j([y(r).b(),y(r).m(i.simple?"simple":i.direction)])},[ke(i.$slots,"default")],2))}});var ERe=Ve(PRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const IRe=ze({title:{type:String,default:""},icon:{type:_n},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),DRe=ge({name:"ElStep"}),LRe=ge({...DRe,props:IRe,setup(e){const t=e,n=Ie("step"),r=U(-1),a=U({}),i=U(""),o=Ye("ElSteps"),s=St();nt(()=>{Ae([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{b(S)},{immediate:!0})}),pn(()=>{o.steps.value=o.steps.value.filter(S=>S.uid!==(s==null?void 0:s.uid))});const l=F(()=>t.status||i.value),u=F(()=>{const S=o.steps.value[r.value-1];return S?S.currentStatus:"wait"}),c=F(()=>o.props.alignCenter),f=F(()=>o.props.direction==="vertical"),d=F(()=>o.props.simple),h=F(()=>o.steps.value.length),p=F(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),v=F(()=>d.value?"":o.props.space),g=F(()=>{const S={flexBasis:lt(v.value)?`${v.value}px`:v.value?v.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||p.value&&(S.maxWidth=`${100/h.value}%`),S}),m=S=>{r.value=S},_=S=>{const x=S==="wait",C={transitionDelay:`${x?"-":""}${150*r.value}ms`},T=S===o.props.processStatus||x?0:100;C.borderWidth=T&&!d.value?"1px":0,C[o.props.direction==="vertical"?"height":"width"]=`${T}%`,a.value=C},b=S=>{S>r.value?i.value=o.props.finishStatus:S===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const x=o.steps.value[r.value-1];x&&x.calcProgress(i.value)},w=vt({uid:F(()=>s==null?void 0:s.uid),currentStatus:l,setIndex:m,calcProgress:_});return o.steps.value=[...o.steps.value,w],(S,x)=>(O(),K("div",{style:Ke(y(g)),class:j([y(n).b(),y(n).is(y(d)?"simple":y(o).props.direction),y(n).is("flex",y(p)&&!y(v)&&!y(c)),y(n).is("center",y(c)&&!y(f)&&!y(d))])},[be(" icon & line "),W("div",{class:j([y(n).e("head"),y(n).is(y(l))])},[y(d)?be("v-if",!0):(O(),K("div",{key:0,class:j(y(n).e("line"))},[W("i",{class:j(y(n).e("line-inner")),style:Ke(a.value)},null,6)],2)),W("div",{class:j([y(n).e("icon"),y(n).is(S.icon||S.$slots.icon?"icon":"text")])},[ke(S.$slots,"icon",{},()=>[S.icon?(O(),we(y(Je),{key:0,class:j(y(n).e("icon-inner"))},{default:fe(()=>[(O(),we(Lt(S.icon)))]),_:1},8,["class"])):y(l)==="success"?(O(),we(y(Je),{key:1,class:j([y(n).e("icon-inner"),y(n).is("status")])},{default:fe(()=>[V(y(Qg))]),_:1},8,["class"])):y(l)==="error"?(O(),we(y(Je),{key:2,class:j([y(n).e("icon-inner"),y(n).is("status")])},{default:fe(()=>[V(y(so))]),_:1},8,["class"])):y(d)?be("v-if",!0):(O(),K("div",{key:3,class:j(y(n).e("icon-inner"))},$e(r.value+1),3))])],2)],2),be(" title & description "),W("div",{class:j(y(n).e("main"))},[W("div",{class:j([y(n).e("title"),y(n).is(y(l))])},[ke(S.$slots,"title",{},()=>[yt($e(S.title),1)])],2),y(d)?(O(),K("div",{key:0,class:j(y(n).e("arrow"))},null,2)):(O(),K("div",{key:1,class:j([y(n).e("description"),y(n).is(y(l))])},[ke(S.$slots,"description",{},()=>[yt($e(S.description),1)])],2))],2)],6))}});var s7=Ve(LRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const $Re=At(ERe,{Step:s7}),RRe=Vn(s7),ORe=ze({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:_n},inactiveIcon:{type:_n},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:xe(Function)},size:{type:String,validator:C_},tabindex:{type:[String,Number]}}),NRe={[Mt]:e=>er(e)||dt(e)||lt(e),[Tn]:e=>er(e)||dt(e)||lt(e),[sa]:e=>er(e)||dt(e)||lt(e)},BRe=["onClick"],FRe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],VRe=["aria-hidden"],zRe=["aria-hidden"],HRe=["aria-hidden"],oT="ElSwitch",GRe=ge({name:oT}),WRe=ge({...GRe,props:ORe,emits:NRe,setup(e,{expose:t,emit:n}){const r=e,a=St(),{formItem:i}=ya(),o=nr(),s=Ie("switch");Yo({from:'"value"',replacement:'"model-value" or "v-model"',scope:oT,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},F(()=>{var S;return!!((S=a.vnode.props)!=null&&S.value)}));const{inputId:l}=uu(r,{formItemContext:i}),u=La(F(()=>r.loading)),c=U(r.modelValue!==!1),f=U(),d=U(),h=F(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",g.value)]),p=F(()=>({width:Wn(r.width)}));Ae(()=>r.modelValue,()=>{c.value=!0}),Ae(()=>r.value,()=>{c.value=!1});const v=F(()=>c.value?r.modelValue:r.value),g=F(()=>v.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(v.value)||(n(Mt,r.inactiveValue),n(Tn,r.inactiveValue),n(sa,r.inactiveValue)),Ae(g,S=>{var x;f.value.checked=S,r.validateEvent&&((x=i==null?void 0:i.validate)==null||x.call(i,"change").catch(C=>void 0))});const m=()=>{const S=g.value?r.inactiveValue:r.activeValue;n(Mt,S),n(Tn,S),n(sa,S),Xe(()=>{f.value.checked=g.value})},_=()=>{if(u.value)return;const{beforeChange:S}=r;if(!S){m();return}const x=S();[kv(x),er(x)].includes(!0)||sr(oT,"beforeChange must return type `Promise<boolean>` or `boolean`"),kv(x)?x.then(T=>{T&&m()}).catch(T=>{}):x&&m()},b=F(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),w=()=>{var S,x;(x=(S=f.value)==null?void 0:S.focus)==null||x.call(S)};return nt(()=>{f.value.checked=g.value}),t({focus:w,checked:g}),(S,x)=>(O(),K("div",{class:j(y(h)),style:Ke(y(b)),onClick:st(_,["prevent"])},[W("input",{id:y(l),ref_key:"input",ref:f,class:j(y(s).e("input")),type:"checkbox",role:"switch","aria-checked":y(g),"aria-disabled":y(u),name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:y(u),tabindex:S.tabindex,onChange:m,onKeydown:Wt(_,["enter"])},null,42,FRe),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(O(),K("span",{key:0,class:j([y(s).e("label"),y(s).em("label","left"),y(s).is("active",!y(g))])},[S.inactiveIcon?(O(),we(y(Je),{key:0},{default:fe(()=>[(O(),we(Lt(S.inactiveIcon)))]),_:1})):be("v-if",!0),!S.inactiveIcon&&S.inactiveText?(O(),K("span",{key:1,"aria-hidden":y(g)},$e(S.inactiveText),9,VRe)):be("v-if",!0)],2)):be("v-if",!0),W("span",{ref_key:"core",ref:d,class:j(y(s).e("core")),style:Ke(y(p))},[S.inlinePrompt?(O(),K("div",{key:0,class:j(y(s).e("inner"))},[S.activeIcon||S.inactiveIcon?(O(),we(y(Je),{key:0,class:j(y(s).is("icon"))},{default:fe(()=>[(O(),we(Lt(y(g)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(O(),K("span",{key:1,class:j(y(s).is("text")),"aria-hidden":!y(g)},$e(y(g)?S.activeText:S.inactiveText),11,zRe)):be("v-if",!0)],2)):be("v-if",!0),W("div",{class:j(y(s).e("action"))},[S.loading?(O(),we(y(Je),{key:0,class:j(y(s).is("loading"))},{default:fe(()=>[V(y(su))]),_:1},8,["class"])):be("v-if",!0)],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(O(),K("span",{key:1,class:j([y(s).e("label"),y(s).em("label","right"),y(s).is("active",y(g))])},[S.activeIcon?(O(),we(y(Je),{key:0},{default:fe(()=>[(O(),we(Lt(S.activeIcon)))]),_:1})):be("v-if",!0),!S.activeIcon&&S.activeText?(O(),K("span",{key:1,"aria-hidden":!y(g)},$e(S.activeText),9,HRe)):be("v-if",!0)],2)):be("v-if",!0)],14,BRe))}});var URe=Ve(WRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const jRe=At(URe);/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var KRe=/["'&<>]/,YRe=qRe;function qRe(e){var t=""+e,n=KRe.exec(t);if(!n)return t;var r,a="",i=0,o=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==i&&(a+=t.substring(o,i)),o=i+1,a+=r}return o!==i?a+t.substring(o,i):a}const XRe=is(YRe),gS=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},ZRe=function(e,t,n,r,a){if(!t&&!r&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?En(s,u):u(s,l,e))):(t!=="$key"&&It(s)&&"$value"in s&&(s=s.$value),[It(s)?En(s,t):s])},o=function(s,l){if(r)return r(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:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},l7=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},JRe=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||sr("ElTable",`No column matching with column-key: ${t}`),n},G3=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?l7(e,r[0]):null},Er=(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 n=t.split(".");let r=e;for(const a of n)r=r[a];return`${r}`}else if(typeof t=="function")return t.call(null,e)},pc=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[Er(r,t)]={row:r,index:a}}),n};function QRe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Vt(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function iP(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function u7(e){return e===""||e!==void 0&&(e=iP(e),Number.isNaN(e)&&(e=80)),e}function eOe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function tOe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function ov(e,t,n){let r=!1;const a=e.indexOf(t),i=a!==-1,o=s=>{s==="add"?e.push(t):e.splice(a,1),r=!0,Ze(t.children)&&t.children.forEach(l=>{ov(e,l,n??!i)})};return er(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function nOe(e,t,n="children",r="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){t(o,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const c=u[n];a(c)||i(u,c,l+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const s=o[n];a(s)||i(o,s,0)})}let vs;function rOe(e,t,n,r,a){a=WH({enterable:!0,showArrow:!0},a);const i=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${i}-scrollbar__wrap`);function s(){const g=a.effect==="light",m=document.createElement("div");return m.className=[`${i}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=XRe(n),m.innerHTML=n,m.style.zIndex=String(r()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}vs==null||vs(),vs=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",vs),vs=void 0}catch{}};let c=null,f=u,d=vs;a.enterable&&({onOpen:f,onClose:d}=kG({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:vs}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const p=[];if(a.offset&&p.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());p.push({name:"arrow",options:{element:g,padding:10}})}const v=a.popperOptions||{};return c=xG(t,h,{placement:a.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?p.concat(v.modifiers):p}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",vs),c}function c7(e){return e.children?Dve(e.children,c7):[e]}function W3(e,t){return e+t.colSpan}const f7=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=c7(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(W3,0),i=a+l.reduce(W3,0)-1}else a=e;let s;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},oP=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=f7(t,n,r,a);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+i===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function U3(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const sP=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=f7(e,t,n,r);if(!a)return;const s={},l=a==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(U3,0):s.right=u.slice(o+1).reverse().reduce(U3,0),s},jd=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function aOe(e){const t=St(),n=U(!1),r=U([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=pc(r.value,u);r.value=l.reduce((f,d)=>{const h=Er(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{ov(r.value,l,u)&&t.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=pc(u,c);r.value=l.reduce((d,h)=>{const p=f[h];return p&&d.push(p.row),d},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!pc(r.value,u)[Er(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function iOe(e){const t=St(),n=U(null),r=U(null),a=u=>{t.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(y(c)||[]).find(h=>Er(h,f.value)===u)),r.value=d,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,t.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=r.value;if(!c.includes(f)&&f){if(u){const d=Er(f,u);o(d)}else r.value=null;r.value===null&&t.emit("current-change",null,f)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function oOe(e){const t=U([]),n=U({}),r=U(16),a=U(!1),i=U({}),o=U("hasChildren"),s=U("children"),l=St(),u=F(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=F(()=>{const m=e.rowKey.value,_=Object.keys(i.value),b={};return _.length&&_.forEach(w=>{if(i.value[w].length){const S={children:[]};i.value[w].forEach(x=>{const C=Er(x,m);S.children.push(C),x[o.value]&&!b[C]&&(b[C]={children:[]})}),b[w]=S}}),b}),f=m=>{const _=e.rowKey.value,b={};return nOe(m,(w,S,x)=>{const C=Er(w,_);Array.isArray(S)?b[C]={children:S.map(T=>Er(T,_)),level:x}:a.value&&(b[C]={children:[],lazy:!0,level:x})},s.value,o.value),b},d=(m=!1,_=(b=>(b=l.store)==null?void 0:b.states.defaultExpandAll.value)())=>{var b;const w=u.value,S=c.value,x=Object.keys(w),C={};if(x.length){const T=y(n),k=[],A=(I,E)=>{if(m)return t.value?_||t.value.includes(E):!!(_||I!=null&&I.expanded);{const L=_||t.value&&t.value.includes(E);return!!(I!=null&&I.expanded||L)}};x.forEach(I=>{const E=T[I],L={...w[I]};if(L.expanded=A(E,I),L.lazy){const{loaded:N=!1,loading:$=!1}=E||{};L.loaded=!!N,L.loading=!!$,k.push(I)}C[I]=L});const M=Object.keys(S);a.value&&M.length&&k.length&&M.forEach(I=>{const E=T[I],L=S[I].children;if(k.includes(I)){if(C[I].children.length!==0)throw new Error("[ElTable]children must be an empty array.");C[I].children=L}else{const{loaded:N=!1,loading:$=!1}=E||{};C[I]={lazy:!0,loaded:!!N,loading:!!$,expanded:A(E,I),children:L,level:""}}})}n.value=C,(b=l.store)==null||b.updateTableScrollY()};Ae(()=>t.value,()=>{d(!0)}),Ae(()=>u.value,()=>{d()}),Ae(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},p=(m,_)=>{l.store.assertRowKey();const b=e.rowKey.value,w=Er(m,b),S=w&&n.value[w];if(w&&S&&"expanded"in S){const x=S.expanded;_=typeof _>"u"?!S.expanded:_,n.value[w].expanded=_,x!==_&&l.emit("expand-change",m,_),l.store.updateTableScrollY()}},v=m=>{l.store.assertRowKey();const _=e.rowKey.value,b=Er(m,_),w=n.value[b];a.value&&w&&"loaded"in w&&!w.loaded?g(m,b,w):p(m,void 0)},g=(m,_,b)=>{const{load:w}=l.props;w&&!n.value[_].loaded&&(n.value[_].loading=!0,w(m,b,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");n.value[_].loading=!1,n.value[_].loaded=!0,n.value[_].expanded=!0,S.length&&(i.value[_]=S),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:v,toggleTreeExpansion:p,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const sOe=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:ZRe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},z0=e=>{const t=[];return e.forEach(n=>{n.children?t.push.apply(t,z0(n.children)):t.push(n)}),t};function lOe(){var e;const t=St(),{size:n}=or((e=t.proxy)==null?void 0:e.$props),r=U(null),a=U([]),i=U([]),o=U(!1),s=U([]),l=U([]),u=U([]),c=U([]),f=U([]),d=U([]),h=U([]),p=U([]),v=[],g=U(0),m=U(0),_=U(0),b=U(!1),w=U([]),S=U(!1),x=U(!1),C=U(null),T=U({}),k=U(null),A=U(null),M=U(null),I=U(null),E=U(null);Ae(a,()=>t.state&&P(!1),{deep:!0});const L=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},N=Me=>{var Ce;(Ce=Me.children)==null||Ce.forEach(ye=>{ye.fixed=Me.fixed,N(ye)})},$=()=>{s.value.forEach(Le=>{N(Le)}),c.value=s.value.filter(Le=>Le.fixed===!0||Le.fixed==="left"),f.value=s.value.filter(Le=>Le.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 Me=s.value.filter(Le=>!Le.fixed);l.value=[].concat(c.value).concat(Me).concat(f.value);const Ce=z0(Me),ye=z0(c.value),_e=z0(f.value);g.value=Ce.length,m.value=ye.length,_.value=_e.length,u.value=[].concat(ye).concat(Ce).concat(_e),o.value=c.value.length>0||f.value.length>0},P=(Me,Ce=!1)=>{Me&&$(),Ce?t.state.doLayout():t.state.debouncedUpdateLayout()},R=Me=>w.value.includes(Me),D=()=>{b.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},B=()=>{let Me;if(r.value){Me=[];const Ce=pc(w.value,r.value),ye=pc(a.value,r.value);for(const _e in Ce)Vt(Ce,_e)&&!ye[_e]&&Me.push(Ce[_e].row)}else Me=w.value.filter(Ce=>!a.value.includes(Ce));if(Me.length){const Ce=w.value.filter(ye=>!Me.includes(ye));w.value=Ce,t.emit("selection-change",Ce.slice())}},H=()=>(w.value||[]).slice(),G=(Me,Ce=void 0,ye=!0)=>{if(ov(w.value,Me,Ce)){const Le=(w.value||[]).slice();ye&&t.emit("select",Le,Me),t.emit("selection-change",Le)}},X=()=>{var Me,Ce;const ye=x.value?!b.value:!(b.value||w.value.length);b.value=ye;let _e=!1,Le=0;const je=(Ce=(Me=t==null?void 0:t.store)==null?void 0:Me.states)==null?void 0:Ce.rowKey.value;a.value.forEach((gt,Ee)=>{const qe=Ee+Le;C.value?C.value.call(null,gt,qe)&&ov(w.value,gt,ye)&&(_e=!0):ov(w.value,gt,ye)&&(_e=!0),Le+=le(Er(gt,je))}),_e&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},ue=()=>{const Me=pc(w.value,r.value);a.value.forEach(Ce=>{const ye=Er(Ce,r.value),_e=Me[ye];_e&&(w.value[_e.index]=Ce)})},ie=()=>{var Me,Ce,ye;if(((Me=a.value)==null?void 0:Me.length)===0){b.value=!1;return}let _e;r.value&&(_e=pc(w.value,r.value));const Le=function(qe){return _e?!!_e[Er(qe,r.value)]:w.value.includes(qe)};let je=!0,gt=0,Ee=0;for(let qe=0,xt=(a.value||[]).length;qe<xt;qe++){const wt=(ye=(Ce=t==null?void 0:t.store)==null?void 0:Ce.states)==null?void 0:ye.rowKey.value,Bt=qe+Ee,ln=a.value[qe],ur=C.value&&C.value.call(null,ln,Bt);if(Le(ln))gt++;else if(!C.value||ur){je=!1;break}Ee+=le(Er(ln,wt))}gt===0&&(je=!1),b.value=je},le=Me=>{var Ce;if(!t||!t.store)return 0;const{treeData:ye}=t.store.states;let _e=0;const Le=(Ce=ye.value[Me])==null?void 0:Ce.children;return Le&&(_e+=Le.length,Le.forEach(je=>{_e+=le(je)})),_e},Q=(Me,Ce)=>{Array.isArray(Me)||(Me=[Me]);const ye={};return Me.forEach(_e=>{T.value[_e.id]=Ce,ye[_e.columnKey||_e.id]=Ce}),ye},J=(Me,Ce,ye)=>{A.value&&A.value!==Me&&(A.value.order=null),A.value=Me,M.value=Ce,I.value=ye},se=()=>{let Me=y(i);Object.keys(T.value).forEach(Ce=>{const ye=T.value[Ce];if(!ye||ye.length===0)return;const _e=l7({columns:u.value},Ce);_e&&_e.filterMethod&&(Me=Me.filter(Le=>ye.some(je=>_e.filterMethod.call(null,je,Le,_e))))}),k.value=Me},he=()=>{a.value=sOe(k.value,{sortingColumn:A.value,sortProp:M.value,sortOrder:I.value})},re=(Me=void 0)=>{Me&&Me.filter||se(),he()},z=Me=>{const{tableHeaderRef:Ce}=t.refs;if(!Ce)return;const ye=Object.assign({},Ce.filterPanels),_e=Object.keys(ye);if(_e.length)if(typeof Me=="string"&&(Me=[Me]),Array.isArray(Me)){const Le=Me.map(je=>JRe({columns:u.value},je));_e.forEach(je=>{const gt=Le.find(Ee=>Ee.id===je);gt&&(gt.filteredValue=[])}),t.store.commit("filterChange",{column:Le,values:[],silent:!0,multi:!0})}else _e.forEach(Le=>{const je=u.value.find(gt=>gt.id===Le);je&&(je.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Y=()=>{A.value&&(J(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ee,toggleRowExpansion:oe,updateExpandRows:ve,states:Z,isRowExpanded:ce}=aOe({data:a,rowKey:r}),{updateTreeExpandKeys:q,toggleTreeExpansion:ae,updateTreeData:ne,loadOrToggle:de,states:me}=oOe({data:a,rowKey:r}),{updateCurrentRowData:pe,updateCurrentRow:Se,setCurrentRowKey:Pe,states:Oe}=iOe({data:a,rowKey:r});return{assertRowKey:L,updateColumns:$,scheduleLayout:P,isSelected:R,clearSelection:D,cleanSelection:B,getSelectionRows:H,toggleRowSelection:G,_toggleAllSelection:X,toggleAllSelection:null,updateSelectionByRowKey:ue,updateAllSelected:ie,updateFilters:Q,updateCurrentRow:Se,updateSort:J,execFilter:se,execSort:he,execQuery:re,clearFilter:z,clearSort:Y,toggleRowExpansion:oe,setExpandRowKeysAdapter:Me=>{ee(Me),q(Me)},setCurrentRowKey:Pe,toggleRowExpansionAdapter:(Me,Ce)=>{u.value.some(({type:_e})=>_e==="expand")?oe(Me,Ce):ae(Me,Ce)},isRowExpanded:ce,updateExpandRows:ve,updateCurrentRowData:pe,loadOrToggle:de,updateTreeData:ne,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:_,isAllSelected:b,selection:w,reserveSelection:S,selectOnIndeterminate:x,selectable:C,filters:T,filteredData:k,sortingColumn:A,sortProp:M,sortOrder:I,hoverRow:E,...Z,...me,...Oe}}}function sT(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=sT(n.children,t)),n)})}function lT(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&lT(t.children)}),e.sort((t,n)=>t.no-n.no)}function uOe(){const e=St(),t=lOe();return{ns:Ie("table"),...t,mutations:{setData(o,s){const l=y(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),y(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,u){const c=y(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=sT(c,l)):(c.push(s),f=c),lT(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(lT(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=y(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Xe(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=sT(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=y(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=y(l),d=y(u),h=y(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!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(){Xe(()=>e.layout.updateScrollY.apply(e.layout))}}}const sv={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 cOe(e,t){if(!e)throw new Error("Table is required.");const n=uOe();return n.toggleAllSelection=fa(n._toggleAllSelection,10),Object.keys(sv).forEach(r=>{d7(h7(t,r),r,n)}),fOe(n,t),n}function fOe(e,t){Object.keys(sv).forEach(n=>{Ae(()=>h7(t,n),r=>{d7(r,n,e)})})}function d7(e,t,n){let r=e,a=sv[t];typeof sv[t]=="object"&&(a=a.key,r=r||sv[t].default),n.states[a].value=r}function h7(e,t){if(t.includes(".")){const n=t.split(".");let r=e;return n.forEach(a=>{r=r[a]}),r}else return e[t]}class dOe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=U(null),this.scrollX=U(!1),this.scrollY=U(!1),this.bodyWidth=U(null),this.fixedWidth=U(null),this.rightFixedWidth=U(null),this.gutterWidth=0;for(const n in t)Vt(t,n)&&(vn(this[n])?this[n].value=t[n]:this[n]=t[n]);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 n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,n="height"){if(!Ht)return;const r=this.table.vnode.el;if(t=eOe(t),this.height.value=Number(t),!r&&(t||t===0))return Xe(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Ht)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const p=Math.floor(Number(d.minWidth||80)*c);f+=p,d.realWidth=Number(d.minWidth||80)+p}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;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 n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var a,i;switch(t){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:hOe}=Ai,pOe=ge({name:"ElTableFilterPanel",components:{ElCheckbox:Ai,ElCheckboxGroup:hOe,ElScrollbar:Ks,ElTooltip:da,ElIcon:Je,ArrowDown:iu,ArrowUp:w_},directives:{ClickOutside:Yl},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=St(),{t:n}=jt(),r=Ie("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=U(!1),o=U(null),s=F(()=>e.column&&e.column.filters),l=F({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{u.value&&(typeof w<"u"&&w!==null?u.value.splice(0,1,w):u.value.splice(0,1))}}),u=F({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=F(()=>e.column?e.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},p=()=>{i.value=!1},v=()=>{_(u.value),d()},g=()=>{u.value=[],_(u.value),d()},m=w=>{l.value=w,_(typeof w<"u"&&w!==null?u.value:[]),d()},_=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};Ae(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const b=F(()=>{var w,S;return(S=(w=o.value)==null?void 0:w.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:v,handleReset:g,handleSelect:m,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:p,popperPaneRef:b,tooltip:o}}}),vOe={key:0},gOe=["disabled"],mOe=["label","onClick"];function yOe(e,t,n,r,a,i){const o=Fe("el-checkbox"),s=Fe("el-checkbox-group"),l=Fe("el-scrollbar"),u=Fe("arrow-up"),c=Fe("arrow-down"),f=Fe("el-icon"),d=Fe("el-tooltip"),h=Ds("click-outside");return O(),we(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:fe(()=>[e.multiple?(O(),K("div",vOe,[W("div",{class:j(e.ns.e("content"))},[V(l,{"wrap-class":e.ns.e("wrap")},{default:fe(()=>[V(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=p=>e.filteredValue=p),class:j(e.ns.e("checkbox-group"))},{default:fe(()=>[(O(!0),K(He,null,ct(e.filters,p=>(O(),we(o,{key:p.value,label:p.value},{default:fe(()=>[yt($e(p.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),W("div",{class:j(e.ns.e("bottom"))},[W("button",{class:j({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...p)=>e.handleConfirm&&e.handleConfirm(...p))},$e(e.t("el.table.confirmFilter")),11,gOe),W("button",{type:"button",onClick:t[2]||(t[2]=(...p)=>e.handleReset&&e.handleReset(...p))},$e(e.t("el.table.resetFilter")),1)],2)])):(O(),K("ul",{key:1,class:j(e.ns.e("list"))},[W("li",{class:j([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=p=>e.handleSelect(null))},$e(e.t("el.table.clearFilter")),3),(O(!0),K(He,null,ct(e.filters,p=>(O(),K("li",{key:p.value,class:j([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),label:p.value,onClick:v=>e.handleSelect(p.value)},$e(p.text),11,mOe))),128))],2))]),default:fe(()=>[pt((O(),K("span",{class:j([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...p)=>e.showFilterPanel&&e.showFilterPanel(...p))},[V(f,null,{default:fe(()=>[e.column.filterOpened?(O(),we(u,{key:0})):(O(),we(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var bOe=Ve(pOe,[["render",yOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function p7(e){const t=St();n_(()=>{n.value.addObserver(t)}),nt(()=>{r(n.value),a(n.value)}),Ws(()=>{r(n.value),a(n.value)}),Ja(()=>{n.value.removeObserver(t)});const n=F(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.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"),p=u[h];p&&d.setAttribute("width",p.realWidth||p.width)}},a=i=>{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",i.scrollY.value?i.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=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const os=Symbol("ElTable");function _Oe(e,t){const n=St(),r=Ye(os),a=v=>{v.stopPropagation()},i=(v,g)=>{!g.filters&&g.sortable?p(v,g,!1):g.filterable&&!g.sortable&&a(v),r==null||r.emit("header-click",g,v)},o=(v,g)=>{r==null||r.emit("header-contextmenu",g,v)},s=U(null),l=U(!1),u=U({}),c=(v,g)=>{if(Ht&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=r;t("set-drag-visible",!0);const b=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),S=w.getBoundingClientRect(),x=S.left-b+30;Oo(w,"noclick"),u.value={startMouseLeft:v.clientX,startLeft:S.right-b,startColumnLeft:S.left-b,tableLeft:b};const C=m==null?void 0:m.refs.resizeProxy;C.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=A=>{const M=A.clientX-u.value.startMouseLeft,I=u.value.startLeft+M;C.style.left=`${Math.max(x,I)}px`},k=()=>{if(l.value){const{startColumnLeft:A,startLeft:M}=u.value,E=Number.parseInt(C.style.left,10)-A;g.width=g.realWidth=E,m==null||m.emit("header-dragend",g.width,M-A,g,v),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",T),document.removeEventListener("mouseup",k),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Ma(w,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",k)}},f=(v,g)=>{var m;if(g.children&&g.children.length>0)return;const _=(m=v.target)==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const b=_.getBoundingClientRect(),w=document.body.style;b.width>12&&b.right-v.pageX<8?(w.cursor="col-resize",Ji(_,"is-sortable")&&(_.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Ji(_,"is-sortable")&&(_.style.cursor="pointer"),s.value=null)}},d=()=>{Ht&&(document.body.style.cursor="")},h=({order:v,sortOrders:g})=>{if(v==="")return g[0];const m=g.indexOf(v||null);return g[m>g.length-2?0:m+1]},p=(v,g,m)=>{var _;v.stopPropagation();const b=g.order===m?null:m||h(g),w=(_=v.target)==null?void 0:_.closest("th");if(w&&Ji(w,"noclick")){Ma(w,"noclick");return}if(!g.sortable)return;const S=e.store.states;let x=S.sortProp.value,C;const T=S.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),S.sortingColumn.value=g,x=g.property),b?C=g.order=b:C=g.order=null,S.sortProp.value=x,S.sortOrder.value=C,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:p,handleFilterClick:a}}function wOe(e){const t=Ye(os),n=Ie("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=sP(l,c.fixed,e.store,u);return jd(h,"left"),jd(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=oP(n.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(n.e("cell")),d.filter(p=>!!p).join(" ")}}}const v7=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,v7(n.children))):t.push(n)}),t},SOe=e=>{let t=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,t<i.level&&(t=i.level)),i.children){let s=0;i.children.forEach(l=>{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i<t;i++)r.push([]);return v7(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=t-i.level+1,r[i.level-1].push(i)}),r};function xOe(e){const t=Ye(os),n=F(()=>SOe(e.store.states.originColumns.value));return{isGroup:F(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var COe=ge({name:"ElTableHeader",components:{ElCheckbox:Ai},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=St(),r=Ye(os),a=Ie("table"),i=U({}),{onColumnsChange:o,onScrollableChange:s}=p7(r);nt(async()=>{await Xe(),await Xe();const{prop:x,order:C}=e.defaultSort;r==null||r.store.commit("sort",{prop:x,order:C,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p}=_Oe(e,t),{getHeaderRowStyle:v,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:_}=wOe(e),{isGroup:b,toggleAllSelection:w,columnRows:S}=xOe(e);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:S,getHeaderRowClass:g,getHeaderRowStyle:v,getHeaderCellClass:_,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p,isGroup:b,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:p}=this;let v=1;return et("thead",{class:{[e.is("group")]:t}},n.map((g,m)=>et("tr",{class:i(m),key:m,style:o(m)},g.map((_,b)=>(_.rowSpan>v&&(v=_.rowSpan),et("th",{class:a(m,b,g,_),colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:r(m,b,g,_),onClick:w=>s(w,_),onContextmenu:w=>l(w,_),onMousedown:w=>u(w,_),onMousemove:w=>c(w,_),onMouseout:d},[et("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":""]},[_.renderHeader?_.renderHeader({column:_,$index:b,store:h,_self:p}):_.label,_.sortable&&et("span",{onClick:w=>f(w,_),class:"caret-wrapper"},[et("i",{onClick:w=>f(w,_,"ascending"),class:"sort-caret ascending"}),et("i",{onClick:w=>f(w,_,"descending"),class:"sort-caret descending"})]),_.filterable&&et(bOe,{store:h,placement:_.filterPlacement||"bottom-start",column:_,upDataColumn:(w,S)=>{_[w]=S}})])]))))))}});function TOe(e){const t=Ye(os),n=U(""),r=U(et("div")),{nextZIndex:a}=of(),i=(h,p,v)=>{var g;const m=t,_=gS(h);let b;const w=(g=m==null?void 0:m.vnode.el)==null?void 0:g.dataset.prefix;_&&(b=G3({columns:e.store.states.columns.value},_,w),b&&(m==null||m.emit(`cell-${v}`,p,b,_,h))),m==null||m.emit(`row-${v}`,p,b,h)},o=(h,p)=>{i(h,p,"dblclick")},s=(h,p)=>{e.store.commit("setCurrentRow",p),i(h,p,"click")},l=(h,p)=>{i(h,p,"contextmenu")},u=fa(h=>{e.store.commit("setHoverRow",h)},30),c=fa(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(h,p,v)=>{var g;const m=t,_=gS(h),b=(g=m==null?void 0:m.vnode.el)==null?void 0:g.dataset.prefix;if(_){const T=G3({columns:e.store.states.columns.value},_,b),k=m.hoverState={cell:_,column:T,row:p};m==null||m.emit("cell-mouse-enter",k.row,k.column,k.cell,h)}if(!v)return;const w=h.target.querySelector(".cell");if(!(Ji(w,`${b}-tooltip`)&&w.childNodes.length))return;const S=document.createRange();S.setStart(w,0),S.setEnd(w,w.childNodes.length);const x=Math.round(S.getBoundingClientRect().width),C=(Number.parseInt(_s(w,"paddingLeft"),10)||0)+(Number.parseInt(_s(w,"paddingRight"),10)||0);(x+C>w.offsetWidth||w.scrollWidth>w.offsetWidth)&&rOe(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,v)},handleCellMouseLeave:h=>{if(!gS(h))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,h)},tooltipContent:n,tooltipTrigger:r}}function kOe(e){const t=Ye(os),n=Ie("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=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(n.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 p=h??{};typeof h=="function"&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const v=sP(c,e==null?void 0:e.fixed,e.store);return jd(v,"left"),jd(v,"right"),Object.assign({},p,v)},getCellClass:(u,c,f,d,h)=>{const p=oP(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,h),v=[d.id,d.align,d.className,...p],g=t==null?void 0:t.props.cellClassName;return typeof g=="string"?v.push(g):typeof g=="function"&&v.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),v.push(n.e("cell")),v.filter(m=>!!m).join(" ")},getSpan:(u,c,f,d)=>{let h=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(typeof v=="function"){const g=v({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],p=g[1]):typeof g=="object"&&(h=g.rowspan,p=g.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:p})=>h||p).slice(f,f+c);return Number(d.reduce((h,p)=>Number(h)+Number(p),-1))}}}function AOe(e){const t=Ye(os),n=Ie("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=TOe(e),{getRowStyle:d,getRowClass:h,getCellStyle:p,getCellClass:v,getSpan:g,getColspanRealWidth:m}=kOe(e),_=F(()=>e.store.states.columns.value.findIndex(({type:C})=>C==="default")),b=(C,T)=>{const k=t.props.rowKey;return k?Er(C,k):T},w=(C,T,k,A=!1)=>{const{tooltipEffect:M,tooltipOptions:I,store:E}=e,{indent:L,columns:N}=E.states,$=h(C,T);let P=!0;return k&&($.push(n.em("row",`level-${k.level}`)),P=k.display),et("tr",{style:[P?null:{display:"none"},d(C,T)],class:$,key:b(C,T),onDblclick:D=>r(D,C),onClick:D=>a(D,C),onContextmenu:D=>i(D,C),onMouseenter:()=>o(T),onMouseleave:s},N.value.map((D,B)=>{const{rowspan:H,colspan:G}=g(C,D,T,B);if(!H||!G)return null;const X={...D};X.realWidth=m(N.value,G,B);const ue={store:e.store,_self:e.context||t,column:X,row:C,$index:T,cellIndex:B,expanded:A};B===_.value&&k&&(ue.treeNode={indent:k.level*L.value,level:k.level},typeof k.expanded=="boolean"&&(ue.treeNode.expanded=k.expanded,"loading"in k&&(ue.treeNode.loading=k.loading),"noLazyChildren"in k&&(ue.treeNode.noLazyChildren=k.noLazyChildren)));const ie=`${T},${B}`,le=X.columnKey||X.rawColumnKey||"",Q=S(B,D,ue),J=D.showOverflowTooltip&&WH({effect:M},I,D.showOverflowTooltip);return et("td",{style:p(T,B,C,D),class:v(T,B,C,D,G-1),key:`${le}${ie}`,rowspan:H,colspan:G,onMouseenter:se=>l(se,C,J),onMouseleave:u},[Q])}))},S=(C,T,k)=>T.renderCell(k);return{wrappedRowRender:(C,T)=>{const k=e.store,{isRowExpanded:A,assertRowKey:M}=k,{treeData:I,lazyTreeNodeMap:E,childrenColumnName:L,rowKey:N}=k.states,$=k.states.columns.value;if($.some(({type:R})=>R==="expand")){const R=A(C),D=w(C,T,void 0,R),B=t.renderExpanded;return R?B?[[D,et("tr",{key:`expanded-row__${D.key}`},[et("td",{colspan:$.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[B({row:C,$index:T,store:k,expanded:R})])])]]:(console.error("[Element Error]renderExpanded is required."),D):[[D]]}else if(Object.keys(I.value).length){M();const R=Er(C,N.value);let D=I.value[R],B=null;D&&(B={expanded:D.expanded,level:D.level,display:!0},typeof D.lazy=="boolean"&&(typeof D.loaded=="boolean"&&D.loaded&&(B.noLazyChildren=!(D.children&&D.children.length)),B.loading=D.loading));const H=[w(C,T,B)];if(D){let G=0;const X=(ie,le)=>{ie&&ie.length&&le&&ie.forEach(Q=>{const J={display:le.display&&le.expanded,level:le.level+1,expanded:!1,noLazyChildren:!1,loading:!1},se=Er(Q,N.value);if(se==null)throw new Error("For nested data item, row-key is required.");if(D={...I.value[se]},D&&(J.expanded=D.expanded,D.level=D.level||J.level,D.display=!!(D.expanded&&J.display),typeof D.lazy=="boolean"&&(typeof D.loaded=="boolean"&&D.loaded&&(J.noLazyChildren=!(D.children&&D.children.length)),J.loading=D.loading)),G++,H.push(w(Q,T+G,J)),D){const he=E.value[se]||Q[L.value];X(he,D)}})};D.display=!0;const ue=E.value[R]||C[L.value];X(ue,D)}return H}else return w(C,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const MOe={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 POe=ge({name:"ElTableBody",props:MOe,setup(e){const t=St(),n=Ye(os),r=Ie("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=AOe(e),{onColumnsChange:s,onScrollableChange:l}=p7(n);return Ae(e.store.states.hoverRow,(u,c)=>{if(!e.store.states.isComplex.value||!Ht)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(`${r.e("row")}`)),p=h[c],v=h[u];p&&Ma(p,"hover-row"),v&&Oo(v,"hover-row")})}),Ja(()=>{var u;(u=vs)==null||u()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return et("tbody",{},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function lP(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(a=>a.width===void 0)&&(n=[]);const r=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return et("colgroup",{},n.map(a=>et("col",r(a))))}lP.props=["columns","tableLayout"];function EOe(){const e=Ye(os),t=e==null?void 0:e.store,n=F(()=>t.states.fixedLeafColumnsLength.value),r=F(()=>t.states.rightFixedColumns.value.length),a=F(()=>t.states.columns.value.length),i=F(()=>t.states.fixedColumns.value.length),o=F(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function IOe(e){const{columns:t}=EOe(),n=Ie("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...oP(n.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,o)=>{const s=sP(o,i.fixed,e.store);return jd(s,"left"),jd(s,"right"),s},columns:t}}var DOe=ge({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:n,columns:r}=IOe(e);return{ns:Ie("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a,ns:i}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(p=>Number(p[l.property])),f=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];f.push(v?v.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((p,v)=>{const g=Number(v);return Number.isNaN(+g)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),et("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[lP({columns:e}),et("tbody",[et("tr",{},[...e.map((l,u)=>et("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[et("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function LOe(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 $Oe(e,t,n,r){const a=U(!1),i=U(null),o=U(!1),s=R=>{o.value=R},l=U({width:null,height:null,headerHeight:null}),u=U(!1),c={display:"inline-block",verticalAlign:"middle"},f=U(),d=U(0),h=U(0),p=U(0),v=U(0);Ka(()=>{t.setHeight(e.height)}),Ka(()=>{t.setMaxHeight(e.maxHeight)}),Ae(()=>[e.currentRowKey,n.states.rowKey],([R,D])=>{!y(D)||!y(R)||n.setCurrentRowKey(`${R}`)},{immediate:!0}),Ae(()=>e.data,R=>{r.store.commit("setData",R)},{immediate:!0,deep:!0}),Ka(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},m=(R,D)=>{const{pixelX:B,pixelY:H}=D;Math.abs(B)>=Math.abs(H)&&(r.refs.bodyWrapper.scrollLeft+=D.pixelX/5)},_=F(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=F(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),w=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(T)};nt(async()=>{await Xe(),n.updateColumns(),k(),requestAnimationFrame(w);const R=r.vnode.el,D=r.refs.headerWrapper;e.flexible&&R&&R.parentElement&&(R.parentElement.style.minWidth="0"),l.value={width:f.value=R.offsetWidth,height:R.offsetHeight,headerHeight:e.showHeader&&D?D.offsetHeight:null},n.states.columns.value.forEach(B=>{B.filteredValue&&B.filteredValue.length&&r.store.commit("filterChange",{column:B,values:B.filteredValue,silent:!0})}),r.$ready=!0});const S=(R,D)=>{if(!R)return;const B=Array.from(R.classList).filter(H=>!H.startsWith("is-scrolling-"));B.push(t.scrollX.value?D:"is-scrolling-none"),R.className=B.join(" ")},x=R=>{const{tableWrapper:D}=r.refs;S(D,R)},C=R=>{const{tableWrapper:D}=r.refs;return!!(D&&D.classList.contains(R))},T=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ie="is-scrolling-none";C(ie)||x(ie);return}const R=r.refs.scrollBarRef.wrapRef;if(!R)return;const{scrollLeft:D,offsetWidth:B,scrollWidth:H}=R,{headerWrapper:G,footerWrapper:X}=r.refs;G&&(G.scrollLeft=D),X&&(X.scrollLeft=D);const ue=H-B-1;D>=ue?x("is-scrolling-right"):x(D===0?"is-scrolling-left":"is-scrolling-middle")},k=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Dn(r.refs.scrollBarRef.wrapRef,"scroll",T,{passive:!0}),e.fit?Yr(r.vnode.el,A):Dn(window,"resize",A),Yr(r.refs.bodyWrapper,()=>{var R,D;A(),(D=(R=r.refs)==null?void 0:R.scrollBarRef)==null||D.update()}))},A=()=>{var R,D,B;const H=r.vnode.el;if(!r.$ready||!H)return;let G=!1;const{width:X,height:ue,headerHeight:ie}=l.value,le=f.value=H.offsetWidth;X!==le&&(G=!0);const Q=H.offsetHeight;(e.height||_.value)&&ue!==Q&&(G=!0);const J=e.tableLayout==="fixed"?r.refs.headerWrapper:(R=r.refs.tableHeaderRef)==null?void 0:R.$el;e.showHeader&&(J==null?void 0:J.offsetHeight)!==ie&&(G=!0),d.value=((D=r.refs.tableWrapper)==null?void 0:D.scrollHeight)||0,p.value=(J==null?void 0:J.scrollHeight)||0,v.value=((B=r.refs.footerWrapper)==null?void 0:B.offsetHeight)||0,h.value=d.value-p.value-v.value,G&&(l.value={width:le,height:Q,headerHeight:e.showHeader&&(J==null?void 0:J.offsetHeight)||0},w())},M=nr(),I=F(()=>{const{bodyWidth:R,scrollY:D,gutterWidth:B}=t;return R.value?`${R.value-(D.value?B:0)}px`:""}),E=F(()=>e.maxHeight?"fixed":e.tableLayout),L=F(()=>{if(e.data&&e.data.length)return null;let R="100%";e.height&&h.value&&(R=`${h.value}px`);const D=f.value;return{width:D?`${D}px`:"",height:R}}),N=F(()=>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} - ${p.value+v.value}px)`};{const R=e.maxHeight;if(d.value>=Number(R))return{maxHeight:`${d.value-p.value-v.value}px`}}}return{}});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:m,tableSize:M,emptyBlockStyle:L,handleFixedMousewheel:(R,D)=>{const B=r.refs.bodyWrapper;if(Math.abs(D.spinY)>0){const H=B.scrollTop;D.pixelY<0&&H!==0&&R.preventDefault(),D.pixelY>0&&B.scrollHeight-B.clientHeight>H&&R.preventDefault(),B.scrollTop+=Math.ceil(D.pixelY/5)}else B.scrollLeft+=Math.ceil(D.pixelX/5)},resizeProxyVisible:o,bodyWidth:I,resizeState:l,doLayout:w,tableBodyStyles:b,tableLayout:E,scrollbarViewStyle:c,tableInnerStyle:N,scrollbarStyle:$}}function ROe(e){const t=U(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};nt(()=>{n()}),Ja(()=>{var r;(r=t.value)==null||r.disconnect()})}var OOe={data:{type:Array,default:()=>[]},size:Rr,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 NOe=()=>{const e=U(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&lt(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let BOe=1;const FOe=ge({name:"ElTable",directives:{Mousewheel:ECe},components:{TableHeader:COe,TableBody:POe,TableFooter:DOe,ElScrollbar:Ks,hColgroup:lP},props:OOe,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}=jt(),n=Ie("table"),r=St();$t(os,r);const a=cOe(r,e);r.store=a;const i=new dOe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=F(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,sort:v}=LOe(a),{isHidden:g,renderExpanded:m,setDragVisible:_,isGroup:b,handleMouseLeave:w,handleHeaderFooterMousewheel:S,tableSize:x,emptyBlockStyle:C,handleFixedMousewheel:T,resizeProxyVisible:k,bodyWidth:A,resizeState:M,doLayout:I,tableBodyStyles:E,tableLayout:L,scrollbarViewStyle:N,tableInnerStyle:$,scrollbarStyle:P}=$Oe(e,i,a,r),{scrollBarRef:R,scrollTo:D,setScrollLeft:B,setScrollTop:H}=NOe(),G=fa(I,50),X=`${n.namespace.value}-table_${BOe++}`;r.tableId=X,r.state={isGroup:b,resizeState:M,doLayout:I,debouncedUpdateLayout:G};const ue=F(()=>e.sumText||t("el.table.sumText")),ie=F(()=>e.emptyText||t("el.table.emptyText"));return ROe(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:S,handleMouseLeave:w,tableId:X,tableSize:x,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:k,resizeState:M,isGroup:b,bodyWidth:A,tableBodyStyles:E,emptyBlockStyle:C,debouncedUpdateLayout:G,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,doLayout:I,sort:v,t,setDragVisible:_,context:r,computedSumText:ue,computedEmptyText:ie,tableLayout:L,scrollbarViewStyle:N,tableInnerStyle:$,scrollbarStyle:P,scrollBarRef:R,scrollTo:D,setScrollLeft:B,setScrollTop:H}}}),VOe=["data-prefix"],zOe={ref:"hiddenColumns",class:"hidden-columns"};function HOe(e,t,n,r,a,i){const o=Fe("hColgroup"),s=Fe("table-header"),l=Fe("table-body"),u=Fe("el-scrollbar"),c=Fe("table-footer"),f=Ds("mousewheel");return O(),K("div",{ref:"tableWrapper",class:j([{[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:Ke(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[W("div",{class:j(e.ns.e("inner-wrapper")),style:Ke(e.tableInnerStyle)},[W("div",zOe,[ke(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?pt((O(),K("div",{key:0,ref:"headerWrapper",class:j(e.ns.e("header-wrapper"))},[W("table",{ref:"tableHeader",class:j(e.ns.e("header")),style:Ke(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[V(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),V(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]]):be("v-if",!0),W("div",{ref:"bodyWrapper",class:j(e.ns.e("body-wrapper"))},[V(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:fe(()=>[W("table",{ref:"tableBody",class:j(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ke({width:e.bodyWidth,tableLayout:e.tableLayout})},[V(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(O(),we(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"])):be("v-if",!0),V(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?(O(),K("div",{key:0,ref:"emptyBlock",style:Ke(e.emptyBlockStyle),class:j(e.ns.e("empty-block"))},[W("span",{class:j(e.ns.e("empty-text"))},[ke(e.$slots,"empty",{},()=>[yt($e(e.computedEmptyText),1)])],2)],6)):be("v-if",!0),e.$slots.append?(O(),K("div",{key:1,ref:"appendWrapper",class:j(e.ns.e("append-wrapper"))},[ke(e.$slots,"append")],2)):be("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?pt((O(),K("div",{key:1,ref:"footerWrapper",class:j(e.ns.e("footer-wrapper"))},[V(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Ke(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Yt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):be("v-if",!0),e.border||e.isGroup?(O(),K("div",{key:2,class:j(e.ns.e("border-left-patch"))},null,2)):be("v-if",!0)],6),pt(W("div",{ref:"resizeProxy",class:j(e.ns.e("column-resize-proxy"))},null,2),[[Yt,e.resizeProxyVisible]])],46,VOe)}var GOe=Ve(FOe,[["render",HOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const WOe={selection:"table-column--selection",expand:"table__expand-column"},UOe={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:""}},jOe=e=>WOe[e]||"",KOe={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return et(Ai,{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:n,$index:r}){return et(Ai,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),et("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),et("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[et(Je,null,{default:()=>[et(oa)]})]})},sortable:!1,resizable:!1}};function YOe({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&A0(e,a).value;return t&&t.formatter?t.formatter(e,t,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function qOe({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[et("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(et("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=oa;t.loading&&(l=su),i.push(et("div",{class:s,onClick:o},{default:()=>[et(Je,{class:{[a.is("loading")]:t.loading}},{default:()=>[et(l)]})]}))}else i.push(et("span",{class:a.e("placeholder")}));return i}function j3(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function XOe(e,t){const n=St();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=j3(i,o);Object.keys(s).forEach(l=>{const u=o[l];Vt(t,u)&&Ae(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=iP(c)),u==="minWidth"&&l==="realMinWidth"&&(f=u7(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=j3(i,o);Object.keys(s).forEach(l=>{const u=o[l];Vt(t,u)&&Ae(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function ZOe(e,t,n){const r=St(),a=U(""),i=U(!1),o=U(),s=U(),l=Ie("table");Ka(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Ka(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=F(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=F(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:S}=w.states,x=S.value;return x&&Object.keys(x).length>0}),f=U(iP(e.width)),d=U(u7(e.minWidth)),h=w=>(f.value&&(w.width=f.value),d.value&&(w.minWidth=d.value),!f.value&&d.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),p=w=>{const S=w.type,x=KOe[S]||{};Object.keys(x).forEach(T=>{const k=x[T];T!=="className"&&k!==void 0&&(w[T]=k)});const C=jOe(S);if(C){const T=`${y(l.namespace)}-${C}`;w.className=w.className?`${w.className} ${T}`:T}return w},v=w=>{Array.isArray(w)?w.forEach(x=>S(x)):S(w);function S(x){var C;((C=x==null?void 0:x.type)==null?void 0:C.name)==="ElTableColumn"&&(x.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=x=>{r.columnConfig.value.label;const C=t.header;return C?C(x):w.label});let S=w.renderCell;return w.type==="expand"?(w.renderCell=x=>et("div",{class:"cell"},[S(x)]),n.value.renderExpanded=x=>t.default?t.default(x):t.default):(S=S||YOe,w.renderCell=x=>{let C=null;if(t.default){const E=t.default(x);C=E.some(L=>L.type!==ia)?E:S(x)}else C=S(x);const{columns:T}=n.value.store.states,k=T.value.findIndex(E=>E.type==="default"),A=c.value&&x.cellIndex===k,M=qOe(x,A),I={class:"cell",style:{}};return w.showOverflowTooltip&&(I.class=`${I.class} ${y(l.namespace)}-tooltip`,I.style={width:`${(x.column.realWidth||Number(x.column.width))-1}px`}),v(C),et("div",I,[M,C])}),w},getPropsData:(...w)=>w.reduce((S,x)=>(Array.isArray(x)&&x.forEach(C=>{S[C]=e[C]}),S),{}),getColumnElIndex:(w,S)=>Array.prototype.indexOf.call(w,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var JOe={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 QOe=1;var g7=ge({name:"ElTableColumn",components:{ElCheckbox:Ai},props:JOe,setup(e,{slots:t}){const n=St(),r=U({}),a=F(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:o}=XOe(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:p,getColumnElIndex:v,realAlign:g,updateColumnOrder:m}=ZOe(e,t,a),_=c.value;s.value=`${_.tableId||_.columnId}_column_${QOe++}`,n_(()=>{l.value=a.value!==_;const b=e.type||"default",w=e.sortable===""?!0:e.sortable,S={...UOe[b],id:s.value,type:b,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:w,index:e.index,rawColumnKey:n.vnode.key};let A=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);A=QRe(S,A),A=tOe(h,f,d)(A),r.value=A,i(),o()}),nt(()=>{var b;const w=c.value,S=l.value?w.vnode.el.children:(b=w.refs.hiddenColumns)==null?void 0:b.children,x=()=>v(S||[],n.vnode.el);r.value.getColumnIndex=x,x()>-1&&a.value.store.commit("insertColumn",r.value,l.value?w.columnConfig.value:null,m)}),pn(()=>{a.value.store.commit("removeColumn",r.value,l.value?_.columnConfig.value:null,m)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===He&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!dt(s==null?void 0:s.children)&&a.push(s)});return et("div",a)}catch{return et("div",[])}}});const e3e=At(GOe,{TableColumn:g7}),t3e=Vn(g7);var ag=(e=>(e.ASC="asc",e.DESC="desc",e))(ag||{}),ig=(e=>(e.CENTER="center",e.RIGHT="right",e))(ig||{}),m7=(e=>(e.LEFT="left",e.RIGHT="right",e))(m7||{});const uT={asc:"desc",desc:"asc"},og=Symbol("placeholder"),n3e=(e,t,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(a.flexShrink=1);const i={...(r=e.style)!=null?r:{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function r3e(e,t,n){const r=F(()=>y(t).filter(v=>!v.hidden)),a=F(()=>y(r).filter(v=>v.fixed==="left"||v.fixed===!0)),i=F(()=>y(r).filter(v=>v.fixed==="right")),o=F(()=>y(r).filter(v=>!v.fixed)),s=F(()=>{const v=[];return y(a).forEach(g=>{v.push({...g,placeholderSign:og})}),y(o).forEach(g=>{v.push(g)}),y(i).forEach(g=>{v.push({...g,placeholderSign:og})}),v}),l=F(()=>y(a).length||y(i).length),u=F(()=>y(t).reduce((g,m)=>(g[m.key]=n3e(m,y(n),e.fixed),g),{})),c=F(()=>y(r).reduce((v,g)=>v+g.width,0)),f=v=>y(t).find(g=>g.key===v),d=v=>y(u)[v],h=(v,g)=>{v.width=g};function p(v){var g;const{key:m}=v.currentTarget.dataset;if(!m)return;const{sortState:_,sortBy:b}=e;let w=ag.ASC;It(_)?w=uT[_[m]]:w=uT[b.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:w})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:p}}const a3e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=U({scrollLeft:0,scrollTop:0});function o(h){var p,v,g;const{scrollTop:m}=h;(p=t.value)==null||p.scrollTo(h),(v=n.value)==null||v.scrollToTop(m),(g=r.value)==null||g.scrollToTop(m)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(y(i))}function u(h){var p,v;i.value.scrollLeft=h,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,y(i))}function c(h){var p;s(h),(p=e.onScroll)==null||p.call(e,h)}function f({scrollTop:h}){const{scrollTop:p}=y(i);h!==p&&l(h)}function d(h,p="auto"){var v;(v=t.value)==null||v.scrollToRow(h,p)}return Ae(()=>y(i).scrollTop,(h,p)=>{h>p&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},i3e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const a=St(),{emit:i}=a,o=gn(!1),s=gn(null),l=U(e.defaultExpandedRowKeys||[]),u=U(-1),c=gn(null),f=U({}),d=U({}),h=gn({}),p=gn({}),v=gn({}),g=F(()=>lt(e.estimatedRowHeight));function m(T){var k;(k=e.onRowsRendered)==null||k.call(e,T),T.rowCacheEnd>y(u)&&(u.value=T.rowCacheEnd)}function _({hovered:T,rowKey:k}){s.value=T?k:null}function b({expanded:T,rowData:k,rowIndex:A,rowKey:M}){var I,E;const L=[...y(l)],N=L.indexOf(M);T?N===-1&&L.push(M):N>-1&&L.splice(N,1),l.value=L,i("update:expandedRowKeys",L),(I=e.onRowExpand)==null||I.call(e,{expanded:T,rowData:k,rowIndex:A,rowKey:M}),(E=e.onExpandedRowsChange)==null||E.call(e,L)}const w=fa(()=>{var T,k,A,M;o.value=!0,f.value={...y(f),...y(d)},S(y(c),!1),d.value={},c.value=null,(T=t.value)==null||T.forceUpdate(),(k=n.value)==null||k.forceUpdate(),(A=r.value)==null||A.forceUpdate(),(M=a.proxy)==null||M.$forceUpdate(),o.value=!1},0);function S(T,k=!1){y(g)&&[t,n,r].forEach(A=>{const M=y(A);M&&M.resetAfterRowIndex(T,k)})}function x(T,k,A){const M=y(c);(M===null||M>A)&&(c.value=A),d.value[T]=k}function C({rowKey:T,height:k,rowIndex:A},M){M?M===m7.RIGHT?v.value[T]=k:h.value[T]=k:p.value[T]=k;const I=Math.max(...[h,v,p].map(E=>E.value[T]||0));y(f)[T]!==I&&(x(T,I,A),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:S,onRowExpanded:b,onRowHovered:_,onRowsRendered:m,onRowHeightChange:C}},o3e=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=U({}),i=F(()=>{const s={},{data:l,rowKey:u}=e,c=y(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(p=>d.add(p));let h=l.slice();for(h.forEach(p=>s[p[u]]=0);h.length>0;){const p=h.shift();f.push(p),d.has(p[u])&&Array.isArray(p.children)&&p.children.length>0&&(h=[...p.children,...h],p.children.forEach(v=>s[v[u]]=s[p[u]]+1))}return a.value=s,f}),o=F(()=>{const{data:s,expandColumnKey:l}=e;return l?y(i):s});return Ae(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},s3e=(e,t)=>e+t,H0=e=>Ze(e)?e.reduce(s3e,0):e,Wc=(e,t,n={})=>ft(e)?e(t):e??n,xl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Wn(e[t])}),e),y7=e=>$n(e)?t=>et(e,t):e,l3e=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=F(()=>{const{fixed:b,width:w,vScrollbarSize:S}=e,x=w-S;return b?Math.max(Math.round(y(t)),x):x}),o=F(()=>y(i)+(e.fixed?e.vScrollbarSize:0)),s=F(()=>{const{height:b=0,maxHeight:w=0,footerHeight:S,hScrollbarSize:x}=e;if(w>0){const C=y(p),T=y(l),A=y(h)+C+T+x;return Math.min(A,w-S)}return b-S}),l=F(()=>{const{rowHeight:b,estimatedRowHeight:w}=e,S=y(n);return lt(w)?S.length*w:S.length*b}),u=F(()=>{const{maxHeight:b}=e,w=y(s);if(lt(b)&&b>0)return w;const S=y(l)+y(h)+y(p);return Math.min(w,S)}),c=b=>b.width,f=F(()=>H0(y(r).map(c))),d=F(()=>H0(y(a).map(c))),h=F(()=>H0(e.headerHeight)),p=F(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),v=F(()=>y(s)-y(h)-y(p)),g=F(()=>{const{style:b={},height:w,width:S}=e;return xl({...b,height:w,width:S})}),m=F(()=>xl({height:e.footerHeight})),_=F(()=>({top:Wn(y(h)),bottom:Wn(e.footerHeight),width:Wn(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:v,footerHeight:m,emptyStyle:_,rootStyle:g,headerHeight:h}},u3e=e=>{const t=U(),n=U(0),r=U(0);let a;return nt(()=>{a=Yr(t,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,p=Number.parseInt(c)||0,v=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-p-v}).stop}),pn(()=>{a==null||a()}),Ae([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}};function c3e(e){const t=U(),n=U(),r=U(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=r3e(e,Qt(e,"columns"),Qt(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:m,scrollPos:_}=a3e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:z}),{expandedRowKeys:b,hoveringRowKey:w,lastRenderedRowIndex:S,isDynamic:x,isResetting:C,rowHeights:T,resetAfterIndex:k,onRowExpanded:A,onRowHeightChange:M,onRowHovered:I,onRowsRendered:E}=i3e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:L,depthMap:N}=o3e(e,{expandedRowKeys:b,lastRenderedRowIndex:S,resetAfterIndex:k}),{bodyWidth:$,fixedTableHeight:P,mainTableHeight:R,leftTableWidth:D,rightTableWidth:B,headerWidth:H,rowsHeight:G,windowHeight:X,footerHeight:ue,emptyStyle:ie,rootStyle:le,headerHeight:Q}=l3e(e,{columnsTotalWidth:o,data:L,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),J=gn(!1),se=U(),he=F(()=>{const Y=y(L).length===0;return Ze(e.fixedData)?e.fixedData.length===0&&Y:Y});function re(Y){const{estimatedRowHeight:ee,rowHeight:oe,rowKey:ve}=e;return ee?y(T)[y(L)[Y][ve]]||ee:oe}function z(){const{onEndReached:Y}=e;if(!Y)return;const{scrollTop:ee}=y(_),oe=y(G),ve=y(X),Z=oe-(ee+ve)+e.hScrollbarSize;y(S)>=0&&oe===ee+y(R)-y(Q)&&Y(Z)}return Ae(()=>e.expandedRowKeys,Y=>b.value=Y,{deep:!0}),{columns:a,containerRef:se,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:x,isResetting:C,isScrolling:J,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:L,expandedRowKeys:b,depthMap:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:$,emptyStyle:ie,rootStyle:le,headerWidth:H,footerHeight:ue,mainTableHeight:R,fixedTableHeight:P,leftTableWidth:D,rightTableWidth:B,showEmpty:he,getRowHeight:re,onColumnSorted:f,onRowHovered:I,onRowExpanded:A,onRowsRendered:E,onRowHeightChange:M,scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:m}}const uP=Symbol("tableV2"),b7=String,am={type:xe(Array),required:!0},cP={type:xe(Array)},_7={...cP,required:!0},f3e=String,K3={type:xe(Array),default:()=>In([])},ac={type:Number,required:!0},w7={type:xe([String,Number,Symbol]),default:"id"},Y3={type:xe(Object)},vc=ze({class:String,columns:am,columnsStyles:{type:xe(Object),required:!0},depth:Number,expandColumnKey:f3e,estimatedRowHeight:{...Ec.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:xe(Function)},onRowHover:{type:xe(Function)},onRowHeightChange:{type:xe(Function)},rowData:{type:xe(Object),required:!0},rowEventHandlers:{type:xe(Object)},rowIndex:{type:Number,required:!0},rowKey:w7,style:{type:xe(Object)}}),mS={type:Number,required:!0},fP=ze({class:String,columns:am,fixedHeaderData:{type:xe(Array)},headerData:{type:xe(Array),required:!0},headerHeight:{type:xe([Number,Array]),default:50},rowWidth:mS,rowHeight:{type:Number,default:50},height:mS,width:mS}),G0=ze({columns:am,data:_7,fixedData:cP,estimatedRowHeight:vc.estimatedRowHeight,width:ac,height:ac,headerWidth:ac,headerHeight:fP.headerHeight,bodyWidth:ac,rowHeight:ac,cache:UW.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Ec.scrollbarAlwaysOn,scrollbarStartGap:Ec.scrollbarStartGap,scrollbarEndGap:Ec.scrollbarEndGap,class:b7,style:Y3,containerStyle:Y3,getRowHeight:{type:xe(Function),required:!0},rowKey:vc.rowKey,onRowsRendered:{type:xe(Function)},onScroll:{type:xe(Function)}}),d3e=ze({cache:G0.cache,estimatedRowHeight:vc.estimatedRowHeight,rowKey:w7,headerClass:{type:xe([String,Function])},headerProps:{type:xe([Object,Function])},headerCellProps:{type:xe([Object,Function])},headerHeight:fP.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:xe([String,Function])},rowProps:{type:xe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:xe([Object,Function])},columns:am,data:_7,dataGetter:{type:xe(Function)},fixedData:cP,expandColumnKey:vc.expandColumnKey,expandedRowKeys:K3,defaultExpandedRowKeys:K3,class:b7,fixed:Boolean,style:{type:xe(Object)},width:ac,height:ac,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Ec.hScrollbarSize,vScrollbarSize:Ec.vScrollbarSize,scrollbarAlwaysOn:YW.alwaysOn,sortBy:{type:xe(Object),default:()=>({})},sortState:{type:xe(Object),default:void 0},onColumnSort:{type:xe(Function)},onExpandedRowsChange:{type:xe(Function)},onEndReached:{type:xe(Function)},onRowExpand:vc.onRowExpand,onScroll:G0.onScroll,onRowsRendered:G0.onRowsRendered,rowEventHandlers:vc.rowEventHandlers}),dP=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return V("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};dP.displayName="ElTableV2Cell";dP.inheritAttrs=!1;const hP=(e,{slots:t})=>{var n,r;return t.default?t.default(e):V("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};hP.displayName="ElTableV2HeaderCell";hP.inheritAttrs=!1;const h3e=ze({class:String,columns:am,columnsStyles:{type:xe(Object),required:!0},headerIndex:Number,style:{type:xe(Object)}}),p3e=ge({name:"ElTableV2HeaderRow",props:h3e,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=e;let o=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return t.header&&(o=t.header({cells:o.map(s=>Ze(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),V("div",{class:e.class,style:i,role:"row"},[o])}}}),v3e="ElTableV2Header",g3e=ge({name:v3e,props:fP,setup(e,{slots:t,expose:n}){const r=Ie("table-v2"),a=U(),i=F(()=>xl({width:e.width,height:e.height})),o=F(()=>xl({width:e.rowWidth,height:e.height})),s=F(()=>Nd(y(e.headerHeight))),l=f=>{const d=y(a);Xe(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:p}=e;return h==null?void 0:h.map((v,g)=>{var m;const _=xl({height:p,width:"100%"});return(m=t.fixed)==null?void 0:m.call(t,{class:f,columns:d,rowData:v,rowIndex:-(g+1),style:_})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=e;return y(s).map((h,p)=>{var v;const g=xl({width:"100%",height:h});return(v=t.dynamic)==null?void 0:v.call(t,{class:f,columns:d,headerIndex:p,style:g})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return V("div",{ref:a,class:e.class,style:y(i),role:"rowgroup"},[V("div",{style:y(o),class:r.e("header")},[c(),u()])])}}}),m3e=e=>{const{isScrolling:t}=Ye(uP),n=U(!1),r=U(),a=F(()=>lt(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=y(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:p}=e,{height:v}=u.getBoundingClientRect();n.value=!0,Xe(()=>{if(l||v!==Number.parseInt(p.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===og;f==null||f({rowKey:d,height:v,rowIndex:h},g&&!m&&g.fixed)}})},o=F(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([p,v])=>{ft(v)&&(h[p]=g=>{v({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const g=h[p];h[p]=m=>{f({event:m,hovered:v,rowData:l,rowIndex:u,rowKey:c}),g==null||g(m)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return nt(()=>{y(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},y3e="ElTableV2TableRow",b3e=ge({name:y3e,props:vc,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=m3e(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:p,rowIndex:v,style:g}=e;let m=c.map((_,b)=>{const w=Ze(p.children)&&p.children.length>0&&_.key===d;return n.cell({column:_,columns:c,columnIndex:b,depth:h,style:f[_.key],rowData:p,rowIndex:v,isScrolling:y(i),expandIconProps:w?{rowData:p,rowIndex:v,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(_=>Ze(_)&&_.length===1?_[0]:_),style:g,columns:c,depth:h,rowData:p,rowIndex:v,isScrolling:y(i)})),y(o)){const{height:_,...b}=g||{},w=y(s);return V("div",Dt({ref:l,class:e.class,style:w?g:b,role:"row"},r,y(a)),[m])}return V("div",Dt(r,{ref:l,class:e.class,style:g,role:"row"},y(a)),[m])}}}),_3e=e=>{const{sortOrder:t}=e;return V(Je,{size:14,class:e.class},{default:()=>[t===ag.ASC?V(z0e,null,null):V(R0e,null,null)]})},w3e=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return V(Je,Dt(o,{size:i,style:a}),{default:()=>[V(oa,null,null)]})},S3e="ElTableV2Grid",x3e=e=>{const t=U(),n=U(),r=F(()=>{const{data:v,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return v.length*g}),a=F(()=>{const{fixedData:v,rowHeight:g}=e;return((v==null?void 0:v.length)||0)*g}),i=F(()=>H0(e.headerHeight)),o=F(()=>{const{height:v}=e;return Math.max(0,v-y(i)-y(a))}),s=F(()=>y(i)+y(a)>0),l=({data:v,rowIndex:g})=>v[g][e.rowKey];function u({rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:_}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:_})}function c(v,g){var m;(m=n.value)==null||m.resetAfterRowIndex(v,g)}function f(v,g){const m=y(t),_=y(n);!m||!_||(It(v)?(m.scrollToLeft(v.scrollLeft),_.scrollTo(v)):(m.scrollToLeft(v),_.scrollTo({scrollLeft:v,scrollTop:g})))}function d(v){var g;(g=y(n))==null||g.scrollTo({scrollTop:v})}function h(v,g){var m;(m=y(n))==null||m.scrollToItem(v,1,g)}function p(){var v,g;(v=y(n))==null||v.$forceUpdate(),(g=y(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},pP=ge({name:S3e,props:G0,setup(e,{slots:t,expose:n}){const{ns:r}=Ye(uP),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:p,scrollTo:v,scrollToTop:g,scrollToRow:m}=x3e(e);n({forceUpdate:f,totalHeight:c,scrollTo:v,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:p});const _=()=>e.bodyWidth;return()=>{const{cache:b,columns:w,data:S,fixedData:x,useIsScrolling:C,scrollbarAlwaysOn:T,scrollbarEndGap:k,scrollbarStartGap:A,style:M,rowHeight:I,bodyWidth:E,estimatedRowHeight:L,headerWidth:N,height:$,width:P,getRowHeight:R,onScroll:D}=e,B=lt(L),H=B?QLe:qLe,G=y(u);return V("div",{role:"table",class:[r.e("table"),e.class],style:M},[V(H,{ref:a,data:S,useIsScrolling:C,itemKey:d,columnCache:0,columnWidth:B?_:E,totalColumn:1,totalRow:S.length,rowCache:b,rowHeight:B?R:I,width:P,height:y(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:k,scrollbarAlwaysOn:T,onScroll:D,onItemRendered:h,perfMode:!1},{default:X=>{var ue;const ie=S[X.rowIndex];return(ue=t.row)==null?void 0:ue.call(t,{...X,columns:w,rowData:ie})}}),y(s)&&V(g3e,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:x,rowWidth:N,rowHeight:I,width:P,height:Math.min(G+y(i),$)},{dynamic:t.header,fixed:t.row})])}}});function C3e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const T3e=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return V(pP,Dt({ref:n},r),C3e(t)?t:{default:()=>[t]})};function k3e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const A3e=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return V(pP,Dt({ref:n},r),k3e(t)?t:{default:()=>[t]})};function M3e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const P3e=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return V(pP,Dt({ref:n},r),M3e(t)?t:{default:()=>[t]})};function E3e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const I3e=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:g,rowEventHandlers:m,ns:_,onRowHovered:b,onRowExpanded:w}=e,S=Wc(v,{columns:n,rowData:c,rowIndex:f},""),x=Wc(p,{columns:n,rowData:c,rowIndex:f}),C=c[g],T=a[C]||0,k=!!i,A=f<0,M=[_.e("row"),S,{[_.e(`row-depth-${T}`)]:k&&f>=0,[_.is("expanded")]:k&&o.includes(C),[_.is("hovered")]:!h&&C===u,[_.is("fixed")]:!T&&A,[_.is("customized")]:!!t.row}],I=l?b:void 0,E={...x,columns:n,columnsStyles:r,class:M,depth:T,expandColumnKey:i,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:C,rowEventHandlers:m,style:d};return V(b3e,Dt(E,{onRowHover:I,onRowExpand:w}),E3e(t)?t:{default:()=>[t]})},cT=({columns:e,column:t,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:p,rowKey:v},{slots:g})=>{const m=xl(l);if(t.placeholderSign===og)return V("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:_,dataKey:b,dataGetter:w}=t,x=y7(_)||g.default||($=>V(dP,$,null)),C=ft(w)?w({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):En(o,b??""),T=Wc(f,{cellData:C,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),k={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:C,isScrolling:i,rowData:o,rowIndex:s},A=x(k),M=[c.e("row-cell"),t.class,t.align===ig.CENTER&&c.is("align-center"),t.align===ig.RIGHT&&c.is("align-right")],I=s>=0&&t.key===d,E=s>=0&&u.includes(o[v]);let L;const N=`margin-inline-start: ${r*h}px;`;return I&&(It(a)?L=V(w3e,Dt(a,{class:[c.e("expand-icon"),c.is("expanded",E)],size:p,expanded:E,style:N,expandable:!0}),null):L=V("div",{style:[N,`width: ${p}px; height: ${p}px;`].join(" ")},null)),V("div",Dt({class:M,style:m},T,{role:"cell"}),[L,A])};cT.inheritAttrs=!1;function D3e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const L3e=({columns:e,columnsStyles:t,headerIndex:n,style:r,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:e,headerIndex:n},u=[o.e("header-row"),Wc(a,l,""),{[o.is("customized")]:!!s.header}],c={...Wc(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return V(p3e,c,D3e(s)?s:{default:()=>[s]})},q3=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=xl(a);if(n.placeholderSign===og)return V("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...e,class:r.e("header-cell-text")},d=(y7(s)||t.default||(w=>V(hP,w,null)))(c),{sortBy:h,sortState:p,headerCellProps:v}=e;let g,m;if(p){const w=p[n.key];g=!!uT[w],m=g?w:ag.ASC}else g=n.key===h.key,m=g?h.order:ag.ASC;const _=[r.e("header-cell"),Wc(l,e,""),n.align===ig.CENTER&&r.is("align-center"),n.align===ig.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...Wc(v,e),onClick:n.sortable?i:void 0,class:_,style:o,"data-key":n.key};return V("div",Dt(b,{role:"columnheader"}),[d,u&&V(_3e,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:m},null)])},S7=(e,{slots:t})=>{var n;return V("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};S7.displayName="ElTableV2Footer";const x7=(e,{slots:t})=>V("div",{class:e.class,style:e.style},[t.default?t.default():V(EW,null,null)]);x7.displayName="ElTableV2Empty";const C7=(e,{slots:t})=>{var n;return V("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};C7.displayName="ElTableV2Overlay";function ep(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!$n(e)}const $3e="ElTableV2",R3e=ge({name:$3e,props:d3e,setup(e,{slots:t,expose:n}){const r=Ie("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:p,hasFixedColumns:v,hoveringRowKey:g,mainTableRef:m,leftTableRef:_,rightTableRef:b,isDynamic:w,isResetting:S,isScrolling:x,bodyWidth:C,emptyStyle:T,rootStyle:k,headerWidth:A,footerHeight:M,showEmpty:I,scrollTo:E,scrollToLeft:L,scrollToTop:N,scrollToRow:$,getRowHeight:P,onColumnSorted:R,onRowHeightChange:D,onRowHovered:B,onRowExpanded:H,onRowsRendered:G,onScroll:X,onVerticalScroll:ue}=c3e(e);return n({scrollTo:E,scrollToLeft:L,scrollToTop:N,scrollToRow:$}),$t(uP,{ns:r,isResetting:S,hoveringRowKey:g,isScrolling:x}),()=>{const{cache:ie,cellProps:le,estimatedRowHeight:Q,expandColumnKey:J,fixedData:se,headerHeight:he,headerClass:re,headerProps:z,headerCellProps:Y,sortBy:ee,sortState:oe,rowHeight:ve,rowClass:Z,rowEventHandlers:ce,rowKey:q,rowProps:ae,scrollbarAlwaysOn:ne,indentSize:de,iconSize:me,useIsScrolling:pe,vScrollbarSize:Se,width:Pe}=e,Oe=y(d),Ne={cache:ie,class:r.e("main"),columns:y(s),data:Oe,fixedData:se,estimatedRowHeight:Q,bodyWidth:y(C),headerHeight:he,headerWidth:y(A),height:y(l),mainTableRef:m,rowKey:q,rowHeight:ve,scrollbarAlwaysOn:ne,scrollbarStartGap:2,scrollbarEndGap:Se,useIsScrolling:pe,width:Pe,getRowHeight:P,onRowsRendered:G,onScroll:X},Te=y(c),Me=y(u),Ce={cache:ie,class:r.e("left"),columns:y(i),data:Oe,estimatedRowHeight:Q,leftTableRef:_,rowHeight:ve,bodyWidth:Te,headerWidth:Te,headerHeight:he,height:Me,rowKey:q,scrollbarAlwaysOn:ne,scrollbarStartGap:2,scrollbarEndGap:Se,useIsScrolling:pe,width:Te,getRowHeight:P,onScroll:ue},_e=y(f)+Se,Le={cache:ie,class:r.e("right"),columns:y(o),data:Oe,estimatedRowHeight:Q,rightTableRef:b,rowHeight:ve,bodyWidth:_e,headerWidth:_e,headerHeight:he,height:Me,rowKey:q,scrollbarAlwaysOn:ne,scrollbarStartGap:2,scrollbarEndGap:Se,width:_e,style:`--${y(r.namespace)}-table-scrollbar-size: ${Se}px`,useIsScrolling:pe,getRowHeight:P,onScroll:ue},je=y(a),gt={ns:r,depthMap:y(h),columnsStyles:je,expandColumnKey:J,expandedRowKeys:y(p),estimatedRowHeight:Q,hasFixedColumns:y(v),hoveringRowKey:y(g),rowProps:ae,rowClass:Z,rowKey:q,rowEventHandlers:ce,onRowHovered:B,onRowExpanded:H,onRowHeightChange:D},Ee={cellProps:le,expandColumnKey:J,indentSize:de,iconSize:me,rowKey:q,expandedRowKeys:y(p),ns:r},qe={ns:r,headerClass:re,headerProps:z,columnsStyles:je},xt={ns:r,sortBy:ee,sortState:oe,headerCellProps:Y,onColumnSorted:R},wt={row:ur=>V(I3e,Dt(ur,gt),{row:t.row,cell:Re=>{let at;return t.cell?V(cT,Dt(Re,Ee,{style:je[Re.column.key]}),ep(at=t.cell(Re))?at:{default:()=>[at]}):V(cT,Dt(Re,Ee,{style:je[Re.column.key]}),null)}}),header:ur=>V(L3e,Dt(ur,qe),{header:t.header,cell:Re=>{let at;return t["header-cell"]?V(q3,Dt(Re,xt,{style:je[Re.column.key]}),ep(at=t["header-cell"](Re))?at:{default:()=>[at]}):V(q3,Dt(Re,xt,{style:je[Re.column.key]}),null)}})},Bt=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:y(w)}],ln={class:r.e("footer"),style:y(M)};return V("div",{class:Bt,style:y(k)},[V(T3e,Ne,ep(wt)?wt:{default:()=>[wt]}),V(A3e,Ce,ep(wt)?wt:{default:()=>[wt]}),V(P3e,Le,ep(wt)?wt:{default:()=>[wt]}),t.footer&&V(S7,ln,{default:t.footer}),y(I)&&V(x7,{class:r.e("empty"),style:y(T)},{default:t.empty}),t.overlay&&V(C7,{class:r.e("overlay")},{default:t.overlay})])}}}),O3e=ze({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:xe(Function)}}),N3e=ge({name:"ElAutoResizer",props:O3e,setup(e,{slots:t}){const n=Ie("auto-resizer"),{height:r,width:a,sizer:i}=u3e(e),o={width:"100%",height:"100%"};return()=>{var s;return V("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}}),B3e=At(R3e),F3e=At(N3e),F_=Symbol("tabsRootContextKey"),V3e=ze({tabs:{type:xe(Array),default:()=>In([])}}),T7="ElTabBar",z3e=ge({name:T7}),H3e=ge({...z3e,props:V3e,setup(e,{expose:t}){const n=e,r=St(),a=Ye(F_);a||sr(T7,"<el-tabs><el-tab-bar /></el-tabs>");const i=Ie("tabs"),o=U(),s=U(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",p=h==="x"?"left":"top";return n.tabs.every(v=>{var g,m;const _=(m=(g=r.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${v.uid}`];if(!_)return!1;if(!v.active)return!0;c=_[`offset${Lo(p)}`],f=_[`client${Lo(d)}`];const b=window.getComputedStyle(_);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight)),c+=Number.parseFloat(b.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${Lo(h)}(${c}px)`}},u=()=>s.value=l();return Ae(()=>n.tabs,async()=>{await Xe(),u()},{immediate:!0}),Yr(o,()=>u()),t({ref:o,update:u}),(c,f)=>(O(),K("div",{ref_key:"barRef",ref:o,class:j([y(i).e("active-bar"),y(i).is(y(a).props.tabPosition)]),style:Ke(s.value)},null,6))}});var G3e=Ve(H3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const W3e=ze({panes:{type:xe(Array),default:()=>In([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),U3e={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},X3="ElTabNav",j3e=ge({name:X3,props:W3e,emits:U3e,setup(e,{expose:t,emit:n}){const r=St(),a=Ye(F_);a||sr(X3,"<el-tabs><tab-nav /></el-tabs>");const i=Ie("tabs"),o=Iue(),s=zue(),l=U(),u=U(),c=U(),f=U(),d=U(!1),h=U(0),p=U(!1),v=U(!0),g=F(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=F(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),_=()=>{if(!l.value)return;const k=l.value[`offset${Lo(g.value)}`],A=h.value;if(!A)return;const M=A>k?A-k:0;h.value=M},b=()=>{if(!l.value||!u.value)return;const k=u.value[`offset${Lo(g.value)}`],A=l.value[`offset${Lo(g.value)}`],M=h.value;if(k-M<=A)return;const I=k-M>A*2?M+A:k-A;h.value=I},w=async()=>{const k=u.value;if(!d.value||!c.value||!l.value||!k)return;await Xe();const A=c.value.querySelector(".is-active");if(!A)return;const M=l.value,I=["top","bottom"].includes(a.props.tabPosition),E=A.getBoundingClientRect(),L=M.getBoundingClientRect(),N=I?k.offsetWidth-L.width:k.offsetHeight-L.height,$=h.value;let P=$;I?(E.left<L.left&&(P=$-(L.left-E.left)),E.right>L.right&&(P=$+E.right-L.right)):(E.top<L.top&&(P=$-(L.top-E.top)),E.bottom>L.bottom&&(P=$+(E.bottom-L.bottom))),P=Math.max(P,0),h.value=Math.min(P,N)},S=()=>{var k;if(!u.value||!l.value)return;e.stretch&&((k=f.value)==null||k.update());const A=u.value[`offset${Lo(g.value)}`],M=l.value[`offset${Lo(g.value)}`],I=h.value;M<A?(d.value=d.value||{},d.value.prev=I,d.value.next=I+M<A,A-I<M&&(h.value=A-M)):(d.value=!1,I>0&&(h.value=0))},x=k=>{const A=k.code,{up:M,down:I,left:E,right:L}=tt;if(![M,I,E,L].includes(A))return;const N=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),$=N.indexOf(k.target);let P;A===E||A===M?$===0?P=N.length-1:P=$-1:$<N.length-1?P=$+1:P=0,N[P].focus({preventScroll:!0}),N[P].click(),C()},C=()=>{v.value&&(p.value=!0)},T=()=>p.value=!1;return Ae(o,k=>{k==="hidden"?v.value=!1:k==="visible"&&setTimeout(()=>v.value=!0,50)}),Ae(s,k=>{k?setTimeout(()=>v.value=!0,50):v.value=!1}),Yr(c,S),nt(()=>setTimeout(()=>w(),0)),Ws(()=>S()),t({scrollToActiveTab:w,removeFocus:T}),Ae(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const k=d.value?[V("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:_},[V(Je,null,{default:()=>[V(Ul,null,null)]})]),V("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:b},[V(Je,null,{default:()=>[V(oa,null,null)]})])]:null,A=e.panes.map((M,I)=>{var E,L,N,$;const P=M.uid,R=M.props.disabled,D=(L=(E=M.props.name)!=null?E:M.index)!=null?L:`${I}`,B=!R&&(M.isClosable||e.editable);M.index=`${I}`;const H=B?V(Je,{class:"is-icon-close",onClick:ue=>n("tabRemove",M,ue)},{default:()=>[V(so,null,null)]}):null,G=(($=(N=M.slots).label)==null?void 0:$.call(N))||M.props.label,X=!R&&M.active?0:-1;return V("div",{ref:`tab-${P}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",M.active),i.is("disabled",R),i.is("closable",B),i.is("focus",p.value)],id:`tab-${D}`,key:`tab-${P}`,"aria-controls":`pane-${D}`,role:"tab","aria-selected":M.active,tabindex:X,onFocus:()=>C(),onBlur:()=>T(),onClick:ue=>{T(),n("tabClick",M,D,ue)},onKeydown:ue=>{B&&(ue.code===tt.delete||ue.code===tt.backspace)&&n("tabRemove",M,ue)}},[G,H])});return V("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[k,V("div",{class:i.e("nav-scroll"),ref:l},[V("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:x},[e.type?null:V(G3e,{ref:f,tabs:[...e.panes]},null),A])])])}}}),K3e=ze({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:xe(Function),default:()=>!0},stretch:Boolean}),yS=e=>dt(e)||lt(e),Y3e={[Mt]:e=>yS(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>yS(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>yS(e),tabAdd:()=>!0};var q3e=ge({name:"ElTabs",props:K3e,emits:Y3e,setup(e,{emit:t,slots:n,expose:r}){var a,i;const o=Ie("tabs"),{children:s,addChild:l,removeChild:u}=VG(St(),"ElTabPane"),c=U(),f=U((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=m=>{f.value=m,t(Mt,m),t("tabChange",m)},h=async m=>{var _,b,w;if(!(f.value===m||Sr(m)))try{await((_=e.beforeLeave)==null?void 0:_.call(e,m,f.value))!==!1&&(d(m),(w=(b=c.value)==null?void 0:b.removeFocus)==null||w.call(b))}catch{}},p=(m,_,b)=>{m.props.disabled||(h(_),t("tabClick",m,b))},v=(m,_)=>{m.props.disabled||Sr(m.props.name)||(_.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};return Yo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},F(()=>!!e.activeName)),Ae(()=>e.activeName,m=>h(m)),Ae(()=>e.modelValue,m=>h(m)),Ae(f,async()=>{var m;await Xe(),(m=c.value)==null||m.scrollToActiveTab()}),$t(F_,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=e.editable||e.addable?V("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===tt.enter&&g()}},[V(Je,{class:o.is("icon-plus")},{default:()=>[V(JH,null,null)]})]):null,_=V("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,V(j3e,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:p,onTabRemove:v},null)]),b=V("div",{class:o.e("content")},[ke(n,"default")]);return V("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[_,b]:[b,_]])}}});const X3e=ze({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Z3e=["id","aria-hidden","aria-labelledby"],k7="ElTabPane",J3e=ge({name:k7}),Q3e=ge({...J3e,props:X3e,setup(e){const t=e,n=St(),r=Tr(),a=Ye(F_);a||sr(k7,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Ie("tab-pane"),o=U(),s=F(()=>t.closable||a.props.closable),l=AR(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=U(l.value),c=F(()=>{var h;return(h=t.name)!=null?h:o.value}),f=AR(()=>!t.lazy||u.value||l.value);Ae(l,h=>{h&&(u.value=!0)});const d=vt({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return nt(()=>{a.registerPane(d)}),Ja(()=>{a.unregisterPane(d.uid)}),(h,p)=>y(f)?pt((O(),K("div",{key:0,id:`pane-${y(c)}`,class:j(y(i).b()),role:"tabpanel","aria-hidden":!y(l),"aria-labelledby":`tab-${y(c)}`},[ke(h.$slots,"default")],10,Z3e)),[[Yt,y(l)]]):be("v-if",!0)}});var A7=Ve(Q3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const eNe=At(q3e,{TabPane:A7}),tNe=Vn(A7),nNe=ze({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:as,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),rNe=ge({name:"ElText"}),aNe=ge({...rNe,props:nNe,setup(e){const t=e,n=nr(),r=Ie("text"),a=F(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(i,o)=>(O(),we(Lt(i.tag),{class:j(y(a))},{default:fe(()=>[ke(i.$slots,"default")]),_:3},8,["class"]))}});var iNe=Ve(aNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const oNe=At(iNe),sNe=ze({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Rr,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:xe([String,Object]),default:()=>ZH},clearIcon:{type:xe([String,Object]),default:()=>ou}}),ws=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},bS=(e,t)=>{const n=ws(e);if(!n)return-1;const r=ws(t);if(!r)return-1;const a=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},Z3=e=>`${e}`.padStart(2,"0"),qf=e=>`${Z3(e.hours)}:${Z3(e.minutes)}`,lNe=(e,t)=>{const n=ws(e);if(!n)return"";const r=ws(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,qf(a)},uNe=ge({name:"ElTimeSelect"}),cNe=ge({...uNe,props:sNe,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Ct.extend(HM);const{Option:r}=Gc,a=Ie("input"),i=U(),o=La(),s=F(()=>n.modelValue),l=F(()=>{const g=ws(n.start);return g?qf(g):null}),u=F(()=>{const g=ws(n.end);return g?qf(g):null}),c=F(()=>{const g=ws(n.step);return g?qf(g):null}),f=F(()=>{const g=ws(n.minTime||"");return g?qf(g):null}),d=F(()=>{const g=ws(n.maxTime||"");return g?qf(g):null}),h=F(()=>{const g=[];if(n.start&&n.end&&n.step){let m=l.value,_;for(;m&&u.value&&bS(m,u.value)<=0;)_=Ct(m,"HH:mm").format(n.format),g.push({value:_,disabled:bS(m,f.value||"-1:-1")<=0||bS(m,d.value||"100:100")>=0}),m=lNe(m,c.value)}return g});return t({blur:()=>{var g,m;(m=(g=i.value)==null?void 0:g.blur)==null||m.call(g)},focus:()=>{var g,m;(m=(g=i.value)==null?void 0:g.focus)==null||m.call(g)}}),(g,m)=>(O(),we(y(Gc),{ref_key:"select",ref:i,"model-value":y(s),disabled:y(o),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":m[0]||(m[0]=_=>g.$emit("update:modelValue",_)),onChange:m[1]||(m[1]=_=>g.$emit("change",_)),onBlur:m[2]||(m[2]=_=>g.$emit("blur",_)),onFocus:m[3]||(m[3]=_=>g.$emit("focus",_))},{prefix:fe(()=>[g.prefixIcon?(O(),we(y(Je),{key:0,class:j(y(a).e("prefix-icon"))},{default:fe(()=>[(O(),we(Lt(g.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)]),default:fe(()=>[(O(!0),K(He,null,ct(y(h),_=>(O(),we(y(r),{key:_.value,label:_.value,value:_.value,disabled:_.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var W0=Ve(cNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);W0.install=e=>{e.component(W0.name,W0)};const fNe=W0,dNe=fNe,hNe=ge({name:"ElTimeline",setup(e,{slots:t}){const n=Ie("timeline");return $t("timeline",t),()=>et("ul",{class:[n.b()]},[ke(t,"default")])}}),pNe=ze({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:_n},hollow:{type:Boolean,default:!1}}),vNe=ge({name:"ElTimelineItem"}),gNe=ge({...vNe,props:pNe,setup(e){const t=Ie("timeline-item");return(n,r)=>(O(),K("li",{class:j([y(t).b(),{[y(t).e("center")]:n.center}])},[W("div",{class:j(y(t).e("tail"))},null,2),n.$slots.dot?be("v-if",!0):(O(),K("div",{key:0,class:j([y(t).e("node"),y(t).em("node",n.size||""),y(t).em("node",n.type||""),y(t).is("hollow",n.hollow)]),style:Ke({backgroundColor:n.color})},[n.icon?(O(),we(y(Je),{key:0,class:j(y(t).e("icon"))},{default:fe(()=>[(O(),we(Lt(n.icon)))]),_:1},8,["class"])):be("v-if",!0)],6)),n.$slots.dot?(O(),K("div",{key:1,class:j(y(t).e("dot"))},[ke(n.$slots,"dot")],2)):be("v-if",!0),W("div",{class:j(y(t).e("wrapper"))},[!n.hideTimestamp&&n.placement==="top"?(O(),K("div",{key:0,class:j([y(t).e("timestamp"),y(t).is("top")])},$e(n.timestamp),3)):be("v-if",!0),W("div",{class:j(y(t).e("content"))},[ke(n.$slots,"default")],2),!n.hideTimestamp&&n.placement==="bottom"?(O(),K("div",{key:1,class:j([y(t).e("timestamp"),y(t).is("bottom")])},$e(n.timestamp),3)):be("v-if",!0)],2)],2))}});var M7=Ve(gNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const mNe=At(hNe,{TimelineItem:M7}),yNe=Vn(M7),P7=ze({nowrap:Boolean});var E7=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(E7||{});const bNe=Object.values(E7),vP=ze({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:xe(Object),default:null}}),_Ne=ze({side:{type:xe(String),values:bNe,required:!0}}),wNe=["absolute","fixed"],SNe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],gP=ze({ariaLabel:String,arrowPadding:{type:xe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:xe(String),values:SNe,default:"bottom"},reference:{type:xe(Object),default:null},offset:{type:Number,default:8},strategy:{type:xe(String),values:wNe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),mP=ze({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:xe(Function)},"onUpdate:open":{type:xe(Function)}}),Cf={type:xe(Function)},yP=ze({onBlur:Cf,onClick:Cf,onFocus:Cf,onMouseDown:Cf,onMouseEnter:Cf,onMouseLeave:Cf}),xNe=ze({...mP,...vP,...yP,...gP,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:xe(Object),default:null},teleported:Boolean,to:{type:xe(String),default:"body"}}),V_=Symbol("tooltipV2"),I7=Symbol("tooltipV2Content"),_S="tooltip_v2.open",CNe=ge({name:"ElTooltipV2Root"}),TNe=ge({...CNe,props:mP,setup(e,{expose:t}){const n=e,r=U(n.defaultOpen),a=U(null),i=F({get:()=>Yve(n.open)?r.value:n.open,set:g=>{var m;r.value=g,(m=n["onUpdate:open"])==null||m.call(n,g)}}),o=F(()=>lt(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=zc(()=>{i.value=!0},F(()=>n.delayDuration),{immediate:!1}),u=Ie("tooltip-v2"),c=ki(),f=()=>{l(),i.value=!0},d=()=>{y(o)?s():f()},h=f,p=()=>{l(),i.value=!1};return Ae(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(_S)),h()),(m=n.onOpenChange)==null||m.call(n,g)}),nt(()=>{document.addEventListener(_S,p)}),pn(()=>{l(),document.removeEventListener(_S,p)}),$t(V_,{contentId:c,triggerRef:a,ns:u,onClose:p,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:p}),(g,m)=>ke(g.$slots,"default",{open:y(i)})}});var kNe=Ve(TNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const ANe=ge({name:"ElTooltipV2Arrow"}),MNe=ge({...ANe,props:{...vP,..._Ne},setup(e){const t=e,{ns:n}=Ye(V_),{arrowRef:r}=Ye(I7),a=F(()=>{const{style:i,width:o,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(O(),K("span",{ref_key:"arrowRef",ref:r,style:Ke(y(a)),class:j(y(n).e("arrow"))},null,6))}});var J3=Ve(MNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const PNe=ze({style:{type:xe([String,Object,Array]),default:()=>({})}}),ENe=ge({name:"ElVisuallyHidden"}),INe=ge({...ENe,props:PNe,setup(e){const t=e,n=F(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(O(),K("span",Dt(r.$attrs,{style:y(n)}),[ke(r.$slots,"default")],16))}});var DNe=Ve(INe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const LNe=["data-side"],$Ne=ge({name:"ElTooltipV2Content"}),RNe=ge({...$Ne,props:{...gP,...P7},setup(e){const t=e,{triggerRef:n,contentId:r}=Ye(V_),a=U(t.placement),i=U(t.strategy),o=U(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=g_e({placement:a,strategy:i,middleware:F(()=>{const b=[c_e(t.offset)];return t.showArrow&&b.push(m_e({arrowRef:o})),b})}),h=of().nextZIndex(),p=Ie("tooltip-v2"),v=F(()=>a.value.split("-")[0]),g=F(()=>({position:y(i),top:`${y(f)||0}px`,left:`${y(c)||0}px`,zIndex:h})),m=F(()=>{if(!t.showArrow)return{};const{arrow:b}=y(u);return{[`--${p.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${p.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),_=F(()=>[p.e("content"),p.is("dark",t.effect==="dark"),p.is(y(i)),t.contentClass]);return Ae(o,()=>d()),Ae(()=>t.placement,b=>a.value=b),nt(()=>{Ae(()=>t.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),$t(I7,{arrowRef:o}),(b,w)=>(O(),K("div",{ref_key:"contentRef",ref:l,style:Ke(y(g)),"data-tooltip-v2-root":""},[b.nowrap?be("v-if",!0):(O(),K("div",{key:0,"data-side":y(v),class:j(y(_))},[ke(b.$slots,"default",{contentStyle:y(g),contentClass:y(_)}),V(y(DNe),{id:y(r),role:"tooltip"},{default:fe(()=>[b.ariaLabel?(O(),K(He,{key:0},[yt($e(b.ariaLabel),1)],64)):ke(b.$slots,"default",{key:1})]),_:3},8,["id"]),ke(b.$slots,"arrow",{style:Ke(y(m)),side:y(v)})],10,LNe))],4))}});var Q3=Ve(RNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const ONe=ze({setRef:{type:xe(Function),required:!0},onlyChild:Boolean});var NNe=ge({props:ONe,setup(e,{slots:t}){const n=U(),r=x_(n,a=>{a?e.setRef(a.nextElementSibling):e.setRef(null)});return()=>{var a;const[i]=((a=t.default)==null?void 0:a.call(t))||[],o=e.onlyChild?$be(i.children):i.children;return V(He,{ref:r},[o])}}});const BNe=ge({name:"ElTooltipV2Trigger"}),FNe=ge({...BNe,props:{...P7,...yP},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=Ye(V_);let s=!1;const l=_=>{i.value=_},u=()=>{s=!1},c=Bn(t.onMouseEnter,a),f=Bn(t.onMouseLeave,n),d=Bn(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Bn(t.onFocus,()=>{s||r()}),p=Bn(t.onBlur,n),v=Bn(t.onClick,_=>{_.detail===0&&n()}),g={blur:p,click:v,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(_,b,w)=>{_&&Object.entries(b).forEach(([S,x])=>{_[w](S,x)})};return Ae(i,(_,b)=>{m(_,g,"addEventListener"),m(b,g,"removeEventListener"),_&&_.setAttribute("aria-describedby",o.value)}),pn(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(_,b)=>_.nowrap?(O(),we(y(NNe),{key:0,"set-ref":l,"only-child":""},{default:fe(()=>[ke(_.$slots,"default")]),_:3})):(O(),K("button",Dt({key:1,ref_key:"triggerRef",ref:i},_.$attrs),[ke(_.$slots,"default")],16))}});var VNe=Ve(FNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const zNe=ge({name:"ElTooltipV2"}),HNe=ge({...zNe,props:xNe,setup(e){const n=or(e),r=vt(Ss(n,Object.keys(vP))),a=vt(Ss(n,Object.keys(gP))),i=vt(Ss(n,Object.keys(mP))),o=vt(Ss(n,Object.keys(yP)));return(s,l)=>(O(),we(kNe,ji(a_(i)),{default:fe(({open:u})=>[V(VNe,Dt(o,{nowrap:""}),{default:fe(()=>[ke(s.$slots,"trigger")]),_:3},16),(O(),we(Hg,{to:s.to,disabled:!s.teleported},[s.fullTransition?(O(),we(Kn,ji(Dt({key:0},s.transitionProps)),{default:fe(()=>[s.alwaysOn||u?(O(),we(Q3,ji(Dt({key:0},a)),{arrow:fe(({style:c,side:f})=>[s.showArrow?(O(),we(J3,Dt({key:0},r,{style:c,side:f}),null,16,["style","side"])):be("v-if",!0)]),default:fe(()=>[ke(s.$slots,"default")]),_:3},16)):be("v-if",!0)]),_:2},1040)):(O(),K(He,{key:1},[s.alwaysOn||u?(O(),we(Q3,ji(Dt({key:0},a)),{arrow:fe(({style:c,side:f})=>[s.showArrow?(O(),we(J3,Dt({key:0},r,{style:c,side:f}),null,16,["style","side"])):be("v-if",!0)]),default:fe(()=>[ke(s.$slots,"default")]),_:3},16)):be("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var GNe=Ve(HNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const WNe=At(GNe),D7="left-check-change",L7="right-check-change",Xf=ze({data:{type:xe(Array),default:()=>[]},titles:{type:xe(Array),default:()=>[]},buttonTexts:{type:xe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:xe(Function)},leftDefaultChecked:{type:xe(Array),default:()=>[]},rightDefaultChecked:{type:xe(Array),default:()=>[]},renderContent:{type:xe(Function)},modelValue:{type:xe(Array),default:()=>[]},format:{type:xe(Object),default:()=>({})},filterable:Boolean,props:{type:xe(Object),default:()=>In({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),fT=(e,t)=>[e,t].every(Ze)||Ze(e)&&tr(t),UNe={[Tn]:(e,t,n)=>[e,n].every(Ze)&&["left","right"].includes(t),[Mt]:e=>Ze(e),[D7]:fT,[L7]:fT},dT="checked-change",jNe=ze({data:Xf.data,optionRender:{type:xe(Function)},placeholder:String,title:String,filterable:Boolean,format:Xf.format,filterMethod:Xf.filterMethod,defaultChecked:Xf.leftDefaultChecked,props:Xf.props}),KNe={[dT]:fT},im=e=>{const t={label:"label",key:"key",disabled:"disabled"};return F(()=>({...t,...e.props}))},YNe=(e,t,n)=>{const r=im(e),a=F(()=>e.data.filter(c=>ft(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=F(()=>a.value.filter(c=>!c[r.value.disabled])),o=F(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:h}=e.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=F(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[r.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[r.value.key]):[]};return Ae(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(dT,c,d)}else n(dT,c),t.checkChangeByUser=!0}),Ae(i,()=>{l()}),Ae(()=>e.data,()=>{const c=[],f=a.value.map(d=>d[r.value.key]);t.checked.forEach(d=>{f.includes(d)&&c.push(d)}),t.checkChangeByUser=!1,t.checked=c}),Ae(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(p=>f.includes(p)))return;const d=[],h=i.value.map(p=>p[r.value.key]);c.forEach(p=>{h.includes(p)&&d.push(p)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},qNe=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(D7,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(L7,a,i)}}),XNe=e=>{const t=im(e),n=F(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=F(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=F(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},ZNe=(e,t,n)=>{const r=im(e),a=(s,l,u)=>{n(Mt,s),n(Tn,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[r.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",t.leftChecked)}}},JNe=ge({name:"ElTransferPanel"}),QNe=ge({...JNe,props:jNe,emits:KNe,setup(e,{expose:t,emit:n}){const r=e,a=Tr(),i=({option:b})=>b,{t:o}=jt(),s=Ie("transfer"),l=vt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=im(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=YNe(r,l,n),p=F(()=>!vi(l.query)&&vi(c.value)),v=F(()=>!vi(a.default()[0].children)),{checked:g,allChecked:m,query:_}=or(l);return t({query:_}),(b,w)=>(O(),K("div",{class:j(y(s).b("panel"))},[W("p",{class:j(y(s).be("panel","header"))},[V(y(Ai),{modelValue:y(m),"onUpdate:modelValue":w[0]||(w[0]=S=>vn(m)?m.value=S:null),indeterminate:y(d),"validate-event":!1,onChange:y(h)},{default:fe(()=>[yt($e(b.title)+" ",1),W("span",null,$e(y(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),W("div",{class:j([y(s).be("panel","body"),y(s).is("with-footer",y(v))])},[b.filterable?(O(),we(y(jr),{key:0,modelValue:y(_),"onUpdate:modelValue":w[1]||(w[1]=S=>vn(_)?_.value=S:null),class:j(y(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":y(P0e),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):be("v-if",!0),pt(V(y(V9),{modelValue:y(g),"onUpdate:modelValue":w[2]||(w[2]=S=>vn(g)?g.value=S:null),"validate-event":!1,class:j([y(s).is("filterable",b.filterable),y(s).be("panel","list")])},{default:fe(()=>[(O(!0),K(He,null,ct(y(c),S=>(O(),we(y(Ai),{key:S[y(u).key],class:j(y(s).be("panel","item")),label:S[y(u).key],disabled:S[y(u).disabled],"validate-event":!1},{default:fe(()=>{var x;return[V(i,{option:(x=b.optionRender)==null?void 0:x.call(b,S)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Yt,!y(p)&&!y(vi)(b.data)]]),pt(W("p",{class:j(y(s).be("panel","empty"))},$e(y(p)?y(o)("el.transfer.noMatch"):y(o)("el.transfer.noData")),3),[[Yt,y(p)||y(vi)(b.data)]])],2),y(v)?(O(),K("p",{key:0,class:j(y(s).be("panel","footer"))},[ke(b.$slots,"default")],2)):be("v-if",!0)],2))}});var eN=Ve(QNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const e5e={key:0},t5e={key:0},n5e=ge({name:"ElTransfer"}),r5e=ge({...n5e,props:Xf,emits:UNe,setup(e,{expose:t,emit:n}){const r=e,a=Tr(),{t:i}=jt(),o=Ie("transfer"),{formItem:s}=ya(),l=vt({leftChecked:[],rightChecked:[]}),u=im(r),{sourceData:c,targetData:f}=XNe(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=qNe(l,n),{addToLeft:p,addToRight:v}=ZNe(r,l,n),g=U(),m=U(),_=T=>{switch(T){case"left":g.value.query="";break;case"right":m.value.query="";break}},b=F(()=>r.buttonTexts.length===2),w=F(()=>r.titles[0]||i("el.transfer.titles.0")),S=F(()=>r.titles[1]||i("el.transfer.titles.1")),x=F(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ae(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(k=>void 0))});const C=F(()=>T=>r.renderContent?r.renderContent(et,T):a.default?a.default({option:T}):et("span",T[u.value.label]||T[u.value.key]));return t({clearQuery:_,leftPanel:g,rightPanel:m}),(T,k)=>(O(),K("div",{class:j(y(o).b())},[V(eN,{ref_key:"leftPanel",ref:g,data:y(c),"option-render":y(C),placeholder:y(x),title:y(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:y(d)},{default:fe(()=>[ke(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),W("div",{class:j(y(o).e("buttons"))},[V(y(Lr),{type:"primary",class:j([y(o).e("button"),y(o).is("with-texts",y(b))]),disabled:y(vi)(l.rightChecked),onClick:y(p)},{default:fe(()=>[V(y(Je),null,{default:fe(()=>[V(y(Ul))]),_:1}),y(Sr)(T.buttonTexts[0])?be("v-if",!0):(O(),K("span",e5e,$e(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),V(y(Lr),{type:"primary",class:j([y(o).e("button"),y(o).is("with-texts",y(b))]),disabled:y(vi)(l.leftChecked),onClick:y(v)},{default:fe(()=>[y(Sr)(T.buttonTexts[1])?be("v-if",!0):(O(),K("span",t5e,$e(T.buttonTexts[1]),1)),V(y(Je),null,{default:fe(()=>[V(y(oa))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),V(eN,{ref_key:"rightPanel",ref:m,data:y(f),"option-render":y(C),placeholder:y(x),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:y(S),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:y(h)},{default:fe(()=>[ke(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var a5e=Ve(r5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const i5e=At(a5e),bd="$treeNodeId",tN=function(e,t){!t||t[bd]||Object.defineProperty(t,bd,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},bP=function(e,t){return e?t[e]:t[bd]},hT=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},pT=e=>{let t=!0,n=!0,r=!0;for(let a=0,i=e.length;a<i;a++){const o=e[a];(o.checked!==!0||o.indeterminate)&&(t=!1,o.disabled||(r=!1)),(o.checked!==!1||o.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:r,half:!t&&!n}},U0=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=pT(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):r?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const a=e.parent;!a||a.level===0||e.store.checkStrictly||U0(a)},py=function(e,t){const n=e.store.props,r=e.data||{},a=n[t];if(typeof a=="function")return a(r,e);if(typeof a=="string")return r[a];if(typeof a>"u"){const i=r[t];return i===void 0?"":i}};let o5e=0;class Ic{constructor(t){this.id=o5e++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Vt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const i=py(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&this.expand(),Array.isArray(this.data)||tN(this,this.data),!this.data)return;const r=t.defaultExpandedKeys,a=t.key;a&&r&&r.includes(this.key)&&this.expand(null,t.autoExpandParent),a&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||tN(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=py(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return py(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return py(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(r=>r===t||n&&r.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,r){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Ic)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(typeof n>"u"||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=vt(new Ic(t)),t instanceof Ic&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(t,r)}insertAfter(t,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(t,r)}removeChild(t){const n=this.getChildren()||[],r=n.indexOf(t.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(t);a>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===t){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(t,n){const r=()=>{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||U0(this),r())}):r()}doCreateChildren(t,n={}){t.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,r,a){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=pT(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,h=u.length;d<h;d++){const p=u[d];a=a||t!==!1;const v=p.disabled?p.checked:a;p.setChecked(v,n,!0,a)}const{half:c,all:f}=pT(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),U0(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||U0(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),t&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},a=[];t.forEach((i,o)=>{const s=i[bd];!!s&&n.findIndex(u=>u[bd]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[bd]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=a=>{this.childNodes=[],this.doCreateChildren(a,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,a)};this.store.load(this,r)}else t&&t.call(this)}}class s5e{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Vt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Ic({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,r=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=n.call(s,t,s.data,s),a(s)}),!i.visible&&o.length){let s=!0;s=!o.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}t&&i.visible&&!i.isLeaf&&!r&&i.expand()};a(this)}setData(t){t!==this.root.data?(this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Ic)return t;const n=It(t)?bP(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)Vt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=n.length;i<o;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const a=this._getAllNodes().sort((s,l)=>l.level-s.level),i=Object.create(null),o=Object.keys(r);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s<l;s++){const u=a[s],c=u.data[t].toString();if(!o.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let d=u.parent;for(;d&&d.level>0;)i[d.data[t]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const h=function(p){p.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const l5e=ge({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Ie("tree"),n=Ye("NodeInstance"),r=Ye("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(et,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):et("span",{class:t.be("node","label")},[a.label])}}});var u5e=Ve(l5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function $7(e){const t=Ye("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),$t("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const R7=Symbol("dragEvents");function c5e({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Ie("tree"),o=U({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return $t(R7,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,h=o.value.dropNode;h&&h!==d&&Ma(h.$el,i.is("drop-inner"));const p=o.value.draggingNode;if(!p||!d)return;let v=!0,g=!0,m=!0,_=!0;typeof e.allowDrop=="function"&&(v=e.allowDrop(p.node,d.node,"prev"),_=g=e.allowDrop(p.node,d.node,"inner"),m=e.allowDrop(p.node,d.node,"next")),c.dataTransfer.dropEffect=g||v||m?"move":"none",(v||g||m)&&h!==d&&(h&&t.emit("node-drag-leave",p.node,h.node,c),t.emit("node-drag-enter",p.node,d.node,c)),(v||g||m)&&(o.value.dropNode=d),d.node.nextSibling===p.node&&(m=!1),d.node.previousSibling===p.node&&(v=!1),d.node.contains(p.node,!1)&&(g=!1),(p.node===d.node||p.node.contains(d.node))&&(v=!1,g=!1,m=!1);const b=d.$el.getBoundingClientRect(),w=n.value.getBoundingClientRect();let S;const x=v?g?.25:m?.45:1:-1,C=m?g?.75:v?.55:0:1;let T=-9999;const k=c.clientY-b.top;k<b.height*x?S="before":k>b.height*C?S="after":g?S="inner":S="none";const A=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),M=r.value;S==="before"?T=A.top-w.top:S==="after"&&(T=A.bottom-w.top),M.style.top=`${T}px`,M.style.left=`${A.right-w.left}px`,S==="inner"?Oo(d.$el,i.is("drop-inner")):Ma(d.$el,i.is("drop-inner")),o.value.showDropIndicator=S==="before"||S==="after",o.value.allowDrop=o.value.showDropIndicator||_,o.value.dropType=S,t.emit("node-drag-over",p.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const p={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(p,h.node):d==="after"?h.node.parent.insertAfter(p,h.node):d==="inner"&&h.node.insertChild(p),d!=="none"&&a.value.registerNode(p),Ma(h.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&t.emit("node-drop",f.node,h.node,d,c)}f&&!h&&t.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const f5e=ge({name:"ElTreeNode",components:{ElCollapseTransition:O_,ElCheckbox:Ai,NodeContent:u5e,ElIcon:Je,Loading:su},props:{node:{type:Ic,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Ie("tree"),{broadcastExpanded:r}=$7(e),a=Ye("RootTree"),i=U(!1),o=U(!1),s=U(null),l=U(null),u=U(null),c=Ye(R7),f=St();$t("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.children||"children";Ae(()=>{const k=e.node.data[d];return k&&[...k]},()=>{e.node.updateChildren()}),Ae(()=>e.node.indeterminate,k=>{v(e.node.checked,k)}),Ae(()=>e.node.checked,k=>{v(k,e.node.indeterminate)}),Ae(()=>e.node.expanded,k=>{Xe(()=>i.value=k),k&&(o.value=!0)});const h=k=>bP(a.props.nodeKey,k.data),p=k=>{const A=e.props.class;if(!A)return{};let M;if(ft(A)){const{data:I}=k;M=A(I,k)}else M=A;return dt(M)?{[M]:!0}:M},v=(k,A)=>{(s.value!==k||l.value!==A)&&a.ctx.emit("check-change",e.node.data,k,A),s.value=k,l.value=A},g=k=>{hT(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&_(),a.props.checkOnClickNode&&!e.node.disabled&&b(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,k)},m=k=>{a.instance.vnode.props.onNodeContextmenu&&(k.stopPropagation(),k.preventDefault()),a.ctx.emit("node-contextmenu",k,e.node.data,e.node,f)},_=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},b=(k,A)=>{e.node.setChecked(A.target.checked,!a.props.checkStrictly),Xe(()=>{const M=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:p,handleSelectChange:v,handleClick:g,handleContextMenu:m,handleExpandIconClick:_,handleCheckChange:b,handleChildNodeExpand:(k,A,M)=>{r(A),a.ctx.emit("node-expand",k,A,M)},handleDragStart:k=>{a.props.draggable&&c.treeNodeDragStart({event:k,treeNode:e})},handleDragOver:k=>{k.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:k,treeNode:{$el:u.value,node:e.node}})},handleDrop:k=>{k.preventDefault()},handleDragEnd:k=>{a.props.draggable&&c.treeNodeDragEnd(k)},CaretRight:XH}}}),d5e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],h5e=["aria-expanded"];function p5e(e,t,n,r,a,i){const o=Fe("el-icon"),s=Fe("el-checkbox"),l=Fe("loading"),u=Fe("node-content"),c=Fe("el-tree-node"),f=Fe("el-collapse-transition");return pt((O(),K("div",{ref:"node$",class:j([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=st((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=st((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=st((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=st((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=st((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[W("div",{class:j(e.ns.be("node","content")),style:Ke({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(O(),we(o,{key:0,class:j([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:st(e.handleExpandIconClick,["stop"])},{default:fe(()=>[(O(),we(Lt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):be("v-if",!0),e.showCheckbox?(O(),we(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=st(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):be("v-if",!0),e.node.loading?(O(),we(o,{key:2,class:j([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:fe(()=>[V(l)]),_:1},8,["class"])):be("v-if",!0),V(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),V(f,null,{default:fe(()=>[!e.renderAfterExpand||e.childNodeRendered?pt((O(),K("div",{key:0,class:j(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(O(!0),K(He,null,ct(e.node.childNodes,d=>(O(),we(c,{key:e.getNodeKey(d),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:d,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,h5e)),[[Yt,e.expanded]]):be("v-if",!0)]),_:1})],42,d5e)),[[Yt,e.node.visible]])}var v5e=Ve(f5e,[["render",p5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function g5e({el$:e},t){const n=Ie("tree"),r=gn([]),a=gn([]);nt(()=>{o()}),Ws(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Ae(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Dn(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([tt.up,tt.down].includes(u)){if(s.preventDefault(),u===tt.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const h=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c<r.value.length-1?c+1:0;const h=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[tt.left,tt.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[tt.enter,tt.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const m5e=ge({name:"ElTree",components:{ElTreeNode:v5e},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:_n}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=jt(),r=Ie("tree"),a=U(new s5e({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=U(a.value.root),o=U(null),s=U(null),l=U(null),{broadcastExpanded:u}=$7(e),{dragState:c}=c5e({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});g5e({el$:s},a);const f=F(()=>{const{childNodes:P}=i.value;return!P||P.length===0||P.every(({visible:R})=>!R)});Ae(()=>e.currentNodeKey,P=>{a.value.setCurrentNodeKey(P)}),Ae(()=>e.defaultCheckedKeys,P=>{a.value.setDefaultCheckedKey(P)}),Ae(()=>e.defaultExpandedKeys,P=>{a.value.setDefaultExpandedKeys(P)}),Ae(()=>e.data,P=>{a.value.setData(P)},{deep:!0}),Ae(()=>e.checkStrictly,P=>{a.value.checkStrictly=P});const d=P=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(P)},h=P=>bP(e.nodeKey,P.data),p=P=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const R=a.value.getNode(P);if(!R)return[];const D=[R.data];let B=R.parent;for(;B&&B!==i.value;)D.push(B.data),B=B.parent;return D.reverse()},v=(P,R)=>a.value.getCheckedNodes(P,R),g=P=>a.value.getCheckedKeys(P),m=()=>{const P=a.value.getCurrentNode();return P?P.data:null},_=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const P=m();return P?P[e.nodeKey]:null},b=(P,R)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(P,R)},w=(P,R)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(P,R)},S=(P,R,D)=>{a.value.setChecked(P,R,D)},x=()=>a.value.getHalfCheckedNodes(),C=()=>a.value.getHalfCheckedKeys(),T=(P,R=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");hT(a,t.emit,()=>a.value.setUserCurrentNode(P,R))},k=(P,R=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");hT(a,t.emit,()=>a.value.setCurrentNodeKey(P,R))},A=P=>a.value.getNode(P),M=P=>{a.value.remove(P)},I=(P,R)=>{a.value.append(P,R)},E=(P,R)=>{a.value.insertBefore(P,R)},L=(P,R)=>{a.value.insertAfter(P,R)},N=(P,R,D)=>{u(R),t.emit("node-expand",P,R,D)},$=(P,R)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(P,R)};return $t("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:St()}),$t(Xo,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:p,getCheckedNodes:v,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:_,setCheckedNodes:b,setCheckedKeys:w,setChecked:S,getHalfCheckedNodes:x,getHalfCheckedKeys:C,setCurrentNode:T,setCurrentKey:k,t:n,getNode:A,remove:M,append:I,insertBefore:E,insertAfter:L,handleNodeExpand:N,updateKeyChildren:$}}});function y5e(e,t,n,r,a,i){var o;const s=Fe("el-tree-node");return O(),K("div",{ref:"el$",class:j([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(O(!0),K(He,null,ct(e.root.childNodes,l=>(O(),we(s,{key:e.getNodeKey(l),node:l,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(O(),K("div",{key:0,class:j(e.ns.e("empty-block"))},[W("span",{class:j(e.ns.e("empty-text"))},$e((o=e.emptyText)!=null?o:e.t("el.tree.emptyText")),3)],2)):be("v-if",!0),pt(W("div",{ref:"dropIndicator$",class:j(e.ns.e("drop-indicator"))},null,2),[[Yt,e.dragState.showDropIndicator]])],2)}var j0=Ve(m5e,[["render",y5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);j0.install=e=>{e.component(j0.name,j0)};const Gb=j0,b5e=Gb,_5e=(e,{attrs:t},{tree:n,key:r})=>{const a=Ie("tree-select"),i={...Ss(or(e),Object.keys(Gc.props)),...t,valueKey:r,popperClass:F(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),Xe(()=>{var s;(s=n.value)==null||s.filter(o)})},onVisibleChange:o=>{var s;(s=t.onVisibleChange)==null||s.call(t,o),e.filterable&&o&&i.filterMethod()}};return i},w5e=ge({extends:Rb,setup(e,t){const n=Rb.setup(e,t);delete n.selectOptionClick;const r=St().proxy;return Xe(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function vT(e){return e||e===0}function _P(e){return Array.isArray(e)&&e.length}function wS(e){return Array.isArray(e)?e:vT(e)?[e]:[]}function K0(e,t,n,r,a){for(let i=0;i<e.length;i++){const o=e[i];if(t(o,i,e,a))return r?r(o,i,e,a):o;{const s=n(o);if(_P(s)){const l=K0(s,t,n,r,o);if(l)return l}}}}function O7(e,t,n,r){for(let a=0;a<e.length;a++){const i=e[a];t(i,a,e,r);const o=n(i);_P(o)&&O7(o,t,n,i)}}const S5e=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{Ae(()=>e.modelValue,()=>{e.showCheckbox&&Xe(()=>{const f=i.value;f&&!Ya(f.getCheckedKeys(),wS(e.modelValue))&&f.setCheckedKeys(wS(e.modelValue))})},{immediate:!0,deep:!0});const s=F(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(f,d)=>{var h;const p=s.value[f];return ft(p)?p(d,(h=i.value)==null?void 0:h.getNode(l("value",d))):d[p]},u=wS(e.modelValue).map(f=>K0(e.data||[],d=>l("value",d)===f,d=>l("children",d),(d,h,p,v)=>v&&l("value",v))).filter(f=>vT(f)),c=F(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const f=[];return O7(e.data.concat(e.cacheData),d=>{const h=l("value",d);f.push({value:h,currentLabel:l("label",d),isDisabled:l("disabled",d)})},d=>l("children",d)),f});return{...Ss(or(e),Object.keys(Gb.props)),...t,nodeKey:o,expandOnClickNode:F(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:F(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(f,{node:d,data:h,store:p})=>f(w5e,{value:l("value",h),label:l("label",h),disabled:l("disabled",h)},e.renderContent?()=>e.renderContent(f,{node:d,data:h,store:p}):n.default?()=>n.default({node:d,data:h,store:p}):void 0),filterNodeMethod:(f,d,h)=>{var p;return e.filterNodeMethod?e.filterNodeMethod(f,d,h):f?(p=l("label",d))==null?void 0:p.includes(f):!0},onNodeClick:(f,d,h)=>{var p,v,g;if((p=t.onNodeClick)==null||p.call(t,f,d,h),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||d.isLeaf)){if(!l("disabled",f)){const m=(v=a.value)==null?void 0:v.options.get(l("value",f));(g=a.value)==null||g.handleOptionSelect(m,!0)}}else e.expandOnClickNode&&h.proxy.handleExpandIconClick()},onCheck:(f,d)=>{var h;(h=t.onCheck)==null||h.call(t,f,d);const p=l("value",f);if(e.checkStrictly)r(Mt,e.multiple?d.checkedKeys:d.checkedKeys.includes(p)?p:void 0);else if(e.multiple)r(Mt,i.value.getCheckedKeys(!0));else{const v=K0([f],_=>!_P(l("children",_))&&!l("disabled",_),_=>l("children",_)),g=v?l("value",v):void 0,m=vT(e.modelValue)&&!!K0([f],_=>l("value",_)===e.modelValue,_=>l("children",_));r(Mt,g===e.modelValue||m?void 0:g)}},cacheOptions:c}};var x5e=ge({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ye(rm);return Ae(()=>e.data,()=>{var n;e.data.forEach(a=>{t.cachedOptions.has(a.value)||t.cachedOptions.set(a.value,a)});const r=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const C5e=ge({name:"ElTreeSelect",inheritAttrs:!1,props:{...Gc.props,...Gb.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=U(),i=U(),o=F(()=>e.nodeKey||e.valueKey||"value"),s=_5e(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=S5e(e,t,{select:a,tree:i,key:o}),c=vt({});return r(c),nt(()=>{Object.assign(c,{...Ss(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Ss(a.value,["focus","blur"])})}),()=>et(Gc,vt({...s,ref:f=>a.value=f}),{...n,default:()=>[et(x5e,{data:l.value}),et(Gb,vt({...u,ref:f=>i.value=f}))]})}});var Y0=Ve(C5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Y0.install=e=>{e.component(Y0.name,Y0)};const T5e=Y0,k5e=T5e,wP=Symbol(),A5e={key:-1,level:-1,data:{}};var Lp=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Lp||{}),gT=(e=>(e.ADD="add",e.DELETE="delete",e))(gT||{});const N7={type:Number,default:26},M5e=ze({data:{type:xe(Array),default:()=>In([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:xe(Object),default:()=>In({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:xe(Array),default:()=>In([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:xe(Array),default:()=>In([])},indent:{type:Number,default:16},itemSize:N7,icon:{type:_n},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:xe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:xe(Function)},perfMode:{type:Boolean,default:!0}}),P5e=ze({node:{type:xe(Object),default:()=>In(A5e)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:N7}),E5e=ze({node:{type:xe(Object),required:!0}}),B7="node-click",F7="node-expand",V7="node-collapse",z7="current-change",H7="check",G7="check-change",W7="node-contextmenu",I5e={[B7]:(e,t,n)=>e&&t&&n,[F7]:(e,t)=>e&&t,[V7]:(e,t)=>e&&t,[z7]:(e,t)=>e&&t,[H7]:(e,t)=>e&&t,[G7]:(e,t)=>e&&typeof t=="boolean",[W7]:(e,t,n)=>e&&t&&n},D5e={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function L5e(e,t){const n=U(new Set),r=U(new Set),{emit:a}=St();Ae([()=>t.value,()=>e.defaultCheckedKeys],()=>Xe(()=>{_(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:w}=t.value,S=n.value,x=new Set;for(let C=w-1;C>=1;--C){const T=b.get(C);T&&T.forEach(k=>{const A=k.children;if(A){let M=!0,I=!1;for(const E of A){const L=E.key;if(S.has(L))I=!0;else if(x.has(L)){M=!1,I=!0;break}else M=!1}M?S.add(k.key):I?(x.add(k.key),S.delete(k.key)):(S.delete(k.key),x.delete(k.key))}})}r.value=x},o=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,w,S=!0)=>{const x=n.value,C=(T,k)=>{x[k?gT.ADD:gT.DELETE](T.key);const A=T.children;!e.checkStrictly&&A&&A.forEach(M=>{M.disabled||C(M,k)})};C(b,w),i(),S&&u(b,w)},u=(b,w)=>{const{checkedNodes:S,checkedKeys:x}=p(),{halfCheckedNodes:C,halfCheckedKeys:T}=v();a(H7,b.data,{checkedKeys:x,checkedNodes:S,halfCheckedKeys:T,halfCheckedNodes:C}),a(G7,b.data,w)};function c(b=!1){return p(b).checkedKeys}function f(b=!1){return p(b).checkedNodes}function d(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function p(b=!1){const w=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;n.value.forEach(C=>{const T=x.get(C);T&&(!b||b&&T.isLeaf)&&(S.push(C),w.push(T.data))})}return{checkedKeys:S,checkedNodes:w}}function v(){const b=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;r.value.forEach(x=>{const C=S.get(x);C&&(w.push(x),b.push(C.data))})}return{halfCheckedNodes:b,halfCheckedKeys:w}}function g(b){n.value.clear(),r.value.clear(),_(b)}function m(b,w){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(b);S&&l(S,w,!1)}}function _(b){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&b)for(const S of b){const x=w.get(S);x&&!o(x)&&l(x,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function $5e(e,t){const n=U(new Set([])),r=U(new Set([])),a=F(()=>ft(e.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],p=e.filterMethod;f.clear();function v(g){g.forEach(m=>{d.push(m),p!=null&&p(s,m.data)?d.forEach(b=>{u.add(b.key)}):m.isLeaf&&f.add(m.key);const _=m.children;if(_&&v(_),!m.isLeaf){if(!u.has(m.key))f.add(m.key);else if(_){let b=!0;for(const w of _)if(!f.has(w.key)){b=!1;break}b?c.add(m.key):c.delete(m.key)}}d.pop()})}return v(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function R5e(e,t){const n=U(new Set(e.defaultExpandedKeys)),r=U(),a=gn();Ae(()=>e.currentNodeKey,J=>{r.value=J},{immediate:!0}),Ae(()=>e.data,J=>{le(J)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=L5e(e,a),{doFilter:p,hiddenNodeKeySet:v,isForceHiddenExpandIcon:g}=$5e(e,a),m=F(()=>{var J;return((J=e.props)==null?void 0:J.value)||Lp.KEY}),_=F(()=>{var J;return((J=e.props)==null?void 0:J.children)||Lp.CHILDREN}),b=F(()=>{var J;return((J=e.props)==null?void 0:J.disabled)||Lp.DISABLED}),w=F(()=>{var J;return((J=e.props)==null?void 0:J.label)||Lp.LABEL}),S=F(()=>{const J=n.value,se=v.value,he=[],re=a.value&&a.value.treeNodes||[];function z(){const Y=[];for(let ee=re.length-1;ee>=0;--ee)Y.push(re[ee]);for(;Y.length;){const ee=Y.pop();if(ee&&(se.has(ee.key)||he.push(ee),J.has(ee.key))){const oe=ee.children;if(oe){const ve=oe.length;for(let Z=ve-1;Z>=0;--Z)Y.push(oe[Z])}}}}return z(),he}),x=F(()=>S.value.length>0);function C(J){const se=new Map,he=new Map;let re=1;function z(ee,oe=1,ve=void 0){var Z;const ce=[];for(const q of ee){const ae=A(q),ne={level:oe,key:ae,data:q};ne.label=I(q),ne.parent=ve;const de=k(q);ne.disabled=M(q),ne.isLeaf=!de||de.length===0,de&&de.length&&(ne.children=z(de,oe+1,ne)),ce.push(ne),se.set(ae,ne),he.has(oe)||he.set(oe,[]),(Z=he.get(oe))==null||Z.push(ne)}return oe>re&&(re=oe),ce}const Y=z(J);return{treeNodeMap:se,levelTreeNodeMap:he,maxLevel:re,treeNodes:Y}}function T(J){const se=p(J);se&&(n.value=se)}function k(J){return J[_.value]}function A(J){return J?J[m.value]:""}function M(J){return J[b.value]}function I(J){return J[w.value]}function E(J){n.value.has(J.key)?D(J):R(J)}function L(J){n.value=new Set(J)}function N(J,se){t(B7,J.data,J,se),$(J),e.expandOnClickNode&&E(J),e.showCheckbox&&e.checkOnClickNode&&!J.disabled&&s(J,!o(J),!0)}function $(J){G(J)||(r.value=J.key,t(z7,J.data,J))}function P(J,se){s(J,se)}function R(J){const se=n.value;if(a.value&&e.accordion){const{treeNodeMap:he}=a.value;se.forEach(re=>{const z=he.get(re);J&&J.level===(z==null?void 0:z.level)&&se.delete(re)})}se.add(J.key),t(F7,J.data,J)}function D(J){n.value.delete(J.key),t(V7,J.data,J)}function B(J){return n.value.has(J.key)}function H(J){return!!J.disabled}function G(J){const se=r.value;return!!se&&se===J.key}function X(){var J,se;if(r.value)return(se=(J=a.value)==null?void 0:J.treeNodeMap.get(r.value))==null?void 0:se.data}function ue(){return r.value}function ie(J){r.value=J}function le(J){Xe(()=>a.value=C(J))}function Q(J){var se;const he=It(J)?A(J):J;return(se=a.value)==null?void 0:se.treeNodeMap.get(he)}return{tree:a,flattenTree:S,isNotEmpty:x,getKey:A,getChildren:k,toggleExpand:E,toggleCheckbox:s,isExpanded:B,isChecked:o,isIndeterminate:i,isDisabled:H,isCurrent:G,isForceHiddenExpandIcon:g,handleNodeClick:N,handleNodeCheck:P,getCurrentNode:X,getCurrentKey:ue,setCurrentKey:ie,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:le,getNode:Q,expandNode:R,collapseNode:D,setExpandedKeys:L}}var O5e=ge({name:"ElTreeNodeContent",props:E5e,setup(e){const t=Ye(wP),n=Ie("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):et("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const N5e=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],B5e=ge({name:"ElTreeNode"}),F5e=ge({...B5e,props:P5e,emits:D5e,setup(e,{emit:t}){const n=e,r=Ye(wP),a=Ie("tree"),i=F(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=F(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:XH}),s=f=>{t("click",n.node,f)},l=()=>{t("toggle",n.node)},u=f=>{t("check",n.node,f)},c=f=>{var d,h,p,v;(p=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&p.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(W7,f,(v=n.node)==null?void 0:v.data,n.node)};return(f,d)=>{var h,p,v;return O(),K("div",{ref:"node$",class:j([y(a).b("node"),y(a).is("expanded",f.expanded),y(a).is("current",f.current),y(a).is("focusable",!f.disabled),y(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:st(s,["stop"]),onContextmenu:c},[W("div",{class:j(y(a).be("node","content")),style:Ke({paddingLeft:`${(f.node.level-1)*y(i)}px`,height:f.itemSize+"px"})},[y(o)?(O(),we(y(Je),{key:0,class:j([y(a).is("leaf",!!((p=f.node)!=null&&p.isLeaf)),y(a).is("hidden",f.hiddenExpandIcon),{expanded:!((v=f.node)!=null&&v.isLeaf)&&f.expanded},y(a).be("node","expand-icon")]),onClick:st(l,["stop"])},{default:fe(()=>[(O(),we(Lt(y(o))))]),_:1},8,["class","onClick"])):be("v-if",!0),f.showCheckbox?(O(),we(y(Ai),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=st(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):be("v-if",!0),V(y(O5e),{node:f.node},null,8,["node"])],6)],42,N5e)}}});var V5e=Ve(F5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const z5e=ge({name:"ElTreeV2"}),H5e=ge({...z5e,props:M5e,emits:I5e,setup(e,{expose:t,emit:n}){const r=e,a=Tr(),i=F(()=>r.itemSize);$t(wP,{ctx:{emit:n,slots:a},props:r,instance:St()}),$t(Xo,void 0);const{t:o}=jt(),s=Ie("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:p,isCurrent:v,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:_,toggleCheckbox:b,getCurrentNode:w,getCurrentKey:S,setCurrentKey:x,getCheckedKeys:C,getCheckedNodes:T,getHalfCheckedKeys:k,getHalfCheckedNodes:A,setChecked:M,setCheckedKeys:I,filter:E,setData:L,getNode:N,expandNode:$,collapseNode:P,setExpandedKeys:R}=R5e(r,n);return t({toggleCheckbox:b,getCurrentNode:w,getCurrentKey:S,setCurrentKey:x,getCheckedKeys:C,getCheckedNodes:T,getHalfCheckedKeys:k,getHalfCheckedNodes:A,setChecked:M,setCheckedKeys:I,filter:E,setData:L,getNode:N,expandNode:$,collapseNode:P,setExpandedKeys:R}),(D,B)=>{var H;return O(),K("div",{class:j([y(s).b(),{[y(s).m("highlight-current")]:D.highlightCurrent}]),role:"tree"},[y(u)?(O(),we(y(XW),{key:0,"class-name":y(s).b("virtual-list"),data:y(l),total:y(l).length,height:D.height,"item-size":y(i),"perf-mode":D.perfMode},{default:fe(({data:G,index:X,style:ue})=>[(O(),we(V5e,{key:G[X].key,style:Ke(ue),node:G[X],expanded:y(f)(G[X]),"show-checkbox":D.showCheckbox,checked:y(h)(G[X]),indeterminate:y(d)(G[X]),"item-size":y(i),disabled:y(p)(G[X]),current:y(v)(G[X]),"hidden-expand-icon":y(g)(G[X]),onClick:y(m),onToggle:y(c),onCheck:y(_)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(O(),K("div",{key:1,class:j(y(s).e("empty-block"))},[W("span",{class:j(y(s).e("empty-text"))},$e((H=D.emptyText)!=null?H:y(o)("el.tree.emptyText")),3)],2))],2)}}});var G5e=Ve(H5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const W5e=At(G5e),U7=Symbol("uploadContextKey"),U5e="ElUpload";class j5e extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function nN(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new j5e(r,n.status,t.method,e)}function K5e(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Y5e=e=>{typeof XMLHttpRequest>"u"&&sr(U5e,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(o)});const r=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))Array.isArray(o)?r.append(i,...o):r.append(i,o);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(nN(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(nN(n,e,t));e.onSuccess(K5e(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))tr(o)||t.setRequestHeader(i,String(o));return t.send(r),t},j7=["text","picture","picture-card"];let q5e=1;const mT=()=>Date.now()+q5e++,K7=ze({action:{type:String,default:"#"},headers:{type:xe(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>In({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:xe(Array),default:()=>In([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:j7,default:"text"},httpRequest:{type:xe(Function),default:Y5e},disabled:Boolean,limit:Number}),X5e=ze({...K7,beforeUpload:{type:xe(Function),default:un},beforeRemove:{type:xe(Function)},onRemove:{type:xe(Function),default:un},onChange:{type:xe(Function),default:un},onPreview:{type:xe(Function),default:un},onSuccess:{type:xe(Function),default:un},onProgress:{type:xe(Function),default:un},onError:{type:xe(Function),default:un},onExceed:{type:xe(Function),default:un}}),Z5e=ze({files:{type:xe(Array),default:()=>In([])},disabled:{type:Boolean,default:!1},handlePreview:{type:xe(Function),default:un},listType:{type:String,values:j7,default:"text"}}),J5e={remove:e=>!!e},Q5e=["onKeydown"],e4e=["src"],t4e=["onClick"],n4e=["onClick"],r4e=["onClick"],a4e=ge({name:"ElUploadList"}),i4e=ge({...a4e,props:Z5e,emits:J5e,setup(e,{emit:t}){const{t:n}=jt(),r=Ie("upload"),a=Ie("icon"),i=Ie("list"),o=La(),s=U(!1),l=u=>{t("remove",u)};return(u,c)=>(O(),we(kz,{tag:"ul",class:j([y(r).b("list"),y(r).bm("list",u.listType),y(r).is("disabled",y(o))]),name:y(i).b()},{default:fe(()=>[(O(!0),K(He,null,ct(u.files,f=>(O(),K("li",{key:f.uid||f.name,class:j([y(r).be("list","item"),y(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:Wt(d=>!y(o)&&l(f),["delete"]),onFocus:c[0]||(c[0]=d=>s.value=!0),onBlur:c[1]||(c[1]=d=>s.value=!1),onClick:c[2]||(c[2]=d=>s.value=!1)},[ke(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(O(),K("img",{key:0,class:j(y(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,e4e)):be("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(O(),K("div",{key:1,class:j(y(r).be("list","item-info"))},[W("a",{class:j(y(r).be("list","item-name")),onClick:st(d=>u.handlePreview(f),["prevent"])},[V(y(Je),{class:j(y(a).m("document"))},{default:fe(()=>[V(y(Xme))]),_:1},8,["class"]),W("span",{class:j(y(r).be("list","item-file-name"))},$e(f.name),3)],10,t4e),f.status==="uploading"?(O(),we(y(zW),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:Ke(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):be("v-if",!0)],2)):be("v-if",!0),W("label",{class:j(y(r).be("list","item-status-label"))},[u.listType==="text"?(O(),we(y(Je),{key:0,class:j([y(a).m("upload-success"),y(a).m("circle-check")])},{default:fe(()=>[V(y(yM))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(O(),we(y(Je),{key:1,class:j([y(a).m("upload-success"),y(a).m("check")])},{default:fe(()=>[V(y(Qg))]),_:1},8,["class"])):be("v-if",!0)],2),y(o)?be("v-if",!0):(O(),we(y(Je),{key:2,class:j(y(a).m("close")),onClick:d=>l(f)},{default:fe(()=>[V(y(so))]),_:2},1032,["class","onClick"])),be(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),be(" This is a bug which needs to be fixed "),be(" TODO: Fix the incorrect navigation interaction "),y(o)?be("v-if",!0):(O(),K("i",{key:3,class:j(y(a).m("close-tip"))},$e(y(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(O(),K("span",{key:4,class:j(y(r).be("list","item-actions"))},[W("span",{class:j(y(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[V(y(Je),{class:j(y(a).m("zoom-in"))},{default:fe(()=>[V(y(eG))]),_:1},8,["class"])],10,n4e),y(o)?be("v-if",!0):(O(),K("span",{key:0,class:j(y(r).be("list","item-delete")),onClick:d=>l(f)},[V(y(Je),{class:j(y(a).m("delete"))},{default:fe(()=>[V(y(Wme))]),_:1},8,["class"])],10,r4e))],2)):be("v-if",!0)])],42,Q5e))),128)),ke(u.$slots,"append")]),_:3},8,["class","name"]))}});var rN=Ve(i4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const o4e=ze({disabled:{type:Boolean,default:!1}}),s4e={file:e=>Ze(e)},l4e=["onDrop","onDragover"],Y7="ElUploadDrag",u4e=ge({name:Y7}),c4e=ge({...u4e,props:o4e,emits:s4e,setup(e,{emit:t}){const n=Ye(U7);n||sr(Y7,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Ie("upload"),a=U(!1),i=La(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){t("file",u);return}const f=u.filter(d=>{const{type:h,name:p}=d,v=p.includes(".")?`.${p.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?v===m:/\/\*$/.test(m)?g===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?h===m:!1)});t("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(O(),K("div",{class:j([y(r).b("dragger"),y(r).is("dragover",a.value)]),onDrop:st(o,["prevent"]),onDragover:st(s,["prevent"]),onDragleave:u[0]||(u[0]=st(c=>a.value=!1,["prevent"]))},[ke(l.$slots,"default")],42,l4e))}});var f4e=Ve(c4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const d4e=ze({...K7,beforeUpload:{type:xe(Function),default:un},onRemove:{type:xe(Function),default:un},onStart:{type:xe(Function),default:un},onSuccess:{type:xe(Function),default:un},onProgress:{type:xe(Function),default:un},onError:{type:xe(Function),default:un},onExceed:{type:xe(Function),default:un}}),h4e=["onKeydown"],p4e=["name","multiple","accept"],v4e=ge({name:"ElUploadContent",inheritAttrs:!1}),g4e=ge({...v4e,props:d4e,setup(e,{expose:t}){const n=e,r=Ie("upload"),a=La(),i=gn({}),o=gn(),s=p=>{if(p.length===0)return;const{autoUpload:v,limit:g,fileList:m,multiple:_,onStart:b,onExceed:w}=n;if(g&&m.length+p.length>g){w(p,m);return}_||(p=p.slice(0,1));for(const S of p){const x=S;x.uid=mT(),b(x),v&&l(x)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return u(p);let v,g={};try{const _=n.beforeUpload(p);g=It(n.data)?vM(n.data):n.data,v=await _}catch{v=!1}if(v===!1){n.onRemove(p);return}let m=p;v instanceof Blob&&(v instanceof File?m=v:m=new File([v],p.name,{type:p.type})),u(Object.assign(m,{uid:p.uid}),g)},u=(p,v)=>{const{headers:g,data:m,method:_,withCredentials:b,name:w,action:S,onProgress:x,onSuccess:C,onError:T,httpRequest:k}=n,{uid:A}=p,M={headers:g||{},withCredentials:b,file:p,data:v??m,method:_,filename:w,action:S,onProgress:E=>{x(E,p)},onSuccess:E=>{C(E,p),delete i.value[A]},onError:E=>{T(E,p),delete i.value[A]}},I=k(M);i.value[A]=I,I instanceof Promise&&I.then(M.onSuccess,M.onError)},c=p=>{const v=p.target.files;v&&s(Array.from(v))},f=()=>{a.value||(o.value.value="",o.value.click())},d=()=>{f()};return t({abort:p=>{Xve(i.value).filter(p?([g])=>String(p.uid)===g:()=>!0).forEach(([g,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[g]})},upload:l}),(p,v)=>(O(),K("div",{class:j([y(r).b(),y(r).m(p.listType),y(r).is("drag",p.drag)]),tabindex:"0",onClick:f,onKeydown:Wt(st(d,["self"]),["enter","space"])},[p.drag?(O(),we(f4e,{key:0,disabled:y(a),onFile:s},{default:fe(()=>[ke(p.$slots,"default")]),_:3},8,["disabled"])):ke(p.$slots,"default",{key:1}),W("input",{ref_key:"inputRef",ref:o,class:j(y(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:c,onClick:v[0]||(v[0]=st(()=>{},["stop"]))},null,42,p4e)],42,h4e))}});var aN=Ve(g4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const iN="ElUpload",m4e=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},y4e=(e,t)=>{const n=Vue(e,"fileList",void 0,{passive:!0}),r=d=>n.value.find(h=>h.uid===d.uid);function a(d){var h;(h=t.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const p=r(h);p&&(console.error(d),p.status="fail",n.value.splice(n.value.indexOf(p),1),e.onError(d,p,n.value),e.onChange(p,n.value))},s=(d,h)=>{const p=r(h);p&&(e.onProgress(d,p,n.value),p.status="uploading",p.percentage=Math.round(d.percent))},l=(d,h)=>{const p=r(h);p&&(p.status="success",p.response=d,e.onSuccess(d,p,n.value),e.onChange(p,n.value))},u=d=>{tr(d.uid)&&(d.uid=mT());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(p){p.message,e.onError(p,h,n.value)}n.value=[...n.value,h],e.onChange(h,n.value)},c=async d=>{const h=d instanceof File?r(d):d;h||sr(iN,"file to be removed not found");const p=v=>{a(v);const g=n.value;g.splice(g.indexOf(v),1),e.onRemove(v,g),m4e(v)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&p(h):p(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=t.value)==null?void 0:h.upload(d))})}return Ae(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:p,url:v}=h;if(!v&&p)try{h.url=URL.createObjectURL(p)}catch(g){e.onError(g,h,n.value)}return h}))}),Ae(n,d=>{for(const h of d)h.uid||(h.uid=mT()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:i,handleError:o,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:f}},b4e=ge({name:"ElUpload"}),_4e=ge({...b4e,props:X5e,setup(e,{expose:t}){const n=e,r=Tr(),a=La(),i=gn(),{abort:o,submit:s,clearFiles:l,uploadFiles:u,handleStart:c,handleError:f,handleRemove:d,handleSuccess:h,handleProgress:p}=y4e(n,i),v=F(()=>n.listType==="picture-card"),g=F(()=>({...n,fileList:u.value,onStart:c,onProgress:p,onSuccess:h,onError:f,onRemove:d}));return pn(()=>{u.value.forEach(({url:m})=>{m!=null&&m.startsWith("blob:")&&URL.revokeObjectURL(m)})}),$t(U7,{accept:Qt(n,"accept")}),t({abort:o,submit:s,clearFiles:l,handleStart:c,handleRemove:d}),(m,_)=>(O(),K("div",null,[y(v)&&m.showFileList?(O(),we(rN,{key:0,disabled:y(a),"list-type":m.listType,files:y(u),"handle-preview":m.onPreview,onRemove:y(d)},Ls({append:fe(()=>[V(aN,Dt({ref_key:"uploadRef",ref:i},y(g)),{default:fe(()=>[y(r).trigger?ke(m.$slots,"trigger",{key:0}):be("v-if",!0),!y(r).trigger&&y(r).default?ke(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:fe(({file:b})=>[ke(m.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0),!y(v)||y(v)&&!m.showFileList?(O(),we(aN,Dt({key:1,ref_key:"uploadRef",ref:i},y(g)),{default:fe(()=>[y(r).trigger?ke(m.$slots,"trigger",{key:0}):be("v-if",!0),!y(r).trigger&&y(r).default?ke(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)):be("v-if",!0),m.$slots.trigger?ke(m.$slots,"default",{key:2}):be("v-if",!0),ke(m.$slots,"tip"),!y(v)&&m.showFileList?(O(),we(rN,{key:3,disabled:y(a),"list-type":m.listType,files:y(u),"handle-preview":m.onPreview,onRemove:y(d)},Ls({_:2},[m.$slots.file?{name:"default",fn:fe(({file:b})=>[ke(m.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0)]))}});var w4e=Ve(_4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const S4e=At(w4e);var x4e=[D_e,G_e,vxe,F3e,Sxe,Pxe,i9,Hxe,Gxe,Lr,d9,u2e,p2e,M2e,P2e,GTe,PTe,qTe,Ai,q2e,V9,ske,kke,Ake,mke,nAe,C_e,pAe,vAe,gAe,mAe,yAe,IMe,zMe,HMe,rPe,wW,mPe,lEe,uEe,cEe,EW,Owe,Nwe,Je,nIe,IW,jr,DW,gIe,OIe,NIe,BIe,FIe,jIe,ZDe,rLe,dLe,n9,zW,K9,fTe,cTe,PLe,$Le,nke,Ks,Gc,Rb,xDe,C$e,D$e,L$e,uRe,pRe,o7,TRe,$Re,RRe,jRe,e3e,t3e,B3e,eNe,tNe,Jv,oNe,zCe,dNe,mNe,yNe,da,WNe,i5e,b5e,k5e,W5e,S4e];const Wi="ElInfiniteScroll",C4e=50,T4e=200,k4e=0,A4e={delay:{type:Number,default:T4e},distance:{type:Number,default:k4e},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},SP=(e,t)=>Object.entries(A4e).reduce((n,[r,a])=>{var i,o;const{type:s,default:l}=a,u=e.getAttribute(`infinite-scroll-${r}`);let c=(o=(i=t[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),n[r]=Number.isNaN(c)?l:c,n},{}),q7=e=>{const{observer:t}=e[Wi];t&&(t.disconnect(),delete e[Wi].observer)},M4e=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[Wi],{disabled:s,distance:l}=SP(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(e[Wi].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===e)h=c-(u+f)<=l;else{const{clientTop:p,scrollHeight:v}=e,g=Wue(e,r);h=f+u>=g+p+v-l}h&&t.call(a)};function SS(e,t){const{containerEl:n,instance:r}=e[Wi],{disabled:a}=SP(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):q7(e))}const P4e={async mounted(e,t){const{instance:n,value:r}=t;ft(r)||sr(Wi,"'v-infinite-scroll' binding value must be a function"),await Xe();const{delay:a,immediate:i}=SP(e,n),o=mM(e,!0),s=o===window?document.documentElement:o,l=Mc(M4e.bind(null,e,r),a);if(o){if(e[Wi]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Mc(SS.bind(null,e,r),C4e));e[Wi].observer=u,u.observe(e,{childList:!0,subtree:!0}),SS(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[Wi];t==null||t.removeEventListener("scroll",n),q7(e)},async updated(e){if(!e[Wi])await Xe();else{const{containerEl:t,cb:n,observer:r}=e[Wi];t.clientHeight&&r&&SS(e,n)}}},yT=P4e;yT.install=e=>{e.directive("InfiniteScroll",yT)};const E4e=yT;function I4e(e){let t;const n=U(!1),r=vt({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let p=d.getAttribute("loading-number");p=Number.parseInt(p)-1,p?d.setAttribute("loading-number",p.toString()):(Ma(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),Ma(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=ge({name:"ElLoading",setup(d,{expose:h}){const{ns:p}=D_("loading"),v=of();return h({ns:p,zIndex:v}),()=>{const g=r.spinner||r.svg,m=et("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[et("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_=r.text?et("p",{class:p.b("text")},[r.text]):void 0;return et(Kn,{name:p.b("fade"),onAfterLeave:l},{default:fe(()=>[pt(V("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[et("div",{class:p.b("spinner")},[m,_])]),[[Yt,r.visible]])])})}}}),c=Iz(u),f=c.mount(document.createElement("div"));return{...or(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let vy;const bT=function(e={}){if(!Ht)return;const t=D4e(e);if(t.fullscreen&&vy)return vy;const n=I4e({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(vy=void 0)}});L4e(t,t.parent,n),oN(t,t.parent,n),t.parent.vLoadingAddClassList=()=>oN(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Xe(()=>n.visible.value=t.visible),t.fullscreen&&(vy=n),n},D4e=e=>{var t,n,r,a;let i;return dt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:i}},L4e=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex,a={};if(e.fullscreen)n.originalPosition.value=_s(document.body,"position"),n.originalOverflow.value=_s(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=_s(document.body,"position"),await Xe();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(_s(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=_s(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},oN=(e,t,n)=>{const r=n.vm.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Ma(t,r.bm("parent","relative")):Oo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?Oo(t,r.bm("parent","hidden")):Ma(t,r.bm("parent","hidden"))},_T=Symbol("ElLoading"),sN=(e,t)=>{var n,r,a,i;const o=t.instance,s=d=>It(t.value)?t.value[d]:void 0,l=d=>{const h=dt(d)&&(o==null?void 0:o[d])||d;return h&&U(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${ru(d)}`)),c=(n=s("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:e,body:(a=s("body"))!=null?a:t.modifiers.body,lock:(i=s("lock"))!=null?i:t.modifiers.lock};e[_T]={options:f,instance:bT(f)}},$4e=(e,t)=>{for(const n of Object.keys(t))vn(t[n])&&(t[n].value=e[n])},lN={mounted(e,t){t.value&&sN(e,t)},updated(e,t){const n=e[_T];t.oldValue!==t.value&&(t.value&&!t.oldValue?sN(e,t):t.value&&t.oldValue?It(t.value)&&$4e(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[_T])==null||t.instance.close()}},R4e={install(e){e.directive("loading",lN),e.config.globalProperties.$loading=bT},directive:lN,service:bT},X7=["success","info","warning","error"],xa=In({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:Ht?document.body:void 0}),O4e=ze({customClass:{type:String,default:xa.customClass},center:{type:Boolean,default:xa.center},dangerouslyUseHTMLString:{type:Boolean,default:xa.dangerouslyUseHTMLString},duration:{type:Number,default:xa.duration},icon:{type:_n,default:xa.icon},id:{type:String,default:xa.id},message:{type:xe([String,Object,Function]),default:xa.message},onClose:{type:xe(Function),required:!1},showClose:{type:Boolean,default:xa.showClose},type:{type:String,values:X7,default:xa.type},offset:{type:Number,default:xa.offset},zIndex:{type:Number,default:xa.zIndex},grouping:{type:Boolean,default:xa.grouping},repeatNum:{type:Number,default:xa.repeatNum}}),N4e={destroy:()=>!0},Yi=B6([]),B4e=e=>{const t=Yi.findIndex(a=>a.id===e),n=Yi[t];let r;return t>0&&(r=Yi[t-1]),{current:n,prev:r}},F4e=e=>{const{prev:t}=B4e(e);return t?t.vm.exposed.bottom.value:0},V4e=(e,t)=>Yi.findIndex(r=>r.id===e)>0?20:t,z4e=["id"],H4e=["innerHTML"],G4e=ge({name:"ElMessage"}),W4e=ge({...G4e,props:O4e,emits:N4e,setup(e,{expose:t}){const n=e,{Close:r}=wM,{ns:a,zIndex:i}=D_("message"),{currentZIndex:o,nextZIndex:s}=i,l=U(),u=U(!1),c=U(0);let f;const d=F(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=F(()=>{const C=n.type;return{[a.bm("icon",C)]:C&&jl[C]}}),p=F(()=>n.icon||jl[n.type]||""),v=F(()=>F4e(n.id)),g=F(()=>V4e(n.id,n.offset)+v.value),m=F(()=>c.value+g.value),_=F(()=>({top:`${g.value}px`,zIndex:o.value}));function b(){n.duration!==0&&({stop:f}=zc(()=>{S()},n.duration))}function w(){f==null||f()}function S(){u.value=!1}function x({code:C}){C===tt.esc&&S()}return nt(()=>{b(),s(),u.value=!0}),Ae(()=>n.repeatNum,()=>{w(),b()}),Dn(document,"keydown",x),Yr(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:S}),(C,T)=>(O(),we(Kn,{name:y(a).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:T[0]||(T[0]=k=>C.$emit("destroy")),persisted:""},{default:fe(()=>[pt(W("div",{id:C.id,ref_key:"messageRef",ref:l,class:j([y(a).b(),{[y(a).m(C.type)]:C.type&&!C.icon},y(a).is("center",C.center),y(a).is("closable",C.showClose),C.customClass]),style:Ke(y(_)),role:"alert",onMouseenter:w,onMouseleave:b},[C.repeatNum>1?(O(),we(y(i9),{key:0,value:C.repeatNum,type:y(d),class:j(y(a).e("badge"))},null,8,["value","type","class"])):be("v-if",!0),y(p)?(O(),we(y(Je),{key:1,class:j([y(a).e("icon"),y(h)])},{default:fe(()=>[(O(),we(Lt(y(p))))]),_:1},8,["class"])):be("v-if",!0),ke(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(O(),K(He,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),W("p",{class:j(y(a).e("content")),innerHTML:C.message},null,10,H4e)],2112)):(O(),K("p",{key:0,class:j(y(a).e("content"))},$e(C.message),3))]),C.showClose?(O(),we(y(Je),{key:2,class:j(y(a).e("closeBtn")),onClick:st(S,["stop"])},{default:fe(()=>[V(y(r))]),_:1},8,["class","onClick"])):be("v-if",!0)],46,z4e),[[Yt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var U4e=Ve(W4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let j4e=1;const Z7=e=>{const t=!e||dt(e)||$n(e)||ft(e)?{message:e}:e,n={...xa,...t};if(!n.appendTo)n.appendTo=document.body;else if(dt(n.appendTo)){let r=document.querySelector(n.appendTo);oo(r)||(r=document.body),n.appendTo=r}return n},K4e=e=>{const t=Yi.indexOf(e);if(t===-1)return;Yi.splice(t,1);const{handler:n}=e;n.close()},Y4e=({appendTo:e,...t},n)=>{const r=`message_${j4e++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),K4e(c)},onDestroy:()=>{Dd(null,i)}},s=V(U4e,o,ft(o.message)||$n(o.message)?{default:ft(o.message)?o.message:()=>o.message}:null);s.appContext=n||Kd._context,Dd(s,i),e.appendChild(i.firstElementChild);const l=s.component,c={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},Kd=(e={},t)=>{if(!Ht)return{close:()=>{}};if(lt(k2.max)&&Yi.length>=k2.max)return{close:()=>{}};const n=Z7(e);if(n.grouping&&Yi.length){const a=Yi.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const r=Y4e(n,t);return Yi.push(r),r.handler};X7.forEach(e=>{Kd[e]=(t={},n)=>{const r=Z7(t);return Kd({...r,type:e},n)}});function q4e(e){for(const t of Yi)(!e||e===t.props.type)&&t.handler.close()}Kd.closeAll=q4e;Kd._context=null;const wT=aG(Kd,"$message"),X4e=ge({name:"ElMessageBox",directives:{TrapFocus:xCe},components:{ElButton:Lr,ElFocusTrap:$_,ElInput:jr,ElOverlay:qM,ElIcon:Je,...wM},inheritAttrs:!1,props:{buttonSize:{type:String,validator:C_},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:a,size:i}=D_("message-box",F(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=U(!1),u=vt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=F(()=>{const N=u.type;return{[a.bm("icon",N)]:N&&jl[N]}}),f=ki(),d=ki(),h=F(()=>u.icon||jl[u.type]||""),p=F(()=>!!u.message),v=U(),g=U(),m=U(),_=U(),b=U(),w=F(()=>u.confirmButtonClass);Ae(()=>u.inputValue,async N=>{await Xe(),e.boxType==="prompt"&&N!==null&&M()},{immediate:!0}),Ae(()=>l.value,N=>{var $,P;N&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(P=($=b.value)==null?void 0:$.$el)!=null?P:v.value:m.value=v.value),u.zIndex=s()),e.boxType==="prompt"&&(N?Xe().then(()=>{var R;_.value&&_.value.$el&&(u.autofocus?m.value=(R=I())!=null?R:v.value:m.value=v.value)}):(u.editorErrorMessage="",u.validateError=!1))});const S=F(()=>e.draggable);oG(v,g,S),nt(async()=>{await Xe(),e.closeOnHashChange&&window.addEventListener("hashchange",x)}),pn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",x)});function x(){l.value&&(l.value=!1,Xe(()=>{u.action&&t("action",u.action)}))}const C=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},T=DM(C),k=N=>{if(u.inputType!=="textarea")return N.preventDefault(),A("confirm")},A=N=>{var $;e.boxType==="prompt"&&N==="confirm"&&!M()||(u.action=N,u.beforeClose?($=u.beforeClose)==null||$.call(u,N,u,x):x())},M=()=>{if(e.boxType==="prompt"){const N=u.inputPattern;if(N&&!N.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const $=u.inputValidator;if(typeof $=="function"){const P=$(u.inputValue);if(P===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof P=="string")return u.editorErrorMessage=P,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},I=()=>{const N=_.value.$refs;return N.input||N.textarea},E=()=>{A("close")},L=()=>{e.closeOnPressEscape&&E()};return e.lockScroll&&uG(l),Y1e(l),{...or(u),ns:a,overlayEvent:T,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:v,focusStartRef:m,headerRef:g,inputRef:_,confirmRef:b,doClose:x,handleClose:E,onCloseRequested:L,handleWrapperClick:C,handleInputEnter:k,handleAction:A,t:o}}}),Z4e=["aria-label","aria-describedby"],J4e=["aria-label"],Q4e=["id"];function eBe(e,t,n,r,a,i){const o=Fe("el-icon"),s=Fe("close"),l=Fe("el-input"),u=Fe("el-button"),c=Fe("el-focus-trap"),f=Fe("el-overlay");return O(),we(Kn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:fe(()=>[pt(V(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:fe(()=>[W("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:j(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[V(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:fe(()=>[W("div",{ref:"rootRef",class:j([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ke(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=st(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(O(),K("div",{key:0,ref:"headerRef",class:j(e.ns.e("header"))},[W("div",{class:j(e.ns.e("title"))},[e.iconComponent&&e.center?(O(),we(o,{key:0,class:j([e.ns.e("status"),e.typeClass])},{default:fe(()=>[(O(),we(Lt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),W("span",null,$e(e.title),1)],2),e.showClose?(O(),K("button",{key:0,type:"button",class:j(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Wt(st(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[V(o,{class:j(e.ns.e("close"))},{default:fe(()=>[V(s)]),_:1},8,["class"])],42,J4e)):be("v-if",!0)],2)):be("v-if",!0),W("div",{id:e.contentId,class:j(e.ns.e("content"))},[W("div",{class:j(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(O(),we(o,{key:0,class:j([e.ns.e("status"),e.typeClass])},{default:fe(()=>[(O(),we(Lt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.hasMessage?(O(),K("div",{key:1,class:j(e.ns.e("message"))},[ke(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(O(),we(Lt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(O(),we(Lt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:fe(()=>[yt($e(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):be("v-if",!0)],2),pt(W("div",{class:j(e.ns.e("input"))},[V(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:j({invalid:e.validateError}),onKeydown:Wt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),W("div",{class:j(e.ns.e("errormsg")),style:Ke({visibility:e.editorErrorMessage?"visible":"hidden"})},$e(e.editorErrorMessage),7)],2),[[Yt,e.showInput]])],10,Q4e),W("div",{class:j(e.ns.e("btns"))},[e.showCancelButton?(O(),we(u,{key:0,loading:e.cancelButtonLoading,class:j([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Wt(st(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:fe(()=>[yt($e(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):be("v-if",!0),pt(V(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:j([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Wt(st(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:fe(()=>[yt($e(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Yt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Z4e)]),_:3},8,["z-index","overlay-class","mask"]),[[Yt,e.visible]])]),_:3})}var tBe=Ve(X4e,[["render",eBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const sg=new Map,nBe=e=>{let t=document.body;return e.appendTo&&(dt(e.appendTo)&&(t=document.querySelector(e.appendTo)),oo(e.appendTo)&&(t=e.appendTo),oo(t)||(t=document.body)),t},rBe=(e,t,n=null)=>{const r=V(tBe,e,ft(e.message)||$n(e.message)?{default:ft(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Dd(r,t),nBe(e).appendChild(t.firstElementChild),r.component},aBe=()=>document.createElement("div"),iBe=(e,t)=>{const n=aBe();e.onVanish=()=>{Dd(null,n),sg.delete(a)},e.onAction=i=>{const o=sg.get(a);let s;e.showInput?s={value:a.inputValue,action:i}:s=i,e.callback?e.callback(s,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const r=rBe(e,n,t),a=r.proxy;for(const i in e)Vt(e,i)&&!Vt(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function hh(e,t=null){if(!Ht)return Promise.reject();let n;return dt(e)||$n(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=iBe(e,t??hh._context);sg.set(i,{options:e,callback:n,resolve:r,reject:a})})}const oBe=["alert","confirm","prompt"],sBe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};oBe.forEach(e=>{hh[e]=lBe(e)});function lBe(e){return(t,n,r,a)=>{let i="";return It(n)?(r=n,i=""):Sr(n)?i="":i=n,hh(Object.assign({title:i,message:t,type:"",...sBe[e]},r,{boxType:e}),a)}}hh.close=()=>{sg.forEach((e,t)=>{t.doClose()}),sg.clear()};hh._context=null;const pl=hh;pl.install=e=>{pl._context=e._context,e.config.globalProperties.$msgbox=pl,e.config.globalProperties.$messageBox=pl,e.config.globalProperties.$alert=pl.alert,e.config.globalProperties.$confirm=pl.confirm,e.config.globalProperties.$prompt=pl.prompt};const uBe=pl,J7=["success","info","warning","error"],cBe=ze({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:_n},id:{type:String,default:""},message:{type:xe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:xe(Function),default:()=>{}},onClose:{type:xe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...J7,""],default:""},zIndex:{type:Number,default:0}}),fBe={destroy:()=>!0},dBe=["id"],hBe=["textContent"],pBe={key:0},vBe=["innerHTML"],gBe=ge({name:"ElNotification"}),mBe=ge({...gBe,props:cBe,emits:fBe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=D_("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=nG,l=U(!1);let u;const c=F(()=>{const b=n.type;return b&&jl[n.type]?r.m(b):""}),f=F(()=>n.type&&jl[n.type]||n.icon),d=F(()=>n.position.endsWith("right")?"right":"left"),h=F(()=>n.position.startsWith("top")?"top":"bottom"),p=F(()=>({[h.value]:`${n.offset}px`,zIndex:o.value}));function v(){n.duration>0&&({stop:u}=zc(()=>{l.value&&m()},n.duration))}function g(){u==null||u()}function m(){l.value=!1}function _({code:b}){b===tt.delete||b===tt.backspace?g():b===tt.esc?l.value&&m():v()}return nt(()=>{v(),i(),l.value=!0}),Dn(document,"keydown",_),t({visible:l,close:m}),(b,w)=>(O(),we(Kn,{name:y(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:w[1]||(w[1]=S=>b.$emit("destroy")),persisted:""},{default:fe(()=>[pt(W("div",{id:b.id,class:j([y(r).b(),b.customClass,y(d)]),style:Ke(y(p)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:w[0]||(w[0]=(...S)=>b.onClick&&b.onClick(...S))},[y(f)?(O(),we(y(Je),{key:0,class:j([y(r).e("icon"),y(c)])},{default:fe(()=>[(O(),we(Lt(y(f))))]),_:1},8,["class"])):be("v-if",!0),W("div",{class:j(y(r).e("group"))},[W("h2",{class:j(y(r).e("title")),textContent:$e(b.title)},null,10,hBe),pt(W("div",{class:j(y(r).e("content")),style:Ke(b.title?void 0:{margin:0})},[ke(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(O(),K(He,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),W("p",{innerHTML:b.message},null,8,vBe)],2112)):(O(),K("p",pBe,$e(b.message),1))])],6),[[Yt,b.message]]),b.showClose?(O(),we(y(Je),{key:0,class:j(y(r).e("closeBtn")),onClick:st(m,["stop"])},{default:fe(()=>[V(y(s))]),_:1},8,["class","onClick"])):be("v-if",!0)],2)],46,dBe),[[Yt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var yBe=Ve(mBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Wb={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},ST=16;let bBe=1;const Yd=function(e={},t=null){if(!Ht)return{close:()=>{}};(typeof e=="string"||$n(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;Wb[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+ST}),r+=ST;const a=`notification_${bBe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{_Be(a,n,i)}};let s=document.body;oo(e.appendTo)?s=e.appendTo:dt(e.appendTo)&&(s=document.querySelector(e.appendTo)),oo(s)||(s=document.body);const l=document.createElement("div"),u=V(yBe,o,$n(o.message)?{default:()=>o.message}:null);return u.appContext=t??Yd._context,u.props.onDestroy=()=>{Dd(null,l)},Dd(u,l),Wb[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};J7.forEach(e=>{Yd[e]=(t={})=>((typeof t=="string"||$n(t))&&(t={message:t}),Yd({...t,type:e}))});function _Be(e,t,n){const r=Wb[t],a=r.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(a===-1)return;const{vm:i}=r[a];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,s=t.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let u=a;u<l;u++){const{el:c,component:f}=r[u].vm,d=Number.parseInt(c.style[s],10)-o-ST;f.props.offset=d}}function wBe(){for(const e of Object.values(Wb))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}Yd.closeAll=wBe;Yd._context=null;const Q7=aG(Yd,"$notify");var SBe=[E4e,R4e,wT,uBe,Q7,VW],xBe=k_e([...x4e,...SBe]);function eU(e,t){return function(){return e.apply(t,arguments)}}const{toString:CBe}=Object.prototype,{getPrototypeOf:xP}=Object,z_=(e=>t=>{const n=CBe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),bo=e=>(e=e.toLowerCase(),t=>z_(t)===e),H_=e=>t=>typeof t===e,{isArray:ph}=Array,lg=H_("undefined");function TBe(e){return e!==null&&!lg(e)&&e.constructor!==null&&!lg(e.constructor)&&qa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tU=bo("ArrayBuffer");function kBe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tU(e.buffer),t}const ABe=H_("string"),qa=H_("function"),nU=H_("number"),G_=e=>e!==null&&typeof e=="object",MBe=e=>e===!0||e===!1,q0=e=>{if(z_(e)!=="object")return!1;const t=xP(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},PBe=bo("Date"),EBe=bo("File"),IBe=bo("Blob"),DBe=bo("FileList"),LBe=e=>G_(e)&&qa(e.pipe),$Be=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qa(e.append)&&((t=z_(e))==="formdata"||t==="object"&&qa(e.toString)&&e.toString()==="[object FormData]"))},RBe=bo("URLSearchParams"),[OBe,NBe,BBe,FBe]=["ReadableStream","Request","Response","Headers"].map(bo),VBe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function om(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ph(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function rU(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const gc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),aU=e=>!lg(e)&&e!==gc;function xT(){const{caseless:e}=aU(this)&&this||{},t={},n=(r,a)=>{const i=e&&rU(t,a)||a;q0(t[i])&&q0(r)?t[i]=xT(t[i],r):q0(r)?t[i]=xT({},r):ph(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&om(arguments[r],n);return t}const zBe=(e,t,n,{allOwnKeys:r}={})=>(om(t,(a,i)=>{n&&qa(a)?e[i]=eU(a,n):e[i]=a},{allOwnKeys:r}),e),HBe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GBe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},WBe=(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&xP(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},UBe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jBe=e=>{if(!e)return null;if(ph(e))return e;let t=e.length;if(!nU(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},KBe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&xP(Uint8Array)),YBe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},qBe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},XBe=bo("HTMLFormElement"),ZBe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),uN=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),JBe=bo("RegExp"),iU=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};om(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},QBe=e=>{iU(e,(t,n)=>{if(qa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(qa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},eFe=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ph(e)?r(e):r(String(e).split(t)),n},tFe=()=>{},nFe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,xS="abcdefghijklmnopqrstuvwxyz",cN="0123456789",oU={DIGIT:cN,ALPHA:xS,ALPHA_DIGIT:xS+xS.toUpperCase()+cN},rFe=(e=16,t=oU.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function aFe(e){return!!(e&&qa(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iFe=e=>{const t=new Array(10),n=(r,a)=>{if(G_(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=ph(r)?[]:{};return om(r,(o,s)=>{const l=n(o,a+1);!lg(l)&&(i[s]=l)}),t[a]=void 0,i}}return r};return n(e,0)},oFe=bo("AsyncFunction"),sFe=e=>e&&(G_(e)||qa(e))&&qa(e.then)&&qa(e.catch),sU=((e,t)=>e?setImmediate:t?((n,r)=>(gc.addEventListener("message",({source:a,data:i})=>{a===gc&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),gc.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",qa(gc.postMessage)),lFe=typeof queueMicrotask<"u"?queueMicrotask.bind(gc):typeof process<"u"&&process.nextTick||sU,Ue={isArray:ph,isArrayBuffer:tU,isBuffer:TBe,isFormData:$Be,isArrayBufferView:kBe,isString:ABe,isNumber:nU,isBoolean:MBe,isObject:G_,isPlainObject:q0,isReadableStream:OBe,isRequest:NBe,isResponse:BBe,isHeaders:FBe,isUndefined:lg,isDate:PBe,isFile:EBe,isBlob:IBe,isRegExp:JBe,isFunction:qa,isStream:LBe,isURLSearchParams:RBe,isTypedArray:KBe,isFileList:DBe,forEach:om,merge:xT,extend:zBe,trim:VBe,stripBOM:HBe,inherits:GBe,toFlatObject:WBe,kindOf:z_,kindOfTest:bo,endsWith:UBe,toArray:jBe,forEachEntry:YBe,matchAll:qBe,isHTMLForm:XBe,hasOwnProperty:uN,hasOwnProp:uN,reduceDescriptors:iU,freezeMethods:QBe,toObjectSet:eFe,toCamelCase:ZBe,noop:tFe,toFiniteNumber:nFe,findKey:rU,global:gc,isContextDefined:aU,ALPHABET:oU,generateString:rFe,isSpecCompliantForm:aFe,toJSONObject:iFe,isAsyncFn:oFe,isThenable:sFe,setImmediate:sU,asap:lFe};function Jt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}Ue.inherits(Jt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ue.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const lU=Jt.prototype,uU={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{uU[e]={value:e}});Object.defineProperties(Jt,uU);Object.defineProperty(lU,"isAxiosError",{value:!0});Jt.from=(e,t,n,r,a,i)=>{const o=Object.create(lU);return Ue.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Jt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const uFe=null;function CT(e){return Ue.isPlainObject(e)||Ue.isArray(e)}function cU(e){return Ue.endsWith(e,"[]")?e.slice(0,-2):e}function fN(e,t,n){return e?e.concat(t).map(function(a,i){return a=cU(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function cFe(e){return Ue.isArray(e)&&!e.some(CT)}const fFe=Ue.toFlatObject(Ue,{},null,function(t){return/^is[A-Z]/.test(t)});function W_(e,t,n){if(!Ue.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ue.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!Ue.isUndefined(g[v])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ue.isSpecCompliantForm(t);if(!Ue.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(Ue.isDate(p))return p.toISOString();if(!l&&Ue.isBlob(p))throw new Jt("Blob is not supported. Use a Buffer instead.");return Ue.isArrayBuffer(p)||Ue.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,g){let m=p;if(p&&!g&&typeof p=="object"){if(Ue.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(Ue.isArray(p)&&cFe(p)||(Ue.isFileList(p)||Ue.endsWith(v,"[]"))&&(m=Ue.toArray(p)))return v=cU(v),m.forEach(function(b,w){!(Ue.isUndefined(b)||b===null)&&t.append(o===!0?fN([v],w,i):o===null?v:v+"[]",u(b))}),!1}return CT(p)?!0:(t.append(fN(g,v,i),u(p)),!1)}const f=[],d=Object.assign(fFe,{defaultVisitor:c,convertValue:u,isVisitable:CT});function h(p,v){if(!Ue.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),Ue.forEach(p,function(m,_){(!(Ue.isUndefined(m)||m===null)&&a.call(t,m,Ue.isString(_)?_.trim():_,v,d))===!0&&h(m,v?v.concat(_):[_])}),f.pop()}}if(!Ue.isObject(e))throw new TypeError("data must be an object");return h(e),t}function dN(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function CP(e,t){this._pairs=[],e&&W_(e,this,t)}const fU=CP.prototype;fU.append=function(t,n){this._pairs.push([t,n])};fU.toString=function(t){const n=t?function(r){return t.call(this,r,dN)}:dN;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function dFe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dU(e,t,n){if(!t)return e;const r=n&&n.encode||dFe,a=n&&n.serialize;let i;if(a?i=a(t,n):i=Ue.isURLSearchParams(t)?t.toString():new CP(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class hFe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ue.forEach(this.handlers,function(r){r!==null&&t(r)})}}const hN=hFe,hU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pFe=typeof URLSearchParams<"u"?URLSearchParams:CP,vFe=typeof FormData<"u"?FormData:null,gFe=typeof Blob<"u"?Blob:null,mFe={isBrowser:!0,classes:{URLSearchParams:pFe,FormData:vFe,Blob:gFe},protocols:["http","https","file","blob","url","data"]},TP=typeof window<"u"&&typeof document<"u",yFe=(e=>TP&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),bFe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),_Fe=TP&&window.location.href||"http://localhost",wFe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:TP,hasStandardBrowserEnv:yFe,hasStandardBrowserWebWorkerEnv:bFe,origin:_Fe},Symbol.toStringTag,{value:"Module"})),Qi={...wFe,...mFe};function SFe(e,t){return W_(e,new Qi.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return Qi.isNode&&Ue.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function xFe(e){return Ue.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function CFe(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function pU(e){function t(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=n.length;return o=!o&&Ue.isArray(a)?a.length:o,l?(Ue.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!Ue.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&Ue.isArray(a[o])&&(a[o]=CFe(a[o])),!s)}if(Ue.isFormData(e)&&Ue.isFunction(e.entries)){const n={};return Ue.forEachEntry(e,(r,a)=>{t(xFe(r),a,n,0)}),n}return null}function TFe(e,t,n){if(Ue.isString(e))try{return(t||JSON.parse)(e),Ue.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const kP={transitional:hU,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=Ue.isObject(t);if(i&&Ue.isHTMLForm(t)&&(t=new FormData(t)),Ue.isFormData(t))return a?JSON.stringify(pU(t)):t;if(Ue.isArrayBuffer(t)||Ue.isBuffer(t)||Ue.isStream(t)||Ue.isFile(t)||Ue.isBlob(t)||Ue.isReadableStream(t))return t;if(Ue.isArrayBufferView(t))return t.buffer;if(Ue.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return SFe(t,this.formSerializer).toString();if((s=Ue.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return W_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),TFe(t)):t}],transformResponse:[function(t){const n=this.transitional||kP.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Ue.isResponse(t)||Ue.isReadableStream(t))return t;if(t&&Ue.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Jt.from(s,Jt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qi.classes.FormData,Blob:Qi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ue.forEach(["delete","get","head","post","put","patch"],e=>{kP.headers[e]={}});const AP=kP,kFe=Ue.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AFe=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&kFe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},pN=Symbol("internals");function tp(e){return e&&String(e).trim().toLowerCase()}function X0(e){return e===!1||e==null?e:Ue.isArray(e)?e.map(X0):String(e)}function MFe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const PFe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function CS(e,t,n,r,a){if(Ue.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!Ue.isString(t)){if(Ue.isString(r))return t.indexOf(r)!==-1;if(Ue.isRegExp(r))return r.test(t)}}function EFe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function IFe(e,t){const n=Ue.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class U_{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(s,l,u){const c=tp(l);if(!c)throw new Error("header name must be a non-empty string");const f=Ue.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=X0(s))}const o=(s,l)=>Ue.forEach(s,(u,c)=>i(u,c,l));if(Ue.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(Ue.isString(t)&&(t=t.trim())&&!PFe(t))o(AFe(t),n);else if(Ue.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=tp(t),t){const r=Ue.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return MFe(a);if(Ue.isFunction(n))return n.call(this,a,r);if(Ue.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=tp(t),t){const r=Ue.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||CS(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=tp(o),o){const s=Ue.findKey(r,o);s&&(!n||CS(r,r[s],s,n))&&(delete r[s],a=!0)}}return Ue.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||CS(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return Ue.forEach(this,(a,i)=>{const o=Ue.findKey(r,i);if(o){n[o]=X0(a),delete n[i];return}const s=t?EFe(i):String(i).trim();s!==i&&delete n[i],n[s]=X0(a),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ue.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&Ue.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[pN]=this[pN]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=tp(o);r[s]||(IFe(a,o),r[s]=!0)}return Ue.isArray(t)?t.forEach(i):i(t),this}}U_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ue.reduceDescriptors(U_.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ue.freezeMethods(U_);const eo=U_;function TS(e,t){const n=this||AP,r=t||n,a=eo.from(r.headers);let i=r.data;return Ue.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function vU(e){return!!(e&&e.__CANCEL__)}function vh(e,t,n){Jt.call(this,e??"canceled",Jt.ERR_CANCELED,t,n),this.name="CanceledError"}Ue.inherits(vh,Jt,{__CANCEL__:!0});function gU(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Jt("Request failed with status code "+n.status,[Jt.ERR_BAD_REQUEST,Jt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function DFe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LFe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function $Fe(e,t){let n=0,r=1e3/t,a,i;const o=(u,c=Date.now())=>{n=c,a=null,i&&(clearTimeout(i),i=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-f)))},()=>a&&o(a)]}const Ub=(e,t,n=3)=>{let r=0;const a=LFe(50,250);return $Fe(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-r,u=a(l),c=o<=s;r=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},vN=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},gN=e=>(...t)=>Ue.asap(()=>e(...t)),RFe=Qi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=Ue.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),OFe=Qi.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];Ue.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Ue.isString(r)&&o.push("path="+r),Ue.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function NFe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function BFe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function mU(e,t){return e&&!NFe(t)?BFe(e,t):t}const mN=e=>e instanceof eo?{...e}:e;function Uc(e,t){t=t||{};const n={};function r(u,c,f){return Ue.isPlainObject(u)&&Ue.isPlainObject(c)?Ue.merge.call({caseless:f},u,c):Ue.isPlainObject(c)?Ue.merge({},c):Ue.isArray(c)?c.slice():c}function a(u,c,f){if(Ue.isUndefined(c)){if(!Ue.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!Ue.isUndefined(c))return r(void 0,c)}function o(u,c){if(Ue.isUndefined(c)){if(!Ue.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(mN(u),mN(c),!0)};return Ue.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||a,d=f(e[c],t[c],c);Ue.isUndefined(d)&&f!==s||(n[c]=d)}),n}const yU=e=>{const t=Uc({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=eo.from(o),t.url=dU(mU(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ue.isFormData(n)){if(Qi.hasStandardBrowserEnv||Qi.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Qi.hasStandardBrowserEnv&&(r&&Ue.isFunction(r)&&(r=r(t)),r||r!==!1&&RFe(t.url))){const u=a&&i&&OFe.read(i);u&&o.set(a,u)}return t},FFe=typeof XMLHttpRequest<"u",VFe=FFe&&function(e){return new Promise(function(n,r){const a=yU(e);let i=a.data;const o=eo.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,d,h,p;function v(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function m(){if(!g)return;const b=eo.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};gU(function(C){n(C),v()},function(C){r(C),v()},S),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(r(new Jt("Request aborted",Jt.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new Jt("Network Error",Jt.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||hU;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new Jt(w,S.clarifyTimeoutError?Jt.ETIMEDOUT:Jt.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&Ue.forEach(o.toJSON(),function(w,S){g.setRequestHeader(S,w)}),Ue.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([d,p]=Ub(u,!0),g.addEventListener("progress",d)),l&&g.upload&&([f,h]=Ub(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(c=b=>{g&&(r(!b||b.type?new vh(null,e,g):b),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const _=DFe(a.url);if(_&&Qi.protocols.indexOf(_)===-1){r(new Jt("Unsupported protocol "+_+":",Jt.ERR_BAD_REQUEST,e));return}g.send(i||null)})},zFe=(e,t)=>{let n=new AbortController,r;const a=function(l){if(!r){r=!0,o();const u=l instanceof Error?l:this.reason;n.abort(u instanceof Jt?u:new vh(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{a(new Jt(`timeout ${t} of ms exceeded`,Jt.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",a):l.unsubscribe(a))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",a));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{i&&clearTimeout(i),i=null}]},HFe=zFe,GFe=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},WFe=async function*(e,t,n){for await(const r of e)yield*GFe(ArrayBuffer.isView(r)?r:await n(String(r)),t)},yN=(e,t,n,r,a)=>{const i=WFe(e,t,a);let o=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await i.next();if(c){l(),u.close();return}let d=f.byteLength;if(n){let h=o+=d;n(h)}u.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},j_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",bU=j_&&typeof ReadableStream=="function",TT=j_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_U=(e,...t)=>{try{return!!e(...t)}catch{return!1}},UFe=bU&&_U(()=>{let e=!1;const t=new Request(Qi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),bN=64*1024,kT=bU&&_U(()=>Ue.isReadableStream(new Response("").body)),jb={stream:kT&&(e=>e.body)};j_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!jb[t]&&(jb[t]=Ue.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Jt(`Response type '${t}' is not supported`,Jt.ERR_NOT_SUPPORT,r)})})})(new Response);const jFe=async e=>{if(e==null)return 0;if(Ue.isBlob(e))return e.size;if(Ue.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Ue.isArrayBufferView(e)||Ue.isArrayBuffer(e))return e.byteLength;if(Ue.isURLSearchParams(e)&&(e=e+""),Ue.isString(e))return(await TT(e)).byteLength},KFe=async(e,t)=>{const n=Ue.toFiniteNumber(e.getContentLength());return n??jFe(t)},YFe=j_&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=yU(e);u=u?(u+"").toLowerCase():"text";let[h,p]=a||i||o?HFe([a,i],o):[],v,g;const m=()=>{!v&&setTimeout(()=>{h&&h.unsubscribe()}),v=!0};let _;try{if(l&&UFe&&n!=="get"&&n!=="head"&&(_=await KFe(c,r))!==0){let x=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(Ue.isFormData(r)&&(C=x.headers.get("content-type"))&&c.setContentType(C),x.body){const[T,k]=vN(_,Ub(gN(l)));r=yN(x.body,bN,T,k,TT)}}Ue.isString(f)||(f=f?"include":"omit"),g=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f});let b=await fetch(g);const w=kT&&(u==="stream"||u==="response");if(kT&&(s||w)){const x={};["status","statusText","headers"].forEach(A=>{x[A]=b[A]});const C=Ue.toFiniteNumber(b.headers.get("content-length")),[T,k]=s&&vN(C,Ub(gN(s),!0))||[];b=new Response(yN(b.body,bN,T,()=>{k&&k(),w&&m()},TT),x)}u=u||"text";let S=await jb[Ue.findKey(jb,u)||"text"](b,e);return!w&&m(),p&&p(),await new Promise((x,C)=>{gU(x,C,{data:S,headers:eo.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:g})})}catch(b){throw m(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new Jt("Network Error",Jt.ERR_NETWORK,e,g),{cause:b.cause||b}):Jt.from(b,b&&b.code,e,g)}}),AT={http:uFe,xhr:VFe,fetch:YFe};Ue.forEach(AT,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _N=e=>`- ${e}`,qFe=e=>Ue.isFunction(e)||e===null||e===!1,wU={getAdapter:e=>{e=Ue.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let o;if(r=n,!qFe(n)&&(r=AT[(o=String(n)).toLowerCase()],r===void 0))throw new Jt(`Unknown adapter '${o}'`);if(r)break;a[o||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
`+i.map(_N).join(`
`):" "+_N(i[0]):"as no adapter specified";throw new Jt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:AT};function kS(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vh(null,e)}function wN(e){return kS(e),e.headers=eo.from(e.headers),e.data=TS.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wU.getAdapter(e.adapter||AP.adapter)(e).then(function(r){return kS(e),r.data=TS.call(e,e.transformResponse,r),r.headers=eo.from(r.headers),r},function(r){return vU(r)||(kS(e),r&&r.response&&(r.response.data=TS.call(e,e.transformResponse,r.response),r.response.headers=eo.from(r.response.headers))),Promise.reject(r)})}const SU="1.7.4",MP={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{MP[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const SN={};MP.transitional=function(t,n,r){function a(i,o){return"[Axios v"+SU+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(t===!1)throw new Jt(a(o," has been removed"+(n?" in "+n:"")),Jt.ERR_DEPRECATED);return n&&!SN[o]&&(SN[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,s):!0}};function XFe(e,t,n){if(typeof e!="object")throw new Jt("options must be an object",Jt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Jt("option "+i+" must be "+l,Jt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Jt("Unknown option "+i,Jt.ERR_BAD_OPTION)}}const MT={assertOptions:XFe,validators:MP},nl=MT.validators;class Kb{constructor(t){this.defaults=t,this.interceptors={request:new hN,response:new hN}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Uc(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&MT.assertOptions(r,{silentJSONParsing:nl.transitional(nl.boolean),forcedJSONParsing:nl.transitional(nl.boolean),clarifyTimeoutError:nl.transitional(nl.boolean)},!1),a!=null&&(Ue.isFunction(a)?n.paramsSerializer={serialize:a}:MT.assertOptions(a,{encode:nl.function,serialize:nl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&Ue.merge(i.common,i[n.method]);i&&Ue.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=eo.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[wN.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const p=s[f++],v=s[f++];try{h=p(h)}catch(g){v.call(this,g);break}}try{c=wN.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Uc(this.defaults,t);const n=mU(t.baseURL,t.url);return dU(n,t.params,t.paramsSerializer)}}Ue.forEach(["delete","get","head","options"],function(t){Kb.prototype[t]=function(n,r){return this.request(Uc(r||{},{method:t,url:n,data:(r||{}).data}))}});Ue.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,s){return this.request(Uc(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Kb.prototype[t]=n(),Kb.prototype[t+"Form"]=n(!0)});const Z0=Kb;class PP{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,s){r.reason||(r.reason=new vh(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new PP(function(a){t=a}),cancel:t}}}const ZFe=PP;function JFe(e){return function(n){return e.apply(null,n)}}function QFe(e){return Ue.isObject(e)&&e.isAxiosError===!0}const PT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(PT).forEach(([e,t])=>{PT[t]=e});const e8e=PT;function xU(e){const t=new Z0(e),n=eU(Z0.prototype.request,t);return Ue.extend(n,Z0.prototype,t,{allOwnKeys:!0}),Ue.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return xU(Uc(e,a))},n}const lr=xU(AP);lr.Axios=Z0;lr.CanceledError=vh;lr.CancelToken=ZFe;lr.isCancel=vU;lr.VERSION=SU;lr.toFormData=W_;lr.AxiosError=Jt;lr.Cancel=lr.CanceledError;lr.all=function(t){return Promise.all(t)};lr.spread=JFe;lr.isAxiosError=QFe;lr.mergeConfig=Uc;lr.AxiosHeaders=eo;lr.formToJSON=e=>pU(Ue.isHTMLForm(e)?new FormData(e):e);lr.getAdapter=wU.getAdapter;lr.HttpStatusCode=e8e;lr.default=lr;const Zo=lr;Zo.defaults.baseURL="http://"+window.location.host;Zo.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";Zo.defaults.withCredentials=!0;Zo.defaults.changeOrigin=!0;Zo.defaults.headers.post["Access-Control-Allow-Origin-Type"]="*";Zo.defaults.timeout=3e5;Zo.interceptors.request.use(e=>{const t="test";return e.headers.token=t,e},e=>Promise.error(e));Zo.interceptors.response.use(e=>e.status===200?(e.headers.token!=null&&e.headers.token!=""&&localStorage.setItem("token",e.headers.token),Promise.resolve(e)):Promise.reject(e),e=>{console.log(e),e.response.data.status===-2?(wT.error("登陆超时请重新登录!"),bA.push("/")):e.response.data.status===-1?(wT.error("请登陆!"),bA.push("/")):alert(JSON.stringify(e),"请求异常",{confirmButtonText:"确定",callback:t=>{console.log(t)}})});const t8e={post(e,t){return new Promise((n,r,a)=>{Zo({method:"post",url:e,data:t,crossDomain:!0,headers:{"Content-Type":"application/json;charset=UTF-8"},responseType:a==null||a==""?"json":a}).then(i=>{n(i.data)}).catch(i=>{r(i)})})},get(e,t){return new Promise((n,r,a)=>{Zo({method:"get",url:e,params:t,crossDomain:!0,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8",withCredentials:!0},responseType:"json"}).then(i=>{n(i)}).catch(i=>{r(i)})})}},{get:mr,post:EP}=t8e,n8e=e=>EP("/DataShowScreen/ScreenData/getOpenShowStation",e),r8e=e=>EP("/DataShowScreen/ScreenData/getOpenShowEquip",e),a8e=e=>mr("/PrecisePath/comprehensiveData/getGantryInfoBySubComNo",e),IP=()=>mr("/PrecisePath/precisePath/getGantries"),CU=e=>mr("/PrecisePath/precisePath/getCheckData",e),TU=e=>EP("/PrecisePath/auditResult",e),kU=e=>mr("/PrecisePath/precisePath/detail?passId="+e),i8e=()=>mr("/PrecisePath/comprehensiveData/getOrgInfo"),o8e=e=>mr(`/PrecisePath/comprehensiveData/getSplitStaDataByGantryId?gantryId=${e}`),s8e=()=>mr("/PrecisePath/GscpDetail/stat"),l8e=()=>mr("/PrecisePath/GscpDetail/getCarTypeStat"),u8e=()=>mr("/PrecisePath/GscpDetail/getLastSevenStat"),c8e=()=>mr("/PrecisePath/GscpDetail/getNowKeHuoPercentage"),DP=()=>mr("/PrecisePath/GscpDetail/getLastSevenKeHuo"),f8e=()=>mr("/PrecisePath/GscpDetail/getSiteCodeRanking"),d8e=e=>mr("/PrecisePath/precisePath/getDataAuDiTing",e),h8e=()=>mr("/PrecisePath/precisePath/getText"),p8e=()=>mr("/PrecisePath/PathInfo/getDataInfo"),v8e=()=>mr("/PrecisePath/PathInfo/getPointData"),g8e=()=>mr("/PrecisePath/PathInfo/getPointDataTop"),m8e=()=>mr("/PrecisePath/PathInfo/getNotSamePointData"),y8e=()=>mr("/PrecisePath/PathInfo/getNotSameMoneyData");/*! *****************************************************************************
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 ET=function(e,t){return ET=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},ET(e,t)};function De(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ET(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var b8e=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),_8e=function(){function e(){this.browser=new b8e,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}(),Ku=new _8e;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ku.wxa=!0,Ku.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ku.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Ku.node=!0,Ku.svgSupported=!0):w8e(navigator.userAgent,Ku);function w8e(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}const rn=Ku;var LP=12,AU="sans-serif",ql=LP+"px "+AU,S8e=20,x8e=100,C8e="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function T8e(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),a=(e.charCodeAt(n)-S8e)/x8e;t[r]=a}return t}var k8e=T8e(C8e),uo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=uo.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||ql),e.measureText(n);n=n||"",r=r||ql;var i=/((?:\d+)?\.?\d*)px/.exec(r),o=i&&+i[1]||LP,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=k8e[n[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function MU(e){for(var t in uo)e[t]&&(uo[t]=e[t])}var PU=Mi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),EU=Mi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),gh=Object.prototype.toString,K_=Array.prototype,A8e=K_.forEach,M8e=K_.filter,$P=K_.slice,P8e=K_.map,xN=(function(){}).constructor,gy=xN?xN.prototype:null,RP="__proto__",E8e=2311;function OP(){return E8e++}function Y_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function _t(e){if(e==null||typeof e!="object")return e;var t=e,n=gh.call(e);if(n==="[object Array]"){if(!_d(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=_t(e[r])}}else if(EU[n]){if(!_d(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var r=0,a=e.length;r<a;r++)t[r]=e[r]}}}else if(!PU[n]&&!_d(e)&&!jc(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==RP&&(t[o]=_t(e[o]))}return t}function Rt(e,t,n){if(!bt(t)||!bt(e))return n?_t(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==RP){var a=e[r],i=t[r];bt(i)&&bt(a)&&!Ge(i)&&!Ge(a)&&!jc(i)&&!jc(a)&&!IT(i)&&!IT(a)&&!_d(i)&&!_d(a)?Rt(a,i,n):(n||!(r in e))&&(e[r]=_t(t[r]))}return e}function q_(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=Rt(n,e[r],t);return n}function Be(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==RP&&(e[n]=t[n]);return e}function mt(e,t,n){for(var r=Ut(t),a=0;a<r.length;a++){var i=r[a];(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}var I8e=uo.createCanvas;function Ft(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function NP(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(e.prototype[a]=n[a]);e.prototype.constructor=e,e.superClass=t}function Yn(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else mt(e,t,n)}function Or(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function te(e,t,n){if(e&&t)if(e.forEach&&e.forEach===A8e)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function We(e,t,n){if(!e)return[];if(!t)return X_(e);if(e.map&&e.map===P8e)return e.map(t,n);for(var r=[],a=0,i=e.length;a<i;a++)r.push(t.call(n,e[a],a,e));return r}function Mi(e,t,n,r){if(e&&t){for(var a=0,i=e.length;a<i;a++)n=t.call(r,n,e[a],a,e);return n}}function hn(e,t,n){if(!e)return[];if(!t)return X_(e);if(e.filter&&e.filter===M8e)return e.filter(t,n);for(var r=[],a=0,i=e.length;a<i;a++)t.call(n,e[a],a,e)&&r.push(e[a]);return r}function IU(e,t,n){if(e&&t){for(var r=0,a=e.length;r<a;r++)if(t.call(n,e[r],r,e))return e[r]}}function Ut(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function D8e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat($P.call(arguments)))}}var it=gy&&ht(gy.bind)?gy.call.bind(gy.bind):D8e;function Pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat($P.call(arguments)))}}function Ge(e){return Array.isArray?Array.isArray(e):gh.call(e)==="[object Array]"}function ht(e){return typeof e=="function"}function rt(e){return typeof e=="string"}function Yb(e){return gh.call(e)==="[object String]"}function an(e){return typeof e=="number"}function bt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function IT(e){return!!PU[gh.call(e)]}function ha(e){return!!EU[gh.call(e)]}function jc(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function sm(e){return e.colorStops!=null}function DU(e){return e.image!=null}function LU(e){return gh.call(e)==="[object RegExp]"}function qd(e){return e!==e}function fr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function Et(e,t){return e??t}function to(e,t,n){return e??t??n}function X_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return $P.apply(e,t)}function Z_(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 qr(e,t){if(!e)throw new Error(t)}function yi(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var $U="__ec_primitive__";function ug(e){e[$U]=!0}function _d(e){return e[$U]}var L8e=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Ut(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),RU=typeof Map=="function";function $8e(){return RU?new Map:new L8e}var OU=function(){function e(t){var n=Ge(t);this.data=$8e();var r=this;t instanceof e?t.each(a):t&&te(t,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}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,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,a){t.call(n,r,a)})},e.prototype.keys=function(){var t=this.data.keys();return RU?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ut(e){return new OU(e)}function cg(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var a=e.length,r=0;r<t.length;r++)n[r+a]=t[r];return n}function lm(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Be(n,t),n}function BP(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ot(e,t){return e.hasOwnProperty(t)}function jn(){}var lv=180/Math.PI;const R8e=Object.freeze(Object.defineProperty({__proto__:null,HashMap:OU,RADIAN_TO_DEGREE:lv,assert:qr,bind:it,clone:_t,concatArray:cg,createCanvas:I8e,createHashMap:ut,createObject:lm,curry:Pt,defaults:mt,disableUserSelect:BP,each:te,eqNaN:qd,extend:Be,filter:hn,find:IU,guid:OP,hasOwn:ot,indexOf:Ft,inherits:NP,isArray:Ge,isArrayLike:Or,isBuiltInObject:IT,isDom:jc,isFunction:ht,isGradientObject:sm,isImagePatternObject:DU,isNumber:an,isObject:bt,isPrimitive:_d,isRegExp:LU,isString:rt,isStringSafe:Yb,isTypedArray:ha,keys:Ut,logError:Y_,map:We,merge:Rt,mergeAll:q_,mixin:Yn,noop:jn,normalizeCssArray:Z_,reduce:Mi,retrieve:fr,retrieve2:Et,retrieve3:to,setAsPrimitive:ug,slice:X_,trim:yi},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
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 DT=function(e,t){return DT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},DT(e,t)};function Rn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");DT(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function cu(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Hr(e,t){return e[0]=t[0],e[1]=t[1],e}function Wo(e){return[e[0],e[1]]}function NU(e,t,n){return e[0]=t,e[1]=n,e}function LT(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function qb(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Cl(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function fg(e){return Math.sqrt(FP(e))}var O8e=fg;function FP(e){return e[0]*e[0]+e[1]*e[1]}var N8e=FP;function B8e(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function F8e(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function V8e(e,t){return e[0]*t[0]+e[1]*t[1]}function uv(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function lf(e,t){var n=fg(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Xb(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var xs=Xb;function BU(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ol=BU;function z8e(e,t){return e[0]=-t[0],e[1]=-t[1],e}function cv(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function xr(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a+n[4],e[1]=n[1]*r+n[3]*a+n[5],e}function Cs(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ts(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const H8e=Object.freeze(Object.defineProperty({__proto__:null,add:LT,applyTransform:xr,clone:Wo,copy:Hr,create:cu,dist:xs,distSquare:Ol,distance:Xb,distanceSquare:BU,div:F8e,dot:V8e,len:fg,lenSquare:FP,length:O8e,lengthSquare:N8e,lerp:cv,max:Ts,min:Cs,mul:B8e,negate:z8e,normalize:lf,scale:uv,scaleAndAdd:qb,set:NU,sub:Cl},Symbol.toStringTag,{value:"Module"}));var Tf=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),G8e=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 n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Tf(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var r=t.offsetX,a=t.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,t),this.handler.dispatchToElement(new Tf(n,t),"drag",t.event);var s=this.handler.findHover(r,a,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Tf(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Tf(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Tf(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Tf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const W8e=G8e;var U8e=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!t)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===r)return this;var l={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(n){if(r[t]){for(var a=[],i=0,o=r[t].length;i<o;i++)r[t][i].h!==n&&a.push(r[t][i]);r[t]=a}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},e.prototype.trigger=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=n.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=n.length,s=n[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}();const Ei=U8e;var j8e=Math.log(2);function $T(e,t,n,r,a,i){var o=r+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/j8e);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&a||(f+=(h%2?-1:1)*e[n][d]*$T(e,t-1,c,u,a|p,i),h++)}return i[o]=f,f}function CN(e,t){var n=[[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]]],r={},a=$T(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*$T(n,7,o===0?1:0,1<<o,1<<s,r)/a*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var TN="___zrEVENTSAVED",AS=[];function K8e(e,t,n,r,a){return RT(AS,t,r,a,!0)&&RT(e,n,AS[0],AS[1])}function RT(e,t,n,r,a){if(t.getBoundingClientRect&&rn.domSupported&&!FU(t)){var i=t[TN]||(t[TN]={}),o=Y8e(t,i),s=q8e(o,i,a);if(s)return s(e,n,r),!0}return!1}function Y8e(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),n.push(o)}return n}function q8e(e,t,n){for(var r=n?"invTrans":"trans",a=t[r],i=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&&i&&d===i[f]&&h===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[r]=n?CN(s,o):CN(o,s))}function FU(e){return e.nodeName.toUpperCase()==="CANVAS"}var X8e=/([&<>"'])/g,Z8e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Wr(e){return e==null?"":(e+"").replace(X8e,function(t,n){return Z8e[n]})}var J8e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,MS=[],Q8e=rn.browser.firefox&&+rn.browser.version.split(".")[0]<39;function OT(e,t,n,r){return n=n||{},r?kN(e,t,n):Q8e&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):kN(e,t,n),n}function kN(e,t,n){if(rn.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(FU(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(RT(MS,e,r,a)){n.zrX=MS[0],n.zrY=MS[1];return}}n.zrX=n.zrY=0}function VP(e){return e||window.event}function li(e,t,n){if(t=VP(t),t.zrX!=null)return t;var r=t.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&OT(e,o,t,n)}else{OT(e,t,t,n);var i=eVe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&J8e.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function eVe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function NT(e,t,n,r){e.addEventListener(t,n,r)}function tVe(e,t,n,r){e.removeEventListener(t,n,r)}var Os=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function AN(e){return e.which===2||e.which===3}var nVe=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var a=t.touches;if(a){for(var i={points:[],touches:[],target:n,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=OT(r,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var n in PS)if(PS.hasOwnProperty(n)){var r=PS[n](this._track,t);if(r)return r}},e}();function MN(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function rVe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var PS={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,a=(e[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=MN(r)/MN(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=rVe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ia(){return[1,0,0,1,0,0]}function um(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function J_(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 Uo(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function co(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function fu(e,t,n,r){r===void 0&&(r=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),f=Math.cos(n);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=i*f+l*c,e[3]=-i*c+f*l,e[4]=f*(o-r[0])+c*(u-r[1])+r[0],e[5]=f*(u-r[1])-c*(o-r[0])+r[1],e}function Q_(e,t,n){var r=n[0],a=n[1];return e[0]=t[0]*r,e[1]=t[1]*a,e[2]=t[2]*r,e[3]=t[3]*a,e[4]=t[4]*r,e[5]=t[5]*a,e}function uf(e,t){var n=t[0],r=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=n*o-i*r;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*a)*l,e[5]=(i*a-n*s)*l,e):null}function VU(e){var t=Ia();return J_(t,e),t}const aVe=Object.freeze(Object.defineProperty({__proto__:null,clone:VU,copy:J_,create:Ia,identity:um,invert:uf,mul:Uo,rotate:fu,scale:Q_,translate:co},Symbol.toStringTag,{value:"Module"}));var iVe=function(){function e(t,n){this.x=t||0,this.y=n||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,n){return this.x=t,this.y=n,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,n){this.x+=t.x*n,this.y+=t.y*n},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 n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+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,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.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,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}();const Ot=iVe;var my=Math.min,yy=Math.max,wu=new Ot,Su=new Ot,xu=new Ot,Cu=new Ot,np=new Ot,rp=new Ot,oVe=function(){function e(t,n,r,a){r<0&&(t=t+r,r=-r),a<0&&(n=n+a,a=-a),this.x=t,this.y=n,this.width=r,this.height=a}return e.prototype.union=function(t){var n=my(t.x,this.x),r=my(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=yy(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=yy(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,a=t.height/n.height,i=Ia();return co(i,i,[-n.x,-n.y]),Q_(i,i,[r,a]),co(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(n){var h=1/0,p=0,v=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-c),_=Math.abs(f-o),b=Math.min(v,g),w=Math.min(m,_);i<l||u<a?b>p&&(p=b,v<g?Ot.set(rp,-v,0):Ot.set(rp,g,0)):b<h&&(h=b,v<g?Ot.set(np,v,0):Ot.set(np,-g,0)),s<c||f<o?w>p&&(p=w,m<_?Ot.set(rp,0,-m):Ot.set(rp,0,_)):b<h&&(h=b,m<_?Ot.set(np,0,m):Ot.set(np,0,-_))}return n&&Ot.copy(n,d?np:rp),d},e.prototype.contain=function(t,n){var r=this;return t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.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,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];t.x=n.x*a+o,t.y=n.y*i+s,t.width=n.width*a,t.height=n.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}wu.x=xu.x=n.x,wu.y=Cu.y=n.y,Su.x=Cu.x=n.x+n.width,Su.y=xu.y=n.y+n.height,wu.transform(r),Cu.transform(r),Su.transform(r),xu.transform(r),t.x=my(wu.x,Su.x,xu.x,Cu.x),t.y=my(wu.y,Su.y,xu.y,Cu.y);var l=yy(wu.x,Su.x,xu.x,Cu.x),u=yy(wu.y,Su.y,xu.y,Cu.y);t.width=l-t.x,t.height=u-t.y},e}();const Nt=oVe;var zU="silent";function sVe(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:lVe}}function lVe(){Os(this.event)}var uVe=function(e){Rn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ei),ap=function(){function e(t,n){this.x=t,this.y=n}return e}(),cVe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ES=new Nt(0,0,0,0),HU=function(e){Rn(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new ap(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new uVe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new W8e(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(te(cVe,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=GU(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new ap(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new ap(0,0)},t.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=sVe(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new ap(n,r);if(PN(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Nt(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(ES.copy(d.getBoundingRect()),d.transform&&ES.applyTransform(d.transform),ES.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<v;m+=p){var _=n+g*Math.cos(m),b=r+g*Math.sin(m);if(PN(s,o,_,b,a),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new nVe);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var s=new ap;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Ei);te(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){HU.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=GU(this,n,r),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.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||xs(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function fVe(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(a=!0);var s=r.__hostTarget;r=s||r.parent}return a?zU:!0}return!1}function PN(e,t,n,r,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=fVe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==zU)){t.target=o;break}}}function GU(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const dVe=HU;var WU=32,ip=7;function hVe(e){for(var t=0;e>=WU;)t|=e&1,e>>=1;return e+t}function EN(e,t,n,r){var a=t+1;if(a===n)return 1;if(r(e[a++],e[t])<0){for(;a<n&&r(e[a],e[a-1])<0;)a++;pVe(e,t,a)}else for(;a<n&&r(e[a],e[a-1])>=0;)a++;return a-t}function pVe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function IN(e,t,n,r,a){for(r===t&&r++;r<n;r++){for(var i=e[r],o=t,s=r,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=r-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]=i}}function IS(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])>0){for(s=r-a;l<s&&i(e,t[n+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[n+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[n+c])>0?o=c+1:l=c}return l}function DS(e,t,n,r,a,i){var o=0,s=0,l=1;if(i(e,t[n+a])<0){for(s=a+1;l<s&&i(e,t[n+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l<s&&i(e,t[n+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[n+c])<0?l=c:o=c+1}return l}function vVe(e,t){var n=ip,r,a,i=0,o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=r[h],v=a[h],g=r[h+1],m=a[h+1];a[h]=v+m,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var _=DS(e[g],e,p,v,0,t);p+=_,v-=_,v!==0&&(m=IS(e[p+v-1],e,g,m,m-1,t),m!==0&&(v<=m?f(p,v,g,m):d(p,v,g,m)))}function f(h,p,v,g){var m=0;for(m=0;m<p;m++)o[m]=e[h+m];var _=0,b=v,w=h;if(e[w++]=e[b++],--g===0){for(m=0;m<p;m++)e[w+m]=o[_+m];return}if(p===1){for(m=0;m<g;m++)e[w+m]=e[b+m];e[w+g]=o[_];return}for(var S=n,x,C,T;;){x=0,C=0,T=!1;do if(t(e[b],o[_])<0){if(e[w++]=e[b++],C++,x=0,--g===0){T=!0;break}}else if(e[w++]=o[_++],x++,C=0,--p===1){T=!0;break}while((x|C)<S);if(T)break;do{if(x=DS(e[b],o,_,p,0,t),x!==0){for(m=0;m<x;m++)e[w+m]=o[_+m];if(w+=x,_+=x,p-=x,p<=1){T=!0;break}}if(e[w++]=e[b++],--g===0){T=!0;break}if(C=IS(o[_],e,b,g,0,t),C!==0){for(m=0;m<C;m++)e[w+m]=e[b+m];if(w+=C,b+=C,g-=C,g===0){T=!0;break}}if(e[w++]=o[_++],--p===1){T=!0;break}S--}while(x>=ip||C>=ip);if(T)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),p===1){for(m=0;m<g;m++)e[w+m]=e[b+m];e[w+g]=o[_]}else{if(p===0)throw new Error;for(m=0;m<p;m++)e[w+m]=o[_+m]}}function d(h,p,v,g){var m=0;for(m=0;m<g;m++)o[m]=e[v+m];var _=h+p-1,b=g-1,w=v+g-1,S=0,x=0;if(e[w--]=e[_--],--p===0){for(S=w-(g-1),m=0;m<g;m++)e[S+m]=o[m];return}if(g===1){for(w-=p,_-=p,x=w+1,S=_+1,m=p-1;m>=0;m--)e[x+m]=e[S+m];e[w]=o[b];return}for(var C=n;;){var T=0,k=0,A=!1;do if(t(o[b],e[_])<0){if(e[w--]=e[_--],T++,k=0,--p===0){A=!0;break}}else if(e[w--]=o[b--],k++,T=0,--g===1){A=!0;break}while((T|k)<C);if(A)break;do{if(T=p-DS(o[b],e,h,p,p-1,t),T!==0){for(w-=T,_-=T,p-=T,x=w+1,S=_+1,m=T-1;m>=0;m--)e[x+m]=e[S+m];if(p===0){A=!0;break}}if(e[w--]=o[b--],--g===1){A=!0;break}if(k=g-IS(e[_],o,0,g,g-1,t),k!==0){for(w-=k,b-=k,g-=k,x=w+1,S=b+1,m=0;m<k;m++)e[x+m]=o[S+m];if(g<=1){A=!0;break}}if(e[w--]=e[_--],--p===0){A=!0;break}C--}while(T>=ip||k>=ip);if(A)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),g===1){for(w-=p,_-=p,x=w+1,S=_+1,m=p-1;m>=0;m--)e[x+m]=e[S+m];e[w]=o[b]}else{if(g===0)throw new Error;for(S=w-(g-1),m=0;m<g;m++)e[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function J0(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var i=0;if(a<WU){i=EN(e,n,r,t),IN(e,n,r,n+i,t);return}var o=vVe(e,t),s=hVe(a);do{if(i=EN(e,n,r,t),i<s){var l=a;l>s&&(l=s),IN(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Ba=1,$p=2,Zf=4,DN=!1;function LS(){DN||(DN=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function LN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var gVe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=LN}return e.prototype.traverse=function(t,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(n),r},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,t);r.length=this._displayListLen,J0(r,LN)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ba),this._updateAndAddDisplayable(u,n,r)}t.__dirty=0}else{var c=t;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(LS(),c.z=0),isNaN(c.z2)&&(LS(),c.z2=0),isNaN(c.zlevel)&&(LS(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},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 n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var a=Ft(this._roots,t);a>=0&&this._roots.splice(a,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 mVe=gVe;var UU;UU=rn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const BT=UU;var Q0={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,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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-Q0.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?Q0.bounceIn(e*2)*.5:Q0.bounceOut(e*2-1)*.5+.5}};const jU=Q0;var by=Math.pow,Nl=Math.sqrt,Zb=1e-8,KU=1e-4,$N=Nl(3),_y=1/3,$o=cu(),hi=cu(),wd=cu();function Tl(e){return e>-Zb&&e<Zb}function YU(e){return e>Zb||e<-Zb}function cr(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function RN(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function Jb(e,t,n,r,a,i){var o=r+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Tl(c)&&Tl(f))if(Tl(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var v=f*f-4*c*d;if(Tl(v)){var g=f/c,p=-s/o+g,m=-g/2;p>=0&&p<=1&&(i[h++]=p),m>=0&&m<=1&&(i[h++]=m)}else if(v>0){var _=Nl(v),b=c*s+1.5*o*(-f+_),w=c*s+1.5*o*(-f-_);b<0?b=-by(-b,_y):b=by(b,_y),w<0?w=-by(-w,_y):w=by(w,_y);var p=(-s-(b+w))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var S=(2*c*s-3*o*f)/(2*Nl(c*c*c)),x=Math.acos(S)/3,C=Nl(c),T=Math.cos(x),p=(-s-2*C*T)/(3*o),m=(-s+C*(T+$N*Math.sin(x)))/(3*o),k=(-s+C*(T-$N*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[h++]=p),m>=0&&m<=1&&(i[h++]=m),k>=0&&k<=1&&(i[h++]=k)}}return h}function qU(e,t,n,r,a){var i=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Tl(o)){if(YU(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Tl(c))a[0]=-i/(2*o);else if(c>0){var f=Nl(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function Xl(e,t,n,r,a,i){var o=(t-e)*a+e,s=(n-t)*a+t,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function XU(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,m;$o[0]=l,$o[1]=u;for(var _=0;_<1;_+=.05)hi[0]=cr(e,n,a,o,_),hi[1]=cr(t,r,i,s,_),g=Ol($o,hi),g<h&&(f=_,h=g);h=1/0;for(var b=0;b<32&&!(d<KU);b++)p=f-d,v=f+d,hi[0]=cr(e,n,a,o,p),hi[1]=cr(t,r,i,s,p),g=Ol(hi,$o),p>=0&&g<h?(f=p,h=g):(wd[0]=cr(e,n,a,o,v),wd[1]=cr(t,r,i,s,v),m=Ol(wd,$o),v<=1&&m<h?(f=v,h=m):d*=.5);return c&&(c[0]=cr(e,n,a,o,f),c[1]=cr(t,r,i,s,f)),Nl(h)}function yVe(e,t,n,r,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,v=cr(e,n,a,o,p),g=cr(t,r,i,s,p),m=v-u,_=g-c;f+=Math.sqrt(m*m+_*_),u=v,c=g}return f}function _r(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function FT(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function bVe(e,t,n,r,a){var i=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(Tl(i)){if(YU(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Tl(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Nl(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function ZU(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function dg(e,t,n,r,a){var i=(t-e)*r+e,o=(n-t)*r+t,s=(o-i)*r+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function JU(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;$o[0]=o,$o[1]=s;for(var d=0;d<1;d+=.05){hi[0]=_r(e,n,a,d),hi[1]=_r(t,r,i,d);var h=Ol($o,hi);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<KU);p++){var v=u-c,g=u+c;hi[0]=_r(e,n,a,v),hi[1]=_r(t,r,i,v);var h=Ol(hi,$o);if(v>=0&&h<f)u=v,f=h;else{wd[0]=_r(e,n,a,g),wd[1]=_r(t,r,i,g);var m=Ol(wd,$o);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=_r(e,n,a,u),l[1]=_r(t,r,i,u)),Nl(f)}function _Ve(e,t,n,r,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=_r(e,n,a,d),p=_r(t,r,i,d),v=h-s,g=p-l;u+=Math.sqrt(v*v+g*g),s=h,l=p}return u}var wVe=/cubic-bezier\(([0-9,\.e ]+)\)/;function zP(e){var t=e&&wVe.exec(e);if(t){var n=t[1].split(","),r=+yi(n[0]),a=+yi(n[1]),i=+yi(n[2]),o=+yi(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Jb(0,r,i,1,l,s)&&cr(0,a,o,1,s[0])}}}var SVe=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||jn,this.ondestroy=t.ondestroy||jn,this.onrestart=t.onrestart||jn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;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=ht(t)?t:jU[t]||zP(t)},e}();const xVe=SVe;var QU=function(){function e(t){this.value=t}return e}(),CVe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new QU(t);return this.insertEntry(n),n},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 n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,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}(),TVe=function(){function e(t){this._list=new CVe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,a=this._map,i=null;if(a[t]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new QU(n),s.key=t,r.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const cm=TVe;var ON={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 no(e){return e=Math.round(e),e<0?0:e>255?255:e}function kVe(e){return e=Math.round(e),e<0?0:e>360?360:e}function hg(e){return e<0?0:e>1?1:e}function $S(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?no(parseFloat(t)/100*255):no(parseInt(t,10))}function Dc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?hg(parseFloat(t)/100):hg(parseFloat(t))}function RS(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function kl(e,t,n){return e+(t-e)*n}function si(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function VT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ej=new cm(20),wy=null;function kf(e,t){wy&&VT(wy,t),wy=ej.put(e,wy||t.slice())}function la(e,t){if(e){t=t||[];var n=ej.get(e);if(n)return VT(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in ON)return VT(t,ON[r]),kf(e,t),t;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){si(t,0,0,0,1);return}return si(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),kf(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){si(t,0,0,0,1);return}return si(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),kf(e,t),t}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?si(t,+u[0],+u[1],+u[2],1):si(t,0,0,0,1);c=Dc(u.pop());case"rgb":if(u.length>=3)return si(t,$S(u[0]),$S(u[1]),$S(u[2]),u.length===3?c:Dc(u[3])),kf(e,t),t;si(t,0,0,0,1);return;case"hsla":if(u.length!==4){si(t,0,0,0,1);return}return u[3]=Dc(u[3]),zT(u,t),kf(e,t),t;case"hsl":if(u.length!==3){si(t,0,0,0,1);return}return zT(u,t),kf(e,t),t;default:return}}si(t,0,0,0,1)}}function zT(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Dc(e[1]),a=Dc(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],si(t,no(RS(o,i,n+1/3)*255),no(RS(o,i,n)*255),no(RS(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function AVe(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-t)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;t===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function Qb(e,t){var n=la(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ro(n,n.length===4?"rgba":"rgb")}}function MVe(e){var t=la(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function fv(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=no(kl(o[0],s[0],l)),n[1]=no(kl(o[1],s[1],l)),n[2]=no(kl(o[2],s[2],l)),n[3]=hg(kl(o[3],s[3],l)),n}}var PVe=fv;function HP(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=la(t[a]),s=la(t[i]),l=r-a,u=ro([no(kl(o[0],s[0],l)),no(kl(o[1],s[1],l)),no(kl(o[2],s[2],l)),hg(kl(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var EVe=HP;function Sd(e,t,n,r){var a=la(e);if(e)return a=AVe(a),t!=null&&(a[0]=kVe(t)),n!=null&&(a[1]=Dc(n)),r!=null&&(a[2]=Dc(r)),ro(zT(a),"rgba")}function pg(e,t){var n=la(e);if(n&&t!=null)return n[3]=hg(t),ro(n,"rgba")}function ro(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function vg(e,t){var n=la(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function IVe(){return ro([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var NN=new cm(100);function e1(e){if(rt(e)){var t=NN.get(e);return t||(t=Qb(e,-.1),NN.put(e,t)),t}else if(sm(e)){var n=Be({},e);return n.colorStops=We(e.colorStops,function(r){return{offset:r.offset,color:Qb(r.color,-.1)}}),n}return e}const DVe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:fv,fastMapToColor:PVe,lerp:HP,lift:Qb,liftColor:e1,lum:vg,mapToColor:EVe,modifyAlpha:pg,modifyHSL:Sd,parse:la,random:IVe,stringify:ro,toHex:MVe},Symbol.toStringTag,{value:"Module"}));var t1=Math.round;function gg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=la(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var BN=1e-4;function Al(e){return e<BN&&e>-BN}function Sy(e){return t1(e*1e3)/1e3}function HT(e){return t1(e*1e4)/1e4}function LVe(e){return"matrix("+Sy(e[0])+","+Sy(e[1])+","+Sy(e[2])+","+Sy(e[3])+","+HT(e[4])+","+HT(e[5])+")"}var $Ve={left:"start",right:"end",center:"middle",middle:"middle"};function RVe(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function OVe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function NVe(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function tj(e){return e&&!!e.image}function BVe(e){return e&&!!e.svgElement}function GP(e){return tj(e)||BVe(e)}function nj(e){return e.type==="linear"}function rj(e){return e.type==="radial"}function aj(e){return e&&(e.type==="linear"||e.type==="radial")}function ew(e){return"url(#"+e+")"}function ij(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function oj(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*lv,a=Et(e.scaleX,1),i=Et(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+t1(o*lv)+"deg, "+t1(s*lv)+"deg)"),l.join(" ")}var FVe=function(){return rn.hasGlobalWindow&&ht(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}}(),GT=Array.prototype.slice;function ms(e,t,n){return(t-e)*n+e}function OS(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=ms(t[i],n[i],r);return e}function VVe(e,t,n,r){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=ms(t[o][s],n[o][s],r)}return e}function xy(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+n[i]*r;return e}function FN(e,t,n,r){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function zVe(e,t){for(var n=e.length,r=t.length,a=n>r?t:e,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(n,r);s++)a.push({offset:o.offset,color:o.color.slice()})}function HVe(e,t,n){var r=e,a=t;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var s=i>o;if(s)r.length=o;else for(var l=i;l<o;l++)r.push(n===1?a[l]:GT.call(a[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=a[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=a[l][c])}}function dv(e){if(Or(e)){var t=e.length;if(Or(e[0])){for(var n=[],r=0;r<t;r++)n.push(GT.call(e[r]));return n}return GT.call(e)}return e}function eb(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 GVe(e){return Or(e&&e[0])?2:1}var Cy=0,tb=1,sj=2,Rp=3,WT=4,UT=5,VN=6;function zN(e){return e===WT||e===UT}function Ty(e){return e===tb||e===sj}var op=[0,0,0,0],WVe=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,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=VN,l=n;if(Or(n)){var u=GVe(n);s=u,(u===1&&!an(n[0])||u===2&&!an(n[0][0]))&&(o=!0)}else if(an(n)&&!qd(n))s=Cy;else if(rt(n))if(!isNaN(+n))s=Cy;else{var c=la(n);c&&(l=c,s=Rp)}else if(sm(n)){var f=Be({},l);f.colorStops=We(n.colorStops,function(h){return{offset:h.offset,color:la(h.color)}}),nj(n)?s=WT:rj(n)&&(s=UT),l=f}i===0?this.valType=s:(s!==this.valType||s===VN)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=ht(r)?r:jU[r]||zP(r)),a.push(d),d},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=Ty(a),u=zN(a),c=0;c<i;c++){var f=r[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==i-1?HVe(d,h,a):u&&zVe(d.colorStops,h.colorStops))}if(!s&&a!==UT&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var p=r[0].value,c=0;c<i;c++)a===Cy?r[c].additiveValue=r[c].value-p:a===Rp?r[c].additiveValue=xy([],r[c].value,p,-1):Ty(a)&&(r[c].additiveValue=a===tb?xy([],r[c].value,p,-1):FN([],r[c].value,p,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Rp,c,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var v=d(f+1,s-1);for(c=v;c>=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>n);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=n;var g=p.percent-h.percent,m=g===0?1:d((n-h.percent)/g,1);p.easingFunc&&(m=p.easingFunc(m));var _=r?this._additiveValue:u?op:t[l];if((Ty(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:p.rawValue;else if(Ty(i))i===tb?OS(_,h[a],p[a],m):VVe(_,h[a],p[a],m);else if(zN(i)){var b=h[a],w=p[a],S=i===WT;t[l]={type:S?"linear":"radial",x:ms(b.x,w.x,m),y:ms(b.y,w.y,m),colorStops:We(b.colorStops,function(C,T){var k=w.colorStops[T];return{offset:ms(C.offset,k.offset,m),color:eb(OS([],C.color,k.color,m))}}),global:w.global},S?(t[l].x2=ms(b.x2,w.x2,m),t[l].y2=ms(b.y2,w.y2,m)):t[l].r=ms(b.r,w.r,m)}else if(u)OS(_,h[a],p[a],m),r||(t[l]=eb(_));else{var x=ms(h[a],p[a],m);r?this._additiveValue=x:t[l]=x}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===Cy?t[r]=t[r]+a:n===Rp?(la(t[r],op),xy(op,op,a,1),t[r]=eb(op)):n===tb?xy(t[r],t[r],a,1):n===sj&&FN(t[r],t[r],a,1)},e}(),UVe=function(){function e(t,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&a){Y_("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}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,n,r){return this.whenWithKeys(t,n,Ut(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var s=r[o],l=i[s];if(!l){l=i[s]=new WVe(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===Rp&&u&&(u=eb(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,dv(u),a),this._trackKeys.push(s)}l.addKeyframe(t,dv(n[s]),a)}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 n=t.length,r=0;r<n;r++)t[r].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)t[n[r]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(t);i&&(n=i)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new xVe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var p=n._additiveAnimators;if(p){for(var v=!1,g=0;g<p.length;g++)if(p[g]._clip){v=!0;break}v||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,h);var m=n._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](n._target,h)},ondestroy:function(){n._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 n=this._clip;t&&n.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 We(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=r[t[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(t[i]=dv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Ut(t);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const WP=UVe;function od(){return new Date().getTime()}var jVe=function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=od()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(BT(r),!n._paused&&n.update())}BT(r)},t.prototype.start=function(){this._running||(this._time=od(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=od(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=od()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var a=new WP(n,r.loop);return this.addAnimator(a),a},t}(Ei);const KVe=jVe;var YVe=300,NS=rn.domSupported,BS=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=We(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),HN={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},GN=!1;function jT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function qVe(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 FS(e){e&&(e.zrByTouch=!0)}function XVe(e,t){return li(e.dom,new ZVe(e,t),!0)}function lj(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var ZVe=function(){function e(t,n){this.stopPropagation=jn,this.stopImmediatePropagation=jn,this.preventDefault=jn,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Vi={mousedown:function(e){e=li(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=li(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=li(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=li(this.dom,e);var t=e.toElement||e.relatedTarget;lj(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){GN=!0,e=li(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){GN||(e=li(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=li(this.dom,e),FS(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Vi.mousemove.call(this,e),Vi.mousedown.call(this,e)},touchmove:function(e){e=li(this.dom,e),FS(e),this.handler.processGesture(e,"change"),Vi.mousemove.call(this,e)},touchend:function(e){e=li(this.dom,e),FS(e),this.handler.processGesture(e,"end"),Vi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<YVe&&Vi.click.call(this,e)},pointerdown:function(e){Vi.mousedown.call(this,e)},pointermove:function(e){jT(e)||Vi.mousemove.call(this,e)},pointerup:function(e){Vi.mouseup.call(this,e)},pointerout:function(e){jT(e)||Vi.mouseout.call(this,e)}};te(["click","dblclick","contextmenu"],function(e){Vi[e]=function(t){t=li(this.dom,t),this.trigger(e,t)}});var KT={pointermove:function(e){jT(e)||KT.mousemove.call(this,e)},pointerup:function(e){KT.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 JVe(e,t){var n=t.domHandlers;rn.pointerEventsSupported?te(BS.pointer,function(r){nb(t,r,function(a){n[r].call(e,a)})}):(rn.touchEventsSupported&&te(BS.touch,function(r){nb(t,r,function(a){n[r].call(e,a),qVe(t)})}),te(BS.mouse,function(r){nb(t,r,function(a){a=VP(a),t.touching||n[r].call(e,a)})}))}function QVe(e,t){rn.pointerEventsSupported?te(HN.pointer,n):rn.touchEventsSupported||te(HN.mouse,n);function n(r){function a(i){i=VP(i),lj(e,i.target)||(i=XVe(e,i),t.domHandlers[r].call(e,i))}nb(t,r,a,{capture:!0})}}function nb(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,NT(e.domTarget,t,n,r)}function VS(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&tVe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var WN=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),e6e=function(e){Rn(t,e);function t(n,r){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new WN(n,Vi),NS&&(a._globalHandlerScope=new WN(document,KT)),JVe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){VS(this._localHandlerScope),NS&&VS(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,NS&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?QVe(this,r):VS(r)}},t}(Ei);const t6e=e6e;var uj=1;rn.hasGlobalWindow&&(uj=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var n1=uj,YT=.4,qT="#333",XT="#ccc",n6e="#eee",UN=um,jN=5e-5;function Tu(e){return e>jN||e<-jN}var ku=[],Af=[],zS=Ia(),HS=Math.abs,r6e=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 Tu(this.rotation)||Tu(this.x)||Tu(this.y)||Tu(this.scaleX-1)||Tu(this.scaleY-1)||Tu(this.skewX)||Tu(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(UN(r),this.invTransform=null);return}r=r||Ia(),n?this.getLocalTransform(r):UN(r),t&&(n?Uo(r,t,r):J_(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(ku);var r=ku[0]<0?-1:1,a=ku[1]<0?-1:1,i=((ku[0]-r)*n+r)/ku[0]||0,o=((ku[1]-a)*n+a)/ku[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ia(),uf(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ia(),Uo(Af,t.invTransform,n),n=Af);var r=this.originX,a=this.originY;(r||a)&&(zS[4]=r,zS[5]=a,Uo(Af,n,zS),Af[4]-=r,Af[5]-=a,n=Af),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&xr(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&xr(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&HS(t[0]-1)>1e-10&&HS(t[3]-1)>1e-10?Math.sqrt(HS(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){cj(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,a=t.originY||0,i=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(r||a||s||l){var p=r+s,v=a+l;n[4]=-p*i-d*v*o,n[5]=-v*o-h*p*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&fu(n,n,u),n[4]+=r+c,n[5]+=a+f,n},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}(),Jo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function cj(e,t){for(var n=0;n<Jo.length;n++){var r=Jo[n];e[r]=t[r]}}const ks=r6e;var KN={};function Xa(e,t){t=t||ql;var n=KN[t];n||(n=KN[t]=new cm(500));var r=n.get(e);return r==null&&(r=uo.measureText(e,t).width,n.put(e,r)),r}function YN(e,t,n,r){var a=Xa(e,t),i=tw(t),o=Op(0,a,n),s=Jf(0,i,r),l=new Nt(o,s,a,i);return l}function fm(e,t,n,r){var a=((e||"")+"").split(`
`),i=a.length;if(i===1)return YN(a[0],t,n,r);for(var o=new Nt(0,0,0,0),s=0;s<a.length;s++){var l=YN(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function Op(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Jf(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function tw(e){return Xa("国",e)}function fo(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function r1(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=fo(r[0],n.width),u+=fo(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var GS="__zr_normal__",WS=Jo.concat(["ignore"]),a6e=Mi(Jo,function(e,t){return e[t]=!0,e},{ignore:!1}),Mf={},i6e=new Nt(0,0,0,0),UP=function(){function e(t){this.id=OP(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,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 n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=i6e;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mf,r,c):r1(Mf,r,c),i.x=Mf.x,i.y=Mf.y,o=Mf.align,s=Mf.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=fo(f[0],c.width),h=fo(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,_=void 0,b=void 0;v&&this.canBeInsideText()?(m=r.insideFill,_=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(m),b=!0)):(m=r.outsideFill,_=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(m),b=!0)),m=m||"#000",(m!==g.fill||_!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=_,g.autoStroke=b,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=Ba,l&&n.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()?XT:qT},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&la(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,ro(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Be(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(bt(t))for(var r=t,a=Ut(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==GS)){var o=a.targetName,s=o?n[o]:n;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,WS)},e.prototype._savePrimaryToNormal=function(t,n,r){for(var a=0;a<r.length;a++){var i=r[a];t[i]!=null&&!(i in n)&&(n[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(GS,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===GS,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Ft(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){Y_("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ba),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&p&&p.duration>0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(t,n,d),g&&g.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ba)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=Ft(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),i=Ft(a,t),o=Ft(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a<t.length;a++){var i=t[a];Be(n,i),i.textConfig&&(r=r||{},Be(r,i.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,a,i,o){var s=!(n&&a);n&&n.textConfig?(this.textConfig=Be({},a?this.textConfig:r.textConfig),Be(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<WS.length;c++){var f=WS[c],d=i&&a6e[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(n||r)[p]:n||r)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,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 n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new ks,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Be(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|=Ba;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 n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);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 n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var a=t?this[t]:this,i=new WP(a,n,r);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,n){var r=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=Ft(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var s=r[o];!t||t===s.scope?s.stop(n):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,n,r){US(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){US(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var i=US(this,n,r,a),o=0;o<i.length;o++)i[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=Ba;function n(r,a,i,o){Object.defineProperty(t,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();Yn(UP,Ei);Yn(UP,ks);function US(e,t,n,r,a){n=n||{};var i=[];fj(e,"",e,t,n,r,i,a);var o=i.length,s=!1,l=n.done,u=n.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(),i.length>0&&n.during&&i[0].during(function(p,v){n.during(v)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return i}function jS(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function o6e(e){return Or(e[0])}function s6e(e,t,n){if(Or(t[n]))if(Or(e[n])||(e[n]=[]),ha(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),jS(e[n],t[n],r))}else{var a=t[n],i=e[n],o=a.length;if(o6e(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?jS(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else jS(i,a,o);i.length=a.length}else e[n]=t[n]}function l6e(e,t){return e===t||Or(e)&&Or(t)&&u6e(e,t)}function u6e(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function fj(e,t,n,r,a,i,o,s){for(var l=Ut(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!bt(i),p=e.animators,v=[],g=0;g<l.length;g++){var m=l[g],_=r[m];if(_!=null&&n[m]!=null&&(h||i[m]))if(bt(_)&&!Or(_)&&!sm(_)){if(t){s||(n[m]=_,e.updateDuringAnimation(t));continue}fj(e,m,n[m],_,a,i&&i[m],o,s)}else v.push(m);else s||(n[m]=_,e.updateDuringAnimation(t),v.push(m))}var b=v.length;if(!f&&b)for(var w=0;w<p.length;w++){var S=p[w];if(S.targetName===t){var x=S.stopTracks(v);if(x){var C=Ft(p,S);p.splice(C,1)}}}if(a.force||(v=hn(v,function(M){return!l6e(r[M],n[M])}),b=v.length),b>0||a.force&&!o.length){var T=void 0,k=void 0,A=void 0;if(s){k={},d&&(T={});for(var w=0;w<b;w++){var m=v[w];k[m]=n[m],d?T[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var w=0;w<b;w++){var m=v[w];A[m]=dv(n[m]),s6e(n,r,m)}}var S=new WP(n,!1,!1,f?hn(p,function(I){return I.targetName===t}):null);S.targetName=t,a.scope&&(S.scope=a.scope),d&&T&&S.whenWithKeys(0,T,v),A&&S.whenWithKeys(0,A,v),S.whenWithKeys(u??500,s?k:r,v).delay(c||0),e.addAnimator(S,t),o.push(S)}}const dj=UP;var hj=function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=Ft(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,i=Ft(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},t.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new Nt(0,0,0,0),a=n||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Nt.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(dj);hj.prototype.type="group";const Tt=hj;/*!
* 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 rb={},mc={};function c6e(e){delete mc[e]}function f6e(e){if(!e)return!1;if(typeof e=="string")return vg(e,1)<YT;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=vg(t[a].color,1);return n/=r,n<YT}return!1}var d6e=function(){function e(t,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var i=new mVe,o=r.renderer||"canvas";rb[o]||(o=Ut(rb)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new rb[o](n,i,r,t),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!rn.node&&!rn.worker&&!l?new t6e(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?rn.touchEventsSupported:!!c,d=44,h;f&&(h=Et(r.pointerSize,d)),this.handler=new dVe(i,s,u,s.root,h),this.animation=new KVe({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=f6e(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){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var n,r=od();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=od();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):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._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Tt&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,c6e(this.id))},e}();function ZT(e,t){var n=new d6e(OP(),e,t);return mc[n.id]=n,n}function h6e(e){e.dispose()}function p6e(){for(var e in mc)mc.hasOwnProperty(e)&&mc[e].dispose();mc={}}function v6e(e){return mc[e]}function pj(e,t){rb[e]=t}var JT;function vj(e){if(typeof JT=="function")return JT(e)}function gj(e){JT=e}var g6e="5.6.0";const m6e=Object.freeze(Object.defineProperty({__proto__:null,dispose:h6e,disposeAll:p6e,getElementSSRData:vj,getInstance:v6e,init:ZT,registerPainter:pj,registerSSRDataGetter:gj,version:g6e},Symbol.toStringTag,{value:"Module"}));var qN=1e-4,mj=20;function y6e(e){return e.replace(/^\s+|\s+$/g,"")}function dn(e,t,n,r){var a=t[0],i=t[1],o=n[0],s=n[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function Qe(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 rt(e)?y6e(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Gn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),mj),e=(+e).toFixed(t),n?e:+e}function Ga(e){return e.sort(function(t,n){return t-n}),e}function qi(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return yj(e)}function yj(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,a=n>0?n:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function jP(e,t){var n=Math.log,r=Math.LN10,a=Math.floor(n(e[1]-e[0])/r),i=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function b6e(e,t,n){if(!e[t])return 0;var r=bj(e,n);return r[t]||0}function bj(e,t){var n=Mi(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=We(e,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=We(a,function(h){return Math.floor(h)}),s=Mi(o,function(h,p){return h+p},0),l=We(a,function(h,p){return h-o[p]});s<i;){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 We(o,function(h){return h/r})}function _6e(e,t){var n=Math.max(qi(e),qi(t)),r=e+t;return n>mj?r:Gn(r,n)}var QT=9007199254740991;function KP(e){var t=Math.PI*2;return(e%t+t)%t}function Xd(e){return e>-qN&&e<qN}var w6e=/^(?:(\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 Za(e){if(e instanceof Date)return e;if(rt(e)){var t=w6e.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(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 _j(e){return Math.pow(10,nw(e))}function nw(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 YP(e,t){var n=nw(e),r=Math.pow(10,n),a=e/r,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*r,n>=-20?+e.toFixed(n<0?-n:0):e}function ab(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a}function ek(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var a=e[r].interval,i=e[r].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-n),t=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(r,1):r++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Qo(e){var t=parseFloat(e);return t==e&&(t!==0||!rt(e)||e.indexOf("x")<=0)?t:NaN}function qP(e){return!isNaN(Qo(e))}function wj(){return Math.round(Math.random()*9)}function Sj(e,t){return t===0?e:Sj(t,e%t)}function XN(e,t){return e==null?t:t==null?e:e*t/Sj(e,t)}function cn(e){throw new Error(e)}function ZN(e,t,n){return(t-e)*n+e}var xj="series\0",Cj="\0_ec_\0";function yn(e){return e instanceof Array?e:e==null?[]:[e]}function Kc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var JN=["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 mh(e){return bt(e)&&!Ge(e)&&!(e instanceof Date)?e.value:e}function S6e(e){return bt(e)&&!(e instanceof Array)}function Tj(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=ut();te(t,function(l,u){if(!bt(l)){t[u]=null;return}});var s=x6e(e,o,n);return(r||a)&&C6e(s,e,o,t),r&&T6e(s,t),r||a?k6e(s,t,a):i&&A6e(s,t),M6e(s),s}function x6e(e,t,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),r.push({existing:n==="replaceMerge"||mg(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function C6e(e,t,n,r){te(r,function(a,i){if(!(!a||a.id==null)){var o=hv(a.id),s=n.get(o);if(s!=null){var l=e[s];qr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],r[i]=null}}})}function T6e(e,t){te(t,function(n,r){if(!(!n||n.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||n.id==null)&&!mg(n)&&!mg(i)&&kj("name",i,n)){e[a].newOption=n,t[r]=null;return}}})}function k6e(e,t,n){te(t,function(r){if(r){for(var a,i=0;(a=e[i])&&(a.newOption||mg(a.existing)||a.existing&&r.id!=null&&!kj("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function A6e(e,t){te(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function M6e(e){var t=ut();te(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),te(e,function(n){var r=n.newOption;qr(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),te(e,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(bt(i)){if(o.name=i.name!=null?hv(i.name):a?a.name:xj+r,a)o.id=hv(a.id);else if(i.id!=null)o.id=hv(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,n)}})}function kj(e,t,n){var r=ar(t[e],null),a=ar(n[e],null);return r!=null&&a!=null&&r===a}function hv(e){return ar(e,"")}function ar(e,t){return e==null?t:rt(e)?e:an(e)||Yb(e)?e+"":t}function XP(e){var t=e.name;return!!(t&&t.indexOf(xj))}function mg(e){return e&&e.id!=null&&hv(e.id).indexOf(Cj)===0}function P6e(e){return Cj+e}function E6e(e,t,n){te(e,function(r){var a=r.newOption;bt(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=I6e(t,a,r.existing,n))})}function I6e(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function D6e(e,t){var n={},r={};return a(e||[],n),a(t||[],r,n),[i(n),i(r)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=ar(o[u].seriesId,null);if(f==null)return;for(var d=yn(o[u].dataIndex),h=l&&l[f],p=0,v=d.length;p<v;p++){var g=d[p];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Yc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Ge(t.dataIndex)?We(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Ge(t.name)?We(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function nn(){var e="__ec_inner_"+L6e++;return function(t){return t[e]||(t[e]={})}}var L6e=wj();function pv(e,t,n){var r=ZP(t,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=dm(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function ZP(e,t){var n;if(rt(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=ut(),i={},o=!1;return te(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&Ft(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Qn={useDefault:!0,enableAll:!1,enableNone:!1},$6e={useDefault:!1,enableAll:!0,enableNone:!0};function dm(e,t,n,r){r=r||Qn;var a=n.index,i=n.id,o=n.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(qr(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(qr(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function Aj(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function R6e(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function O6e(e){return e==="auto"?rn.domSupported?"html":"richText":e||"html"}function tk(e,t){var n=ut(),r=[];return te(e,function(a){var i=t(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function Mj(e,t,n,r,a){var i=t==null||t==="auto";if(r==null)return r;if(an(r)){var o=ZN(n||0,r,a);return Gn(o,i?Math.max(qi(n||0),qi(r)):t)}else{if(rt(r))return a<1?n:r;for(var s=[],l=n,u=r,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]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,p=u[f],o=ZN(h,p,a);s[f]=Gn(o,i?Math.max(qi(h),qi(p)):t)}}return s}}var N6e=".",Au="___EC__COMPONENT__CONTAINER___",Pj="___EC__EXTENDED_CLASS___";function Bo(e){var t={main:"",sub:""};if(e){var n=e.split(N6e);t.main=n[0]||"",t.sub=n[1]||""}return t}function B6e(e){qr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function F6e(e){return!!(e&&e[Pj])}function JP(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return V6e(r)?a=function(i){De(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},NP(a,this)),Be(a.prototype,n),a[Pj]=!0,a.extend=this.extend,a.superCall=G6e,a.superApply=W6e,a.superClass=r,a}}function V6e(e){return ht(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Ej(e,t){e.extend=t.extend}var z6e=Math.round(Math.random()*10);function H6e(e){var t=["__\0is_clz",z6e++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function G6e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function W6e(e,t,n){return this.superClass.prototype[t].apply(e,n)}function rw(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){B6e(a),r.prototype.type=a;var i=Bo(a);if(!i.sub)t[i.main]=r;else if(i.sub!==Au){var o=n(i);o[i.sub]=r}}return r},e.getClass=function(r,a,i){var o=t[r];if(o&&o[Au]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},e.getClassesByMainType=function(r){var a=Bo(r),i=[],o=t[a.main];return o&&o[Au]?te(o,function(s,l){l!==Au&&i.push(s)}):i.push(o),i},e.hasClass=function(r){var a=Bo(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return te(t,function(a,i){r.push(i)}),r},e.hasSubTypes=function(r){var a=Bo(r),i=t[a.main];return i&&i[Au]};function n(r){var a=t[r.main];return(!a||!a[Au])&&(a=t[r.main]={},a[Au]=!0),a}}function qc(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&Ft(a,l)>=0||i&&Ft(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var U6e=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],j6e=qc(U6e),K6e=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return j6e(this,t,n)},e}(),nk=new cm(50);function Y6e(e){if(typeof e=="string"){var t=nk.get(e);return t&&t.image}else return e}function QP(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=nk.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!aw(t)&&i.pending.push(o)):(t=uo.loadImage(e,QN,QN),t.__zrImageSrc=e,nk.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function QN(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function aw(e){return e&&e.width&&e.height}var KS=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ij(e,t,n,r,a){if(!t)return"";var i=(e+"").split(`
`);a=Dj(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=Lj(i[o],a);return i.join(`
`)}function Dj(e,t,n,r){r=r||{};var a=Be({},r);a.font=t,n=Et(n,"..."),a.maxIterations=Et(r.maxIterations,2);var i=a.minChar=Et(r.minChar,0);a.cnCharWidth=Xa("国",t);var o=a.ascCharWidth=Xa("a",t);a.placeholder=Et(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=Xa(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function Lj(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=Xa(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?q6e(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=Xa(e,r)}return e===""&&(e=t.placeholder),e}function q6e(e,t,n,r){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?n:r}return i}function X6e(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=tw(a),s=Et(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(n==="break"||n==="breakAll")?f=e?$j(e,t.font,c,n==="breakAll",0).lines:[]:f=e?e.split(`
`):[];var d=f.length*s,h=Et(t.height,d);if(d>h&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&i&&c!=null)for(var v=Dj(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=Lj(f[g],v);for(var m=h,_=0,g=0;g<f.length;g++)_=Math.max(Xa(f[g],a),_);c==null&&(c=_);var b=_;return r&&(m+=r[0]+r[2],b+=r[1]+r[3],c+=r[1]+r[3]),l&&(b=c),{lines:f,height:h,outerWidth:b,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:_,contentHeight:d,width:c}}var Z6e=function(){function e(){}return e}(),e5=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),J6e=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 Q6e(e,t){var n=new J6e;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,s=KS.lastIndex=0,l;(l=KS.exec(e))!=null;){var u=l.index;u>s&&YS(n,e.substring(s,u),t,o),YS(n,l[2],t,o,l[1]),s=KS.lastIndex}s<e.length&&YS(n,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,p=i==="truncate",v=t.lineOverflow==="truncate";function g(R,D,B){R.width=D,R.lineHeight=B,f+=B,d=Math.max(d,D)}e:for(var m=0;m<n.lines.length;m++){for(var _=n.lines[m],b=0,w=0,S=0;S<_.tokens.length;S++){var x=_.tokens[S],C=x.styleName&&t.rich[x.styleName]||{},T=x.textPadding=C.padding,k=T?T[1]+T[3]:0,A=x.font=C.font||t.font;x.contentHeight=tw(A);var M=Et(C.height,x.contentHeight);if(x.innerHeight=M,T&&(M+=T[0]+T[2]),x.height=M,x.lineHeight=to(C.lineHeight,t.lineHeight,M),x.align=C&&C.align||t.align,x.verticalAlign=C&&C.verticalAlign||"middle",v&&a!=null&&f+x.lineHeight>a){S>0?(_.tokens=_.tokens.slice(0,S),g(_,w,b),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var I=C.width,E=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,c.push(x),x.contentWidth=Xa(x.text,A);else{if(E){var L=C.backgroundColor,N=L&&L.image;N&&(N=Y6e(N),aw(N)&&(x.width=Math.max(x.width,N.width*M/N.height)))}var $=p&&r!=null?r-w:null;$!=null&&$<x.width?!E||$<k?(x.text="",x.width=x.contentWidth=0):(x.text=Ij(x.text,$-k,A,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=Xa(x.text,A)):x.contentWidth=Xa(x.text,A)}x.width+=k,w+=x.width,C&&(b=Math.max(b,x.lineHeight))}g(_,w,b)}n.outerWidth=n.width=Et(r,d),n.outerHeight=n.height=Et(a,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var x=c[m],P=x.percentWidth;x.width=parseInt(P,10)/100*n.width}return n}function YS(e,t,n,r,a){var i=t==="",o=a&&n.rich[a]||{},s=e.lines,l=o.font||n.font,u=!1,c,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=fo(o.width,r.width)+h;s.length>0&&p+r.accumWidth>r.width&&(c=t.split(`
`),u=!0),r.accumWidth=p}else{var v=$j(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=t.split(`
`);for(var g=0;g<c.length;g++){var m=c[g],_=new Z6e;if(_.styleName=a,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[g]:Xa(m,l),!g&&!u){var b=(s[s.length-1]||(s[0]=new e5)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=_:(m||!w||i)&&b.push(_)}else s.push(new e5([_]))}}function eze(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var tze=Mi(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function nze(e){return eze(e)?!!tze[e]:!0}function $j(e,t,n,r,a){for(var i=[],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),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Xa(d,t),p=r?!1:!nze(d);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):p?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var rk="__zr_style_"+Math.round(Math.random()*10),Lc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},iw={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Lc[rk]=!0;var t5=["z","z2","invisible"],rze=["invisible"],aze=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Ut(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):e.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ize(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Nt(0,0,0,0)),r?Nt.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Nt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Be(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=$p,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&$p)},t.prototype.styleUpdated=function(){this.__dirty&=~$p},t.prototype.createStyle=function(n){return lm(Lc,n)},t.prototype.useStyle=function(n){n[rk]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[rk]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,t5)},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.style?o?i?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Ut(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 p=Ut(u),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?rze:t5,d=0;d<v.length;d++){var h=v[d];r&&r[h]!=null?this[h]=r[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},t.prototype._mergeStyle=function(n,r){return Be(n,r),n},t.prototype.getAnimationStyleProps=function(){return iw},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Ba|$p}(),t}(dj),qS=new Nt(0,0,0,0),XS=new Nt(0,0,0,0);function ize(e,t,n){return qS.copy(e.getBoundingRect()),e.transform&&qS.applyTransform(e.transform),XS.width=t,XS.height=n,!qS.intersect(XS)}const Pi=aze;var Ta=Math.min,ka=Math.max,ZS=Math.sin,JS=Math.cos,Mu=Math.PI*2,ky=cu(),Ay=cu(),My=cu();function ow(e,t,n){if(e.length!==0){for(var r=e[0],a=r[0],i=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],a=Ta(a,r[0]),i=ka(i,r[0]),o=Ta(o,r[1]),s=ka(s,r[1]);t[0]=a,t[1]=o,n[0]=i,n[1]=s}}function n5(e,t,n,r,a,i){a[0]=Ta(e,n),a[1]=Ta(t,r),i[0]=ka(e,n),i[1]=ka(t,r)}var r5=[],a5=[];function oze(e,t,n,r,a,i,o,s,l,u){var c=qU,f=cr,d=c(e,n,a,o,r5);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(e,n,a,o,r5[h]);l[0]=Ta(p,l[0]),u[0]=ka(p,u[0])}d=c(t,r,i,s,a5);for(var h=0;h<d;h++){var v=f(t,r,i,s,a5[h]);l[1]=Ta(v,l[1]),u[1]=ka(v,u[1])}l[0]=Ta(e,l[0]),u[0]=ka(e,u[0]),l[0]=Ta(o,l[0]),u[0]=ka(o,u[0]),l[1]=Ta(t,l[1]),u[1]=ka(t,u[1]),l[1]=Ta(s,l[1]),u[1]=ka(s,u[1])}function sze(e,t,n,r,a,i,o,s){var l=ZU,u=_r,c=ka(Ta(l(e,n,a),1),0),f=ka(Ta(l(t,r,i),1),0),d=u(e,n,a,c),h=u(t,r,i,f);o[0]=Ta(e,a,d),o[1]=Ta(t,i,h),s[0]=ka(e,a,d),s[1]=ka(t,i,h)}function lze(e,t,n,r,a,i,o,s,l){var u=Cs,c=Ts,f=Math.abs(a-i);if(f%Mu<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(ky[0]=JS(a)*n+e,ky[1]=ZS(a)*r+t,Ay[0]=JS(i)*n+e,Ay[1]=ZS(i)*r+t,u(s,ky,Ay),c(l,ky,Ay),a=a%Mu,a<0&&(a=a+Mu),i=i%Mu,i<0&&(i=i+Mu),a>i&&!o?i+=Mu:a<i&&o&&(a+=Mu),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(My[0]=JS(h)*n+e,My[1]=ZS(h)*r+t,u(s,My,s),c(l,My,l))}var Sn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pu=[],Eu=[],xo=[],rl=[],Co=[],To=[],QS=Math.min,ex=Math.max,Iu=Math.cos,Du=Math.sin,fs=Math.abs,ak=Math.PI,vl=ak*2,tx=typeof Float32Array<"u",sp=[];function nx(e){var t=Math.round(e/ak*1e8)/1e8;return t%2*ak}function eE(e,t){var n=nx(e[0]);n<0&&(n+=vl);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=vl?a=n+vl:t&&n-a>=vl?a=n-vl:!t&&n>a?a=n+(vl-nx(n-a)):t&&n<a&&(a=n-(vl-nx(a-n))),e[0]=n,e[1]=a}var uze=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,n,r){r=r||0,r>0&&(this._ux=fs(r/n1/t)||0,this._uy=fs(r/n1/n)||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,n){return this._drawPendingPt(),this.addData(Sn.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=fs(t-this._xi),a=fs(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Sn.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(Sn.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(Sn.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),sp[0]=a,sp[1]=i,eE(sp,o),a=sp[0],i=sp[1];var s=i-a;return this.addData(Sn.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Iu(i)*r+t,this._yi=Du(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(Sn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Sn.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,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 n=t.length;!(this.data&&this.data.length===n)&&tx&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=t[r];this._len=n},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var n=t.length,r=0,a=this._len,i=0;i<n;i++)r+=t[i].len();tx&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var i=0;i<n;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,n,r,a,i,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=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,tx&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){xo[0]=xo[1]=Co[0]=Co[1]=Number.MAX_VALUE,rl[0]=rl[1]=To[0]=To[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(n=t[o],r=t[o+1],a=n,i=r),s){case Sn.M:n=a=t[o++],r=i=t[o++],Co[0]=a,Co[1]=i,To[0]=a,To[1]=i;break;case Sn.L:n5(n,r,t[o],t[o+1],Co,To),n=t[o++],r=t[o++];break;case Sn.C:oze(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Co,To),n=t[o++],r=t[o++];break;case Sn.Q:sze(n,r,t[o++],t[o++],t[o],t[o+1],Co,To),n=t[o++],r=t[o++];break;case Sn.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],p=t[o++]+h;o+=1;var v=!t[o++];l&&(a=Iu(h)*f+u,i=Du(h)*d+c),lze(u,c,f,d,h,p,v,Co,To),n=Iu(p)*f+u,r=Du(p)*d+c;break;case Sn.R:a=n=t[o++],i=r=t[o++];var g=t[o++],m=t[o++];n5(a,i,a+g,i+m,Co,To);break;case Sn.Z:n=a,r=i;break}Cs(xo,xo,Co),Ts(rl,rl,To)}return o===0&&(xo[0]=xo[1]=rl[0]=rl[1]=0),new Nt(xo[0],xo[1],rl[0]-xo[0],rl[1]-xo[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=t[d++],p=d===1;p&&(i=t[d],o=t[d+1],s=i,l=o);var v=-1;switch(h){case Sn.M:i=s=t[d++],o=l=t[d++];break;case Sn.L:{var g=t[d++],m=t[d++],_=g-i,b=m-o;(fs(_)>r||fs(b)>a||d===n-1)&&(v=Math.sqrt(_*_+b*b),i=g,o=m);break}case Sn.C:{var w=t[d++],S=t[d++],g=t[d++],m=t[d++],x=t[d++],C=t[d++];v=yVe(i,o,w,S,g,m,x,C,10),i=x,o=C;break}case Sn.Q:{var w=t[d++],S=t[d++],g=t[d++],m=t[d++];v=_Ve(i,o,w,S,g,m,10),i=g,o=m;break}case Sn.A:var T=t[d++],k=t[d++],A=t[d++],M=t[d++],I=t[d++],E=t[d++],L=E+I;d+=1,p&&(s=Iu(I)*A+T,l=Du(I)*M+k),v=ex(A,M)*QS(vl,Math.abs(E)),i=Iu(L)*A+T,o=Du(L)*M+k;break;case Sn.R:{s=i=t[d++],l=o=t[d++];var N=t[d++],$=t[d++];v=N*2+$*2;break}case Sn.Z:{var _=s-i,b=l-o;v=Math.sqrt(_*_+b*b),i=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,p,v,g=0,m=0,_,b=0,w,S;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,_=n*v,!_)))e:for(var x=0;x<o;){var C=r[x++],T=x===1;switch(T&&(u=r[x],c=r[x+1],s=u,l=c),C!==Sn.L&&b>0&&(t.lineTo(w,S),b=0),C){case Sn.M:s=u=r[x++],l=c=r[x++],t.moveTo(u,c);break;case Sn.L:{f=r[x++],d=r[x++];var k=fs(f-u),A=fs(d-c);if(k>a||A>i){if(h){var M=p[m++];if(g+M>_){var I=(_-g)/M;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=M}t.lineTo(f,d),u=f,c=d,b=0}else{var E=k*k+A*A;E>b&&(w=f,S=d,b=E)}break}case Sn.C:{var L=r[x++],N=r[x++],$=r[x++],P=r[x++],R=r[x++],D=r[x++];if(h){var M=p[m++];if(g+M>_){var I=(_-g)/M;Xl(u,L,$,R,I,Pu),Xl(c,N,P,D,I,Eu),t.bezierCurveTo(Pu[1],Eu[1],Pu[2],Eu[2],Pu[3],Eu[3]);break e}g+=M}t.bezierCurveTo(L,N,$,P,R,D),u=R,c=D;break}case Sn.Q:{var L=r[x++],N=r[x++],$=r[x++],P=r[x++];if(h){var M=p[m++];if(g+M>_){var I=(_-g)/M;dg(u,L,$,I,Pu),dg(c,N,P,I,Eu),t.quadraticCurveTo(Pu[1],Eu[1],Pu[2],Eu[2]);break e}g+=M}t.quadraticCurveTo(L,N,$,P),u=$,c=P;break}case Sn.A:var B=r[x++],H=r[x++],G=r[x++],X=r[x++],ue=r[x++],ie=r[x++],le=r[x++],Q=!r[x++],J=G>X?G:X,se=fs(G-X)>.001,he=ue+ie,re=!1;if(h){var M=p[m++];g+M>_&&(he=ue+ie*(_-g)/M,re=!0),g+=M}if(se&&t.ellipse?t.ellipse(B,H,G,X,le,ue,he,Q):t.arc(B,H,J,ue,he,Q),re)break e;T&&(s=Iu(ue)*G+B,l=Du(ue)*X+H),u=Iu(he)*G+B,c=Du(he)*X+H;break;case Sn.R:s=u=r[x],l=c=r[x+1],f=r[x++],d=r[x++];var z=r[x++],Y=r[x++];if(h){var M=p[m++];if(g+M>_){var ee=_-g;t.moveTo(f,d),t.lineTo(f+QS(ee,z),d),ee-=z,ee>0&&t.lineTo(f+z,d+QS(ee,Y)),ee-=Y,ee>0&&t.lineTo(f+ex(z-ee,0),d+Y),ee-=z,ee>0&&t.lineTo(f,d+ex(Y-ee,0));break e}g+=M}t.rect(f,d,z,Y);break;case Sn.Z:if(h){var M=p[m++];if(g+M>_){var I=(_-g)/M;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=M}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Sn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const es=uze;function bl(e,t,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||i>e+s&&i>n+s||i<e-s&&i<n-s)return!1;if(e!==n)l=(t-r)/(e-n),u=(e*r-n*t)/(e-n);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function cze(e,t,n,r,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>r+f&&c>i+f&&c>s+f||c<t-f&&c<r-f&&c<i-f&&c<s-f||u>e+f&&u>n+f&&u>a+f&&u>o+f||u<e-f&&u<n-f&&u<a-f&&u<o-f)return!1;var d=XU(e,t,n,r,a,i,o,s,u,c,null);return d<=f/2}function Rj(e,t,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>r+u&&l>i+u||l<t-u&&l<r-u&&l<i-u||s>e+u&&s>n+u&&s>a+u||s<e-u&&s<n-u&&s<a-u)return!1;var c=JU(e,t,n,r,a,i,s,l,null);return c<=u/2}var i5=Math.PI*2;function Wa(e){return e%=i5,e<0&&(e+=i5),e}var lp=Math.PI*2;function fze(e,t,n,r,a,i,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>n||c+u<n)return!1;if(Math.abs(r-a)%lp<1e-4)return!0;if(i){var f=r;r=Wa(a),a=Wa(f)}else r=Wa(r),a=Wa(a);r>a&&(a+=lp);var d=Math.atan2(l,s);return d<0&&(d+=lp),d>=r&&d<=a||d+lp>=r&&d+lp<=a}function ys(e,t,n,r,a,i){if(i>t&&i>r||i<t&&i<r||r===t)return 0;var o=(i-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===a?1/0:l>a?s:0}var al=es.CMD,Lu=Math.PI*2,dze=1e-4;function hze(e,t){return Math.abs(e-t)<dze}var na=[-1,-1,-1],fi=[-1,-1];function pze(){var e=fi[0];fi[0]=fi[1],fi[1]=e}function vze(e,t,n,r,a,i,o,s,l,u){if(u>t&&u>r&&u>i&&u>s||u<t&&u<r&&u<i&&u<s)return 0;var c=Jb(t,r,i,s,u,na);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,v=0;v<c;v++){var g=na[v],m=g===0||g===1?.5:1,_=cr(e,n,a,o,g);_<l||(d<0&&(d=qU(t,r,i,s,fi),fi[1]<fi[0]&&d>1&&pze(),h=cr(t,r,i,s,fi[0]),d>1&&(p=cr(t,r,i,s,fi[1]))),d===2?g<fi[0]?f+=h<t?m:-m:g<fi[1]?f+=p<h?m:-m:f+=s<p?m:-m:g<fi[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function gze(e,t,n,r,a,i,o,s){if(s>t&&s>r&&s>i||s<t&&s<r&&s<i)return 0;var l=bVe(t,r,i,s,na);if(l===0)return 0;var u=ZU(t,r,i);if(u>=0&&u<=1){for(var c=0,f=_r(t,r,i,u),d=0;d<l;d++){var h=na[d]===0||na[d]===1?.5:1,p=_r(e,n,a,na[d]);p<o||(na[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=na[0]===0||na[0]===1?.5:1,p=_r(e,n,a,na[0]);return p<o?0:i<t?h:-h}}function mze(e,t,n,r,a,i,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);na[0]=-l,na[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Lu-1e-4){r=0,a=Lu;var c=i?1:-1;return o>=na[0]+e&&o<=na[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Lu,a+=Lu);for(var d=0,h=0;h<2;h++){var p=na[h];if(p+e>o){var v=Math.atan2(s,p),c=i?1:-1;v<0&&(v=Lu+v),(v>=r&&v<=a||v+Lu>=r&&v+Lu<=a)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Oj(e,t,n,r,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,p=0;p<o;){var v=i[p++],g=p===1;switch(v===al.M&&p>1&&(n||(s+=ys(l,u,c,f,r,a))),g&&(l=i[p],u=i[p+1],c=l,f=u),v){case al.M:c=i[p++],f=i[p++],l=c,u=f;break;case al.L:if(n){if(bl(l,u,i[p],i[p+1],t,r,a))return!0}else s+=ys(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case al.C:if(n){if(cze(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,r,a))return!0}else s+=vze(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case al.Q:if(n){if(Rj(l,u,i[p++],i[p++],i[p],i[p+1],t,r,a))return!0}else s+=gze(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case al.A:var m=i[p++],_=i[p++],b=i[p++],w=i[p++],S=i[p++],x=i[p++];p+=1;var C=!!(1-i[p++]);d=Math.cos(S)*b+m,h=Math.sin(S)*w+_,g?(c=d,f=h):s+=ys(l,u,d,h,r,a);var T=(r-m)*w/b+m;if(n){if(fze(m,_,w,S,S+x,C,t,T,a))return!0}else s+=mze(m,_,w,S,S+x,C,T,a);l=Math.cos(S+x)*b+m,u=Math.sin(S+x)*w+_;break;case al.R:c=l=i[p++],f=u=i[p++];var k=i[p++],A=i[p++];if(d=c+k,h=f+A,n){if(bl(c,f,d,f,t,r,a)||bl(d,f,d,h,t,r,a)||bl(d,h,c,h,t,r,a)||bl(c,h,c,f,t,r,a))return!0}else s+=ys(d,f,d,h,r,a),s+=ys(c,h,c,f,r,a);break;case al.Z:if(n){if(bl(l,u,c,f,t,r,a))return!0}else s+=ys(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!hze(u,f)&&(s+=ys(l,u,c,f,r,a)||0),s!==0}function yze(e,t,n){return Oj(e,0,!1,t,n)}function bze(e,t,n,r){return Oj(e,t,!0,n,r)}var a1=mt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Lc),_ze={style:mt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},iw.style)},rx=Jo.concat(["invisible","culling","z","z2","zlevel","parent"]),wze=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s<rx.length;++s)a[rx[s]]=this[rx[s]];a.__dirty|=Ba}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Ut(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],s=n[o];o==="style"?this.style?Be(this.style,s):this.useStyle(s):o==="shape"?Be(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 n=this.style.fill;if(n!=="none"){if(rt(n)){var r=vg(n,0);return r>.5?qT:r>.2?n6e:XT}else if(n)return XT}return qT},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(rt(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=vg(n,0)<YT;if(i===o)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Zf},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new es(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Zf)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.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 n},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){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)),bze(s,l/u,n,r)))return!0}if(this.hasFill())return yze(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Zf,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Be(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Zf)},t.prototype.createStyle=function(n){return lm(a1,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Be({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=Be({},a.shape),Be(u,r.shape)):(u=Be({},i?this.shape:a.shape),Be(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Be({},this.shape);for(var c={},f=Ut(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(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},t.prototype.getAnimationStyleProps=function(){return _ze},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(i){Rn(o,i);function o(s){var l=i.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return _t(n.style)},o.prototype.getDefaultShape=function(){return _t(n.shape)},o}(t);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Ba|$p|Zf}(),t}(Pi);const Gt=wze;var Sze=mt({strokeFirst:!0,font:ql,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a1),Nj=function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return lm(Sze,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=fm(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var n=t.prototype;n.dirtyRectTolerance=10}(),t}(Pi);Nj.prototype.type="tspan";const yg=Nj;var xze=mt({x:0,y:0},Lc),Cze={style:mt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},iw.style)};function Tze(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Bj=function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return lm(xze,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=Tze(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Cze},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Nt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Pi);Bj.prototype.type="image";const Ar=Bj;function kze(e,t){var n=t.x,r=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),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>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(n+s,r),e.lineTo(n+a-l,r),l!==0&&e.arc(n+a-l,r+l,l,-Math.PI/2,0),e.lineTo(n+a,r+i-u),u!==0&&e.arc(n+a-u,r+i-u,u,0,Math.PI/2),e.lineTo(n+c,r+i),c!==0&&e.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var sd=Math.round;function Fj(e,t,n){if(t){var r=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=r,e.x2=a,e.y1=i,e.y2=o;var s=n&&n.lineWidth;return s&&(sd(r*2)===sd(a*2)&&(e.x1=e.x2=yc(r,s,!0)),sd(i*2)===sd(o*2)&&(e.y1=e.y2=yc(i,s,!0))),e}}function Vj(e,t,n){if(t){var r=t.x,a=t.y,i=t.width,o=t.height;e.x=r,e.y=a,e.width=i,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=yc(r,s,!0),e.y=yc(a,s,!0),e.width=Math.max(yc(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(yc(a+o,s,!1)-e.y,o===0?0:1)),e}}function yc(e,t,n){if(!t)return e;var r=sd(e*2);return(r+sd(t))%2===0?r/2:(r+(n?1:-1))/2}var Aze=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Mze={},zj=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Aze},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=Vj(Mze,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?kze(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Gt);zj.prototype.type="rect";const tn=zj;var o5={fill:"#000"},s5=2,Pze={style:mt({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},iw.style)},Hj=function(e){Rn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=o5,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},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,Dze(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Nt(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),i=i||n.clone(),i.union(n)):(i=i||l.clone(),i.union(l))}this._rect=i||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||o5},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Be(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},t.prototype._mergeRich=function(n,r){for(var a=Ut(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Be(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return Pze},t.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||ql,a=n.padding,i=p5(n),o=X6e(i,n),s=ax(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,p=this._defaultStyle,v=n.x||0,g=n.y||0,m=n.align||p.align||"left",_=n.verticalAlign||p.verticalAlign||"top",b=v,w=Jf(g,o.contentHeight,_);if(s||a){var S=Op(v,c,m),x=Jf(g,u,_);s&&this._renderBackground(n,n,S,x,c,u)}w+=h/2,a&&(b=h5(v,m,a),_==="top"?w+=a[0]:_==="bottom"&&(w-=a[2]));for(var C=0,T=!1,k=d5("fill"in n?n.fill:(T=!0,p.fill)),A=f5("stroke"in n?n.stroke:!l&&(!p.autoStroke||T)?(C=s5,p.stroke):null),M=n.textShadowBlur>0,I=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),E=o.calculatedLineHeight,L=0;L<d.length;L++){var N=this._getOrCreateChild(yg),$=N.createStyle();N.useStyle($),$.text=d[L],$.x=b,$.y=w,m&&($.textAlign=m),$.textBaseline="middle",$.opacity=n.opacity,$.strokeFirst=!0,M&&($.shadowBlur=n.textShadowBlur||0,$.shadowColor=n.textShadowColor||"transparent",$.shadowOffsetX=n.textShadowOffsetX||0,$.shadowOffsetY=n.textShadowOffsetY||0),$.stroke=A,$.fill=k,A&&($.lineWidth=n.lineWidth||C,$.lineDash=n.lineDash,$.lineDashOffset=n.lineDashOffset||0),$.font=r,u5($,n),w+=h,I&&N.setBoundingRect(new Nt(Op($.x,n.width,$.textAlign),Jf($.y,E,$.textBaseline),f,E))}},t.prototype._updateRichTexts=function(){var n=this.style,r=p5(n),a=Q6e(r,n),i=a.width,o=a.outerWidth,s=a.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign,p=Op(u,o,d),v=Jf(c,s,h),g=p,m=v;l&&(g+=l[3],m+=l[0]);var _=g+i;ax(n)&&this._renderBackground(n,n,p,v,o,s);for(var b=!!n.backgroundColor,w=0;w<a.lines.length;w++){for(var S=a.lines[w],x=S.tokens,C=x.length,T=S.lineHeight,k=S.width,A=0,M=g,I=_,E=C-1,L=void 0;A<C&&(L=x[A],!L.align||L.align==="left");)this._placeToken(L,n,T,m,M,"left",b),k-=L.width,M+=L.width,A++;for(;E>=0&&(L=x[E],L.align==="right");)this._placeToken(L,n,T,m,I,"right",b),k-=L.width,I-=L.width,E--;for(M+=(i-(M-g)-(_-I)-k)/2;A<=E;)L=x[A],this._placeToken(L,n,T,m,M+L.width/2,"center",b),M+=L.width,A++;m+=T}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&ax(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,p=n.textPadding;p&&(o=h5(o,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(yg),g=v.createStyle();v.useStyle(g);var m=this._defaultStyle,_=!1,b=0,w=d5("fill"in u?u.fill:"fill"in r?r.fill:(_=!0,m.fill)),S=f5("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||_)?(b=s5,m.stroke):null),x=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,x&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||ql,g.opacity=to(u.opacity,r.opacity,1),u5(g,u),S&&(g.lineWidth=to(u.lineWidth,r.lineWidth,b),g.lineDash=Et(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=S),w&&(g.fill=w);var C=n.contentWidth,T=n.contentHeight;v.setBoundingRect(new Nt(Op(g.x,C,g.textAlign),Jf(g.y,T,g.textBaseline),C,T))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(tn),v.useStyle(v.createStyle()),v.style.fill=null;var m=v.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=h,v.dirtyShape()}if(d){var _=v.style;_.fill=l||null,_.fillOpacity=Et(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Ar),g.onload=function(){p.dirtyStyle()};var b=g.style;b.image=l.image,b.x=a,b.y=i,b.width=o,b.height=s}if(u&&c){var _=v.style;_.lineWidth=u,_.stroke=c,_.strokeOpacity=Et(n.strokeOpacity,1),_.lineDash=n.borderDash,_.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var w=(v||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=to(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Wj(n)&&(r=[n.fontStyle,n.fontWeight,Gj(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&yi(r)||n.textFont||n.font},t}(Pi),Eze={left:!0,right:1,center:1},Ize={top:1,bottom:1,middle:1},l5=["fontStyle","fontWeight","fontSize","fontFamily"];function Gj(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?LP+"px":e+"px"}function u5(e,t){for(var n=0;n<l5.length;n++){var r=l5[n],a=t[r];a!=null&&(e[r]=a)}}function Wj(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Dze(e){return c5(e),te(e.rich,c5),e}function c5(e){if(e){e.font=Hj.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Eze[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||Ize[n]?n:"top";var r=e.padding;r&&(e.padding=Z_(e.padding))}}function f5(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function d5(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function h5(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function p5(e){var t=e.text;return t!=null&&(t+=""),t}function ax(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const en=Hj;var kt=nn(),ik=function(e,t,n,r){if(r){var a=kt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",r.type==="group"&&r.traverse(function(i){var o=kt(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"})}},v5=1,g5={},Uj=nn(),tE=nn(),nE=0,hm=1,sw=2,pa=["emphasis","blur","select"],bg=["normal","emphasis","blur","select"],yh=10,Lze=9,$c="highlight",ib="downplay",vv="select",ob="unselect",gv="toggleSelect";function Pf(e){return e!=null&&e!=="none"}function lw(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function jj(e){lw(e,"emphasis",sw)}function Kj(e){e.hoverState===sw&&lw(e,"normal",nE)}function rE(e){lw(e,"blur",hm)}function Yj(e){e.hoverState===hm&&lw(e,"normal",nE)}function $ze(e){e.selected=!0}function Rze(e){e.selected=!1}function m5(e,t,n){t(e,n)}function qs(e,t,n){m5(e,t,n),e.isGroup&&e.traverse(function(r){m5(r,t,n)})}function i1(e,t){switch(t){case"emphasis":e.hoverState=sw;break;case"normal":e.hoverState=nE;break;case"blur":e.hoverState=hm;break;case"select":e.selected=!0}}function Oze(e,t,n,r){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function Nze(e,t,n,r){var a=n&&Ft(n,"select")>=0,i=!1;if(e instanceof Gt){var o=Uj(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Pf(s)||Pf(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Be({},r),u=Be({},u),u.fill=s):!Pf(u.fill)&&Pf(s)?(i=!0,r=Be({},r),u=Be({},u),u.fill=e1(s)):!Pf(u.stroke)&&Pf(l)&&(i||(r=Be({},r),u=Be({},u)),u.stroke=e1(l)),r.style=u}}if(r&&r.z2==null){i||(r=Be({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??yh)}return r}function Bze(e,t,n){if(n&&n.z2==null){n=Be({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Lze)}return n}function Fze(e,t,n){var r=Ft(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:Oze(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Be({},n),o=Be({opacity:r?a:i.opacity*.1},o),n.style=o),n}function ix(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Nze(this,e,t,n);if(e==="blur")return Fze(this,e,n);if(e==="select")return Bze(this,e,n)}return n}function Xc(e){e.stateProxy=ix;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ix),n&&(n.stateProxy=ix)}function y5(e,t){!Jj(e,t)&&!e.__highByOuter&&qs(e,jj)}function b5(e,t){!Jj(e,t)&&!e.__highByOuter&&qs(e,Kj)}function Ns(e,t){e.__highByOuter|=1<<(t||0),qs(e,jj)}function Bs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&qs(e,Kj)}function qj(e){qs(e,rE)}function aE(e){qs(e,Yj)}function Xj(e){qs(e,$ze)}function Zj(e){qs(e,Rze)}function Jj(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Qj(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=tE(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){Yj(u)}),s&&n.push(i)),o.isBlured=!1}),te(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function ok(e,t,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&aE(d)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||t==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||rE(g)}),Or(t))i(u.getData(),t);else if(bt(t))for(var p=Ut(t),v=0;v<p.length;v++)i(u.getData(p[v]),t[p[v]]);l.push(u),tE(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function sk(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){tE(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){rE(i)})}}}function Vze(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=Yc(a,t);i=(Ge(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=kt(o);ok(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&ok(r,c,f,n)}}}function iE(e,t,n,r){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return a;var i=r.getModel().getComponent(e,t);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(kt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function zze(e,t,n){var r=kt(e),a=iE(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&sk(r.componentMainType,r.componentIndex,n),te(i,function(s){return y5(s,t)})):(ok(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&sk(r.componentMainType,r.componentIndex,n),y5(e,t))}function Hze(e,t,n){Qj(n);var r=kt(e),a=iE(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?te(a,function(i){return b5(i,t)}):b5(e,t)}function Gze(e,t,n){if(uk(t)){var r=t.dataType,a=e.getData(r),i=Yc(a,t);Ge(i)||(i=[i]),e[t.type===gv?"toggleSelect":t.type===vv?"select":"unselect"](i,r)}}function _5(e){var t=e.getAllData();te(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?Xj(i):Zj(i)})})}function Wze(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();te(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Bl(e,t,n){bc(e,!0),qs(e,Xc),lk(e,t,n)}function Uze(e){bc(e,!1)}function Un(e,t,n,r){r?Uze(e):Bl(e,t,n)}function lk(e,t,n){var r=kt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var w5=["emphasis","blur","select"],jze={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Nr(e,t,n,r){n=n||"itemStyle";for(var a=0;a<w5.length;a++){var i=w5[a],o=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(o):o[jze[n]]()}}function bc(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function _g(e){return!!(e&&e.__highDownDispatcher)}function Kze(e,t,n){var r=kt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function Yze(e){var t=g5[e];return t==null&&v5<=32&&(t=g5[e]=v5++),t}function uk(e){var t=e.type;return t===vv||t===ob||t===gv}function S5(e){var t=e.type;return t===$c||t===ib}function qze(e){var t=Uj(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Ef=es.CMD,Xze=[[],[],[]],x5=Math.sqrt,Zze=Math.atan2;function eK(e,t){if(t){var n=e.data,r=e.len(),a,i,o,s,l,u,c=Ef.M,f=Ef.C,d=Ef.L,h=Ef.R,p=Ef.A,v=Ef.Q;for(o=0,s=0;o<r;){switch(a=n[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case v:i=2;break;case p:var g=t[4],m=t[5],_=x5(t[0]*t[0]+t[1]*t[1]),b=x5(t[2]*t[2]+t[3]*t[3]),w=Zze(-t[1]/b,t[0]/_);n[o]*=_,n[o++]+=g,n[o]*=b,n[o++]+=m,n[o++]*=_,n[o++]*=b,n[o++]+=w,n[o++]+=w,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],xr(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],xr(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var S=Xze[l];S[0]=n[o++],S[1]=n[o++],xr(S,S,t),n[s++]=S[0],n[s++]=S[1]}}e.increaseVersion()}}var ox=Math.sqrt,Py=Math.sin,Ey=Math.cos,up=Math.PI;function C5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ck(e,t){return(e[0]*t[0]+e[1]*t[1])/(C5(e)*C5(t))}function T5(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ck(e,t))}function k5(e,t,n,r,a,i,o,s,l,u,c){var f=l*(up/180),d=Ey(f)*(e-n)/2+Py(f)*(t-r)/2,h=-1*Py(f)*(e-n)/2+Ey(f)*(t-r)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=ox(p),s*=ox(p));var v=(a===i?-1:1)*ox((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,m=v*-s*d/o,_=(e+n)/2+Ey(f)*g-Py(f)*m,b=(t+r)/2+Py(f)*g+Ey(f)*m,w=T5([1,0],[(d-g)/o,(h-m)/s]),S=[(d-g)/o,(h-m)/s],x=[(-1*d-g)/o,(-1*h-m)/s],C=T5(S,x);if(ck(S,x)<=-1&&(C=up),ck(S,x)>=1&&(C=0),C<0){var T=Math.round(C/up*1e6)/1e6;C=up*2+T%2*up}c.addData(u,_,b,o,s,w,C,f,i)}var Jze=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Qze=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function eHe(e){var t=new es;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=es.CMD,l=e.match(Jze);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(Qze)||[],p=h.length,v=0;v<p;v++)h[v]=parseFloat(h[v]);for(var g=0;g<p;){var m=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,C=void 0,T=n,k=r,A=void 0,M=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,t.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,t.addData(d,n,r);break;case"H":n=h[g++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,t.addData(d,n,r);break;case"V":r=h[g++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":m=n,_=r,A=t.len(),M=t.data,o===s.C&&(m+=n-M[A-4],_+=r-M[A-3]),d=s.C,T=h[g++],k=h[g++],n=h[g++],r=h[g++],t.addData(d,m,_,T,k,n,r);break;case"s":m=n,_=r,A=t.len(),M=t.data,o===s.C&&(m+=n-M[A-4],_+=r-M[A-3]),d=s.C,T=n+h[g++],k=r+h[g++],n+=h[g++],r+=h[g++],t.addData(d,m,_,T,k,n,r);break;case"Q":T=h[g++],k=h[g++],n=h[g++],r=h[g++],d=s.Q,t.addData(d,T,k,n,r);break;case"q":T=h[g++]+n,k=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,T,k,n,r);break;case"T":m=n,_=r,A=t.len(),M=t.data,o===s.Q&&(m+=n-M[A-4],_+=r-M[A-3]),n=h[g++],r=h[g++],d=s.Q,t.addData(d,m,_,n,r);break;case"t":m=n,_=r,A=t.len(),M=t.data,o===s.Q&&(m+=n-M[A-4],_+=r-M[A-3]),n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,m,_,n,r);break;case"A":b=h[g++],w=h[g++],S=h[g++],x=h[g++],C=h[g++],T=n,k=r,n=h[g++],r=h[g++],d=s.A,k5(T,k,n,r,x,C,b,w,S,d,t);break;case"a":b=h[g++],w=h[g++],S=h[g++],x=h[g++],C=h[g++],T=n,k=r,n+=h[g++],r+=h[g++],d=s.A,k5(T,k,n,r,x,C,b,w,S,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=a,r=i),o=d}return t.toStatic(),t}var tK=function(e){Rn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(Gt);function nK(e){return e.setData!=null}function rK(e,t){var n=eHe(e),r=Be({},t);return r.buildPath=function(a){if(nK(a)){a.setData(n.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;n.rebuildPath(i,1)}},r.applyTransform=function(a){eK(n,a),this.dirtyShape()},r}function aK(e,t){return new tK(rK(e,t))}function tHe(e,t){var n=rK(e,t),r=function(a){Rn(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(tK);return r}function nHe(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var i=e[a];n.push(i.getUpdatedPathProxy(!0))}var o=new Gt(t);return o.createPathProxy(),o.buildPath=function(s){if(nK(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function oE(e,t){t=t||{};var n=new Gt;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?eK(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var rHe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),iK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new rHe},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(Gt);iK.prototype.type="circle";const Xs=iK;var aHe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),oK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new aHe},t.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*a,c=l*a;n.moveTo(i-s,o),n.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),n.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),n.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),n.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),n.closePath()},t}(Gt);oK.prototype.type="ellipse";const uw=oK;var sK=Math.PI,sx=sK*2,$u=Math.sin,If=Math.cos,iHe=Math.acos,Vr=Math.atan2,A5=Math.abs,mv=Math.sqrt,Np=Math.max,ko=Math.min,Fi=1e-4;function oHe(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Fi))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function Iy(e,t,n,r,a,i,o){var s=e-n,l=t-r,u=(o?i:-i)/mv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,p=n+c,v=r+f,g=(d+p)/2,m=(h+v)/2,_=p-d,b=v-h,w=_*_+b*b,S=a-i,x=d*v-p*h,C=(b<0?-1:1)*mv(Np(0,S*S*w-x*x)),T=(x*b-_*C)/w,k=(-x*_-b*C)/w,A=(x*b+_*C)/w,M=(-x*_+b*C)/w,I=T-g,E=k-m,L=A-g,N=M-m;return I*I+E*E>L*L+N*N&&(T=A,k=M),{cx:T,cy:k,x0:-c,y0:-f,x1:T*(a/S-1),y1:k*(a/S-1)}}function sHe(e){var t;if(Ge(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function lHe(e,t){var n,r=Np(t.r,0),a=Np(t.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=A5(u-l),p=h>sx&&h%sx;if(p>Fi&&(h=p),!(r>Fi))e.moveTo(c,f);else if(h>sx-Fi)e.moveTo(c+r*If(l),f+r*$u(l)),e.arc(c,f,r,l,u,!d),a>Fi&&(e.moveTo(c+a*If(u),f+a*$u(u)),e.arc(c,f,a,u,l,d));else{var v=void 0,g=void 0,m=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,C=void 0,T=void 0,k=void 0,A=void 0,M=void 0,I=void 0,E=void 0,L=void 0,N=r*If(l),$=r*$u(l),P=a*If(u),R=a*$u(u),D=h>Fi;if(D){var B=t.cornerRadius;B&&(n=sHe(B),v=n[0],g=n[1],m=n[2],_=n[3]);var H=A5(r-a)/2;if(b=ko(H,m),w=ko(H,_),S=ko(H,v),x=ko(H,g),k=C=Np(b,w),A=T=Np(S,x),(C>Fi||T>Fi)&&(M=r*If(u),I=r*$u(u),E=a*If(l),L=a*$u(l),h<sK)){var G=oHe(N,$,E,L,M,I,P,R);if(G){var X=N-G[0],ue=$-G[1],ie=M-G[0],le=I-G[1],Q=1/$u(iHe((X*ie+ue*le)/(mv(X*X+ue*ue)*mv(ie*ie+le*le)))/2),J=mv(G[0]*G[0]+G[1]*G[1]);k=ko(C,(r-J)/(Q+1)),A=ko(T,(a-J)/(Q-1))}}}if(!D)e.moveTo(c+N,f+$);else if(k>Fi){var se=ko(m,k),he=ko(_,k),re=Iy(E,L,N,$,r,se,d),z=Iy(M,I,P,R,r,he,d);e.moveTo(c+re.cx+re.x0,f+re.cy+re.y0),k<C&&se===he?e.arc(c+re.cx,f+re.cy,k,Vr(re.y0,re.x0),Vr(z.y0,z.x0),!d):(se>0&&e.arc(c+re.cx,f+re.cy,se,Vr(re.y0,re.x0),Vr(re.y1,re.x1),!d),e.arc(c,f,r,Vr(re.cy+re.y1,re.cx+re.x1),Vr(z.cy+z.y1,z.cx+z.x1),!d),he>0&&e.arc(c+z.cx,f+z.cy,he,Vr(z.y1,z.x1),Vr(z.y0,z.x0),!d))}else e.moveTo(c+N,f+$),e.arc(c,f,r,l,u,!d);if(!(a>Fi)||!D)e.lineTo(c+P,f+R);else if(A>Fi){var se=ko(v,A),he=ko(g,A),re=Iy(P,R,M,I,a,-he,d),z=Iy(N,$,E,L,a,-se,d);e.lineTo(c+re.cx+re.x0,f+re.cy+re.y0),A<T&&se===he?e.arc(c+re.cx,f+re.cy,A,Vr(re.y0,re.x0),Vr(z.y0,z.x0),!d):(he>0&&e.arc(c+re.cx,f+re.cy,he,Vr(re.y0,re.x0),Vr(re.y1,re.x1),!d),e.arc(c,f,a,Vr(re.cy+re.y1,re.cx+re.x1),Vr(z.cy+z.y1,z.cx+z.x1),d),se>0&&e.arc(c+z.cx,f+z.cy,se,Vr(z.y1,z.x1),Vr(z.y0,z.x0),!d))}else e.lineTo(c+P,f+R),e.arc(c,f,a,u,l,d)}e.closePath()}}}var uHe=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}(),lK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new uHe},t.prototype.buildPath=function(n,r){lHe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Gt);lK.prototype.type="sector";const va=lK;var cHe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),uK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new cHe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(Gt);uK.prototype.type="ring";const pm=uK;function fHe(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Cs(c,c,e[d]),Ts(f,f,e[d]);Cs(c,c,r[0]),Ts(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var p=e[d];if(n)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(Wo(e[d]));continue}else l=e[d-1],u=e[d+1];Cl(i,u,l),uv(i,i,t);var v=Xb(p,l),g=Xb(p,u),m=v+g;m!==0&&(v/=m,g/=m),uv(o,i,-v),uv(s,i,g);var _=LT([],p,o),b=LT([],p,s);r&&(Ts(_,_,c),Cs(_,_,f),Ts(b,b,c),Cs(b,b,f)),a.push(_),a.push(b)}return n&&a.push(a.shift()),a}function cK(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var i=fHe(a,r,n,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}n&&e.closePath()}}var dHe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),fK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new dHe},t.prototype.buildPath=function(n,r){cK(n,r,!0)},t}(Gt);fK.prototype.type="polygon";const ga=fK;var hHe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),dK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hHe},t.prototype.buildPath=function(n,r){cK(n,r,!1)},t}(Gt);dK.prototype.type="polyline";const ba=dK;var pHe={},vHe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),hK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vHe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=Fj(pHe,r,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=r.x1,i=r.y1,o=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),n.lineTo(o,s))},t.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},t}(Gt);hK.prototype.type="line";const dr=hK;var wa=[],gHe=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 M5(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?RN:cr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?RN:cr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?FT:_r)(e.x1,e.cpx1,e.x2,t),(n?FT:_r)(e.y1,e.cpy1,e.y2,t)]}var pK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gHe},t.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(a,i),c==null||f==null?(d<1&&(dg(a,l,o,d,wa),l=wa[1],o=wa[2],dg(i,u,s,d,wa),u=wa[1],s=wa[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(Xl(a,l,c,o,d,wa),l=wa[1],c=wa[2],o=wa[3],Xl(i,u,f,s,d,wa),u=wa[1],f=wa[2],s=wa[3]),n.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(n){return M5(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=M5(this.shape,n,!0);return lf(r,r)},t}(Gt);pK.prototype.type="bezier-curve";const vm=pK;var mHe=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}(),vK=function(e){Rn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mHe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*o+a,f*o+i),n.arc(a,i,o,s,l,!u)},t}(Gt);vK.prototype.type="arc";const cw=vK;var yHe=function(e){Rn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Gt.prototype.getBoundingRect.call(this)},t}(Gt);const fw=yHe;var bHe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const gK=bHe;var _He=function(e){Rn(t,e);function t(n,r,a,i,o,s){var l=e.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(gK);const ts=_He;var wHe=function(e){Rn(t,e);function t(n,r,a,i,o){var s=e.call(this,i)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(gK);const sE=wHe;var Ru=[0,0],Ou=[0,0],Dy=new Ot,Ly=new Ot,SHe=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Ot;for(var r=0;r<2;r++)this._axes[r]=new Ot;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(r[0].set(i,o),r[1].set(s,o),r[2].set(s,l),r[3].set(i,l),n)for(var u=0;u<4;u++)r[u].transform(n);Ot.sub(a[0],r[1],r[0]),Ot.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,a=!n;return Dy.set(1/0,1/0),Ly.set(0,0),!this._intersectCheckOneSide(this,t,Dy,Ly,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(t,this,Dy,Ly,a,-1)&&(r=!1,a)||a||Ot.copy(n,r?Dy:Ly),r},e.prototype._intersectCheckOneSide=function(t,n,r,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Ru),this._getProjMinMaxOnAxis(l,n._corners,Ou),Ru[1]<Ou[0]||Ru[0]>Ou[1]){if(s=!1,i)return s;var c=Math.abs(Ou[0]-Ru[1]),f=Math.abs(Ru[0]-Ou[1]);Math.min(c,f)>a.len()&&(c<f?Ot.scale(a,u,-c*o):Ot.scale(a,u,f*o))}else if(r){var c=Math.abs(Ou[0]-Ru[1]),f=Math.abs(Ru[0]-Ou[1]);Math.min(c,f)<r.len()&&(c<f?Ot.scale(r,u,c*o):Ot.scale(r,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var a=this._axes[t],i=this._origin,o=n[0].dot(a)+i[t],s=o,l=o,u=1;u<n.length;u++){var c=n[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},e}();const o1=SHe;var xHe=[],CHe=function(e){Rn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,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(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Nt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(xHe)),n.union(i)}this._rect=n}return this._rect},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},t}(Pi);const mK=CHe;var yK=nn();function bh(e,t,n,r,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Et(r.duration,200),c=Et(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ht(f)&&(f=f(n,a)),ht(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function lE(e,t,n,r,a,i,o){var s=!1,l;ht(a)?(o=i,i=a,a=null):bt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=bh(e,r,a,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function sn(e,t,n,r,a,i){lE("update",e,t,n,r,a,i)}function Ln(e,t,n,r,a,i){lE("enter",e,t,n,r,a,i)}function xd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function Zl(e,t,n,r,a,i){xd(e)||lE("leave",e,t,n,r,a,i)}function P5(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Zl(e,{style:{opacity:0}},t,n,r)}function wg(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||P5(a,t,n,r)}):P5(e,t,n,r)}function ho(e){yK(e).oldStyle=e.style}function THe(e){return yK(e).oldStyle}var s1=Math.max,l1=Math.min,fk={};function Fo(e){return Gt.extend(e)}var kHe=tHe;function bK(e,t){return kHe(e,t)}function ir(e,t){fk[e]=t}function dw(e){if(fk.hasOwnProperty(e))return fk[e]}function gm(e,t,n,r){var a=aK(e,t);return n&&(r==="center"&&(n=_K(n,a.getBoundingRect())),cE(a,n)),a}function uE(e,t,n){var r=new Ar({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(_K(t,i))}}});return r}function _K(e,t){var n=t.width/t.height,r=e.height*n,a;r<=e.width?a=e.height:(r=e.width,a=r/n);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var Fa=nHe;function cE(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function Zd(e,t){return Fj(e,e,{lineWidth:t}),e}function AHe(e){return Vj(e.shape,e.shape,e.style),e}var sb=yc;function Fl(e,t){for(var n=um([]);e&&e!==t;)Uo(n,e.getLocalTransform(),n),e=e.parent;return n}function ao(e,t,n){return t&&!Or(t)&&(t=ks.getLocalTransform(t)),n&&(t=uf([],t)),xr([],e,t)}function hw(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-r:e==="right"?r:0,e==="top"?-a:e==="bottom"?a:0];return i=ao(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function E5(e){return!e.isGroup}function MHe(e){return e.shape!=null}function mm(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){E5(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return MHe(o)&&(s.shape=Be({},o.shape)),s}var i=r(e);t.traverse(function(o){if(E5(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),sn(o,l,n,kt(o).dataIndex)}}})}function fE(e,t){return We(e,function(n){var r=n[0];r=s1(r,t.x),r=l1(r,t.x+t.width);var a=n[1];return a=s1(a,t.y),a=l1(a,t.y+t.height),[r,a]})}function wK(e,t){var n=s1(e.x,t.x),r=l1(e.x+e.width,t.x+t.width),a=s1(e.y,t.y),i=l1(e.y+e.height,t.y+t.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function _h(e,t,n){var r=Be({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),mt(a,n),new Ar(r)):gm(e.replace("path://",""),r,n,"center")}function Bp(e,t,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(SK(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function SK(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=lx(c,f,l,u);if(PHe(d))return!1;var h=e-a,p=t-i,v=lx(h,p,l,u)/d;if(v<0||v>1)return!1;var g=lx(h,p,c,f)/d;return!(g<0||g>1)}function lx(e,t,n,r){return e*r-n*t}function PHe(e){return e<=1e-6&&e>=-1e-6}function wh(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=rt(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&te(Ut(l),function(c){ot(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=kt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:mt({content:r,encodeHTMLContent:!0,formatterParams:s},a)}}function I5(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function du(e,t){if(e)if(Ge(e))for(var n=0;n<e.length;n++)I5(e[n],t);else I5(e,t)}ir("circle",Xs);ir("ellipse",uw);ir("sector",va);ir("ring",pm);ir("polygon",ga);ir("polyline",ba);ir("rect",tn);ir("line",dr);ir("bezierCurve",vm);ir("arc",cw);const cf=Object.freeze(Object.defineProperty({__proto__:null,Arc:cw,BezierCurve:vm,BoundingRect:Nt,Circle:Xs,CompoundPath:fw,Ellipse:uw,Group:Tt,Image:Ar,IncrementalDisplayable:mK,Line:dr,LinearGradient:ts,OrientedBoundingRect:o1,Path:Gt,Point:Ot,Polygon:ga,Polyline:ba,RadialGradient:sE,Rect:tn,Ring:pm,Sector:va,Text:en,applyTransform:ao,clipPointsByRect:fE,clipRectByRect:wK,createIcon:_h,extendPath:bK,extendShape:Fo,getShapeClass:dw,getTransform:Fl,groupTransition:mm,initProps:Ln,isElementRemoved:xd,lineLineIntersect:SK,linePolygonIntersect:Bp,makeImage:uE,makePath:gm,mergePath:Fa,registerShape:ir,removeElement:Zl,removeElementWithFadeOut:wg,resizePath:cE,setTooltipConfig:wh,subPixelOptimize:sb,subPixelOptimizeLine:Zd,subPixelOptimizeRect:AHe,transformDirection:hw,traverseElements:du,updateProps:sn},Symbol.toStringTag,{value:"Module"}));var pw={};function xK(e,t){for(var n=0;n<pa.length;n++){var r=pa[n],a=t[r],i=e.ensureState(r);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function dk(e,t,n){var r=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=ht(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<pa.length;u++){var c=pa[u],f=t[c];l[c]=Et(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Br(e,t,n,r){n=n||pw;for(var a=e instanceof en,i=!1,o=0;o<bg.length;o++){var s=t[bg[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new en,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=dk(n,t),c=t.normal,f=!!c.getShallow("show"),d=Cn(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig(u1(c,n,!1));for(var o=0;o<pa.length;o++){var h=pa[o],s=t[h];if(s){var p=l.ensureState(h),v=!!Et(s.getShallow("show"),f);if(v!==f&&(p.ignore=!v),p.style=Cn(s,r&&r[h],n,!0,!a),p.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=u1(s,n,!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(),n.enableTextSetter&&(Sh(l).setLabelText=function(m){var _=dk(n,t,m);xK(l,_)})}else l&&(l.ignore=!0);e.dirty()}function vr(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<pa.length;r++){var a=pa[r];n[a]=e.getModel([a,t])}return n}function Cn(e,t,n,r,a){var i={};return EHe(i,e,n,r,a),t&&Be(i,t),i}function u1(e,t,n){t=t||{};var r={},a,i=e.getShallow("rotate"),o=Et(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function EHe(e,t,n,r,a){n=n||pw;var i=t.ecModel,o=i&&i.option.textStyle,s=IHe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);R5(l[u]={},c,o,n,r,a,!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),R5(e,t,o,n,r,a,!0,!1)}function IHe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||pw).rich;if(n){t=t||{};for(var r=Ut(n),a=0;a<r.length;a++){var i=r[a];t[i]=1}}e=e.parentModel}return t}var D5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],L5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],$5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function R5(e,t,n,r,a,i,o,s){n=!a&&n||pw;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Et(t.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Et(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Et(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var p=Et(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!a&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var v=0;v<D5.length;v++){var g=D5[v],m=Et(t.getShallow(g),n[g]);m!=null&&(e[g]=m)}for(var v=0;v<L5.length;v++){var g=L5[v],m=t.getShallow(g);m!=null&&(e[g]=m)}if(e.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(e.verticalAlign=_)}if(!o||!r.disableBox){for(var v=0;v<$5.length;v++){var g=$5[v],m=t.getShallow(g);m!=null&&(e[g]=m)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function dE(e,t){var n=t&&t.getModel("textStyle");return yi([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Sh=nn();function CK(e,t,n,r){if(e){var a=Sh(e);a.prevValue=a.value,a.value=n;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=t)}}function TK(e,t,n,r,a){var i=Sh(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Et(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=Mj(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=dk({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);xK(e,d)}e.percent=0,(i.prevValue==null?Ln:sn)(e,{percent:1},r,t,null,u)}var DHe=["textStyle","color"],ux=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],cx=new en,LHe=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(DHe):null)},e.prototype.getFont=function(){return dE({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 n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<ux.length;r++)n[ux[r]]=this.getShallow(ux[r]);return cx.useStyle(n),cx.update(),cx.getBoundingRect()},e}();const $He=LHe;var kK=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],RHe=qc(kK),OHe=function(){function e(){}return e.prototype.getLineStyle=function(t){return RHe(this,t)},e}(),AK=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],NHe=qc(AK),BHe=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return NHe(this,t,n)},e}(),ff=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){Rt(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,a=r==null?r:r[t];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,n){var r=t!=null,a=r?this.parsePath(t):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,n,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(_t(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(!rn.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var a=0;a<t.length&&!(t[a]&&(r=r&&typeof r=="object"?r[t[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();JP(ff);H6e(ff);Yn(ff,OHe);Yn(ff,BHe);Yn(ff,K6e);Yn(ff,$He);const mn=ff;var FHe=Math.round(Math.random()*10);function xh(e){return[e||"",FHe++].join("_")}function VHe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=Bo(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var i=Bo(n).main;e.hasSubTypes(n)&&t[i]&&(a=t[i](r))}return a}}function zHe(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(te(i,function(_){d[_]=!0});f.length;){var h=f.pop(),p=c[h],v=!!d[h];v&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),te(p.successor,v?m:g)}te(d,function(){var _="";throw new Error(_)});function g(_){c[_].entryCount--,c[_].entryCount===0&&f.push(_)}function m(_){d[_]=!0,g(_)}};function n(i){var o={},s=[];return te(i,function(l){var u=r(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),te(f,function(d){Ft(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);Ft(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return te(i,function(l){Ft(o,l)>=0&&s.push(l)}),s}}function hu(e,t){return Rt(Rt({},e,!0),t,!0)}const HHe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},GHe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var c1="ZH",hE="EN",Cd=hE,lb={},pE={},MK=rn.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Cd).toUpperCase();return e.indexOf(c1)>-1?c1:Cd}():Cd;function vE(e,t){e=e.toUpperCase(),pE[e]=new mn(t),lb[e]=t}function WHe(e){if(rt(e)){var t=lb[e.toUpperCase()]||{};return e===c1||e===hE?_t(t):Rt(_t(t),_t(lb[Cd]),!1)}else return Rt(_t(e),_t(lb[Cd]),!1)}function hk(e){return pE[e]}function UHe(){return pE[Cd]}vE(hE,HHe);vE(c1,GHe);var gE=1e3,mE=gE*60,yv=mE*60,gi=yv*24,O5=gi*365,Fp={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}"},$y="{yyyy}-{MM}-{dd}",N5={year:"{yyyy}",month:"{yyyy}-{MM}",day:$y,hour:$y+" "+Fp.hour,minute:$y+" "+Fp.minute,second:$y+" "+Fp.second,millisecond:Fp.none},fx=["year","month","day","hour","minute","second","millisecond"],PK=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ra(e,t){return e+="","0000".substr(0,t-e.length)+e}function Td(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 jHe(e){return e===Td(e)}function KHe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ym(e,t,n,r){var a=Za(e),i=a[yE(n)](),o=a[kd(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[vw(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[Sg(n)](),f=(c-1)%12+1,d=a[gw(n)](),h=a[mw(n)](),p=a[yw(n)](),v=c>=12?"pm":"am",g=v.toUpperCase(),m=r instanceof mn?r:hk(r||MK)||UHe(),_=m.getModel("time"),b=_.get("month"),w=_.get("monthAbbr"),S=_.get("dayOfWeek"),x=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,v+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ra(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,ra(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ra(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ra(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ra(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ra(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ra(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,ra(p,3)).replace(/{S}/g,p+"")}function YHe(e,t,n,r,a){var i=null;if(rt(n))i=n;else if(ht(n))i=n(e.value,t,{level:e.level});else{var o=Be({},Fp);if(e.level>0)for(var s=0;s<fx.length;++s)o[fx[s]]="{primary|"+o[fx[s]]+"}";var l=n?n.inherit===!1?n:mt(n,o):o,u=EK(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=PK.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Ge(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return ym(new Date(e.value),i,a,r)}function EK(e,t){var n=Za(e),r=n[kd(t)]()+1,a=n[vw(t)](),i=n[Sg(t)](),o=n[gw(t)](),s=n[mw(t)](),l=n[yw(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,p=h&&r===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function B5(e,t,n){var r=an(e)?Za(e):e;switch(t=t||EK(e,n),t){case"year":return r[yE(n)]();case"half-year":return r[kd(n)]()>=6?1:0;case"quarter":return Math.floor((r[kd(n)]()+1)/4);case"month":return r[kd(n)]();case"day":return r[vw(n)]();case"half-day":return r[Sg(n)]()/24;case"hour":return r[Sg(n)]();case"minute":return r[gw(n)]();case"second":return r[mw(n)]();case"millisecond":return r[yw(n)]()}}function yE(e){return e?"getUTCFullYear":"getFullYear"}function kd(e){return e?"getUTCMonth":"getMonth"}function vw(e){return e?"getUTCDate":"getDate"}function Sg(e){return e?"getUTCHours":"getHours"}function gw(e){return e?"getUTCMinutes":"getMinutes"}function mw(e){return e?"getUTCSeconds":"getSeconds"}function yw(e){return e?"getUTCMilliseconds":"getMilliseconds"}function qHe(e){return e?"setUTCFullYear":"setFullYear"}function IK(e){return e?"setUTCMonth":"setMonth"}function DK(e){return e?"setUTCDate":"setDate"}function LK(e){return e?"setUTCHours":"setHours"}function $K(e){return e?"setUTCMinutes":"setMinutes"}function RK(e){return e?"setUTCSeconds":"setSeconds"}function OK(e){return e?"setUTCMilliseconds":"setMilliseconds"}function XHe(e,t,n,r,a,i,o,s){var l=new en({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function bE(e){if(!qP(e))return rt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function _E(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var df=Z_;function pk(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&yi(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Za(e):e;if(isNaN(+l)){if(s)return"-"}else return ym(l,r,n)}if(t==="ordinal")return Yb(e)?a(e):an(e)&&i(e)?e+"":"-";var u=Qo(e);return i(u)?bE(u):Yb(e)?a(e):typeof e=="boolean"?e+"":"-"}var F5=["a","b","c","d","e","f","g"],dx=function(e,t){return"{"+e+(t??"")+"}"};function wE(e,t,n){Ge(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=F5[i];e=e.replace(dx(o),dx(o,0))}for(var s=0;s<r;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(dx(F5[l],s),n?Wr(u):u)}return e}function ZHe(e,t,n){return te(t,function(r,a){e=e.replace("{"+a+"}",n?Wr(r):r)}),e}function NK(e,t){var n=rt(e)?{color:e,extraCssText:t}:e||{},r=n.color,a=n.type;t=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Wr(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Wr(r)+";"+(t||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function JHe(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
yyyy`);var r=Za(t),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,s=r[a+"Date"](),l=r[a+"Hours"](),u=r[a+"Minutes"](),c=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return e=e.replace("MM",ra(o,2)).replace("M",o).replace("yyyy",i).replace("yy",ra(i%100+"",2)).replace("dd",ra(s,2)).replace("d",s).replace("hh",ra(l,2)).replace("h",l).replace("mm",ra(u,2)).replace("m",u).replace("ss",ra(c,2)).replace("s",c).replace("SSS",ra(f,3)),e}function QHe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Zc(e,t){return t=t||"transparent",rt(e)?e:bt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function f1(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var ub=te,BK=["left","right","top","bottom","width","height"],_c=[["width","left","right"],["height","top","bottom"]];function SE(e,t,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=i+v,h>r||l.newline?(i=0,h=v,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>a||l.newline?(i+=s+n,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+n:o=p+n)})}var Rc=SE;Pt(SE,"vertical");Pt(SE,"horizontal");function eGe(e,t,n){var r=t.width,a=t.height,i=Qe(e.left,r),o=Qe(e.top,a),s=Qe(e.right,r),l=Qe(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=df(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function rr(e,t,n){n=df(n||0);var r=t.width,a=t.height,i=Qe(e.left,r),o=Qe(e.top,a),s=Qe(e.right,r),l=Qe(e.bottom,a),u=Qe(e.width,r),c=Qe(e.height,a),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new Nt(i+n[3],o+n[0],u,c);return p.margin=n,p}function bw(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Nt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=rr(mt({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===e&&e.markRedraw(),!0}function tGe(e,t){return e[_c[t][0]]!=null||e[_c[t][1]]!=null&&e[_c[t][2]]!=null}function xg(e){var t=e.layoutMode||e.constructor.layoutMode;return bt(t)?t:t?{type:t}:null}function Jl(e,t,n){var r=n&&n.ignoreSize;!Ge(r)&&(r=[r,r]);var a=o(_c[0],0),i=o(_c[1],1);u(_c[0],e,a),u(_c[1],e,i);function o(c,f){var d={},h=0,p={},v=0,g=2;if(ub(c,function(b){p[b]=e[b]}),ub(c,function(b){s(t,b)&&(d[b]=p[b]=t[b]),l(d,b)&&h++,l(p,b)&&v++}),r[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var m=0;m<c.length;m++){var _=c[m];if(!s(d,_)&&s(e,_)){d[_]=e[_];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){ub(c,function(h){f[h]=d[h]})}}function Ch(e){return FK({},e)}function FK(e,t){return t&&e&&ub(BK,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var nGe=nn(),Th=function(e){De(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.uid=xh("ec_cpt_model"),i}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=xg(this),i=a?Ch(n):{},o=r.getTheme();Rt(n,o.get(this.mainType)),Rt(n,this.getDefaultOption()),a&&Jl(n,i,a)},t.prototype.mergeOption=function(n,r){Rt(this.option,n,!0);var a=xg(this);a&&Jl(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!F6e(n))return n.defaultOption;var r=nGe(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Rt(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return dm(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(mn);Ej(Th,mn);rw(Th);VHe(Th);zHe(Th,rGe);function rGe(e){var t=[];return te(Th.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=We(t,function(n){return Bo(n).main}),e!=="dataset"&&Ft(t,"dataset")<=0&&t.unshift("dataset"),t}const Xt=Th;var VK="";typeof navigator<"u"&&(VK=navigator.platform||"");var Df="rgba(0, 0, 0, 0.2)";const aGe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Df,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Df,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Df,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Df,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Df,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Df,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:VK.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 zK=ut(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ii="original",Xr="arrayRows",Di="objectRows",ss="keyedColumns",Vl="typedArray",HK="unknown",jo="column",kh="row",Pr={Must:1,Might:2,Not:3},GK=nn();function iGe(e){GK(e).datasetMap=ut()}function WK(e,t,n){var r={},a=CE(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=GK(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),te(e,function(v,g){var m=bt(v)?v:e[g]={name:v};m.type==="ordinal"&&c==null&&(c=g,f=p(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});te(e,function(v,g){var m=v.name,_=p(v);if(c==null){var b=d.valueWayDim;h(r[m],b,_),h(o,b,_),d.valueWayDim+=_}else if(c===g)h(r[m],0,_),h(i,0,_);else{var b=d.categoryWayDim;h(r[m],b,_),h(o,b,_),d.categoryWayDim+=_}});function h(v,g,m){for(var _=0;_<m;_++)v.push(g+_)}function p(v){var g=v.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function xE(e,t,n){var r={},a=CE(e);if(!a)return r;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Di||i===ss)&&te(o,function(c,f){(bt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,p=Math.min(5,n);h<p;h++){var v=jK(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(v);var g=v===Pr.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Pr.Not)&&(c.n=h),m(c)&&d[c.n]!==Pr.Not)return c;g||(v===Pr.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(_){return _.v!=null&&_.n!=null}return m(c)?c:m(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function CE(e){var t=e.get("data",!0);if(!t)return dm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Qn).models[0]}function oGe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:dm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Qn).models}function UK(e,t){return jK(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function jK(e,t,n,r,a,i){var o,s=5;if(ha(e))return Pr.Not;var l,u;if(r){var c=r[i];bt(c)?(l=c.name,u=c.type):rt(c)&&(l=c)}if(u!=null)return u==="ordinal"?Pr.Must:Pr.Not;if(t===Xr){var f=e;if(n===kh){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[a+h];if(p&&(o=w(p[i]))!=null)return o}}else if(t===Di){var v=e;if(!l)return Pr.Not;for(var h=0;h<v.length&&h<s;h++){var g=v[h];if(g&&(o=w(g[l]))!=null)return o}}else if(t===ss){var m=e;if(!l)return Pr.Not;var d=m[l];if(!d||ha(d))return Pr.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(t===Ii)for(var _=e,h=0;h<_.length&&h<s;h++){var g=_[h],b=mh(g);if(!Ge(b))return Pr.Not;if((o=w(b[i]))!=null)return o}function w(S){var x=rt(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?Pr.Might:Pr.Not;if(x&&S!=="-")return Pr.Must}return Pr.Not}var vk=ut();function sGe(e,t){qr(vk.get(e)==null&&t),vk.set(e,t)}function lGe(e,t,n){var r=vk.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var V5=nn(),uGe=nn(),TE=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=yn(this.get("color",!0)),i=this.get("colorLayer",!0);return KK(this,V5,a,i,t,n,r)},e.prototype.clearColorPalette=function(){fGe(this,V5)},e}();function gk(e,t,n,r){var a=yn(e.get(["aria","decal","decals"]));return KK(e,uGe,a,null,t,n,r)}function cGe(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function KK(e,t,n,r,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:cGe(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function fGe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ry,cp,z5,H5="\0_ec_inner",dGe=1,YK=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new mn(i),this._locale=new mn(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=U5(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,U5(r))},t.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?z5(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&te(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ut(),u=r&&r.replaceMergeMainTypeMap;iGe(this),te(n,function(f,d){f!=null&&(Xt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?_t(f):Rt(a[d],f,!0))}),u&&u.each(function(f,d){Xt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Xt.topologicalTravel(s,Xt.getAllClassMainTypes(),c,this);function c(f){var d=lGe(this,f,yn(n[f])),h=i.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=Tj(h,d,p);E6e(v,f,Xt),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],_=0,b;te(v,function(w,S){var x=w.existing,C=w.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=f==="series",k=Xt.getClass(f,w.keyInfo.subType,!T);if(!k)return;if(f==="tooltip"){if(b)return;b=!0}if(x&&x.constructor===k)x.name=w.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=Be({componentIndex:S},w.keyInfo);x=new k(C,this,this,A),Be(x,A),w.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),_++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,_),f==="series"&&Ry(this)}this._seriesIndices||Ry(this)},t.prototype.getOption=function(){var n=_t(this.option);return te(n,function(r,a){if(Xt.hasClass(a)){for(var i=yn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!mg(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[H5],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],te(yn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=G5("id",i,s):o!=null?l=G5("name",o,s):l=hn(s,function(u){return!!u}),W5(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):hn(this._componentsMap.get(a),function(u){return!!u});return l(W5(o,n));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?hn(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(ht(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=rt(n)?i.get(n):bt(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=ar(n,null);return hn(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return hn(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return hn(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){cp(this),te(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},t.prototype.eachRawSeries=function(n,r){te(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){cp(this),te(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(n,r,a){return te(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return cp(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){cp(this);var a=[];te(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ut(a)},t.prototype.restoreData=function(n){Ry(this);var r=this._componentsMap,a=[];r.each(function(i,o){Xt.hasClass(o)&&a.push(o)}),Xt.topologicalTravel(a,Xt.getAllClassMainTypes(),function(i){te(r.get(i),function(o){o&&(i!=="series"||!hGe(o,n))&&o.restoreData()})})},t.internalField=function(){Ry=function(n){var r=n._seriesIndices=[];te(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=ut(r)},cp=function(n){},z5=function(n,r){n.option={},n.option[H5]=dGe,n._componentsMap=ut({series:[]}),n._componentsCount=ut();var a=r.aria;bt(a)&&a.enabled==null&&(a.enabled=!0),pGe(r,n._theme.option),Rt(r,aGe,!1),n._mergeOption(r,null)}}(),t}(mn);function hGe(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,a=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||a!=null&&e.name!==a}}function pGe(e,t){var n=e.color&&!e.colorLayer;te(t,function(r,a){a==="colorLayer"&&n||Xt.hasClass(a)||(typeof r=="object"?e[a]=e[a]?Rt(e[a],r,!1):_t(r):e[a]==null&&(e[a]=r))})}function G5(e,t,n){if(Ge(t)){var r=ut();return te(t,function(i){if(i!=null){var o=ar(i,null);o!=null&&r.set(i,!0)}}),hn(n,function(i){return i&&r.get(i[e])})}else{var a=ar(t,null);return hn(n,function(i){return i&&a!=null&&i[e]===a})}}function W5(e,t){return t.hasOwnProperty("subType")?hn(e,function(n){return n&&n.subType===t.subType}):e}function U5(e){var t=ut();return e&&te(yn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Yn(YK,TE);const qK=YK;var vGe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gGe=function(){function e(t){te(vGe,function(n){this[n]=it(t[n],t)},this)}return e}();const XK=gGe;var hx={},mGe=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];te(hx,function(a,i){var o=a.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){te(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){hx[t]=n},e.get=function(t){return hx[t]},e}();const Ah=mGe;var yGe=/^(min|max)?(.+)$/,bGe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(te(yn(t.series),function(o){o&&o.data&&ha(o.data)&&ug(o.data)}),te(yn(t.dataset),function(o){o&&o.source&&ha(o.source)&&ug(o.source)})),t=_t(t);var a=this._optionBackup,i=_Ge(t,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],_t(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var a=t.getComponent("timeline");a&&(n=_t(r[a.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)wGe(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!xGe(o,this._currentMediaIndices)&&(s=We(o,function(c){return _t(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function _Ge(e,t,n){var r=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&Ge(u)&&te(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),te(l,function(h){return d(h)}),te(r,function(h){return d(h.option)});function d(h){te(t,function(p){p(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function wGe(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return te(e,function(i,o){var s=o.match(yGe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();SGe(r[u],i,l)||(a=!1)}}),a}function SGe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function xGe(e,t){return e.join(",")===t.join(",")}const CGe=bGe;var Oi=te,Cg=bt,j5=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function px(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=j5.length;n<r;n++){var a=j5[n],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?Rt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?Rt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Gr(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,a=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,mt(e[t],r)):e[t]=r),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Vp(e){Gr(e,"itemStyle"),Gr(e,"lineStyle"),Gr(e,"areaStyle"),Gr(e,"label"),Gr(e,"labelLine"),Gr(e,"upperLabel"),Gr(e,"edgeLabel")}function Zn(e,t){var n=Cg(e)&&e[t],r=Cg(n)&&n.textStyle;if(r)for(var a=0,i=JN.length;a<i;a++){var o=JN[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function ui(e){e&&(Vp(e),Zn(e,"label"),e.emphasis&&Zn(e.emphasis,"label"))}function TGe(e){if(Cg(e)){px(e),Vp(e),Zn(e,"label"),Zn(e,"upperLabel"),Zn(e,"edgeLabel"),e.emphasis&&(Zn(e.emphasis,"label"),Zn(e.emphasis,"upperLabel"),Zn(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(px(t),ui(t));var n=e.markLine;n&&(px(n),ui(n));var r=e.markArea;r&&ui(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!ha(i))for(var o=0;o<i.length;o++)ui(i[o]);te(e.categories,function(u){Vp(u)})}if(a&&!ha(a))for(var o=0;o<a.length;o++)ui(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ui(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)Ge(l[o])?(ui(l[o][0]),ui(l[o][1])):ui(l[o]);e.type==="gauge"?(Zn(e,"axisLabel"),Zn(e,"title"),Zn(e,"detail")):e.type==="treemap"?(Gr(e.breadcrumb,"itemStyle"),te(e.levels,function(u){Vp(u)})):e.type==="tree"&&Vp(e.leaves)}}function ds(e){return Ge(e)?e:e?[e]:[]}function K5(e){return(Ge(e)?e[0]:e)||{}}function kGe(e,t){Oi(ds(e.series),function(r){Cg(r)&&TGe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Oi(n,function(r){Oi(ds(e[r]),function(a){a&&(Zn(a,"axisLabel"),Zn(a.axisPointer,"label"))})}),Oi(ds(e.parallel),function(r){var a=r&&r.parallelAxisDefault;Zn(a,"axisLabel"),Zn(a&&a.axisPointer,"label")}),Oi(ds(e.calendar),function(r){Gr(r,"itemStyle"),Zn(r,"dayLabel"),Zn(r,"monthLabel"),Zn(r,"yearLabel")}),Oi(ds(e.radar),function(r){Zn(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),Oi(ds(e.geo),function(r){Cg(r)&&(ui(r),Oi(ds(r.regions),function(a){ui(a)}))}),Oi(ds(e.timeline),function(r){ui(r),Gr(r,"label"),Gr(r,"itemStyle"),Gr(r,"controlStyle",!0);var a=r.data;Ge(a)&&te(a,function(i){bt(i)&&(Gr(i,"label"),Gr(i,"itemStyle"))})}),Oi(ds(e.toolbox),function(r){Gr(r,"iconStyle"),Oi(r.feature,function(a){Gr(a,"iconStyle")})}),Zn(K5(e.axisPointer),"label"),Zn(K5(e.tooltip).axisPointer,"label")}function AGe(e,t){for(var n=t.split(","),r=e,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function MGe(e,t,n,r){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(r||i[a[s]]==null)&&(i[a[s]]=n)}function Y5(e){e&&te(PGe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var PGe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],EGe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fp(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<vx.length;n++){var r=vx[n][1],a=vx[n][0];t[r]!=null&&(t[a]=t[r])}}function q5(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function X5(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function IGe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function ZK(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ZK(e[n].children,t)}function JK(e,t){kGe(e,t),e.series=yn(e.series),te(e.series,function(n){if(bt(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),q5(n.label);var a=n.data;if(a&&!ha(a))for(var i=0;i<a.length;i++)q5(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=AGe(n,"pointer.color");o!=null&&MGe(n,"itemStyle.color",o)}else if(r==="bar"){fp(n),fp(n.backgroundStyle),fp(n.emphasis);var a=n.data;if(a&&!ha(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(fp(a[i]),fp(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),X5(n),ZK(n.data,X5)}else r==="graph"||r==="sankey"?IGe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&mt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),Y5(n)}}),e.dataRange&&(e.visualMap=e.dataRange),te(EGe,function(n){var r=e[n];r&&(Ge(r)||(r=[r]),te(r,function(a){Y5(a)}))})}function DGe(e){var t=ut();e.eachSeries(function(n){var r=n.get("stack");if(r){var a=t.get(r)||t.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(LGe)}function LGe(e){te(e,function(t,n){var r=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,p;s?p=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var v=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(p=m.data.rawIndexOf(m.stackedByDimension,h)),p>=0){var _=m.data.getByRawIndex(m.stackResultDimension,p);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&d>=0&&_>0||l==="samesign"&&d<=0&&_<0){d=_6e(d,_),v=_;break}}}return r[0]=d,r[1]=v,r})})}var _w=function(){function e(t){this.data=t.data||(t.sourceFormat===ss?{}:[]),this.sourceFormat=t.sourceFormat||HK,this.seriesLayoutBy=t.seriesLayoutBy||jo,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&UK(this,r)===Pr.Must&&(a.type="ordinal")}}return e}();function kE(e){return e instanceof _w}function mk(e,t,n){n=n||QK(e);var r=t.seriesLayoutBy,a=RGe(e,n,r,t.sourceHeader,t.dimensions),i=new _w({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:_t(t)});return i}function AE(e){return new _w({data:e,sourceFormat:ha(e)?Vl:Ii})}function $Ge(e){return new _w({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:_t(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function QK(e){var t=HK;if(ha(e))t=Vl;else if(Ge(e)){e.length===0&&(t=Xr);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(Ge(a)||ha(a)){t=Xr;break}else if(bt(a)){t=Di;break}}}}else if(bt(e)){for(var i in e)if(ot(e,i)&&Or(e[i])){t=ss;break}}return t}function RGe(e,t,n,r,a){var i,o;if(!e)return{dimensionsDefine:Z5(a),startIndex:o,dimensionsDetectedCount:i};if(t===Xr){var s=e;r==="auto"||r==null?J5(function(u){u!=null&&u!=="-"&&(rt(u)?o==null&&(o=1):o=0)},n,s,10):o=an(r)?r:r?1:0,!a&&o===1&&(a=[],J5(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===kh?s.length:s[0]?s[0].length:null}else if(t===Di)a||(a=OGe(e));else if(t===ss)a||(a=[],te(e,function(u,c){a.push(c)}));else if(t===Ii){var l=mh(e[0]);i=Ge(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Z5(a),dimensionsDetectedCount:i}}function OGe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Ut(n)}function Z5(e){if(e){var t=ut();return We(e,function(n,r){n=bt(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function J5(e,t,n,r){if(t===kh)for(var a=0;a<n.length&&a<r;a++)e(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)e(i[a],a)}function eY(e){var t=e.sourceFormat;return t===Di||t===ss}var Nu,Bu,Fu,Q5,e4,tY=function(){function e(t,n){var r=kE(t)?t:AE(t);this._source=r;var a=this._data=r.data;r.sourceFormat===Vl&&(this._offset=0,this._dimSize=n,this._data=a),e4(this,a,r)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},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;e4=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=Q5[ME(u,c)];if(Be(o,h),u===Vl)o.getItem=n,o.count=a,o.fillStorage=r;else{var p=nY(u,c);o.getItem=it(p,null,s,f,d);var v=rY(u,c);o.count=it(v,null,s,f,d)}};var n=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},r=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],p=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],g=s-o,m=l[d],_=0;_<g;_++){var b=c[_*f+d];m[o+_]=b,b<p&&(p=b),b>v&&(v=b)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};Q5=(t={},t[Xr+"_"+jo]={pure:!0,appendData:i},t[Xr+"_"+kh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Di]={pure:!0,appendData:i},t[ss]={pure:!0,appendData:function(o){var s=this._data;te(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ii]={appendData:i},t[Vl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),t4=function(e,t,n,r){return e[r]},NGe=(Nu={},Nu[Xr+"_"+jo]=function(e,t,n,r){return e[r+t]},Nu[Xr+"_"+kh]=function(e,t,n,r,a){r+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[r]:null}return i},Nu[Di]=t4,Nu[ss]=function(e,t,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var s=n[o].name,l=e[s];i[o]=l?l[r]:null}return i},Nu[Ii]=t4,Nu);function nY(e,t){var n=NGe[ME(e,t)];return n}var n4=function(e,t,n){return e.length},BGe=(Bu={},Bu[Xr+"_"+jo]=function(e,t,n){return Math.max(0,e.length-t)},Bu[Xr+"_"+kh]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Bu[Di]=n4,Bu[ss]=function(e,t,n){var r=n[0].name,a=e[r];return a?a.length:0},Bu[Ii]=n4,Bu);function rY(e,t){var n=BGe[ME(e,t)];return n}var gx=function(e,t,n){return e[t]},FGe=(Fu={},Fu[Xr]=gx,Fu[Di]=function(e,t,n){return e[n]},Fu[ss]=gx,Fu[Ii]=function(e,t,n){var r=mh(e);return r instanceof Array?r[t]:r},Fu[Vl]=gx,Fu);function aY(e){var t=FGe[e];return t}function ME(e,t){return e===Xr?e+"_"+t:e}function Jd(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=a.getDimensionProperty(o);return aY(i)(r,o,s)}else{var l=r;return i===Ii&&(l=mh(r)),l}}}}var VGe=/\{@(.+?)\}/g,ww=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),a=this.getRawValue(t,n),i=r.getRawIndex(t),o=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.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:i,data:s,dataType:n,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,a,i,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(o&&(l.value=o.interpolatedValue),a!=null&&Ge(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(ht(i))return l.status=n,l.dimensionIndex=a,i(l);if(rt(i)){var c=wE(i,l);return c.replace(VGe,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1));var v=Jd(s,t,p);if(o&&Ge(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},e.prototype.getRawValue=function(t,n){return Jd(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function r4(e){var t,n;return bt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function bv(e){return new zGe(e)}var zGe=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 n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=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)&&(i="reset");function c(_){return!(_>=1)&&(_=1),_}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<p)){var v=this._progress;if(Ge(v))for(var g=0;g<v.length;g++)this._doProgress(v[g],h,p,l,u);else this._doProgress(v,h,p,l,u)}this._dueIndex=p;var m=this._settedOutputEnd!=null?this._settedOutputEnd:p;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,n,r,a,i){a4.reset(n,r,a,i),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:a4.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Ge(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},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}(),a4=function(){var e,t,n,r,a,i={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,a=Math.ceil(r/n),i.next=n>1&&r>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*n+Math.ceil(t/a),u=t>=e?null:l<r?l:t;return t++,u}}();function zl(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!an(e)&&e!=null&&e!=="-"&&(e=+Za(e)),e==null||e===""?NaN:Number(e))}var HGe=ut({number:function(e){return parseFloat(e)},time:function(e){return+Za(e)},trim:function(e){return rt(e)?yi(e):e}});function iY(e){return HGe.get(e)}var oY={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},GGe=function(){function e(t,n){if(!an(n)){var r="";cn(r)}this._opFn=oY[t],this._rvalFloat=Qo(n)}return e.prototype.evaluate=function(t){return an(t)?this._opFn(t,this._rvalFloat):this._opFn(Qo(t),this._rvalFloat)},e}(),sY=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=an(t)?t:Qo(t),a=an(n)?n:Qo(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=rt(t),l=rt(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),WGe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Qo(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Qo(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function UGe(e,t){return e==="eq"||e==="ne"?new WGe(e==="eq",t):ot(oY,e)?new GGe(e,t):null}var jGe=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,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return zl(t,n)},e}();function KGe(e,t){var n=new jGe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==jo&&cn(o);var s=[],l={},u=e.dimensionsDefine;if(u)te(u,function(v,g){var m=v.name,_={index:g,name:m,displayName:v.displayName};if(s.push(_),m!=null){var b="";ot(l,m)&&cn(b),l[m]=_}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=nY(a,jo);t.__isBuiltIn&&(n.getRawDataItem=function(v){return f(r,i,s,v)},n.getRawData=it(YGe,null,e)),n.cloneRawData=it(qGe,null,e);var d=rY(a,jo);n.count=it(d,null,r,i,s);var h=aY(a);n.retrieveValue=function(v,g){var m=f(r,i,s,v);return p(m,g)};var p=n.retrieveValueFromItem=function(v,g){if(v!=null){var m=s[g];if(m)return h(v,g,m.name)}};return n.getDimensionInfo=it(XGe,null,s,l),n.cloneAllDimensionInfo=it(ZGe,null,s),n}function YGe(e){var t=e.sourceFormat;if(!PE(t)){var n="";cn(n)}return e.data}function qGe(e){var t=e.sourceFormat,n=e.data;if(!PE(t)){var r="";cn(r)}if(t===Xr){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(t===Di){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Be({},n[i]));return a}}function XGe(e,t,n){if(n!=null){if(an(n)||!isNaN(n)&&!ot(t,n))return e[n];if(ot(t,n))return t[n]}}function ZGe(e){return _t(e)}var lY=ut();function JGe(e){e=_t(e);var t=e.type,n="";t||cn(n);var r=t.split(":");r.length!==2&&cn(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,lY.set(t,e)}function QGe(e,t,n){var r=yn(e),a=r.length,i="";a||cn(i);for(var o=0,s=a;o<s;o++){var l=r[o];t=e9e(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function e9e(e,t,n,r){var a="";t.length||cn(a),bt(e)||cn(a);var i=e.type,o=lY.get(i);o||cn(a);var s=We(t,function(u){return KGe(u,o)}),l=yn(o.transform({upstream:s[0],upstreamList:s,config:_t(e.config)}));return We(l,function(u,c){var f="";bt(u)||cn(f),u.data||cn(f);var d=QK(u.data);PE(d)||cn(f);var h,p=t[0];if(p&&c===0&&!u.dimensions){var v=p.startIndex;v&&(u.data=p.data.slice(0,v).concat(u.data)),h={seriesLayoutBy:jo,sourceHeader:v,dimensions:p.metaRawOption.dimensions}}else h={seriesLayoutBy:jo,sourceHeader:0,dimensions:u.dimensions};return mk(u.data,h,null)})}function PE(e){return e===Xr||e===Di}var Sw="undefined",t9e=typeof Uint32Array===Sw?Array:Uint32Array,n9e=typeof Uint16Array===Sw?Array:Uint16Array,uY=typeof Int32Array===Sw?Array:Int32Array,i4=typeof Float64Array===Sw?Array:Float64Array,cY={float:i4,int:uY,ordinal:Array,number:Array,time:i4},mx;function dp(e){return e>65535?t9e:n9e}function Lf(){return[1/0,-1/0]}function r9e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function o4(e,t,n,r,a){var i=cY[n||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(r)}var a9e=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ut()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=mx[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],eY(a),this._dimensions=We(n,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,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(t);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(t,i),this._chunks[i]=new cY[n||"float"](this._rawCount),this._rawExtent[i]=Lf(),i},e.prototype.collectOrdinalMeta=function(t,n){var r=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=r.length;o===0&&(i[t]=Lf());for(var l=i[t],u=o;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=n,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],r=n.ordinalMeta;return r},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,r=this.count();n.appendData(t);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},e.prototype.appendValues=function(t,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<i;u++){var c=a[u];o4(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<i;p++){var c=a[p],v=mx.arrayRows.call(this,t[h]||f,c.property,h,p);r[p][d]=v;var g=o[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=We(o,function(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Lf()),o4(i,c,f.type,n,r)}if(a.fillStorage)a.fillStorage(t,n,i,l);else for(var d=[],h=t;h<n;h++){d=a.getItem(h,d);for(var p=0;p<s;p++){var v=i[p],g=this._dimValueGetter(d,u[p],h,p);v[h]=g;var m=l[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var r=[],a=[];if(n==null){n=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[t];return r?r[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(r+=o)}return r},e.prototype.getMedian=function(t){var n=[];this.each([t],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&r<this._count&&r===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<t)a=o+1;else if(n[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,n,r){var a=this._chunks,i=a[t],o=[];if(!i)return o;r==null&&(r=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=n-i[d],p=Math.abs(h);p<=r&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){t=new r(a);for(var i=0;i<a;i++)t[i]=n[i]}else t=new r(n.buffer,0,a)}else{var r=dp(this._rawCount);t=new r(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=dp(r._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<a;d++){var h=void 0,p=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var v=f[c][p];h=n(v,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][p];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=p)}return u<a&&(r._indices=o),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var a=Ut(t),i=a.length;if(!i)return this;var o=n.count(),s=dp(n._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=n._chunks,p=!1;if(!n._indices){var v=0;if(i===1){for(var g=h[a[0]],m=0;m<r;m++){var _=g[m];(_>=f&&_<=d||isNaN(_))&&(l[u++]=v),v++}p=!0}else if(i===2){for(var g=h[a[0]],b=h[a[1]],w=t[a[1]][0],S=t[a[1]][1],m=0;m<r;m++){var _=g[m],x=b[m];(_>=f&&_<=d||isNaN(_))&&(x>=w&&x<=S||isNaN(x))&&(l[u++]=v),v++}p=!0}}if(!p)if(i===1)for(var m=0;m<o;m++){var C=n.getRawIndex(m),_=h[a[0]][C];(_>=f&&_<=d||isNaN(_))&&(l[u++]=C)}else for(var m=0;m<o;m++){for(var T=!0,C=n.getRawIndex(m),k=0;k<i;k++){var A=a[k],_=h[A][C];(_<t[A][0]||_>t[A][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(m))}return u<o&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var a=t._chunks,i=[],o=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Lf();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=a[n[h]][d];l[o]=f;var p=r&&r.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var v=n[c],g=p[c],m=u[v],_=a[v];_&&(_[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),a=r._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(dp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var v=Math.min(p+l,o-1),g=Math.min(p+l*2,o),m=(g+v)/2,_=0,b=v;b<g;b++){var w=this.getRawIndex(b),S=i[w];isNaN(S)||(_+=S)}_/=g-v;var x=p,C=Math.min(p+l,o),T=p-1,k=i[u];c=-1,d=x;for(var A=-1,M=0,b=x;b<C;b++){var w=this.getRawIndex(b),S=i[w];if(isNaN(S)){M++,A<0&&(A=w);continue}f=Math.abs((T-m)*(S-k)-(T-b)*(_-k)),f>c&&(c=f,d=w)}M>0&&M<C-x&&(h[s++]=Math.min(A,d),d=Math.max(A,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.downSample=function(t,n,r,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/n),u=o[t],c=this.count(),f=i._rawExtent[t]=Lf(),d=new(dp(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var v=0;v<l;v++){var g=this.getRawIndex(p+v);s[v]=u[g]}var m=r(s),_=this.getRawIndex(Math.min(p+a(s,m)||0,c-1));u[_]=m,m<f[0]&&(f[0]=m),m>f[1]&&(f[1]=m),d[h++]=_}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[t[0]][s],i);break;case 2:n(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<r;l++)u[l]=a[t[l]][s];u[l]=i,n.apply(null,u)}}},e.prototype.getDataExtent=function(t){var n=this._chunks[t],r=Lf();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=r;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i<a.length;i++)r.push(a[i][n]);return r},e.prototype.clone=function(t,n){var r=new e,a=this._chunks,i=t&&Mi(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?r9e(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=_t(this._extent),t._rawExtent=_t(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new t(this._indices);return n}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(n,r,a,i){return zl(n[i],this._dimensions[i])}mx={arrayRows:t,objectRows:function(n,r,a,i){return zl(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return zl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}();const yk=a9e;var fY=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,n){this._sourceList=t,this._upstreamSignList=n,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,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if(Oy(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=ha(s)?Vl:Ii,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Et(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Et(f.sourceHeader,d.sourceHeader),v=Et(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;a=g?[mk(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var m=t;if(r){var _=this._applyTransform(n);a=_.sourceList,i=_.upstreamSignList}else{var b=m.get("source",!0);a=[mk(b,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&l4(i)}var o,s=[],l=[];return te(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&l4(f),s.push(c),l.push(u._getVersionSign())}),r?o=QGe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[$Ge(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var r=t[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];Oy(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new yk,s.initData(new tY(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Oy(t)){var n=CE(t);return n?[n.getSourceManager()]:[]}else return We(oGe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(Oy(t))n=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},e}();function s4(e){var t=e.option.transform;t&&ug(e.option.transform)}function Oy(e){return e.mainType==="series"}function l4(e){throw new Error(e)}var dY="line-height:1";function hY(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Wr(r+"")+"px;color:"+Wr(n)+";font-weight:"+Wr(a+""),valueStyle:"font-size:"+Wr(o+"")+"px;color:"+Wr(i)+";font-weight:"+Wr(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var i9e=[0,10,20,30],o9e=["",`
`,`
`,`
`];function gr(e,t){return t.type=e,t}function bk(e){return e.type==="section"}function pY(e){return bk(e)?s9e:l9e}function vY(e){if(bk(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return te(e.blocks,function(a){var i=vY(a);i>=t&&(t=i+ +(r&&(!i||bk(a)&&!a.noHeader)))}),t}return 0}function s9e(e,t,n,r){var a=t.noHeader,i=u9e(vY(t)),o=[],s=t.blocks||[];qr(!s||Ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ot(u,l)){var c=new sY(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}te(s,function(p,v){var g=t.valueFormatter,m=pY(p)(g?Be(Be({},e),{valueFormatter:g}):e,p,v>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):_k(o.join(""),a?n:i.html);if(a)return f;var d=pk(t.header,"ordinal",e.useUTC),h=hY(r,e.renderMode).nameStyle;return e.renderMode==="richText"?gY(e,d,h)+i.richText+f:_k('<div style="'+h+";"+dY+';">'+Wr(d)+"</div>"+f,n)}function l9e(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Ge(w)?w:[w],We(w,function(S,x){return pk(S,Ge(h)?h[x]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":pk(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),v=!s||!i,g=!s&&i,m=hY(r,a),_=m.nameStyle,b=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":gY(e,d,_))+(o?"":d9e(e,p,v,g,b)):_k((s?"":f)+(i?"":c9e(d,!s,_))+(o?"":f9e(p,v,g,b)),n)}}function u4(e,t,n,r,a,i){if(e){var o=pY(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function u9e(e){return{html:i9e[e],richText:o9e[e]}}function _k(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+dY+';">'+e+n+"</div>"}function c9e(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Wr(e)+"</span>"}function f9e(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Ge(e)?e:[e],'<span style="'+i+";"+r+'">'+We(e,function(o){return Wr(o)}).join("&nbsp;&nbsp;")+"</span>"}function gY(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function d9e(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Ge(t)?t.join(" "):t,i)}function mY(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Zc(r)}function yY(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var yx=function(){function e(){this.richTextStyles={},this._nextStyleNameId=wj()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=NK({color:n,type:t,renderMode:r,markerId:a});return rt(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Ge(n)?te(n,function(i){return Be(r,i)}):Be(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function bY(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=Ge(s),u=mY(t,n),c,f,d,h;if(o>1||l&&!o){var p=h9e(s,t,n,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);h=c=Jd(a,n,i[0]),f=v.type}else h=c=l?s[0]:s;var g=XP(t),m=g&&t.name||"",_=a.getName(n),b=r?m:_;return gr("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[gr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!yi(b),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function h9e(e,t,n,r,a){var i=t.getData(),o=Mi(e,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?te(r,function(f){c(Jd(i,n,f),f)}):te(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(gr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var il=nn();function Ny(e,t){return e.getName(t)||e.getId(t)}var cb="__universalTransitionEnabled",xw=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=bv({count:v9e,reset:g9e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=il(this).sourceManager=new fY(this);i.prepareSource();var o=this.getInitialData(n,a);f4(o,this),this.dataTask.context.data=o,il(this).dataBeforeProcessed=o,c4(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=xg(this),i=a?Ch(n):{},o=this.subType;Xt.hasClass(o)&&(o+="Series"),Rt(n,r.getTheme().get(this.subType)),Rt(n,this.getDefaultOption()),Kc(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Jl(n,i,a)},t.prototype.mergeOption=function(n,r){n=Rt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=xg(this);a&&Jl(this.option,n,a);var i=il(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);f4(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,il(this).dataBeforeProcessed=o,c4(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!ha(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&Kc(n[a],"label",r)},t.prototype.getInitialData=function(n,r){},t.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},t.prototype.getData=function(n){var r=wk(this);if(r){var a=r.context.data;return n==null||!a.getLinkedData?a:a.getLinkedData(n)}else return il(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var r=wk(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}il(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return ut(n)},t.prototype.getSourceManager=function(){return il(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return il(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.formatTooltip=function(n,r,a){return bY({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(rn.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=TE.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=Ny(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Ut(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Ny(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cb])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){bt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=Ny(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=Ny(n,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=n.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Xt.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(Xt);Yn(xw,ww);Yn(xw,TE);Ej(xw,Xt);function c4(e){var t=e.name;XP(e)||(e.name=p9e(e)||t)}function p9e(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return te(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function v9e(e){return e.model.getRawData().count()}function g9e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),m9e}function m9e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function f4(e,t){te(cg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Pt(y9e,t))})}function y9e(e,t){var n=wk(e);return n&&n.setOutputEnd((t||this).count()),t}function wk(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}const Pn=xw;var EE=function(){function e(){this.group=new Tt,this.uid=xh("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){},e.prototype.updateLayout=function(t,n,r,a){},e.prototype.updateVisual=function(t,n,r,a){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e}();JP(EE);rw(EE);const On=EE;function Mh(){var e=nn();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var _Y=nn(),b9e=Mh(),IE=function(){function e(){this.group=new Tt,this.uid=xh("viewChart"),this.renderTask=bv({plan:_9e,reset:w9e}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,a){},e.prototype.highlight=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&h4(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&h4(i,a,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateLayout=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.updateVisual=function(t,n,r,a){this.render(t,n,r,a)},e.prototype.eachRendered=function(t){du(this.group,t)},e.markUpdateMethod=function(t,n){_Y(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function d4(e,t,n){e&&_g(e)&&(t==="emphasis"?Ns:Bs)(e,n)}function h4(e,t,n){var r=Yc(e,t),a=t&&t.highlightKey!=null?Yze(t.highlightKey):null;r!=null?te(yn(r),function(i){d4(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){d4(i,n,a)})}JP(IE);rw(IE);function _9e(e){return b9e(e.model)}function w9e(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&_Y(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),S9e[l]}var S9e={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 bn=IE;var d1="\0__throttleOriginMethod",p4="\0__throttleRate",v4="\0__throttleType";function Cw(e,t,n){var r,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];r=new Date().getTime(),l=this,u=h;var v=c||t,g=c||n;c=null,s=r-(g?a:i)-v,clearTimeout(o),g?o=setTimeout(f,v):s>=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Ph(e,t,n,r){var a=e[t];if(a){var i=a[d1]||a,o=a[v4],s=a[p4];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=Cw(i,n,r==="debounce"),a[d1]=i,a[v4]=r,a[p4]=n}return a}}function Tg(e,t){var n=e[t];n&&n[d1]&&(n.clear&&n.clear(),e[t]=n[d1])}var g4=nn(),m4={itemStyle:qc(AK,!0),lineStyle:qc(kK,!0)},x9e={lineStyle:"stroke",itemStyle:"fill"};function wY(e,t){var n=e.visualStyleMapper||m4[t];return n||(console.warn("Unknown style type '"+t+"'."),m4.itemStyle)}function SY(e,t){var n=e.visualDrawType||x9e[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var C9e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=wY(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=SY(e,r),u=o[l],c=ht(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,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ht(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ht(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=e.getDataParams(p),g=Be({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},hp=new mn,T9e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=wY(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){hp.option=l[r];var u=a(hp),c=o.ensureUniqueItemVisual(s,"style");Be(c,u),hp.option.decal&&(o.setItemVisual(s,"decal",hp.option.decal),hp.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},k9e={performRawSeries:!0,overallReset:function(e){var t=ut();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),g4(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=g4(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=SY(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();d[l]=n.getColorFromPalette(h,o,p)}})}})}},By=Math.PI;function A9e(e,t){t=t||{},mt(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 n=new Tt,r=new tn({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new en({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new tn({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new cw({shape:{startAngle:-By/2,endAngle:-By/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:By*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:By*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.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}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var M9e=function(){function e(t,n,r,a){this._stageTaskMap=ut(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.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,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=ut();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;te(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";qr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;te(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var _=o.getPerformArgs(g,a.block);_.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(_)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=ut(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||bv({plan:L9e,reset:$9e,count:O9e}));h.context={model:f,ecModel:r,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,n,r,a){var i=this,o=n.overallTask=n.overallTask||bv({reset:P9e});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ut(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";qr(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(f=!1,te(r.getSeries(),p));function p(v){var g=v.uid,m=l.set(g,s&&s.get(g)||(d=!0,bv({reset:E9e,onDirty:D9e})));m.context={model:v,overallProgress:f},m.agent=o,m.__block=f,i._pipe(v,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return ht(t)&&(t={overallReset:t,seriesType:N9e(t)}),t.uid=xh("stageHandler"),n&&(t.visualType=n),t},e}();function P9e(e){e.overallReset(e.ecModel,e.api,e.payload)}function E9e(e){return e.overallProgress&&I9e}function I9e(){this.agent.dirty(),this.getDownstream().dirty()}function D9e(){this.agent&&this.agent.dirty()}function L9e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function $9e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=yn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?We(t,function(n,r){return xY(r)}):R9e}var R9e=xY(0);function xY(e){return function(t,n){var r=n.data,a=n.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(t,r)}}function O9e(e){return e.data.count()}function N9e(e){h1=null;try{e(kg,CY)}catch{}return h1}var kg={},CY={},h1;TY(kg,qK);TY(CY,XK);kg.eachSeriesByType=kg.eachRawSeriesByType=function(e){h1=e};kg.eachComponent=function(e){e.mainType==="series"&&e.subType&&(h1=e.subType)};function TY(e,t){for(var n in t.prototype)e[n]=jn}const kY=M9e;var y4=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const B9e={color:y4,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],y4]};var ta="#B9B8CE",b4="#100C2A",Fy=function(){return{axisLine:{lineStyle:{color:ta}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},_4=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],AY={darkMode:!0,color:_4,backgroundColor:b4,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ta}},textStyle:{color:ta},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ta}},dataZoom:{borderColor:"#71708A",textStyle:{color:ta},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:ta}},timeline:{lineStyle:{color:ta},label:{color:ta},controlStyle:{color:ta,borderColor:ta}},calendar:{itemStyle:{color:b4},dayLabel:{color:ta},monthLabel:{color:ta},yearLabel:{color:ta}},timeAxis:Fy(),logAxis:Fy(),valueAxis:Fy(),categoryAxis:Fy(),line:{symbol:"circle"},graph:{color:_4},gauge:{title:{color:ta},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ta},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};AY.categoryAxis.splitLine.show=!1;const F9e=AY;var V9e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(rt(t)){var i=Bo(t);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};te(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 p=u.slice(0,h);p!=="data"&&(n.mainType=p,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.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,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Sk=["symbol","symbolSize","symbolRotate","symbolOffset"],w4=Sk.concat(["symbolKeepAspect"]),z9e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o<Sk.length;o++){var s=Sk[o],l=e.get(s);ht(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Be({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Ut(a);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),v=0;v<u.length;v++){var g=u[v];f.setItemVisual(d,g,a[g](h,p))}}return{dataEach:i?c:null}}},H9e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(a,i){for(var o=a.getItemModel(i),s=0;s<w4.length;s++){var l=w4[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function DE(e,t,n){switch(n){case"color":var r=e.getItemVisual(t,"style");return r[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function bm(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function MY(e,t,n,r){switch(n){case"color":var a=e.ensureUniqueItemVisual(t,"style");a[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break}}function PY(e,t){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}te([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,i,o){a=Be({},a),o.dispatchAction(Be(a,{type:r[1],seriesIndex:n(i,a)}))})})}function $f(e,t,n,r,a){var i=e+t;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=Yc(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:Ge(d)?f.getName(d[0]):f.getName(d),selected:rt(l)?l:Be({},l)})}})}function G9e(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?($f("map","selectchanged",t,a,r),$f("pie","selectchanged",t,a,r)):r.fromAction==="select"?($f("map","selected",t,a,r),$f("pie","selected",t,a,r)):r.fromAction==="unselect"&&($f("map","unselected",t,a,r),$f("pie","unselected",t,a,r))})}function wc(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var W9e=Math.round(Math.random()*9),U9e=typeof Object.defineProperty=="function",j9e=function(){function e(){this._id="__ec_inner_"+W9e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return U9e?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,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 K9e=j9e;var Y9e=Gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r+i),e.lineTo(n-a,r+i),e.closePath()}}),q9e=Gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r),e.lineTo(n,r+i),e.lineTo(n-a,r),e.closePath()}}),X9e=Gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,p=o*.7;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),Z9e=Gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,a=t.x,i=t.y,o=r/3*2;e.moveTo(a,i),e.lineTo(a+o,i+n),e.lineTo(a,i+n/4*3),e.lineTo(a-o,i+n),e.lineTo(a,i),e.closePath()}}),J9e={line:dr,rect:tn,roundRect:tn,square:tn,circle:Xs,diamond:q9e,pin:X9e,arrow:Z9e,triangle:Y9e},Q9e={line:function(e,t,n,r,a){a.x1=e,a.y1=t+r/2,a.x2=e+n,a.y2=t+r/2},rect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r},roundRect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(e,t,n,r,a){var i=Math.min(n,r);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.r=Math.min(n,r)/2},diamond:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r},pin:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},arrow:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},triangle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r}},p1={};te(J9e,function(e,t){p1[t]=new e});var eWe=Gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=r1(e,t,n),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!=="none"){var a=p1[r];a||(r="rect",a=p1[r]),Q9e[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function tWe(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Xn(e,t,n,r,a,i,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=uE(e.slice(8),new Nt(t,n,r,a),o?"center":"cover"):e.indexOf("path://")===0?l=gm(e.slice(7),{},new Nt(t,n,r,a),o?"center":"cover"):l=new eWe({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=tWe,i&&l.setColor(i),l}function Eh(e){return Ge(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function hf(e,t){if(e!=null)return Ge(e)||(e=[e,e]),[Qe(e[0],t[0])||0,Qe(Et(e[1],e[0]),t[1])||0]}function Sc(e){return isFinite(e)}function nWe(e,t,n){var r=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=Sc(r)?r:0,a=Sc(a)?a:1,i=Sc(i)?i:0,o=Sc(o)?o:0;var s=e.createLinearGradient(r,i,a,o);return s}function rWe(e,t,n){var r=n.width,a=n.height,i=Math.min(r,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*r+n.x,s=s*a+n.y,l=l*i),o=Sc(o)?o:.5,s=Sc(s)?s:.5,l=l>=0&&Sc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function xk(e,t,n){for(var r=t.type==="radial"?rWe(e,t,n):nWe(e,t,n),a=t.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function aWe(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Vy(e){return parseInt(e,10)}function ld(e,t,n){var r=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[a]||Vy(s[r])||Vy(e.style[r]))-(Vy(s[i])||0)-(Vy(s[o])||0)|0}function iWe(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:an(e)?[e]:Ge(e)?e:null}function LE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&iWe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=We(n,function(i){return i/a}),r/=a)}return[n,r]}var oWe=new es(!0);function v1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function S4(e){return typeof e=="string"&&e!=="none"}function g1(e){var t=e.fill;return t!=null&&t!=="none"}function x4(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function C4(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Ck(e,t,n){var r=QP(t.image,t.__image,n);if(aw(r)){var a=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*lv),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function sWe(e,t,n,r){var a,i=v1(n),o=g1(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||oWe,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,p=o&&!!d.colorStops,v=i&&!!h.colorStops,g=o&&!!d.image,m=i&&!!h.image,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0;(p||v)&&(x=t.getBoundingRect()),p&&(_=f?xk(e,d,x):t.__canvasFillGradient,t.__canvasFillGradient=_),v&&(b=f?xk(e,h,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(w=f||!t.__canvasFillPattern?Ck(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(S=f||!t.__canvasStrokePattern?Ck(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),p?e.fillStyle=_:g&&(w?e.fillStyle=w:o=!1),v?e.strokeStyle=b:m&&(S?e.strokeStyle=S:i=!1)}var C=t.getGlobalScale();c.setScale(C[0],C[1],t.segmentIgnoreThreshold);var T,k;e.setLineDash&&n.lineDash&&(a=LE(t),T=a[0],k=a[1]);var A=!0;(u||f&Zf)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=k),r||(n.strokeFirst?(i&&C4(e,n),o&&x4(e,n)):(o&&x4(e,n),i&&C4(e,n))),T&&e.setLineDash([])}function lWe(e,t,n){var r=t.__image=QP(n.image,t.__image,t,t.onload);if(!(!r||!aw(r))){var a=n.x||0,i=n.y||0,o=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;e.drawImage(r,u,c,f,d,a,i,o,s)}else e.drawImage(r,a,i,o,s)}}function uWe(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||ql,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=LE(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(v1(n)&&e.strokeText(a,n.x,n.y),g1(n)&&e.fillText(a,n.x,n.y)):(g1(n)&&e.fillText(a,n.x,n.y),v1(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var T4=["shadowBlur","shadowOffsetX","shadowOffsetY"],k4=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function EY(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Aa(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Lc.opacity:o}(r||t.blend!==n.blend)&&(i||(Aa(e,a),i=!0),e.globalCompositeOperation=t.blend||Lc.blend);for(var s=0;s<T4.length;s++){var l=T4[s];(r||t[l]!==n[l])&&(i||(Aa(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(Aa(e,a),i=!0),e.shadowColor=t.shadowColor||Lc.shadowColor),i}function A4(e,t,n,r,a){var i=Ag(t,a.inHover),o=r?null:n&&Ag(n,a.inHover)||{};if(i===o)return!1;var s=EY(e,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(Aa(e,a),s=!0),S4(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(Aa(e,a),s=!0),S4(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(Aa(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(Aa(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<k4.length;c++){var f=k4[c],d=f[0];(r||i[d]!==o[d])&&(s||(Aa(e,a),s=!0),e[d]=i[d]||f[1])}return s}function cWe(e,t,n,r,a){return EY(e,Ag(t,a.inHover),n&&Ag(n,a.inHover),r,a)}function IY(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function fWe(e,t,n){for(var r=!1,a=0;a<e.length;a++){var i=e[a];r=r||i.isZeroArea(),IY(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function dWe(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 M4=1,P4=2,E4=3,I4=4;function hWe(e){var t=g1(e),n=v1(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Aa(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ag(e,t){return t&&e.__hoverStyle||e.style}function $E(e,t){xc(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function xc(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Ba,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||aWe(i,o))&&(o&&o.length&&(Aa(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Aa(e,n),e.save(),fWe(i,e,n),s=!0),n.prevElClipPaths=i),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof Gt&&t.autoBatch&&hWe(t.style);s||dWe(a,u.transform)?(Aa(e,n),IY(e,t)):c||Aa(e,n);var f=Ag(t,n.inHover);t instanceof Gt?(n.lastDrawType!==M4&&(l=!0,n.lastDrawType=M4),A4(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),sWe(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof yg?(n.lastDrawType!==E4&&(l=!0,n.lastDrawType=E4),A4(e,t,u,l,n),uWe(e,t,f)):t instanceof Ar?(n.lastDrawType!==P4&&(l=!0,n.lastDrawType=P4),cWe(e,t,u,l,n),lWe(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==I4&&(l=!0,n.lastDrawType=I4),pWe(e,t,n)),c&&r&&Aa(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function pWe(e,t,n){var r=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xc(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),xc(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var bx=new K9e,D4=new cm(100),L4=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Qd(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&bx.delete(e);var i=bx.get(e);if(i)return i;var o=mt(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=a?1:1/n,bx.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<L4.length;++d){var h=o[L4[d]];if(h!=null&&!Ge(h)&&!rt(h)&&!an(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(a?"-svg":"");var v=D4.get(p);v&&(a?u.svgElement=v:u.image=v)}var g=LY(o.dashArrayX),m=vWe(o.dashArrayY),_=DY(o.symbol),b=gWe(g),w=$Y(m),S=!a&&uo.createCanvas(),x=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=k(),T;S&&(S.width=C.width*n,S.height=C.height*n,T=S.getContext("2d")),A(),f&&D4.put(p,S||x),u.image=S,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function k(){for(var M=1,I=0,E=b.length;I<E;++I)M=XN(M,b[I]);for(var L=1,I=0,E=_.length;I<E;++I)L=XN(L,_[I].length);M*=L;var N=w*b.length*_.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(N,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var M=0,I=0;I<m.length;++I)M+=m[I];if(M<=0)return;for(var E=-w,L=0,N=0,$=0;E<C.height;){if(L%2===0){for(var P=N/2%_.length,R=0,D=0,B=0;R<C.width*2;){for(var H=0,I=0;I<g[$].length;++I)H+=g[$][I];if(H<=0)break;if(D%2===0){var G=(1-o.symbolSize)*.5,X=R+g[$][D]*G,ue=E+m[L]*G,ie=g[$][D]*o.symbolSize,le=m[L]*o.symbolSize,Q=B/2%_[P].length;J(X,ue,ie,le,_[P][Q])}R+=g[$][D],++B,++D,D===g[$].length&&(D=0)}++$,$===g.length&&($=0)}E+=m[L],++N,++L,L===m.length&&(L=0)}function J(se,he,re,z,Y){var ee=a?1:n,oe=Xn(Y,se*ee,he*ee,re*ee,z*ee,o.color,o.symbolKeepAspect);if(a){var ve=r.painter.renderOneToVNode(oe);ve&&x.children.push(ve)}else $E(T,oe)}}}}function DY(e){if(!e||e.length===0)return[["rect"]];if(rt(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!rt(e[n])){t=!1;break}if(t)return DY([e]);for(var r=[],n=0;n<e.length;++n)rt(e[n])?r.push([e[n]]):r.push(e[n]);return r}function LY(e){if(!e||e.length===0)return[[0,0]];if(an(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!an(e[r])){n=!1;break}if(n)return LY([e]);for(var a=[],r=0;r<e.length;++r)if(an(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=We(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function vWe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(an(e)){var t=Math.ceil(e);return[t,t]}var n=We(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function gWe(e){return We(e,function(t){return $Y(t)})}function $Y(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function mWe(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=Qd(s,t)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=Qd(a,t)}}})}var yWe=new Ei;const zi=yWe;var RY={};function bWe(e,t){RY[e]=t}function OY(e){return RY[e]}var _We="5.5.1",wWe={zrender:"5.6.0"},SWe=1,xWe=800,CWe=900,TWe=1e3,kWe=2e3,AWe=5e3,NY=1e3,MWe=1100,RE=2e3,BY=3e3,PWe=4e3,Tw=4500,EWe=4600,IWe=5e3,DWe=6e3,FY=7e3,VY={PROCESSOR:{FILTER:TWe,SERIES_FILTER:xWe,STATISTIC:AWe},VISUAL:{LAYOUT:NY,PROGRESSIVE_LAYOUT:MWe,GLOBAL:RE,CHART:BY,POST_CHART_LAYOUT:EWe,COMPONENT:PWe,BRUSH:IWe,CHART_ITEM:Tw,ARIA:DWe,DECAL:FY}},zr="__flagInMainProcess",Sa="__pendingUpdate",_x="__needsUpdateStatus",$4=/^[a-zA-Z0-9_]+$/,Sx="__connectUpdateStatus",R4=0,LWe=1,$We=2;function zY(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return GY(this,e,t)}}function HY(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return GY(this,e,t)}}function GY(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ei.prototype[t].apply(e,n)}var WY=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ei),UY=WY.prototype;UY.on=HY("on");UY.off=HY("off");var Rf,xx,zy,ol,Cx,Tx,kx,pp,vp,O4,N4,Ax,B4,Hy,F4,jY,ri,V4,m1=function(e){De(t,e);function t(n,r,a){var i=e.call(this,new V9e)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},rt(r)&&(r=KY[r]),i._dom=n;var o="canvas",s="auto",l=!1;a.ssr&&gj(function(d){var h=kt(d),p=h.dataIndex;if(p!=null){var v=ut();return v.set("series_index",h.seriesIndex),v.set("data_index",p),h.ssrType&&v.set("ssr_type",h.ssrType),v}});var u=i._zr=ZT(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Et(a.useDirtyRect,l),useCoarsePointer:Et(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=Cw(it(u.flush,u),17),r=_t(r),r&&JK(r,!0),i._theme=r,i._locale=WHe(a.locale||MK),i._coordSysMgr=new Ah;var c=i._api=F4(i);function f(d,h){return d.__prio-h.__prio}return J0(b1,f),J0(Tk,f),i._scheduler=new kY(i,c,Tk,b1),i._messageCenter=new WY,i._initEvents(),i.resize=it(i.resize,i),u.animation.on("frame",i._onframe,i),O4(u,i),N4(u,i),ug(i),i}return t.prototype._onframe=function(){if(!this._disposed){V4(this);var n=this._scheduler;if(this[Sa]){var r=this[Sa].silent;this[zr]=!0;try{Rf(this),ol.update.call(this,null,this[Sa].updateParams)}catch(l){throw this[zr]=!1,this[Sa]=null,l}this._zr.flush(),this[zr]=!1,this[Sa]=null,pp.call(this,r),vp.call(this,r)}else if(n.unfinished){var a=SWe,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),Tx(this,i),n.performVisualTasks(i),Hy(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.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(n,r,a){if(!this[zr]){if(this._disposed){this.id;return}var i,o,s;if(bt(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[zr]=!0,!this._model||r){var l=new CGe(this._api),u=this._theme,c=this._model=new qK;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},kk);var f={seriesTransition:s,optionChanged:!0};if(a)this[Sa]={silent:i,updateParams:f},this[zr]=!1,this.getZr().wakeUp();else{try{Rf(this),ol.update.call(this,null,f)}catch(d){throw this[Sa]=null,this[zr]=!1,d}this._ssr||this._zr.flush(),this[Sa]=null,this[zr]=!1,pp.call(this,i),vp.call(this,i)}}},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||rn.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(rn.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return te(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;te(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return te(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(_1[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();te(Oc,function(b,w){if(b.group===a){var S=r?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(_t(n)),x=b.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),c=o(x.right,c),f=o(x.bottom,f),d.push({dom:S,left:x.left,top:x.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=uo.createCanvas(),m=ZT(g,{renderer:r?"svg":"canvas"});if(m.resize({width:p,height:v}),r){var _="";return te(d,function(b){var w=b.left-l,S=b.top-u;_+='<g transform="translate('+w+","+S+')">'+b.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=_,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new tn({shape:{x:0,y:0,width:p,height:v},style:{fill:n.connectedBackgroundColor}})),te(d,function(b){var w=new Ar({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return Cx(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return Cx(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=pv(a,n);return te(o,function(s,l){l.indexOf("Models")>=0&&te(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=pv(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?DE(s,l,r):bm(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;te(RWe,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&wc(s,function(p){var v=kt(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=Be({},v.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&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),te(_v,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),te(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),G9e(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 n=this.getDom();n&&Aj(this.getDom(),NE,"");var r=this,a=r._api,i=r._model;te(r._componentsViews,function(o){o.dispose(i,a)}),te(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Oc[r.id]},t.prototype.resize=function(n){if(!this[zr]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[Sa]&&(i==null&&(i=this[Sa].silent),a=!0,this[Sa]=null),this[zr]=!0;try{a&&Rf(this),ol.update.call(this,{type:"resize",animation:Be({duration:0},n&&n.animation)})}catch(o){throw this[zr]=!1,o}this[zr]=!1,pp.call(this,i),vp.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(bt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!Ak[n]){var a=Ak[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Be({},n);return r.type=_v[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(bt(r)||(r={silent:!!r}),!!y1[n.type]&&this._model){if(this[zr]){this._pendingActions.push(n);return}var a=r.silent;kx.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&rn.browser.weChat&&this._throttledZrFlush(),pp.call(this,a),vp.call(this,a)}},t.prototype.updateLabelLayout=function(){zi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Rf=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),xx(f,!0),xx(f,!1),d.plan()},xx=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,_=f._api,b=0;b<v.length;b++)v[b].__alive=!1;d?h.eachComponent(function(x,C){x!=="series"&&w(C)}):h.eachSeries(w);function w(x){var C=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,k=!C&&g[T];if(!k){var A=Bo(x.type),M=d?On.getClass(A.main,A.sub):bn.getClass(A.sub);k=new M,k.init(h,_),g[T]=k,v.push(k),m.add(k.group)}x.__viewId=k.__id=T,k.__alive=!0,k.__model=x,k.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!d&&p.prepareView(k,x,h,_)}for(var b=0;b<v.length;){var S=v[b];S.__alive?b++:(!d&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,_),v.splice(b,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},zy=function(f,d,h,p,v){var g=f._model;if(g.setUpdatePayload(h),!p){te([].concat(f._componentsViews).concat(f._chartsViews),S);return}var m={};m[p+"Id"]=h[p+"Id"],m[p+"Index"]=h[p+"Index"],m[p+"Name"]=h[p+"Name"];var _={mainType:p,query:m};v&&(_.subType=v);var b=h.excludeSeriesId,w;b!=null&&(w=ut(),te(yn(b),function(x){var C=ar(x,null);C!=null&&w.set(C,!0)})),g&&g.eachComponent(_,function(x){var C=w&&w.get(x.id)!=null;if(!C)if(S5(h))if(x instanceof Pn)h.type===$c&&!h.notBlur&&!x.get(["emphasis","disabled"])&&Vze(x,h,f._api);else{var T=iE(x.mainType,x.componentIndex,h.name,f._api),k=T.focusSelf,A=T.dispatchers;h.type===$c&&k&&!h.notBlur&&sk(x.mainType,x.componentIndex,f._api),A&&te(A,function(M){h.type===$c?Ns(M):Bs(M)})}else uk(h)&&x instanceof Pn&&(Gze(x,h,f._api),_5(x),ri(f))},f),g&&g.eachComponent(_,function(x){var C=w&&w.get(x.id)!=null;C||S(f[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function S(x){x&&x.__alive&&x[d]&&x[d](x.__model,g,f._api,h)}},ol={prepareAndUpdate:function(f){Rf(this),ol.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,v=this._zr,g=this._coordSysMgr,m=this._scheduler;if(h){h.setUpdatePayload(f),m.restoreData(h,f),m.performSeriesTasks(h),g.create(h,p),m.performDataProcessorTasks(h,f),Tx(this,h),g.update(h,p),n(h),m.performVisualTasks(h,f),Ax(this,h,p,f,d);var _=h.get("backgroundColor")||"transparent",b=h.get("darkMode");v.setBackgroundColor(_),b!=null&&b!=="auto"&&v.setDarkMode(b),zi.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var v=[];h.eachComponent(function(m,_){if(m!=="series"){var b=d.getViewOfComponentModel(_);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(_,h,p,f);w&&w.update&&v.push(b)}else v.push(b)}});var g=ut();h.eachSeries(function(m){var _=d._chartsMap[m.__viewId];if(_.updateTransform){var b=_.updateTransform(m,h,p,f);b&&b.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Hy(this,h,p,f,{},g),zi.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),bn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Ax(this,d,this._api,f,{}),zi.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),bn.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,v){if(p!=="series"){var g=d.getViewOfComponentModel(v);g&&g.__alive&&g.updateVisual(v,h,d._api,f)}}),h.eachSeries(function(p){var v=d._chartsMap[p.__viewId];v.updateVisual(p,h,d._api,f)}),zi.trigger("afterupdate",h,this._api))},updateLayout:function(f){ol.update.call(this,f)}},Cx=function(f,d,h,p){if(f._disposed){f.id;return}for(var v=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,_=pv(v,h),b=0;b<g.length;b++){var w=g[b];if(w[d]&&(m=w[d](v,_,p))!=null)return m}},Tx=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(v){p.updateStreamModes(v,h[v.__viewId])})},kx=function(f,d){var h=this,p=this.getModel(),v=f.type,g=f.escapeConnect,m=y1[v],_=m.actionInfo,b=(_.update||"update").split(":"),w=b.pop(),S=b[0]!=null&&Bo(b[0]);this[zr]=!0;var x=[f],C=!1;f.batch&&(C=!0,x=We(f.batch,function(L){return L=mt(Be({},L),f),L.batch=null,L}));var T=[],k,A=uk(f),M=S5(f);if(M&&Qj(this._api),te(x,function(L){if(k=m.action(L,h._model,h._api),k=k||Be({},L),k.type=_.event||k.type,T.push(k),M){var N=ZP(f),$=N.queryOptionMap,P=N.mainTypeSpecified,R=P?$.keys()[0]:"series";zy(h,w,L,R),ri(h)}else A?(zy(h,w,L,"series"),ri(h)):S&&zy(h,w,L,S.main,S.sub)}),w!=="none"&&!M&&!A&&!S)try{this[Sa]?(Rf(this),ol.update.call(this,f),this[Sa]=null):ol[w].call(this,f)}catch(L){throw this[zr]=!1,L}if(C?k={type:_.event||v,escapeConnect:g,batch:T}:k=T[0],this[zr]=!1,!d){var I=this._messageCenter;if(I.trigger(k.type,k),A){var E={type:"selectchanged",escapeConnect:g,selected:Wze(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(E.type,E)}}},pp=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();kx.call(this,h,f)}},vp=function(f){!f&&this.trigger("updated")},O4=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Sa]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},N4=function(f,d){f.on("mouseover",function(h){var p=h.target,v=wc(p,_g);v&&(zze(v,h,d._api),ri(d))}).on("mouseout",function(h){var p=h.target,v=wc(p,_g);v&&(Hze(v,h,d._api),ri(d))}).on("click",function(h){var p=h.target,v=wc(p,function(_){return kt(_).dataIndex!=null},!0);if(v){var g=v.selected?"unselect":"select",m=kt(v);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],p=!1;if(f.eachComponent(function(_,b){var w=b.get("zlevel")||0,S=b.get("z")||0,x=b.getZLevelKey();p=p||!!x,(_==="series"?h:d).push({zlevel:w,z:S,idx:b.componentIndex,type:_,key:x})}),p){var v=d.concat(h),g,m;J0(v,function(_,b){return _.zlevel===b.zlevel?_.z-b.z:_.zlevel-b.zlevel}),te(v,function(_){var b=f.getComponent(_.type,_.idx),w=_.zlevel,S=_.key;g!=null&&(w=Math.max(g,w)),S?(w===g&&S!==m&&w++,m=S):m&&(w===g&&w++,m=""),g=w,b.setZLevel(w)})}}Ax=function(f,d,h,p,v){r(d),B4(f,d,h,p,v),te(f._chartsViews,function(g){g.__alive=!1}),Hy(f,d,h,p,v),te(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},B4=function(f,d,h,p,v,g){te(g||f._componentsViews,function(m){var _=m.__model;u(_,m),m.render(_,d,h,p),s(_,m),c(_,m)})},Hy=function(f,d,h,p,v,g){var m=f._scheduler;v=Be(v||{},{updatedSeries:d.getSeries()}),zi.trigger("series:beforeupdate",d,h,v);var _=!1;d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var S=w.renderTask;m.updatePayload(S,p),u(b,w),g&&g.get(b.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(_=!0),w.group.silent=!!b.get("silent"),o(b,w),_5(b)}),m.unfinished=_||m.unfinished,zi.trigger("series:layoutlabels",d,h,v),zi.trigger("series:transition",d,h,v),d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];s(b,w),c(b,w)}),i(f,d),zi.trigger("series:afterupdate",d,h,v)},ri=function(f){f[_x]=!0,f.getZr().wakeUp()},V4=function(f){f[_x]&&(f.getZr().storage.traverse(function(d){xd(d)||a(d)}),f[_x]=!1)};function a(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var v=h[p];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===sw&&f.states.emphasis?d.push("emphasis"):f.hoverState===hm&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,p=h.storage,v=0;p.traverse(function(g){g.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!rn.node&&!rn.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var _=f.childrenRef(),b=0;b<_.length;b++)p=Math.max(l(_[b],d,h,p),p);else f.z=d,f.zlevel=h,p=Math.max(f.z2,p);if(v&&(v.z=d,v.zlevel=h,isFinite(p)&&(v.z2=p+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(p)&&(g.z2=p+(w&&w.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(h){if(!xd(h)){var p=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),v=h.get("duration"),g=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(xd(m))return;if(m instanceof Gt&&qze(m),m.__dirty){var _=m.prevStates;_&&m.useStates(_)}if(p){m.stateTransition=g;var b=m.getTextContent(),w=m.getTextGuideLine();b&&(b.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}F4=function(f){return new(function(d){De(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(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){Ns(p,v),ri(f)},h.prototype.leaveEmphasis=function(p,v){Bs(p,v),ri(f)},h.prototype.enterBlur=function(p){qj(p),ri(f)},h.prototype.leaveBlur=function(p){aE(p),ri(f)},h.prototype.enterSelect=function(p){Xj(p),ri(f)},h.prototype.leaveSelect=function(p){Zj(p),ri(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(XK))(f)},jY=function(f){function d(h,p){for(var v=0;v<h.length;v++){var g=h[v];g[Sx]=p}}te(_v,function(h,p){f._messageCenter.on(p,function(v){if(_1[f.group]&&f[Sx]!==R4){if(v&&v.escapeConnect)return;var g=f.makeActionFromEvent(v),m=[];te(Oc,function(_){_!==f&&_.group===f.group&&m.push(_)}),d(m,R4),te(m,function(_){_[Sx]!==LWe&&_.dispatchAction(g)}),d(m,$We)}})})}}(),t}(Ei),OE=m1.prototype;OE.on=zY("on");OE.off=zY("off");OE.one=function(e,t,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,a)}this.on.call(this,e,a,n)};var RWe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],y1={},_v={},Tk=[],kk=[],b1=[],KY={},Ak={},Oc={},_1={},OWe=+new Date-0,NWe=+new Date-0,NE="_echarts_instance_";function _m(e,t,n){var r=!(n&&n.ssr);if(r){var a=BE(e);if(a)return a}var i=new m1(e,t,n);return i.id="ec_"+OWe++,Oc[i.id]=i,r&&Aj(e,NE,i.id),jY(i),zi.trigger("afterinit",i),i}function BWe(e){if(Ge(e)){var t=e;e=null,te(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+NWe++,te(t,function(n){n.group=e})}return _1[e]=!0,e}function YY(e){_1[e]=!1}var FWe=YY;function VWe(e){rt(e)?e=Oc[e]:e instanceof m1||(e=BE(e)),e instanceof m1&&!e.isDisposed()&&e.dispose()}function BE(e){return Oc[R6e(e,NE)]}function zWe(e){return Oc[e]}function FE(e,t){KY[e]=t}function VE(e){Ft(kk,e)<0&&kk.push(e)}function zE(e,t){HE(Tk,e,t,kWe)}function qY(e){kw("afterinit",e)}function XY(e){kw("afterupdate",e)}function kw(e,t){zi.on(e,t)}function _o(e,t,n){ht(t)&&(n=t,t="");var r=bt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!_v[t]&&(qr($4.test(r)&&$4.test(t)),y1[r]||(y1[r]={action:n,actionInfo:e}),_v[t]=r)}function ZY(e,t){Ah.register(e,t)}function HWe(e){var t=Ah.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function JY(e,t){HE(b1,e,t,NY,"layout")}function pu(e,t){HE(b1,e,t,BY,"visual")}var z4=[];function HE(e,t,n,r,a){if((ht(t)||bt(t))&&(n=t,t=r),!(Ft(z4,n)>=0)){z4.push(n);var i=kY.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function GE(e,t){Ak[e]=t}function GWe(e){MU({createCanvas:e})}function QY(e,t,n){var r=OY("registerMap");r&&r(e,t,n)}function WWe(e){var t=OY("getMap");return t&&t(e)}var eq=JGe;pu(RE,C9e);pu(Tw,T9e);pu(Tw,k9e);pu(RE,z9e);pu(Tw,H9e);pu(FY,mWe);VE(JK);zE(CWe,DGe);GE("default",A9e);_o({type:$c,event:$c,update:$c},jn);_o({type:ib,event:ib,update:ib},jn);_o({type:vv,event:vv,update:vv},jn);_o({type:ob,event:ob,update:ob},jn);_o({type:gv,event:gv,update:gv},jn);FE("light",B9e);FE("dark",F9e);var UWe={},H4=[],jWe={registerPreprocessor:VE,registerProcessor:zE,registerPostInit:qY,registerPostUpdate:XY,registerUpdateLifecycle:kw,registerAction:_o,registerCoordinateSystem:ZY,registerLayout:JY,registerVisual:pu,registerTransform:eq,registerLoading:GE,registerMap:QY,registerImpl:bWe,PRIORITY:VY,ComponentModel:Xt,ComponentView:On,SeriesModel:Pn,ChartView:bn,registerComponentModel:function(e){Xt.registerClass(e)},registerComponentView:function(e){On.registerClass(e)},registerSeriesModel:function(e){Pn.registerClass(e)},registerChartView:function(e){bn.registerClass(e)},registerSubTypeDefaulter:function(e,t){Xt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){pj(e,t)}};function zt(e){if(Ge(e)){te(e,function(t){zt(t)});return}Ft(H4,e)>=0||(H4.push(e),ht(e)&&(e={install:e}),e.install(jWe))}function gp(e){return e==null?0:e.length||1}function G4(e){return e}var KWe=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||G4,this._newKeyGetter=a||G4,this.context=i,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,n=this._new,r={},a=new Array(t.length),i=new Array(n.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=r[s],u=gp(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(t,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=r[l],c=a[l],f=gp(u),d=gp(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[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,a)},e.prototype._performRestAdd=function(t,n){for(var r=0;r<t.length;r++){var a=t[r],i=n[a],o=gp(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);n[a]=null}},e.prototype._initIndexMap=function(t,n,r,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(r[o]=s),!!n){var l=n[s],u=gp(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},e}();const Fs=KWe;var YWe=function(){function e(t,n){this._encode=t,this._schema=n}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 qWe(e,t){var n={},r=n.encode={},a=ut(),i=[],o=[],s={};te(e.dimensions,function(d){var h=e.getDimensionInfo(d),p=h.coordDim;if(p){var v=h.coordDimIndex;Mx(r,p)[v]=d,h.isExtraCoord||(a.set(p,1),XWe(h.type)&&(i[0]=d),Mx(s,p)[v]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}zK.each(function(g,m){var _=Mx(r,m),b=h.otherDims[m];b!=null&&b!==!1&&(_[b]=h.name)})});var l=[],u={};a.each(function(d,h){var p=r[h];u[h]=p[0],l=l.concat(p)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=We(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(i=c.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new YWe(s,t),n}function Mx(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function w1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function XWe(e){return!(e==="ordinal"||e==="time")}var ZWe=function(){function e(t){this.otherDims={},t!=null&&Be(this,t)}return e}();const fb=ZWe;var JWe=nn(),QWe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},tq=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=aq(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Et(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=eY(this.source),r=!iq(t),a="",i=[],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=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=n?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=QWe[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function nq(e){return e instanceof tq}function rq(e){for(var t=ut(),n=0;n<(e||[]).length;n++){var r=e[n],a=bt(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function aq(e){var t=JWe(e);return t.dimNameMap||(t.dimNameMap=rq(e.dimensionsDefine))}function iq(e){return e>30}var mp=bt,sl=We,e7e=typeof Int32Array>"u"?Array:Int32Array,t7e="e\0\0",W4=-1,n7e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],r7e=["_approximateExtent"],U4,Gy,yp,bp,Px,Wy,Ex,a7e=function(){function e(t,n){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 r,a=!1;nq(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=rt(f)?new fb({name:f}):f instanceof fb?f:new fb(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=ut();te(o,function(g){v.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(an(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var a=r.encode[t];return a?a[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var a=this,i;if(t instanceof yk&&(i=t),!i){var o=this.dimensions,s=kE(t)||Or(t)?new tY(t,o.length):t;i=new yk;var l=sl(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=qWe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var r=this._store.appendValues(t,n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=n[l],o&&Ex(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Vl&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ii;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&S6e(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=ar(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=ar(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)Ex(this,c);U4(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){mp(t)?Be(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=yp(this,this._nameDimIdx,n)),r==null&&(r=""),r},e.prototype._getCategory=function(t,n){var r=this._store.get(t,n),a=this._store.getOrdinalMeta(t);return a?a.categories[r]:r},e.prototype.getId=function(t){return Gy(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.get(a.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.getByRawIndex(a.storeDimIndex,n)},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,n){var r=this,a=this._store;return Ge(t)?a.getValues(sl(t,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===t)return n;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,n){var r=t&&this._invertedIndicesMap[t],a=r[n];return a==null||isNaN(a)?W4:a},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){ht(t)&&(r=n,n=t,t=[]);var a=r||this,i=sl(bp(t),this._getStoreDimIndex,this);this._store.each(i,a?it(n,a):n)},e.prototype.filterSelf=function(t,n,r){ht(t)&&(r=n,n=t,t=[]);var a=r||this,i=sl(bp(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?it(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=Ut(t);return te(a,function(i){var o=n._getStoreDimIndex(i);r[o]=t[i]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){ht(t)&&(r=n,n=t,t=[]),r=r||this;var a=[];return this.each(t,function(){a.push(n&&n.apply(this,arguments))},r),a},e.prototype.map=function(t,n,r,a){var i=r||a||this,o=sl(bp(t),this._getStoreDimIndex,this),s=Wy(this);return s._store=this._store.map(o,i?it(n,i):n),s},e.prototype.modify=function(t,n,r,a){var i=r||a||this,o=sl(bp(t),this._getStoreDimIndex,this);this._store.modify(o,i?it(n,i):n)},e.prototype.downSample=function(t,n,r,a){var i=Wy(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),i},e.prototype.lttbDownSample=function(t,n){var r=Wy(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new mn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new Fs(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Gy(t,r)},function(r){return Gy(n,r)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},mp(t)?Be(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],a=r&&r[n];return a??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),Ge(i)?i=i.slice():mp(i)&&(i=Be({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,mp(n)?Be(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){mp(t)?Be(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Be(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;ik(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){te(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:sl(this.dimensions,this._getDimInfo,this),this.hostModel)),Px(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ht(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(X_(arguments)))})},e.internalField=function(){U4=function(t){var n=t._invertedIndicesMap;te(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new e7e(o.categories.length);for(var l=0;l<r.length;l++)r[l]=W4;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},yp=function(t,n,r){return ar(t._getCategory(n,r),null)},Gy=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=yp(t,t._idDimIdx,n)),r==null&&(r=t7e+n),r},bp=function(t){return Ge(t)||(t=t!=null?[t]:[]),t},Wy=function(t){var n=new e(t._schema?t._schema:sl(t.dimensions,t._getDimInfo,t),t.hostModel);return Px(n,t),n},Px=function(t,n){te(n7e.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,te(r7e,function(r){t[r]=_t(n[r])}),t._calculationInfo=Be({},n._calculationInfo)},Ex=function(t,n){var r=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=r[n],l=a[n];if(s==null&&i!=null&&(r[n]=s=yp(t,i,n)),l==null&&o!=null&&(a[n]=l=yp(t,o,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[n]=l}}}(),e}();const Kr=a7e;function i7e(e,t){return Ih(e,t).dimensions}function Ih(e,t){kE(e)||(e=AE(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=ut(),i=[],o=s7e(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&iq(o),l=r===e.dimensionsDefine,u=l?aq(e):rq(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ut(c),d=new uY(o),h=0;h<d.length;h++)d[h]=-1;function p(k){var A=d[k];if(A<0){var M=r[k],I=bt(M)?M:{name:M},E=new fb,L=I.name;L!=null&&u.get(L)!=null&&(E.name=E.displayName=L),I.type!=null&&(E.type=I.type),I.displayName!=null&&(E.displayName=I.displayName);var N=i.length;return d[k]=N,E.storeDimIndex=k,i.push(E),E}return i[A]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(k,A){var M=yn(k).slice();if(M.length===1&&!rt(M[0])&&M[0]<0){f.set(A,!1);return}var I=f.set(A,[]);te(M,function(E,L){var N=rt(E)?u.get(E):E;N!=null&&N<o&&(I[L]=N,g(p(N),A,L))})});var v=0;te(n,function(k){var A,M,I,E;if(rt(k))A=k,E={};else{E=k,A=E.name;var L=E.ordinalMeta;E.ordinalMeta=null,E=Be({},E),E.ordinalMeta=L,M=E.dimsDef,I=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var N=f.get(A);if(N!==!1){if(N=yn(N),!N.length)for(var $=0;$<(M&&M.length||1);$++){for(;v<o&&p(v).coordDim!=null;)v++;v<o&&N.push(v++)}te(N,function(P,R){var D=p(P);if(l&&E.type!=null&&(D.type=E.type),g(mt(D,E),A,R),D.name==null&&M){var B=M[R];!bt(B)&&(B={name:B}),D.name=D.displayName=B.name,D.defaultTooltip=B.defaultTooltip}I&&mt(D.otherDims,I)})}});function g(k,A,M){zK.get(A)!=null?k.otherDims[A]=M:(k.coordDim=A,k.coordDimIndex=M,a.set(A,!0))}var m=t.generateCoord,_=t.generateCoordCount,b=_!=null;_=m?_||1:0;var w=m||"value";function S(k){k.name==null&&(k.name=k.coordDim)}if(s)te(i,function(k){S(k)}),i.sort(function(k,A){return k.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var C=p(x),T=C.coordDim;T==null&&(C.coordDim=l7e(w,a,b),C.coordDimIndex=0,(!m||_<=0)&&(C.isExtraCoord=!0),_--),S(C),C.type==null&&(UK(e,x)===Pr.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return o7e(i),new tq({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function o7e(e){for(var t=ut(),n=0;n<e.length;n++){var r=e[n],a=r.name,i=t.get(a)||0;i>0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function s7e(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return te(t,function(i){var o;bt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function l7e(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var u7e=function(){function e(t){this.coordSysDims=[],this.axisMap=ut(),this.categoryAxisMap=ut(),this.coordSysName=t}return e}();function c7e(e){var t=e.get("coordinateSystem"),n=new u7e(t),r=f7e[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var f7e={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",Qn).models[0],i=e.getReferringComponents("yAxis",Qn).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Of(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),Of(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",Qn).models[0];t.coordSysDims=["single"],n.set("single",a),Of(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",Qn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Of(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),Of(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();te(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Of(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Of(e){return e.get("type")==="category"}function oq(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;d7e(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(te(i,function(_,b){rt(_)&&(i[b]=_={name:_}),l&&!_.isExtraCoord&&(!r&&!u&&_.ordinalMeta&&(u=_),!c&&_.type!=="ordinal"&&_.type!=="time"&&(!a||a===_.coordDim)&&(c=_))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;te(i,function(_){_.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),m.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function d7e(e){return!nq(e.schema)}function Vs(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function WE(e,t){return Vs(e,t)?e.getCalculationInfo("stackResultDimension"):t}function h7e(e,t){var n=e.get("coordinateSystem"),r=Ah.get(n),a;return t&&t.coordSysDims&&(a=We(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=w1(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function p7e(e,t,n){var r,a;return n&&te(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function ls(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=AE(e)):(a=r.getSource(),i=a.sourceFormat===Ii);var o=c7e(t),s=h7e(t,o),l=n.useEncodeDefaulter,u=ht(l)?l:l?Pt(WK,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Ih(a,c),d=p7e(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),p=oq(t,{schema:f,store:h}),v=new Kr(f,t);v.setCalculationInfo(p);var g=d!=null&&v7e(a)?function(m,_,b,w){return w===d?b:this.defaultDimValueGetter(m,_,b,w)}:null;return v.hasItemOption=!1,v.initData(i?a:h,null,g),v}function v7e(e){if(e.sourceFormat===Ii){var t=g7e(e.data||[]);return!Ge(mh(t))}}function g7e(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var sq=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 n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},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}();rw(sq);const Zs=sq;var m7e=0,y7e=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++m7e}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&We(r,b7e);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!rt(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ut(this.categories))},e}();function b7e(e){return bt(e)&&e.value!=null?e.value:e+""}const Mk=y7e;function Pk(e){return e.type==="interval"||e.type==="log"}function _7e(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=YP(i/t,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=lq(o),l=a.niceTickExtent=[Gn(Math.ceil(e[0]/o)*o,s),Gn(Math.floor(e[1]/o)*o,s)];return w7e(l,e),a}function Ix(e){var t=Math.pow(10,nw(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Gn(n*t)}function lq(e){return qi(e)+2}function j4(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function w7e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),j4(e,0,t),j4(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Aw(e,t){return e>=t[0]&&e<=t[1]}function Mw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Pw(e,t){return e*(t[1]-t[0])+t[0]}var uq=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new Mk({})),Ge(a)&&(a=new Mk({categories:We(a,function(i){return bt(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:rt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),Aw(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),Mw(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(Pw(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var u=r[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Zs);Zs.registerClass(uq);const UE=uq;var Vu=Gn,cq=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return Aw(n,this._extent)},t.prototype.normalize=function(n){return Mw(n,this._extent)},t.prototype.scale=function(n){return Pw(n,this._extent)},t.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=lq(n)},t.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]<i[0]&&(n?s.push({value:Vu(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Vu(u+r,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:Vu(c+r,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<r.length;o++){for(var s=r[o],l=r[o-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=Vu(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=qi(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Vu(n.value,a,!0);return bE(i)},t.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=_7e(i,n,r,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=Vu(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=Vu(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(Zs);Zs.registerClass(cq);const Ql=cq;var fq=typeof Float32Array<"u",S7e=fq?Float32Array:Array;function Vo(e){return Ge(e)?fq?new Float32Array(e):e:new S7e(e)}var Ek="__ec_stack_";function jE(e){return e.get("stack")||Ek+e.seriesIndex}function KE(e){return e.dim+e.index}function x7e(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),i=0;i<e.count;i++)t.push(mt({bandWidth:a,axisKey:r,stackId:Ek+i},e));for(var o=pq(t),s=[],i=0;i<e.count;i++){var l=o[r][Ek+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function dq(e,t){var n=[];return t.eachSeriesByType(e,function(r){mq(r)&&n.push(r)}),n}function C7e(e){var t={};te(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)),p=f.getStore(),v=0,g=p.count();v<g;++v){var m=p.get(h,v);t[d]?t[d].push(m):t[d]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function hq(e){var t=C7e(e),n=[];return te(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=Qe(r.get("barWidth"),s),v=Qe(r.get("barMaxWidth"),s),g=Qe(r.get("barMinWidth")||(yq(r)?.5:1),s),m=r.get("barGap"),_=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:m,barCategoryGap:_,axisKey:KE(i),stackId:jE(r)})}),pq(n)}function pq(e){var t={};te(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return te(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ut(i).length;s=Math.max(35-l*4,15)+"%"}var u=Qe(s,o),c=Qe(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),te(i,function(m){var _=m.maxWidth,b=m.minWidth;if(m.width){var w=m.width;_&&(w=Math.min(w,_)),b&&(w=Math.max(w,b)),m.width=w,f-=w+c*w,d--}else{var w=h;_&&_<w&&(w=Math.min(_,f)),b&&b>w&&(w=b),w!==h&&(m.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;te(i,function(m,_){m.width||(m.width=h),v=m,p+=m.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;te(i,function(m,_){n[a][_]=n[a][_]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function T7e(e,t,n){if(e&&t){var r=e[KE(t)];return r!=null&&n!=null?r[jE(n)]:r}}function vq(e,t){var n=dq(e,t),r=hq(n);te(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=jE(a),u=r[KE(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function gq(e){return{seriesType:e,plan:Mh(),reset:function(t){if(mq(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=Vs(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=k7e(a,i),p=yq(t),v=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),_=n.getLayout("offset");return{progress:function(b,w){for(var S=b.count,x=p&&Vo(S*3),C=p&&l&&Vo(S*3),T=p&&Vo(S),k=r.master.getRect(),A=d?k.width:k.height,M,I=w.getStore(),E=0;(M=b.next())!=null;){var L=I.get(f?g:o,M),N=I.get(s,M),$=h,P=void 0;f&&(P=+L-I.get(o,M));var R=void 0,D=void 0,B=void 0,H=void 0;if(d){var G=r.dataToPoint([L,N]);if(f){var X=r.dataToPoint([P,N]);$=X[0]}R=$,D=G[1]+_,B=G[0]-$,H=m,Math.abs(B)<v&&(B=(B<0?-1:1)*v)}else{var G=r.dataToPoint([N,L]);if(f){var X=r.dataToPoint([N,P]);$=X[1]}R=G[0]+_,D=$,B=m,H=G[1]-$,Math.abs(H)<v&&(H=(H<=0?-1:1)*v)}p?(x[E]=R,x[E+1]=D,x[E+2]=d?B:H,C&&(C[E]=d?k.x:R,C[E+1]=d?D:k.y,C[E+2]=A),T[M]=M):w.setItemLayout(M,{x:R,y:D,width:B,height:H}),E+=3}p&&w.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:d})}}}}}}function mq(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function yq(e){return e.pipelineContext&&e.pipelineContext.large}function k7e(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?n>0?n:1:n))}var A7e=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},bq=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return ym(n.value,N5[KHe(Td(this._minLevelUnit))]||N5.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return YHe(n,r,a,o,i)},t.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var i=this.getSetting("useUTC"),o=$7e(this._minLevelUnit,this._approxInterval,i,r);return a=a.concat(o),a.push({value:r[1],level:0}),a},t.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=gi,r[1]+=gi),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-gi}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},t.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Uy.length,l=Math.min(A7e(Uy,this._approxInterval,0,s),s-1);this._interval=Uy[l][1],this._minLevelUnit=Uy[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return an(n)?n:+Za(n)},t.prototype.contain=function(n){return Aw(this.parse(n),this._extent)},t.prototype.normalize=function(n){return Mw(this.parse(n),this._extent)},t.prototype.scale=function(n){return Pw(n,this._extent)},t.type="time",t}(Ql),Uy=[["second",gE],["minute",mE],["hour",yv],["quarter-day",yv*6],["half-day",yv*12],["day",gi*1.2],["half-week",gi*3.5],["week",gi*7],["month",gi*31],["quarter",gi*95],["half-year",O5/2],["year",O5]];function M7e(e,t,n,r){var a=Za(t),i=Za(n),o=function(p){return B5(a,p,r)===B5(i,p,r)},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 P7e(e,t){return e/=gi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function E7e(e){var t=30*gi;return e/=t,e>6?6:e>3?3:e>2?2:1}function I7e(e){return e/=yv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function K4(e,t){return e/=t?mE:gE,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function D7e(e){return YP(e,!0)}function L7e(e,t,n){var r=new Date(e);switch(Td(t)){case"year":case"month":r[IK(n)](0);case"day":r[DK(n)](1);case"hour":r[LK(n)](0);case"minute":r[$K(n)](0);case"second":r[RK(n)](0),r[OK(n)](0)}return r.getTime()}function $7e(e,t,n,r){var a=1e4,i=PK,o=0;function s(A,M,I,E,L,N,$){for(var P=new Date(M),R=M,D=P[E]();R<I&&R<=r[1];)$.push({value:R}),D+=A,P[L](D),R=P.getTime();$.push({value:R,notAdd:!0})}function l(A,M,I){var E=[],L=!M.length;if(!M7e(Td(A),r[0],r[1],n)){L&&(M=[{value:L7e(new Date(r[0]),A,n)},{value:r[1]}]);for(var N=0;N<M.length-1;N++){var $=M[N].value,P=M[N+1].value;if($!==P){var R=void 0,D=void 0,B=void 0,H=!1;switch(A){case"year":R=Math.max(1,Math.round(t/gi/365)),D=yE(n),B=qHe(n);break;case"half-year":case"quarter":case"month":R=E7e(t),D=kd(n),B=IK(n);break;case"week":case"half-week":case"day":R=P7e(t),D=vw(n),B=DK(n),H=!0;break;case"half-day":case"quarter-day":case"hour":R=I7e(t),D=Sg(n),B=LK(n);break;case"minute":R=K4(t,!0),D=gw(n),B=$K(n);break;case"second":R=K4(t,!1),D=mw(n),B=RK(n);break;case"millisecond":R=D7e(t),D=yw(n),B=OK(n);break}s(R,$,P,D,B,H,E),A==="year"&&I.length>1&&N===0&&I.unshift({value:I[0].value-R})}}for(var N=0;N<E.length;N++)I.push(E[N]);return E}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var p=Td(i[h]);if(jHe(i[h])){l(i[h],u[u.length-1]||[],c);var v=i[h+1]?Td(i[h+1]):null;if(p!==v){if(c.length){d=f,c.sort(function(A,M){return A.value-M.value});for(var g=[],m=0;m<c.length;++m){var _=c[m].value;(m===0||c[m-1].value!==_)&&(g.push(c[m]),_>=r[0]&&_<=r[1]&&f++)}var b=(r[1]-r[0])/t;if(f>b*1.5&&d>b/1.5||(u.push(g),f>b||e===i[h]))break}c=[]}}}for(var w=hn(We(u,function(A){return hn(A,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(A){return A.length>0}),S=[],x=w.length-1,h=0;h<w.length;++h)for(var C=w[h],T=0;T<C.length;++T)S.push({value:C[T].value,level:x-h});S.sort(function(A,M){return A.value-M.value});for(var k=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&k.push(S[h]);return k}Zs.registerClass(bq);const _q=bq;var Y4=Zs.prototype,wv=Ql.prototype,R7e=Gn,O7e=Math.floor,N7e=Math.ceil,jy=Math.pow,Ni=Math.log,YE=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Ql,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=wv.getTicks.call(this,n);return We(o,function(s){var l=s.value,u=Gn(jy(this.base,l));return u=l===a[0]&&this._fixMin?Ky(u,i[0]):u,u=l===a[1]&&this._fixMax?Ky(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var a=Ni(this.base);n=Ni(Math.max(0,n))/a,r=Ni(Math.max(0,r))/a,wv.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=Y4.getExtent.call(this);r[0]=jy(n,r[0]),r[1]=jy(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=Ky(r[0],i[0])),this._fixMax&&(r[1]=Ky(r[1],i[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Ni(n[0])/Ni(r),n[1]=Ni(n[1])/Ni(r),Y4.unionExtent.call(this,n)},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var i=_j(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Gn(N7e(r[0]/i)*i),Gn(O7e(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){wv.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=Ni(n)/Ni(this.base),Aw(n,this._extent)},t.prototype.normalize=function(n){return n=Ni(n)/Ni(this.base),Mw(n,this._extent)},t.prototype.scale=function(n){return n=Pw(n,this._extent),jy(this.base,n)},t.type="log",t}(Zs),wq=YE.prototype;wq.getMinorTicks=wv.getMinorTicks;wq.getLabel=wv.getLabel;function Ky(e,t){return R7e(e,qi(t))}Zs.registerClass(YE);const B7e=YE;var F7e=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=n.get("min",!0);i==null&&(i=n.get("startValue",!0));var o=this._modelMinRaw=i;ht(o)?this._modelMinNum=Yy(t,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=Yy(t,o));var s=this._modelMaxRaw=n.get("max",!0);if(ht(s)?this._modelMaxNum=Yy(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=Yy(t,s)),a)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=Ge(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[fo(u[0],1),fo(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:n-i[0]*o),l==null&&(l=t?a?a-1:NaN:r+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=qd(s)||qd(l)||t&&!a;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,n){this[z7e[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=V7e[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),V7e={min:"_determinedMin",max:"_determinedMax"},z7e={min:"_dataMin",max:"_dataMax"};function Sq(e,t,n){var r=e.rawExtentInfo;return r||(r=new F7e(e,t,n),e.rawExtentInfo=r,r)}function Yy(e,t){return t==null?null:qd(t)?NaN:e.parse(t)}function xq(e,t){var n=e.type,r=Sq(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var a=r.min,i=r.max,o=t.ecModel;if(o&&n==="time"){var s=dq("bar",o),l=!1;if(te(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=hq(s),c=H7e(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function H7e(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=T7e(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;te(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;te(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)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Jc(e,t){var n=t,r=xq(e,n),a=r.extent,i=n.get("splitNumber");e instanceof B7e&&(e.base=n.get("logBase"));var o=e.type,s=n.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function wm(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new UE({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new _q({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Zs.getClass(t)||Ql)}}function G7e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function Dh(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):rt(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):ht(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(qE(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function qE(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function W7e(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof UE?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=Dh(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=r?r[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),p=U7e(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function U7e(e,t){var n=t*Math.PI/180,r=e.width,a=e.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),s=new Nt(e.x,e.y,i,o);return s}function XE(e){var t=e.get("interval");return t??"auto"}function Cq(e){return e.type==="category"&&XE(e.getLabelModel())===0}function S1(e,t){var n={};return te(e.mapDimensionsAll(t),function(r){n[WE(e,r)]=!0}),Ut(n)}function j7e(e,t,n){t&&te(S1(t,n),function(r){var a=t.getApproximateExtent(r);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var Lh=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function K7e(e){return ls(null,e)}var Y7e={isDimensionStacked:Vs,enableDataStack:oq,getStackedDimension:WE};function q7e(e,t){var n=t;t instanceof mn||(n=new mn(t));var r=wm(n);return r.setExtent(e[0],e[1]),Jc(r,n),r}function X7e(e){Yn(e,Lh)}function Z7e(e,t){return t=t||{},Cn(e,null,null,t.state!=="normal")}const J7e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:i7e,createList:K7e,createScale:q7e,createSymbol:Xn,createTextStyle:Z7e,dataStack:Y7e,enableHoverEmphasis:Bl,getECData:kt,getLayoutRect:rr,mixinAxisModelCommonMethods:X7e},Symbol.toStringTag,{value:"Module"}));var Q7e=1e-8;function q4(e,t){return Math.abs(e-t)<Q7e}function ic(e,t,n){var r=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];r+=ys(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return(!q4(a[0],s[0])||!q4(a[1],s[1]))&&(r+=ys(a[0],a[1],s[0],s[1],t,n)),r!==0}var eUe=[];function Dx(e,t){for(var n=0;n<e.length;n++)xr(e[n],e[n],t)}function X4(e,t,n,r){for(var a=0;a<e.length;a++){var i=e[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Cs(t,t,i),Ts(n,n,i))}}function tUe(e){for(var t=0,n=0,r=0,a=e.length,i=e[a-1][0],o=e[a-1][1],s=0;s<a;s++){var l=e[s][0],u=e[s][1],c=i*u-l*o;t+=c,n+=(i+l)*c,r+=(o+u)*c,i=l,o=u}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Tq=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),Z4=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),J4=function(){function e(t){this.type="linestring",this.points=t}return e}(),kq=function(e){De(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],s=o.exterior,l=s&&s.length;l>a&&(r=o,a=l)}if(r)return tUe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return te(o,function(s){s.type==="polygon"?X4(s.exterior,a,i,n):te(s.points,function(l){X4(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Nt(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ic(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(ic(u[c],n[0],n[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Nt(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(Dx(d.exterior,u),te(d.interiors,function(h){Dx(h,u)})):te(d.points,function(h){Dx(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new t(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t}(Tq),nUe=function(e){De(t,e);function t(n,r){var a=e.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return t.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=um(eUe),o=n;o&&!o.isGeoSVGGraphicRoot;)Uo(i,o.getLocalTransform(),i),o=o.parent;return uf(i,i),xr(a,a,i),a},t}(Tq);function rUe(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return te(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=Aq(s,o,n);break;case"Polygon":Lx(s,o,n);break;case"MultiLineString":Lx(s,o,n);break;case"MultiPolygon":te(s,function(l,u){return Lx(l,o[u],n)})}}),t.UTF8Encoding=!1,t}function Lx(e,t,n){for(var r=0;r<e.length;r++)e[r]=Aq(e[r],t[r],n)}function Aq(e,t,n){for(var r=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function Ik(e,t){return e=rUe(e),We(hn(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Z4(o[0],o.slice(1)));break;case"MultiPolygon":te(a.coordinates,function(l){l[0]&&i.push(new Z4(l[0],l.slice(1)))});break;case"LineString":i.push(new J4([a.coordinates]));break;case"MultiLineString":i.push(new J4(a.coordinates))}var s=new kq(r[t||"name"],i,r.cp);return s.properties=r,s})}const aUe=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:QT,asc:Ga,getPercentWithPrecision:b6e,getPixelPrecision:jP,getPrecision:qi,getPrecisionSafe:yj,isNumeric:qP,isRadianAroundZero:Xd,linearMap:dn,nice:YP,numericToNumber:Qo,parseDate:Za,quantile:ab,quantity:_j,quantityExponent:nw,reformIntervals:ek,remRadian:KP,round:Gn},Symbol.toStringTag,{value:"Module"})),iUe=Object.freeze(Object.defineProperty({__proto__:null,format:ym,parse:Za},Symbol.toStringTag,{value:"Module"})),oUe=Object.freeze(Object.defineProperty({__proto__:null,Arc:cw,BezierCurve:vm,BoundingRect:Nt,Circle:Xs,CompoundPath:fw,Ellipse:uw,Group:Tt,Image:Ar,IncrementalDisplayable:mK,Line:dr,LinearGradient:ts,Polygon:ga,Polyline:ba,RadialGradient:sE,Rect:tn,Ring:pm,Sector:va,Text:en,clipPointsByRect:fE,clipRectByRect:wK,createIcon:_h,extendPath:bK,extendShape:Fo,getShapeClass:dw,getTransform:Fl,initProps:Ln,makeImage:uE,makePath:gm,mergePath:Fa,registerShape:ir,resizePath:cE,updateProps:sn},Symbol.toStringTag,{value:"Module"})),sUe=Object.freeze(Object.defineProperty({__proto__:null,addCommas:bE,capitalFirst:QHe,encodeHTML:Wr,formatTime:JHe,formatTpl:wE,getTextRect:XHe,getTooltipMarker:NK,normalizeCssArray:df,toCamelCase:_E,truncateText:Ij},Symbol.toStringTag,{value:"Module"})),lUe=Object.freeze(Object.defineProperty({__proto__:null,bind:it,clone:_t,curry:Pt,defaults:mt,each:te,extend:Be,filter:hn,indexOf:Ft,inherits:NP,isArray:Ge,isFunction:ht,isObject:bt,isString:rt,map:We,merge:Rt,reduce:Mi},Symbol.toStringTag,{value:"Module"}));var Mg=nn();function Mq(e,t){var n=We(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function uUe(e){var t=e.getLabelModel().get("customValues");if(t){var n=Dh(e);return{labels:Mq(e,t).map(function(r){var a={value:r};return{formattedLabel:n(a),rawLabel:e.scale.getLabel(a),tickValue:r}})}}return e.type==="category"?fUe(e):hUe(e)}function cUe(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:Mq(e,n)}:e.type==="category"?dUe(e,t):{ticks:We(e.scale.getTicks(),function(r){return r.value})}}function fUe(e){var t=e.getLabelModel(),n=Pq(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Pq(e,t){var n=Eq(e,"labels"),r=XE(t),a=Iq(n,r);if(a)return a;var i,o;return ht(r)?i=$q(e,r):(o=r==="auto"?pUe(e):r,i=Lq(e,o)),Dq(n,r,{labels:i,labelCategoryInterval:o})}function dUe(e,t){var n=Eq(e,"ticks"),r=XE(t),a=Iq(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ht(r))i=$q(e,r,!0);else if(r==="auto"){var s=Pq(e,e.getLabelModel());o=s.labelCategoryInterval,i=We(s.labels,function(l){return l.tickValue})}else o=r,i=Lq(e,o,!0);return Dq(n,r,{ticks:i,tickCategoryInterval:o})}function hUe(e){var t=e.scale.getTicks(),n=Dh(e);return{labels:We(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function Eq(e,t){return Mg(e)[t]||(Mg(e)[t]=[])}function Iq(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Dq(e,t,n){return e.push({key:t,value:n}),n}function pUe(e){var t=Mg(e).autoInterval;return t??(Mg(e).autoInterval=e.calculateCategoryInterval())}function vUe(e){var t=gUe(e),n=Dh(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=i[1];l+=s){var p=0,v=0,g=fm(n({value:l}),t.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var m=d/c,_=h/f;isNaN(m)&&(m=1/0),isNaN(_)&&(_=1/0);var b=Math.max(0,Math.floor(Math.min(m,_))),w=Mg(e.model),S=e.getExtent(),x=w.lastAutoInterval,C=w.lastTickCount;return x!=null&&C!=null&&Math.abs(x-b)<=1&&Math.abs(C-o)<=1&&x>b&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?b=x:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=S[0],w.axisExtent1=S[1]),b}function gUe(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 Lq(e,t,n){var r=Dh(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Cq(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&v(i[0]);for(var p=u;p<=i[1];p+=l)v(p);h&&p-l!==i[1]&&v(i[1]);function v(g){var m={value:g};s.push(n?g:{formattedLabel:r(m),rawLabel:a.getLabel(m),tickValue:g})}return s}function $q(e,t,n){var r=e.scale,a=Dh(e),i=[];return te(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Q4=[0,1],mUe=function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return t>=r&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return jP(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(r=r.slice(),eB(r,a.count())),dn(t,Q4,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),eB(r,a.count()));var i=dn(t,r,Q4,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=cUe(this,n),a=r.ticks,i=We(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return yUe(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=We(r,function(i){return We(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return uUe(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,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/r},e.prototype.calculateCategoryInterval=function(){return vUe(this)},e}();function eB(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function yUe(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;te(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,p){return h=Gn(h),p=Gn(p),f?h>p:h<p}}const Li=mUe;function bUe(e){var t=Xt.extend(e);return Xt.registerClass(t),t}function _Ue(e){var t=On.extend(e);return On.registerClass(t),t}function wUe(e){var t=Pn.extend(e);return Pn.registerClass(t),t}function SUe(e){var t=bn.extend(e);return bn.registerClass(t),t}var _p=Math.PI*2,zu=es.CMD,xUe=["top","right","bottom","left"];function CUe(e,t,n,r,a){var i=n.width,o=n.height;switch(e){case"top":r.set(n.x+i/2,n.y-t),a.set(0,-1);break;case"bottom":r.set(n.x+i/2,n.y+o+t),a.set(0,1);break;case"left":r.set(n.x-t,n.y+o/2),a.set(-1,0);break;case"right":r.set(n.x+i+t,n.y+o/2),a.set(1,0);break}}function TUe(e,t,n,r,a,i,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+e,f=s*n+t;if(Math.abs(r-a)%_p<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Wa(a),a=Wa(d)}else r=Wa(r),a=Wa(a);r>a&&(a+=_p);var h=Math.atan2(s,o);if(h<0&&(h+=_p),h>=r&&h<=a||h+_p>=r&&h+_p<=a)return l[0]=c,l[1]=f,u-n;var p=n*Math.cos(r)+e,v=n*Math.sin(r)+t,g=n*Math.cos(a)+e,m=n*Math.sin(a)+t,_=(p-o)*(p-o)+(v-s)*(v-s),b=(g-o)*(g-o)+(m-s)*(m-s);return _<b?(l[0]=p,l[1]=v,Math.sqrt(_)):(l[0]=g,l[1]=m,Math.sqrt(b))}function x1(e,t,n,r,a,i,o,s){var l=a-e,u=i-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var v=o[0]=e+p*c,g=o[1]=t+p*f;return Math.sqrt((v-a)*(v-a)+(g-i)*(g-i))}function Rq(e,t,n,r,a,i,o){n<0&&(e=e+n,n=-n),r<0&&(t=t+r,r=-r);var s=e+n,l=t+r,u=o[0]=Math.min(Math.max(a,e),s),c=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Hi=[];function kUe(e,t,n){var r=Rq(t.x,t.y,t.width,t.height,e.x,e.y,Hi);return n.set(Hi[0],Hi[1]),r}function AUe(e,t,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var p=c[h++];h===1&&(r=c[h],a=c[h+1],i=r,o=a);var v=u;switch(p){case zu.M:i=c[h++],o=c[h++],r=i,a=o;break;case zu.L:v=x1(r,a,c[h],c[h+1],f,d,Hi,!0),r=c[h++],a=c[h++];break;case zu.C:v=XU(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Hi),r=c[h++],a=c[h++];break;case zu.Q:v=JU(r,a,c[h++],c[h++],c[h],c[h+1],f,d,Hi),r=c[h++],a=c[h++];break;case zu.A:var g=c[h++],m=c[h++],_=c[h++],b=c[h++],w=c[h++],S=c[h++];h+=1;var x=!!(1-c[h++]);s=Math.cos(w)*_+g,l=Math.sin(w)*b+m,h<=1&&(i=s,o=l);var C=(f-g)*b/_+g;v=TUe(g,m,b,w,w+S,x,C,d,Hi),r=Math.cos(w+S)*_+g,a=Math.sin(w+S)*b+m;break;case zu.R:i=r=c[h++],o=a=c[h++];var T=c[h++],k=c[h++];v=Rq(i,o,T,k,f,d,Hi);break;case zu.Z:v=x1(r,a,i,o,f,d,Hi,!0),r=i,a=o;break}v<u&&(u=v,n.set(Hi[0],Hi[1]))}return u}var Xi=new Ot,An=new Ot,qn=new Ot,zo=new Ot,Ro=new Ot;function tB(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var a=e.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||xUe,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&uf([],c),d=t.get("length2")||0;u&&qn.copy(u);for(var h=0;h<o.length;h++){var p=o[h];CUe(p,0,s,Xi,zo),Ot.scaleAndAdd(An,Xi,zo,d),An.transform(f);var v=e.getBoundingRect(),g=u?u.distance(An):e instanceof Gt?AUe(An,e.path,qn):kUe(An,v,qn);g<l&&(l=g,An.transform(c),qn.transform(c),qn.toArray(i[0]),An.toArray(i[1]),Xi.toArray(i[2]))}Oq(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var C1=[],aa=new Ot;function Oq(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Xi.fromArray(e[0]),An.fromArray(e[1]),qn.fromArray(e[2]),Ot.sub(zo,Xi,An),Ot.sub(Ro,qn,An);var n=zo.len(),r=Ro.len();if(!(n<.001||r<.001)){zo.scale(1/n),Ro.scale(1/r);var a=zo.dot(Ro),i=Math.cos(t);if(i<a){var o=x1(An.x,An.y,qn.x,qn.y,Xi.x,Xi.y,C1,!1);aa.fromArray(C1),aa.scaleAndAdd(Ro,o/Math.tan(Math.PI-t));var s=qn.x!==An.x?(aa.x-An.x)/(qn.x-An.x):(aa.y-An.y)/(qn.y-An.y);if(isNaN(s))return;s<0?Ot.copy(aa,An):s>1&&Ot.copy(aa,qn),aa.toArray(e[1])}}}}function MUe(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Xi.fromArray(e[0]),An.fromArray(e[1]),qn.fromArray(e[2]),Ot.sub(zo,An,Xi),Ot.sub(Ro,qn,An);var r=zo.len(),a=Ro.len();if(!(r<.001||a<.001)){zo.scale(1/r),Ro.scale(1/a);var i=zo.dot(t),o=Math.cos(n);if(i<o){var s=x1(An.x,An.y,qn.x,qn.y,Xi.x,Xi.y,C1,!1);aa.fromArray(C1);var l=Math.PI/2,u=Math.acos(Ro.dot(t)),c=l+u-n;if(c>=l)Ot.copy(aa,qn);else{aa.scaleAndAdd(Ro,s/Math.tan(Math.PI/2-c));var f=qn.x!==An.x?(aa.x-An.x)/(qn.x-An.x):(aa.y-An.y)/(qn.y-An.y);if(isNaN(f))return;f<0?Ot.copy(aa,An):f>1&&Ot.copy(aa,qn)}aa.toArray(e[1])}}}}function $x(e,t,n,r){var a=n==="normal",i=a?e:e.ensureState(n);i.ignore=t;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function PUe(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=xs(r[0],r[1]),i=xs(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=cv([],r[1],r[0],o/a),l=cv([],r[1],r[2],o/i),u=cv([],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],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function ZE(e,t,n){var r=e.getTextGuideLine(),a=e.getTextContent();if(!a){r&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<bg.length;l++){var u=bg[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Et(a.states[u]&&a.states[u].ignore,s);if(h||!Et(d,o)){var p=f?r:r&&r.states[u];p&&(p.ignore=!0),r&&$x(r,!0,u,c);continue}r||(r=new ba,e.setTextGuideLine(r),!f&&(s||!o)&&$x(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),$x(r,!1,u,c)}}if(r){mt(r.style,n),r.style.fill=null;var v=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=v||!1,r.buildPath=PUe}}function JE(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<pa.length;r++){var a=pa[r];n[a]=e.getModel([a,t])}return n}function Nq(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var a=r.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new o1(o,i):null;t.push({label:a,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:i})}}return t}function Bq(e,t,n,r,a,i){var o=e.length;if(o<2)return;e.sort(function(T,k){return T.rect[t]-k.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 p=Math.max(-l,0);c+=p,s=h[t]+h[n]}c>0&&i&&S(-c/o,0,o);var v=e[0],g=e[o-1],m,_;b(),m<0&&x(-m,.8),_<0&&x(_,.8),b(),w(m,_,1),w(_,m,-1),b(),m<0&&C(-m),_<0&&C(_);function b(){m=v.rect[t]-r,_=a-g.rect[t]-g.rect[n]}function w(T,k,A){if(T<0){var M=Math.min(k,-T);if(M>0){S(M*A,0,o);var I=M+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function S(T,k,A){T!==0&&(u=!0);for(var M=k;M<A;M++){var I=e[M],E=I.rect;E[t]+=T,I.label[t]+=T}}function x(T,k){for(var A=[],M=0,I=1;I<o;I++){var E=e[I-1].rect,L=Math.max(e[I].rect[t]-E[t]-E[n],0);A.push(L),M+=L}if(M){var N=Math.min(Math.abs(T)/M,k);if(T>0)for(var I=0;I<o-1;I++){var $=A[I]*N;S($,0,I+1)}else for(var I=o-1;I>0;I--){var $=A[I-1]*N;S(-$,I,o)}}}function C(T){var k=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),M=0;M<o-1;M++)if(k>0?S(A,0,M+1):S(-A,o-M-1,o),T-=A,T<=0)return}return u}function EUe(e,t,n,r){return Bq(e,"x","width",t,n,r)}function Fq(e,t,n,r){return Bq(e,"y","height",t,n,r)}function Vq(e){var t=[];e.sort(function(v,g){return g.priority-v.priority});var n=new Nt(0,0,0,0);function r(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=i.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(n.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new o1(p.localRect,p.transform)),f||(f=new o1(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}function IUe(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function DUe(e,t){var n=e.label,r=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:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:IUe(r&&r.shape.points)}}var nB=["align","verticalAlign","width","height","fontSize"],Qr=new ks,Rx=nn(),LUe=nn();function qy(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var Xy=["x","y","rotation"],$Ue=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,r,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Nt.applyTransform(c,c,u),u?Qr.setLocalTransform(u):(Qr.x=Qr.y=Qr.rotation=Qr.originX=Qr.originY=0,Qr.scaleX=Qr.scaleY=1),Qr.rotation=Wa(Qr.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Nt.applyTransform(d,d,h)}var p=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:p,seriesModel:r,dataIndex:t,dataType:n,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:p&&p.ignore,x:Qr.x,y:Qr.y,scaleX:Qr.scaleX,scaleY:Qr.scaleY,rotation:Qr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var r=t.__model,a=r.get("labelLayout");(ht(a)||Ut(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=kt(i);o&&!o.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,o,a)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),r=t.getHeight();function a(b,w){return function(){tB(b,w)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;ht(o.layoutOption)?c=o.layoutOption(DUe(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=Qe(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Qe(c.y,r),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 p=Rx(s);p.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<nB.length;v++){var g=nB[v];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 _=o.seriesModel.getData(o.dataType);m=_.getItemModel(o.dataIndex)}s.on("drag",a(l,m.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var n=t.getWidth(),r=t.getHeight(),a=Nq(this._labelList),i=hn(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=hn(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});EUe(i,0,n),Fq(o,0,r);var s=hn(a,function(l){return l.layoutOption.hideOverlap});Vq(s)},e.prototype.processLabelsOverall=function(){var t=this;te(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,i=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Rx(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),i&&t._animateLabels(o,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=kt(t),i=a.dataIndex;if(r&&i!=null){var o=n.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");ZE(t,JE(s),l),tB(t,f)}},e.prototype._animateLabels=function(t,n){var r=t.getTextContent(),a=t.getTextGuideLine();if(r&&(t.forceLabelAnimation||!r.ignore&&!r.invisible&&!t.disableLabelAnimation&&!xd(t))){var i=Rx(r),o=i.oldLayout,s=kt(t),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(o){r.attr(o);var d=t.prevStates;d&&(Ft(d,"select")>=0&&r.attr(i.oldLayoutSelect),Ft(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),sn(r,u,n,l)}else if(r.attr(u),!Sh(r).valueAnimation){var f=Et(r.style.opacity,1);r.style.opacity=0,Ln(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};qy(h,u,Xy),qy(h,r.states.select,Xy)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};qy(p,u,Xy),qy(p,r.states.emphasis,Xy)}TK(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=LUe(a),o=i.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),sn(a,{shape:v},n)):(a.setShape(v),a.style.strokePercent=0,Ln(a,{style:{strokePercent:1}},n)),i.oldLayout=v}},e}();const RUe=$Ue;var Ox=nn();function OUe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=Ox(n).labelManager;a||(a=Ox(n).labelManager=new RUe),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=Ox(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var Nx=Math.sin,Bx=Math.cos,zq=Math.PI,Hu=Math.PI*2,NUe=180/zq,BUe=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,n){this._add("M",t,n)},e.prototype.lineTo=function(t,n){this._add("L",t,n)},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){this._add("C",t,n,r,a,i,o)},e.prototype.quadraticCurveTo=function(t,n,r,a){this._add("Q",t,n,r,a)},e.prototype.arc=function(t,n,r,a,i,o){this.ellipse(t,n,r,r,0,a,i,o)},e.prototype.ellipse=function(t,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=Al(f-Hu)||(c?u>=Hu:-u>=Hu),h=u>0?u%Hu:u%Hu+Hu,p=!1;d?p=!0:Al(f)?p=!1:p=h>=zq==!!c;var v=t+r*Bx(o),g=n+a*Nx(o);this._start&&this._add("M",v,g);var m=Math.round(i*NUe);if(d){var _=1/this._p,b=(c?1:-1)*(Hu-_);this._add("A",r,a,m,1,+c,t+r*Bx(o+b),n+a*Nx(o+b)),_>.01&&this._add("A",r,a,m,0,+c,v,g)}else{var w=t+r*Bx(s),S=n+a*Nx(s);this._add("A",r,a,m,+p,+c,w,S)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const Hq=BUe;var Sv="none",FUe=Math.round;function VUe(e){var t=e.fill;return t!=null&&t!==Sv}function zUe(e){var t=e.stroke;return t!=null&&t!==Sv}var Dk=["lineCap","miterLimit","lineJoin"],HUe=We(Dk,function(e){return"stroke-"+e.toLowerCase()});function GUe(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof Ar){e("opacity",a);return}if(VUe(t)){var i=gg(t.fill);e("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*a:i.opacity*a;(r||o<1)&&e("fill-opacity",o)}else e("fill",Sv);if(zUe(t)){var s=gg(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*a:s.opacity*a,f=t.strokeFirst;if((r||u!==1)&&e("stroke-width",u),(r||f)&&e("paint-order",f?"stroke":"fill"),(r||c<1)&&e("stroke-opacity",c),t.lineDash){var d=LE(n),h=d[0],p=d[1];h&&(p=FUe(p||0),e("stroke-dasharray",h.join(",")),(p||r)&&e("stroke-dashoffset",p))}else r&&e("stroke-dasharray",Sv);for(var v=0;v<Dk.length;v++){var g=Dk[v];if(r||t[g]!==a1[g]){var m=t[g]||a1[g];m&&e(HUe[v],m)}}}else r&&e("stroke",Sv)}var Gq="http://www.w3.org/2000/svg",Wq="http://www.w3.org/1999/xlink",WUe="http://www.w3.org/2000/xmlns/",UUe="http://www.w3.org/XML/1998/namespace",rB="ecmeta_";function Uq(e){return document.createElementNS(Gq,e)}function hr(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function jUe(e,t){var n=[];if(t)for(var r in t){var a=t[r],i=r;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),n.push(i))}return"<"+e+" "+n.join(" ")+">"}function KUe(e){return"</"+e+">"}function QE(e,t){t=t||{};var n=t.newline?`
`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return jUe(o,s)+(o!=="style"?Wr(l):l||"")+(i?""+n+We(i,function(u){return r(u)}).join(n)+n:"")+KUe(o)}return r(e)}function YUe(e,t,n){n=n||{};var r=n.newline?`
`:"",a=" {"+r,i=r+"}",o=We(Ut(e),function(l){return l+a+We(Ut(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=We(Ut(t),function(l){return"@keyframes "+l+a+We(Ut(t[l]),function(u){return u+a+We(Ut(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function Lk(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function aB(e,t,n,r){return hr("svg","root",{width:e,height:t,xmlns:Gq,"xmlns:xlink":Wq,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var qUe=0;function jq(){return qUe++}var iB={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Yu="transform-origin";function XUe(e,t,n){var r=Be({},e.shape);Be(r,t),e.buildPath(n,r);var a=new Hq;return a.reset(ij(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function ZUe(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Yu]=n+"px "+r+"px")}var JUe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Kq(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function QUe(e,t,n){var r=e.shape.paths,a={},i,o;if(te(r,function(l){var u=Lk(n.zrId);u.animation=!0,Ew(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Ut(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];a[v]=a[v]||{d:""},a[v].d+=g.d||""}for(var m in f){var _=f[m].animation;_.indexOf(o)>=0&&(i=_)}}}),!!i){t.d=!1;var s=Kq(a,n);return i.replace(o,s)}}function oB(e){return rt(e)?iB[e]?"cubic-bezier("+iB[e]+")":zP(e)?e:"":""}function Ew(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof fw){var s=QUe(e,t,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=oB(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var p=f.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(_){var b=_[1],w=b.length,S={},x={},C={},T="animation-timing-function";function k(J,se,he){for(var re=J.getTracks(),z=J.getMaxTime(),Y=0;Y<re.length;Y++){var ee=re[Y];if(ee.needsAnimate()){var oe=ee.keyframes,ve=ee.propName;if(he&&(ve=he(ve)),ve)for(var Z=0;Z<oe.length;Z++){var ce=oe[Z],q=Math.round(ce.time/z*100)+"%",ae=oB(ce.easing),ne=ce.rawValue;(rt(ne)||an(ne))&&(se[q]=se[q]||{},se[q][ve]=ce.rawValue,ae&&(se[q][T]=ae))}}}}for(var A=0;A<w;A++){var M=b[A],I=M.targetName;I?I==="shape"&&k(M,x):!r&&k(M,S)}for(var E in S){var L={};cj(L,e),Be(L,S[E]);var N=oj(L),$=S[E][T];C[E]=N?{transform:N}:{},ZUe(C[E],L),$&&(C[E][T]=$)}var P,R=!0;for(var E in x){C[E]=C[E]||{};var D=!P,$=x[E][T];D&&(P=new es);var B=P.len();P.reset(),C[E].d=XUe(e,x[E],P);var H=P.len();if(!D&&B!==H){R=!1;break}$&&(C[E][T]=$)}if(!R)for(var E in C)delete C[E].d;if(!r)for(var A=0;A<w;A++){var M=b[A],I=M.targetName;I==="style"&&k(M,C,function(re){return JUe[re]})}for(var G=Ut(C),X=!0,ue,A=1;A<G.length;A++){var ie=G[A-1],le=G[A];if(C[ie][Yu]!==C[le][Yu]){X=!1;break}ue=C[ie][Yu]}if(X&&ue){for(var E in C)C[E][Yu]&&delete C[E][Yu];t[Yu]=ue}if(hn(G,function(J){return Ut(C[J]).length>0}).length){var Q=Kq(C,n);return Q+" "+_[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+jq();n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}function eje(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};sB(r,t,n,!0)}else{var a=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=a.fill;if(!i){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(i=e1(l))}var u=a.lineWidth;if(u){var c=!a.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var r={cursor:"pointer"};i&&(r.fill=i),a.stroke&&(r.stroke=a.stroke),u&&(r["stroke-width"]=u),sB(r,t,n,!0)}}function sB(e,t,n,r){var a=JSON.stringify(e),i=n.cssStyleCache[a];i||(i=n.zrId+"-cls-"+jq(),n.cssStyleCache[a]=i,n.cssNodes["."+i+(r?":hover":"")]=e),t.class=t.class?t.class+" "+i:i}var Pg=Math.round;function Yq(e){return e&&rt(e.src)}function qq(e){return e&&ht(e.toDataURL)}function eI(e,t,n,r){GUe(function(a,i){var o=a==="fill"||a==="stroke";o&&aj(i)?Zq(t,e,a,r):o&&GP(i)?Jq(n,e,a,r):o&&i==="none"?e[a]="transparent":e[a]=i},t,n,!1),sje(n,e,r)}function tI(e,t){var n=vj(t);n&&(n.each(function(r,a){r!=null&&(e[(rB+a).toLowerCase()]=r+"")}),t.isSilent()&&(e[rB+"silent"]="true"))}function lB(e){return Al(e[0]-1)&&Al(e[1])&&Al(e[2])&&Al(e[3]-1)}function tje(e){return Al(e[4])&&Al(e[5])}function nI(e,t,n){if(t&&!(tje(t)&&lB(t))){var r=n?10:1e4;e.transform=lB(t)?"translate("+Pg(t[4]*r)/r+" "+Pg(t[5]*r)/r+")":LVe(t)}}function uB(e,t,n){for(var r=e.points,a=[],i=0;i<r.length;i++)a.push(Pg(r[i][0]*n)/n),a.push(Pg(r[i][1]*n)/n);t.points=a.join(" ")}function cB(e){return!e.smooth}function nje(e){var t=We(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var i=0;i<t.length;i++){var o=t[i],s=n[o[0]];s!=null&&(r[o[1]]=Pg(s*a)/a)}}}var rje={circle:[nje(["cx","cy","r"])],polyline:[uB,cB],polygon:[uB,cB]};function aje(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function Xq(e,t){var n=e.style,r=e.shape,a=rje[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&ij(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&aje(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);a[0](r,i,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),p=e,v=p.__svgPathBuilder;(p.__svgPathVersion!==h||!v||l!==p.__svgPathStrokePercent)&&(v||(v=p.__svgPathBuilder=new Hq),v.reset(u),d.rebuildPath(v,l),v.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=v.getStr()}return nI(i,e.transform),eI(i,n,e,t),tI(i,e),t.animation&&Ew(e,i,t),t.emphasis&&eje(e,i,t),hr(s,e.id+"",i)}function ije(e,t){var n=e.style,r=n.image;if(r&&!rt(r)&&(Yq(r)?r=r.src:qq(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,i=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),nI(l,e.transform),eI(l,n,e,t),tI(l,e),t.animation&&Ew(e,l,t),hr("image",e.id+"",l)}}function oje(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||ql,i=n.x||0,o=RVe(n.y||0,tw(a),n.textBaseline),s=$Ve[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Wj(n)){var u="",c=n.fontStyle,f=Gj(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||AU,h=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),nI(l,e.transform),eI(l,n,e,t),tI(l,e),t.animation&&Ew(e,l,t),hr("text",e.id+"",l,void 0,r)}}function fB(e,t){if(e instanceof Gt)return Xq(e,t);if(e instanceof Ar)return ije(e,t);if(e instanceof yg)return oje(e,t)}function sje(e,t,n){var r=e.style;if(OVe(r)){var a=NVe(e),i=n.shadowCache,o=i[a];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,h=gg(r.shadowColor),p=h.opacity,v=h.color,g=d/2/l,m=d/2/u,_=g+" "+m;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=hr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[hr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:_,"flood-color":v,"flood-opacity":p})]),i[a]=o}t.filter=ew(o)}}function Zq(e,t,n,r){var a=e[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(nj(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(rj(a))i="radialGradient",o.cx=Et(a.x,.5),o.cy=Et(a.y,.5),o.r=Et(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=HT(s[u].offset)*100+"%",d=s[u].color,h=gg(d),p=h.color,v=h.opacity,g={offset:f};g["stop-color"]=p,v<1&&(g["stop-opacity"]=v),l.push(hr("stop",u+"",g))}var m=hr(i,"",o,l),_=QE(m),b=r.gradientCache,w=b[_];w||(w=r.zrId+"-g"+r.gradientIdx++,b[_]=w,o.id=w,r.defs[w]=hr(i,w,o,l)),t[n]=ew(w)}function Jq(e,t,n,r){var a=e.style[n],i=e.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(tj(a)){var d=a.imageWidth,h=a.imageHeight,p=void 0,v=a.image;if(rt(v)?p=v:Yq(v)?p=v.src:qq(v)&&(p=v.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";qr(d,g),qr(h,g)}else if(d==null||h==null){var m=function(A,M){if(A){var I=A.elm,E=d||M.width,L=h||M.height;A.tag==="pattern"&&(u?(L=1,E/=i.width):c&&(E=1,L/=i.height)),A.attrs.width=E,A.attrs.height=L,I&&(I.setAttribute("width",E),I.setAttribute("height",L))}},_=QP(p,null,e,function(A){l||m(x,A),m(f,A)});_&&_.width&&_.height&&(d=d||_.width,h=h||_.height)}f=hr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=_t(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/i.width):c?(b=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var S=oj(a);S&&(o.patternTransform=S);var x=hr("pattern","",o,[f]),C=QE(x),T=r.patternCache,k=T[C];k||(k=r.zrId+"-p"+r.patternIdx++,T[C]=k,o.id=k,x=r.defs[k]=hr("pattern",k,o,[f])),t[n]=ew(k)}}function lje(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=hr("clipPath",i,o,[Xq(e,n)])}t["clip-path"]=ew(i)}function dB(e){return document.createTextNode(e)}function oc(e,t,n){e.insertBefore(t,n)}function hB(e,t){e.removeChild(t)}function pB(e,t){e.appendChild(t)}function Qq(e){return e.parentNode}function eX(e){return e.nextSibling}function Fx(e,t){e.textContent=t}var vB=58,uje=120,cje=hr("","");function $k(e){return e===void 0}function Eo(e){return e!==void 0}function fje(e,t,n){for(var r={},a=t;a<=n;++a){var i=e[a].key;i!==void 0&&(r[i]=a)}return r}function zp(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Eg(e){var t,n=e.children,r=e.tag;if(Eo(r)){var a=e.elm=Uq(r);if(rI(cje,e),Ge(n))for(t=0;t<n.length;++t){var i=n[t];i!=null&&pB(a,Eg(i))}else Eo(e.text)&&!bt(e.text)&&pB(a,dB(e.text))}else e.elm=dB(e.text);return e.elm}function tX(e,t,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&oc(e,Eg(i),t)}}function T1(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(Eo(a.tag)){var i=Qq(a.elm);hB(i,a.elm)}else hB(e,a.elm)}}function rI(e,t){var n,r=t.elm,a=e&&e.attrs||{},i=t.attrs||{};if(a!==i){for(n in i){var o=i[n],s=a[n];s!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n==="style"?r.style.cssText=o:n.charCodeAt(0)!==uje?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(WUe,n,o):n.charCodeAt(3)===vB?r.setAttributeNS(UUe,n,o):n.charCodeAt(5)===vB?r.setAttributeNS(Wq,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function dje(e,t,n){for(var r=0,a=0,i=t.length-1,o=t[0],s=t[i],l=n.length-1,u=n[0],c=n[l],f,d,h,p;r<=i&&a<=l;)o==null?o=t[++r]:s==null?s=t[--i]:u==null?u=n[++a]:c==null?c=n[--l]:zp(o,u)?(Qf(o,u),o=t[++r],u=n[++a]):zp(s,c)?(Qf(s,c),s=t[--i],c=n[--l]):zp(o,c)?(Qf(o,c),oc(e,o.elm,eX(s.elm)),o=t[++r],c=n[--l]):zp(s,u)?(Qf(s,u),oc(e,s.elm,o.elm),s=t[--i],u=n[++a]):($k(f)&&(f=fje(t,r,i)),d=f[u.key],$k(d)?oc(e,Eg(u),o.elm):(h=t[d],h.tag!==u.tag?oc(e,Eg(u),o.elm):(Qf(h,u),t[d]=void 0,oc(e,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(p=n[l+1]==null?null:n[l+1].elm,tX(e,p,n,a,l)):T1(e,t,r,i))}function Qf(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(rI(e,t),$k(t.text)?Eo(r)&&Eo(a)?r!==a&&dje(n,r,a):Eo(a)?(Eo(e.text)&&Fx(n,""),tX(n,null,a,0,a.length-1)):Eo(r)?T1(n,r,0,r.length-1):Eo(e.text)&&Fx(n,""):e.text!==t.text&&(Eo(r)&&T1(n,r,0,r.length-1),Fx(n,t.text)))}function hje(e,t){if(zp(e,t))Qf(e,t);else{var n=e.elm,r=Qq(n);Eg(t),r!==null&&(oc(r,t.elm,eX(n)),T1(r,[e],0,0))}return t}var pje=0,vje=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=gB(),this.configLayer=gB(),this.storage=n,this._opts=r=Be({},r),this.root=t,this._id="zr"+pje++,this._oldVNode=aB(r.width,r.height),t&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Uq("svg");rI(null,this._oldVNode),a.appendChild(i),t.appendChild(a)}this.resize(r.width,r.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",hje(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return fB(t,Lk(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=Lk(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis;var o=[],s=this._bgVNode=gje(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=hr("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=We(Ut(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(hr("defs","defs",{},u)),t.animation){var c=YUe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=hr("style","stl",{},[],c);o.push(f)}}return aB(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},QE(this.renderToVNode({animation:Et(t.cssAnimation,!0),emphasis:Et(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Et(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,p=l&&l.length||0,v=void 0;for(v=Math.max(h-1,p-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=i[o-1];for(var m=v+1;m<h;m++){var _={};lje(d[m],_,n);var b=hr("g","clip-g-"+u++,_,[]);(s?s.children:r).push(b),i[o++]=b,s=b}l=d;var w=fB(f,n);w&&(s?s.children:r).push(w)}}},e.prototype.resize=function(t,n){var r=this._opts,a=this.root,i=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),a&&i&&(i.style.display="none",t=ld(a,0,r),n=ld(a,1,r),i.style.display=""),this._width!==t||this._height!==n){if(this._width=t,this._height=n,i){var o=i.style;o.width=t+"px",o.height=n+"px"}if(GP(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",n))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var n=this.renderToString(),r="data:image/svg+xml;";return t?(n=FVe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function gB(e){return function(){}}function gje(e,t,n,r){var a;if(n&&n!=="none")if(a=hr("rect","bg",{width:e,height:t,x:"0",y:"0"}),aj(n))Zq({fill:n},a.attrs,"fill",r);else if(GP(n))Jq({style:{fill:n},dirty:jn,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var i=gg(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const mje=vje;function yje(e){e.registerPainter("svg",mje)}function mB(e,t,n){var r=uo.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",e)),r.width=a*n,r.height=i*n,r}var bje=function(e){Rn(t,e);function t(n,r,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||n1,typeof n=="string"?o=mB(n,r,a):bt(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(BP(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=r,i.dpr=a,i}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 n=this.dpr;this.domBack=mB("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Nt(0,0,0,0);function c(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var b=new Nt(0,0,0,0);b.copy(_),o.push(b)}else{for(var w=!1,S=1/0,x=0,C=0;C<o.length;++C){var T=o[C];if(T.intersect(_)){var k=new Nt(0,0,0,0);k.copy(T),k.union(_),o[C]=k,w=!0;break}else if(l){u.copy(_),u.union(T);var A=_.width*_.height,M=T.width*T.height,I=u.width*u.height,E=I-A-M;E<S&&(S=E,x=C)}}if(l&&(o[x].union(_),w=!0),!w){var b=new Nt(0,0,0,0);b.copy(_),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),p=d.__isRendered&&(d.__dirty&Ba||!h)?d.getPrevPaintRect():null;p&&c(p);var v=h&&(d.__dirty&Ba||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d&&d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}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(n,r){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,s&&(s.width=n*a,s.height=r*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function p(v,g,m,_){if(o.clearRect(v,g,m,_),r&&r!=="transparent"){var b=void 0;if(sm(r)){var w=r.global||r.__width===m&&r.__height===_;b=w&&r.__canvasGradient||xk(o,r,{x:0,y:0,width:m,height:_}),r.__canvasGradient=b,r.__width=m,r.__height=_}else DU(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,b=Ck(o,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=b||r,o.fillRect(v,g,m,_),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,v,g,m,_),o.restore())}!a||u?p(0,0,s,l):a.length&&te(a,function(v){p(v.x*f,v.y*f,v.width*f,v.height*f)})},t}(Ei);const Vx=bje;var yB=1e5,Gu=314159,Zy=.01,_je=.001;function wje(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function Sje(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var xje=function(){function e(t,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Be({},r||{}),this.dpr=r.devicePixelRatio||n1,this._singleCanvas=i,this.root=t;var o=t.style;o&&(BP(t),t.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new Vx(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Gu]=h,h.zlevel=Gu,s.push(Gu),this._domRoot=t}else{this._width=ld(t,0,r),this._height=ld(t,1,r);var u=this._domRoot=Sje(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 n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var n=t.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<n;o++){var s=t[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(yB)),i||(i=r.ctx,i.save()),xc(i,s,a,o===n-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(yB)},e.prototype.paintOne=function(t,n){$E(t,n)},e.prototype._paintList=function(t,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,n,r),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;BT(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Gu).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&i.push(u)}for(var c=!0,f=!1,d=function(v){var g=i[v],m=g.ctx,_=o&&g.createRepaintRects(t,n,h._width,h._height),b=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,S=w&&Date.now(),x=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,_);else if(b===g.__startIndex){var C=t[b];(!C.incremental||!C.notClear||r)&&g.clear(!1,x,_)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=g.__startIndex);var T,k=function(E){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=b;T<g.__endIndex;T++){var N=t[T];if(N.__inHover&&(f=!0),a._doPaintEl(N,g,o,E,L,T===g.__endIndex-1),w){var $=Date.now()-S;if($>15)break}}L.prevElClipPaths&&m.restore()};if(_)if(_.length===0)T=g.__endIndex;else for(var A=h.dpr,M=0;M<_.length;++M){var I=_[M];m.save(),m.beginPath(),m.rect(I.x*A,I.y*A,I.width*A,I.height*A),m.clip(),k(I),m.restore()}else m.save(),k(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return rn.wxa&&te(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,a,i,o){var s=n.ctx;if(r){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(xc(s,t,i,o),t.setPrevPaintRect(l))}else xc(s,t,i,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Gu);var r=this._layers[t];return r||(r=new Vx("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Rt(r,this._layerConfig[t],!0):this._layerConfig[t-Zy]&&Rt(r,this._layerConfig[t-Zy],!0),n&&(r.virtual=n),this.insertLayer(t,r),r.initContext()),r},e.prototype.insertLayer=function(t,n){var r=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!r[t]&&wje(n)){if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=r[a[l]]}if(a.splice(l+1,0,t),r[t]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a];t.call(n,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__&&t.call(n,o,i)}},e.prototype.eachOtherLayer=function(t,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__||t.call(n,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var a=t[r];if(a.zlevel!==t[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+_je,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Zy:0),this._needsManuallyCompositing),c.__builtin__||Y_("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Ba&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(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,te(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Rt(r[t],n,!0):r[t]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Zy){var o=this._layers[i];Rt(o,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,a=n[t];a&&(a.dom.parentNode.removeChild(a.dom),delete n[t],r.splice(Ft(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),n!=null&&(a.height=n),t=ld(i,0,a),n=ld(i,1,a),r.style.display="",this._width!==t||n!==this._height){r.style.width=t+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,n);this.refresh(!0)}this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this.getLayer(Gu).resize(t,n)}return this},e.prototype.clearLayer=function(t){var n=this._layers[t];n&&n.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[Gu].dom;var n=new Vx("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var r=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,i=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.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];xc(r,c,o,l===u-1)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const Cje=xje;function Tje(e){e.registerPainter("canvas",Cje)}var kje=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return ls(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Tt,a=Xn("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=n.itemHeight*.8,u=Xn(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?o:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Pn);const Aje=kje;function eh(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=Jd(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(Jd(e,t,n[o]));return i.join(" ")}}function nX(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Ge(t))return t+"";for(var r=[],a=0;a<n.length;a++){var i=e.getDimensionIndex(n[a]);i>=0&&r.push(t[i])}return r.join(" ")}var Mje=function(e){De(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=Xn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=Pje,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ns(this.childAt(0))},t.prototype.downplay=function(){Bs(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):sn(d,h,s,r),ho(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ln(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,p,v,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,v=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,p=i.emphasisDisabled),!i||n.hasItemOption){var _=i&&i.itemModel?i.itemModel:n.getItemModel(r),b=_.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=_.getModel(["select","itemStyle"]).getItemStyle(),c=_.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),p=b.get("disabled"),v=vr(_),g=b.getShallow("scale"),m=_.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var S=hf(n.getItemVisual(r,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),m&&s.attr("cursor",m);var x=n.getItemVisual(r,"style"),C=x.fill;if(s instanceof Ar){var T=s.style;s.useStyle(Be({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(Be({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var k=n.getItemVisual(r,"liftZ"),A=this._z2;k!=null?A==null&&(this._z2=s.z2,s.z2+=k):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Br(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:I,inheritColor:C,defaultOpacity:x.opacity});function I(N){return M?n.getName(N):eh(n,N)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;E.scaleX=this._sizeX*L,E.scaleY=this._sizeY*L,this.setSymbolScale(1),Un(this,d,h,p)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=kt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Zl(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Zl(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Eh(n.getItemVisual(r,"symbolSize"))},t}(Tt);function Pje(e,t){this.parent.drift(e,t)}const Sm=Mje;function zx(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function bB(e){return e!=null&&!bt(e)&&(e={isIgnore:e}),e||{}}function _B(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:vr(t),cursorStyle:t.get("cursor")}}var Eje=function(){function e(t){this.group=new Tt,this._SymbolCtor=t||Sm}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=bB(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=_B(t),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return t.getItemLayout(f)};i||r.removeAll(),t.diff(i).add(function(f){var d=c(f);if(zx(t,d,f,n)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=c(f);if(!zx(t,p,f,n)){r.remove(h);return}var v=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)r.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var m={x:p[0],y:p[1]};s?h.attr(m):sn(h,m,a)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_B(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=bB(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=n.getItemLayout(i);if(zx(n,o,i,r)){var s=new this._SymbolCtor(n,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},e}();const xm=Eje;function rX(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),i=Ije(a,n),o=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=We(e.dimensions,function(p){return t.mapDimension(p)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return Vs(t,f[0])&&(d=!0,f[0]=h),Vs(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Ije(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:an(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function aX(e,t,n,r){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=n.get(e.baseDim,r),o[1-i]=a,t.dataToPoint(o)}function Dje(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Lje(e,t,n,r,a,i,o,s){for(var l=Dje(e,t),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=rX(a,t,o),m=e.getLayout("points")||[],_=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],S=!0,x=void 0,C=void 0;switch(w.cmd){case"=":x=w.idx*2,C=w.idx1*2;var T=m[x],k=m[x+1],A=_[C],M=_[C+1];(isNaN(T)||isNaN(k))&&(T=A,k=M),u.push(T,k),c.push(A,M),f.push(n[x],n[x+1]),d.push(r[C],r[C+1]),v.push(t.getRawIndex(w.idx1));break;case"+":var I=w.idx,E=g.dataDimsForPoint,L=a.dataToPoint([t.get(E[0],I),t.get(E[1],I)]);C=I*2,u.push(L[0],L[1]),c.push(_[C],_[C+1]);var N=aX(g,a,t,I);f.push(N[0],N[1]),d.push(r[C],r[C+1]),v.push(t.getRawIndex(I));break;case"-":S=!1}S&&(h.push(w),p.push(p.length))}p.sort(function(ie,le){return v[ie]-v[le]});for(var $=u.length,P=Vo($),R=Vo($),D=Vo($),B=Vo($),H=[],b=0;b<p.length;b++){var G=p[b],X=b*2,ue=G*2;P[X]=u[ue],P[X+1]=u[ue+1],R[X]=c[ue],R[X+1]=c[ue+1],D[X]=f[ue],D[X+1]=f[ue+1],B[X]=d[ue],B[X+1]=d[ue+1],H[b]=h[G]}return{current:P,next:R,stackedOnCurrent:D,stackedOnNext:B,status:H}}var ll=Math.min,ul=Math.max;function Nc(e,t){return isNaN(e)||isNaN(t)}function Rk(e,t,n,r,a,i,o,s,l){for(var u,c,f,d,h,p,v=n,g=0;g<r;g++){var m=t[v*2],_=t[v*2+1];if(v>=a||v<0)break;if(Nc(m,_)){if(l){v+=i;continue}break}if(v===n)e[i>0?"moveTo":"lineTo"](m,_),f=m,d=_;else{var b=m-u,w=_-c;if(b*b+w*w<.5){v+=i;continue}if(o>0){for(var S=v+i,x=t[S*2],C=t[S*2+1];x===m&&C===_&&g<r;)g++,S+=i,v+=i,x=t[S*2],C=t[S*2+1],m=t[v*2],_=t[v*2+1],b=m-u,w=_-c;var T=g+1;if(l)for(;Nc(x,C)&&T<r;)T++,S+=i,x=t[S*2],C=t[S*2+1];var k=.5,A=0,M=0,I=void 0,E=void 0;if(T>=r||Nc(x,C))h=m,p=_;else{A=x-u,M=C-c;var L=m-u,N=x-m,$=_-c,P=C-_,R=void 0,D=void 0;if(s==="x"){R=Math.abs(L),D=Math.abs(N);var B=A>0?1:-1;h=m-B*R*o,p=_,I=m+B*D*o,E=_}else if(s==="y"){R=Math.abs($),D=Math.abs(P);var H=M>0?1:-1;h=m,p=_-H*R*o,I=m,E=_+H*D*o}else R=Math.sqrt(L*L+$*$),D=Math.sqrt(N*N+P*P),k=D/(D+R),h=m-A*o*(1-k),p=_-M*o*(1-k),I=m+A*o*k,E=_+M*o*k,I=ll(I,ul(x,m)),E=ll(E,ul(C,_)),I=ul(I,ll(x,m)),E=ul(E,ll(C,_)),A=I-m,M=E-_,h=m-A*R/D,p=_-M*R/D,h=ll(h,ul(u,m)),p=ll(p,ul(c,_)),h=ul(h,ll(u,m)),p=ul(p,ll(c,_)),A=m-h,M=_-p,I=m+A*D/R,E=_+M*D/R}e.bezierCurveTo(f,d,h,p,m,_),f=I,d=E}else e.lineTo(m,_)}u=m,c=_,v+=i}return g}var iX=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),$je=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iX},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Nc(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Nc(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Rk(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=es.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,p=void 0,v=void 0,g=void 0,m=void 0,_=void 0,b=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],b=u?(n-s)/(h-s):(n-l)/(p-l),b<=1&&b>=0){var w=u?(p-l)*b+l:(h-s)*b+s;return u?[n,w]:[w,n]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],v=i[f++],g=i[f++],m=i[f++],_=i[f++];var S=u?Jb(s,h,v,m,n,c):Jb(l,p,g,_,n,c);if(S>0)for(var x=0;x<S;x++){var C=c[x];if(C<=1&&C>=0){var w=u?cr(l,p,g,_,C):cr(s,h,v,m,C);return u?[n,w]:[w,n]}}s=m,l=_;break}}},t}(Gt),Rje=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(iX),oX=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Rje},t.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Nc(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Nc(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Rk(n,a,o,s,s,1,r.smooth,l,r.connectNulls);Rk(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},t}(Gt);function sX(e,t,n,r,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new tn({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var v=ht(a)?function(g){a(g,f)}:null;Ln(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,v)}return f}function lX(e,t,n){var r=e.getArea(),a=Gn(r.r0,1),i=Gn(r.r,1),o=new va({shape:{cx:Gn(e.cx,1),cy:Gn(e.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=a,Ln(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function Cm(e,t,n,r,a){if(e){if(e.type==="polar")return lX(e,t,n);if(e.type==="cartesian2d")return sX(e,t,n,r,a)}else return null;return null}function pf(e,t){return e.type===t}function wB(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function SB(e){for(var t=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[t,n],[r,a]]}function xB(e,t){var n=SB(e),r=n[0],a=n[1],i=SB(t),o=i[0],s=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function CB(e){return an(e)?e:e?.5:0}function Oje(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=Vo(r*2),i=0;i<r;i++){var o=aX(n,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function cl(e,t,n,r){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),n){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function Nje(e,t){var n=[],r=e.length,a,i;function o(c,f,d){var h=c.coord,p=(d-h)/(f.coord-h),v=HP(p,[c.color,f.color]);return{coord:d,color:v}}for(var s=0;s<r;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?n.push(o(i,l,t)):a&&n.push(o(a,l,0),o(a,l,t));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function Bje(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=We(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Nje(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,m=g-v;if(m<.001)return"transparent";te(d,function(b){b.offset=(b.coord-v)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var _=new ts(0,0,0,0,d,!0);return _[a]=v,_[a+"2"]=g,_}}}function Fje(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&Vje(i,t))){var o=t.mapDimension(i.dim),s={};return te(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Vje(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Sm.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function zje(e,t){return isNaN(e)||isNaN(t)}function Hje(e){for(var t=e.length/2;t>0&&zje(e[t*2-2],e[t*2-1]);t--);return t-1}function TB(e,t){return[e[t*2],e[t*2+1]]}function Gje(e,t,n){for(var r=e.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u<r;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function uX(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<pa.length;t++)if(e.get([pa[t],"endLabel","show"]))return!0;return!1}function Hx(e,t,n,r){if(pf(t,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=uX(r)?function(h,p){e._endLabelOnDuring(h,p,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=sX(t,n,r,function(){var h=e._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return lX(t,n,r)}function Wje(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var Uje=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Tt,r=new xm;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,m=this._lineGroup,_=!r.ssr&&n.get("animation"),b=!c.isEmpty(),w=c.get("origin"),S=rX(o,l,w),x=b&&Oje(o,l,S),C=n.get("showSymbol"),T=n.get("connectNulls"),k=C&&!d&&Fje(n,l,o),A=this._data;A&&A.eachItemGraphicEl(function(le,Q){le.__temp&&(s.remove(le),A.setItemGraphicEl(Q,null))}),C||p.remove(),s.add(m);var M=d?!1:n.get("step"),I;o&&o.getArea&&n.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var E=Bje(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&M===this._step))C&&p.updateData(l,{isIgnore:k,clipShape:I,disableAnimation:!0,getSymbolPoint:function(le){return[f[le*2],f[le*2+1]]}}),_&&this._initSymbolLabelAnimation(l,o,I),M&&(f=cl(f,o,M,T),x&&(x=cl(x,o,M,T))),v=this._newPolyline(f),b?g=this._newPolygon(f,x):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Zc(E)),m.setClipPath(Hx(this,o,!0,n));else{b&&!g?g=this._newPolygon(f,x):g&&!b&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Zc(E));var L=m.getClipPath();if(L){var N=Hx(this,o,!1,n);Ln(L,{shape:N.shape},n)}else m.setClipPath(Hx(this,o,!0,n));C&&p.updateData(l,{isIgnore:k,clipShape:I,disableAnimation:!0,getSymbolPoint:function(le){return[f[le*2],f[le*2+1]]}}),(!wB(this._stackedOnPoints,x)||!wB(this._points,f))&&(_?this._doUpdateAnimation(l,x,o,a,M,w,T):(M&&(f=cl(f,o,M,T),x&&(x=cl(x,o,M,T))),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:x})))}var $=n.getModel("emphasis"),P=$.get("focus"),R=$.get("blurScope"),D=$.get("disabled");if(v.useStyle(mt(u.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Nr(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var B=v.getState("emphasis").style;B.lineWidth=+v.style.lineWidth+1}kt(v).seriesIndex=n.seriesIndex,Un(v,P,R,D);var H=CB(n.get("smooth")),G=n.get("smoothMonotone");if(v.setShape({smooth:H,smoothMonotone:G,connectNulls:T}),g){var X=l.getCalculationInfo("stackedOnSeries"),ue=0;g.useStyle(mt(c.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),X&&(ue=CB(X.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:ue,smoothMonotone:G,connectNulls:T}),Nr(g,n,"areaStyle"),kt(g).seriesIndex=n.seriesIndex,Un(g,P,R,D)}var ie=function(le){i._changePolyState(le)};l.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,v),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){kt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=Yc(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;u=new Sm(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else bn.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=Yc(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else bn.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;i1(this._polyline,n),r&&i1(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new $je({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new oX({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");ht(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ht(f)?f(null):f;n.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],m=void 0,_=void 0,b=void 0;if(a)if(o){var w=a,S=r.pointToCoord(g);i?(m=w.startAngle,_=w.endAngle,b=-S[1]/180*Math.PI):(m=w.r0,_=w.r,b=S[0])}else{var x=a;i?(m=x.x,_=x.x+x.width,b=h.x):(m=x.y+x.height,_=x.y,b=h.y)}var C=_===m?0:(b-m)/(_-m);l&&(C=1-C);var T=ht(f)?f(p):c*C+d,k=v.getSymbolPath(),A=k.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),k.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(uX(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new en({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Hje(l);c>=0&&(Br(s,vr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?nX(o,h):eh(o,f)},enableTextSetter:!0},Wje(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),_=g.inverse,b=r.shape,w=_?m?b.x:b.y+b.height:m?b.x+b.width:b.y,S=(m?v:0)*(_?-1:1),x=(m?0:-v)*(_?-1:1),C=m?"x":"y",T=Gje(f,w,C),k=T.range,A=k[1]-k[0],M=void 0;if(A>=1){if(A>1&&!h){var I=TB(f,k[0]);u.attr({x:I[0]+S,y:I[1]+x}),o&&(M=d.getRawValue(k[0]))}else{var I=c.getPointOn(w,C);I&&u.attr({x:I[0]+S,y:I[1]+x});var E=d.getRawValue(k[0]),L=d.getRawValue(k[1]);o&&(M=Mj(a,p,E,L,T.t))}i.lastFrameIndex=k[0]}else{var N=n===1||i.lastFrameIndex>0?k[0]:0,I=TB(f,N);o&&(M=d.getRawValue(N)),u.attr({x:I[0]+S,y:I[1]+x})}if(o){var $=Sh(u);typeof $.setLabelText=="function"&&$.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Lje(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=cl(d.current,a,o,l),p=cl(d.stackedOnCurrent,a,o,l),v=cl(d.next,a,o,l),g=cl(d.stackedOnNext,a,o,l)),xB(h,v)>3e3||c&&xB(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:v}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),sn(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),sn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var _=[],b=d.status,w=0;w<b.length;w++){var S=b[w].cmd;if(S==="="){var x=n.getItemGraphicEl(b[w].idx1);x&&_.push({el:x,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;T<_.length;T++){var k=_[T].el,A=_[T].ptIdx*2;k.x=C[A],k.y=C[A+1],k.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(bn);const jje=Uje;function Tm(e,t){return{seriesType:e,plan:Mh(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=t||i.large;if(a){var s=We(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Vs(r,s[0])&&(s[0]=u),Vs(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var v=h.end-h.start,g=o&&Vo(v*l),m=[],_=[],b=h.start,w=0;b<h.end;b++){var S=void 0;if(l===1){var x=c.get(f,b);S=a.dataToPoint(x,null,_)}else m[0]=c.get(f,b),m[1]=c.get(d,b),S=a.dataToPoint(m,null,_);o?(g[w++]=S[0],g[w++]=S[1]):p.setItemLayout(b,S.slice())}o&&p.setLayout("points",g)}}}}}}var Kje={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,r=0;r<e.length;r++){var a=e[r],i=Math.abs(a);i>t&&(t=i,n=a)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Yje=function(e){return Math.round(e.length/2)};function cX(e){return{seriesType:e,reset:function(t,n,r){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;rt(i)?p=Kje[i]:ht(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,p,Yje))}}}}}function qje(e){e.registerChartView(jje),e.registerSeriesModel(Aje),e.registerLayout(Tm("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,cX("line"))}var fX=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return ls(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)te(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var p=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&!v&&(g+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var _=void 0,b=void 0,w=1,S=0;S<p.length;S++){var x=p[S].coord,C=S===p.length-1?p[S-1].tickValue+w:p[S].tickValue;if(C===g){b=x;break}else if(C<g)_=x;else if(_!=null&&C>g){b=(x+_)/2;break}S===1&&(w=C-p[0].tickValue)}b==null&&(_?_&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}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}(Pn);Pn.registerClass(fX);const k1=fX;var Xje=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return ls(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 n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=hu(k1.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}(k1);const Zje=Xje;var Jje=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}(),Qje=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Jje},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,p=d?f-c<h:c-f<h;p||(c=f-(d?h:-h));var v=Math.cos(c),g=Math.sin(c),m=Math.cos(f),_=Math.sin(f);p?(n.moveTo(v*o+a,g*o+i),n.arc(v*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(v*s+a,g*s+i),n.arc(a,i,s,c,f,!d),n.arc(m*u+a,_*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,c,d)},t}(Gt);const A1=Qje;function eKe(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return r1(r,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,p=(d+h)/2,v=u.startAngle,g=u.endAngle,m=(v+g)/2,_=n?Math.abs(d-h)/2:0,b=Math.cos,w=Math.sin,S=c+d*b(v),x=f+d*w(v),C="left",T="top";switch(s){case"startArc":S=c+(h-l)*b(m),x=f+(h-l)*w(m),C="center",T="top";break;case"insideStartArc":S=c+(h+l)*b(m),x=f+(h+l)*w(m),C="center",T="bottom";break;case"startAngle":S=c+p*b(v)+Jy(v,l+_,!1),x=f+p*w(v)+Qy(v,l+_,!1),C="right",T="middle";break;case"insideStartAngle":S=c+p*b(v)+Jy(v,-l+_,!1),x=f+p*w(v)+Qy(v,-l+_,!1),C="left",T="middle";break;case"middle":S=c+p*b(m),x=f+p*w(m),C="center",T="middle";break;case"endArc":S=c+(d+l)*b(m),x=f+(d+l)*w(m),C="center",T="bottom";break;case"insideEndArc":S=c+(d-l)*b(m),x=f+(d-l)*w(m),C="center",T="top";break;case"endAngle":S=c+p*b(g)+Jy(g,l+_,!0),x=f+p*w(g)+Qy(g,l+_,!0),C="left",T="middle";break;case"insideEndAngle":S=c+p*b(g)+Jy(g,-l+_,!0),x=f+p*w(g)+Qy(g,-l+_,!0),C="right",T="middle";break;default:return r1(r,a,i)}return r=r||{},r.x=S,r.y=x,r.align=C,r.verticalAlign=T,r}}function tKe(e,t,n,r){if(an(r)){e.setTextConfig({rotation:r});return}else if(Ge(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default: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 Jy(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Qy(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Cc(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Ge(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:We(r,function(i){return fo(i,a)})}}var Gx=Math.max,Wx=Math.min;function nKe(e,t){var n=e.getArea&&e.getArea();if(pf(e,"cartesian2d")){var r=e.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var rKe=function(e){De(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){du(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n,r,a,i){var o=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,h=aKe(n,u);h&&this._enableRealtimeSort(h,s,a);var p=n.get("clip",!0)||h,v=nKe(u,s);o.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),_=n.getModel("backgroundStyle"),b=_.get("borderRadius")||0,w=[],S=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(M){var I=e0[u.type](s,M),E=fKe(u,f,I);return E.useStyle(_.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",b):E.setShape("cornerRadius",b),w[M]=E,E}s.diff(l).add(function(M){var I=s.getItemModel(M),E=e0[u.type](s,M,I);if(m&&T(M),!(!s.hasValue(M)||!EB[u.type](E))){var L=!1;p&&(L=kB[u.type](v,E));var N=AB[u.type](n,s,M,E,f,d,c.model,!1,g);h&&(N.forceLabelAnimation=!0),IB(N,s,M,I,E,n,f,u.type==="polar"),x?N.attr({shape:E}):h?MB(h,d,N,E,M,f,!1,!1):Ln(N,{shape:E},n,M),s.setItemGraphicEl(M,N),o.add(N),N.ignore=L}}).update(function(M,I){var E=s.getItemModel(M),L=e0[u.type](s,M,E);if(m){var N=void 0;S.length===0?N=T(I):(N=S[I],N.useStyle(_.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",b):N.setShape("cornerRadius",b),w[M]=N);var $=e0[u.type](s,M),P=hX(f,$,u);sn(N,{shape:P},d,M)}var R=l.getItemGraphicEl(I);if(!s.hasValue(M)||!EB[u.type](L)){o.remove(R);return}var D=!1;if(p&&(D=kB[u.type](v,L),D&&o.remove(R)),R?ho(R):R=AB[u.type](n,s,M,L,f,d,c.model,!!R,g),h&&(R.forceLabelAnimation=!0),C){var B=R.getTextContent();if(B){var H=Sh(B);H.prevValue!=null&&(H.prevValue=H.value)}}else IB(R,s,M,E,L,n,f,u.type==="polar");x?R.attr({shape:L}):h?MB(h,d,R,L,M,f,!0,C):sn(R,{shape:L},n,M,null),s.setItemGraphicEl(M,R),R.ignore=D,o.add(R)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&wg(I,n,M)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new Tt);k.removeAll();for(var A=0;A<w.length;++A)k.add(w[A]);o.add(k),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),LB(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),LB(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&Cm(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:We(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){wg(i,n,kt(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(bn),kB={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=Gx(t.x,e.x),s=Wx(t.x+t.width,a),l=Gx(t.y,e.y),u=Wx(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>a?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var a=Wx(t.r,e.r),i=Gx(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},AB={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new tn({shape:Be({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?A1:va,c=new u({shape:r,z2:1});c.name="item";var f=dX(a);if(c.calculateTextPosition=eKe(f,{isRoundCap:u===A1}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?sn:Ln)(c,{shape:p},i)}return c}};function aKe(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function MB(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?sn:Ln)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?sn:Ln)(n,{shape:u},c,a)}function PB(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var iKe=["x","y","width","height"],oKe=["cx","cy","r","startAngle","endAngle"],EB={cartesian2d:function(e){return!PB(e,iKe)},polar:function(e){return!PB(e,oKe)}},e0={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),a=n?lKe(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function sKe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function dX(e){return function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(e)}function IB(e,t,n,r,a,i,o,s){var l=t.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Cc(r.getModel("itemStyle"),c,!0);Be(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=vr(r);Br(e,p,{labelFetcher:i,labelDataIndex:n,defaultText:eh(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=e.getTextContent();if(s&&v){var g=r.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,tKe(e,g==="outside"?h:g,dX(o),r.get(["label","rotate"]))}CK(v,p,i.getRawValue(n),function(_){return nX(t,_)});var m=r.getModel(["emphasis"]);Un(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),Nr(e,r),sKe(a)&&(e.style.fill="none",e.style.stroke="none",te(e.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function lKe(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,a,i)}var uKe=function(){function e(){}return e}(),DB=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new uKe},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],n.rect(s[0],s[1],l[0],l[1])},t}(Gt);function LB(e,t,n,r){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new DB({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var f=new DB({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),kt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",$B),f.on("mousemove",$B)),n&&n.push(f)}var $B=Cw(function(e){var t=this,n=cKe(t,e.offsetX,e.offsetY);kt(t).dataIndex=n>=0?n:null},30,!1);function cKe(e,t,n){for(var r=e.baseDimIdx,a=1-r,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[a]=i[d+2],s[r]=i[d+r],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function hX(e,t,n){if(pf(n,"cartesian2d")){var r=t,a=n.getArea();return{x:e?r.x:a.x,y:e?a.y:r.y,width:e?r.width:a.width,height:e?a.height:r.height}}else{var a=n.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function fKe(e,t,n){var r=e.type==="polar"?va:tn;return new r({shape:hX(t,n,e),silent:!0,z2:0})}const dKe=rKe;function hKe(e){e.registerChartView(dKe),e.registerSeriesModel(Zje),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pt(vq,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gq("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,cX("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var RB=Math.PI*2,t0=Math.PI/180;function pX(e,t){return rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function vX(e,t){var n=pX(e,t),r=e.get("center"),a=e.get("radius");Ge(a)||(a=[0,a]);var i=Qe(n.width,t.getWidth()),o=Qe(n.height,t.getHeight()),s=Math.min(i,o),l=Qe(a[0],s/2),u=Qe(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else Ge(r)||(r=[r,r]),c=Qe(r[0],i)+n.x,f=Qe(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function pKe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=pX(r,n),s=vX(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*t0,h=r.get("endAngle"),p=r.get("padAngle")*t0;h=h==="auto"?d-RB:-h*t0;var v=r.get("minAngle")*t0,g=v+p,m=0;a.each(i,function(P){!isNaN(P)&&m++});var _=a.getSum(i),b=Math.PI/(_||m)*2,w=r.get("clockwise"),S=r.get("roseType"),x=r.get("stillShowZeroSum"),C=a.getDataExtent(i);C[0]=0;var T=w?1:-1,k=[d,h],A=T*p/2;eE(k,!w),d=k[0],h=k[1];var M=gX(r);M.startAngle=d,M.endAngle=h,M.clockwise=w;var I=Math.abs(h-d),E=I,L=0,N=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(P,R){var D;if(isNaN(P)){a.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?D=_===0&&x?b:P*b:D=I/m,D<g?(D=g,E-=g):L+=P;var B=N+T*D,H=0,G=0;p>D?(H=N+T*D/2,G=H):(H=N+A,G=B-A),a.setItemLayout(R,{angle:D,startAngle:H,endAngle:G,clockwise:w,cx:l,cy:u,r0:f,r:S?dn(P,C,[f,c]):c}),N=B}),E<RB&&m)if(E<=.001){var $=I/m;a.each(i,function(P,R){if(!isNaN(P)){var D=a.getItemLayout(R);D.angle=$;var B=0,H=0;$<p?(B=d+T*(R+1/2)*$,H=B):(B=d+T*R*$+A,H=d+T*(R+1)*$-A),D.startAngle=B,D.endAngle=H}})}else b=E/L,N=d,a.each(i,function(P,R){if(!isNaN(P)){var D=a.getItemLayout(R),B=D.angle===g?g:P*b,H=0,G=0;B<p?(H=N+T*B/2,G=H):(H=N+A,G=N+T*B-A),D.startAngle=H,D.endAngle=G,N+=T*B}})})}var gX=nn();function km(e){return{seriesType:e,reset:function(t,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var vKe=Math.PI/180;function OB(e,t,n,r,a,i,o,s,l,u){if(e.length<2)return;function c(v){for(var g=v.rB,m=g*g,_=0;_<v.list.length;_++){var b=v.list[_],w=Math.abs(b.label.y-n),S=r+b.len,x=S*S,C=Math.sqrt((1-Math.abs(w*w/m))*x),T=t+(C+b.len2)*a,k=T-b.label.x,A=b.targetTextWidth-k*a;mX(b,A,!0),b.label.x=T}}function f(v){for(var g={list:[],maxY:0},m={list:[],maxY:0},_=0;_<v.length;_++)if(v[_].labelAlignTo==="none"){var b=v[_],w=b.label.y>n?m:g,S=Math.abs(b.label.y-n);if(S>=w.maxY){var x=b.label.x-t-b.len2*a,C=r+b.len,T=Math.abs(x)<C?Math.sqrt(S*S/(1-x*x/C/C)):C;w.rB=T,w.maxY=S}w.list.push(b)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var p=e[h].label.x-u;e[h].linePoints[1][0]+=p,e[h].label.x=u}Fq(e,l,l+o)&&f(e)}function gKe(e,t,n,r,a,i,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;Ux(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 p=e[d];if(!Ux(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,v=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<t?g=v[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-v[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?g=c-o-p.bleedMargin:g=o+a-f-p.bleedMargin:h.x<t?g=h.x-o-p.bleedMargin:g=o+a-h.x-p.bleedMargin,p.targetTextWidth=g,mX(p,g)}}OB(u,t,n,r,1,a,i,o,s,f),OB(l,t,n,r,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var p=e[d];if(!Ux(p)&&p.linePoints){var h=p.label,v=p.linePoints,m=p.labelAlignTo==="edge",_=h.style.padding,b=_?_[1]+_[3]:0,w=h.style.backgroundColor?0:b,S=p.rect.width+w,x=v[1][0]-v[2][0];m?h.x<t?v[2][0]=o+p.edgeDistance+S+p.labelDistance:v[2][0]=o+a-p.edgeDistance-S-p.labelDistance:(h.x<t?v[2][0]=h.x+p.labelDistance:v[2][0]=h.x-p.labelDistance,v[1][0]=v[2][0]+x),v[1][1]=v[2][1]=h.y}}}function mX(e,t,n){if(n===void 0&&(n=!1),e.labelStyleWidth==null){var r=e.label,a=r.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||n){var f=i.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",o)}else{var h=t-l,p=t<c?h:n?h>e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var v=r.getBoundingRect();i.width=v.width;var g=(r.style.margin||0)+2.1;i.height=v.height+g,i.y-=(i.height-f)/2}}}function Ux(e){return e.position==="center"}function mKe(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*vKe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,k=C.getTextContent(),A=C.getTextGuideLine(),M=t.getItemModel(x),I=M.getModel("label"),E=I.get("position")||M.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),N=I.get("alignTo"),$=Qe(I.get("edgeDistance"),u),P=I.get("bleedMargin"),R=M.getModel("labelLine"),D=R.get("length");D=Qe(D,u);var B=R.get("length2");if(B=Qe(B,u),Math.abs(T.endAngle-T.startAngle)<o){te(k.states,h),k.ignore=!0,A&&(te(A.states,h),A.ignore=!0);return}if(p(k)){var H=(T.startAngle+T.endAngle)/2,G=Math.cos(H),X=Math.sin(H),ue,ie,le,Q;r=T.cx,a=T.cy;var J=E==="inside"||E==="inner";if(E==="center")ue=T.cx,ie=T.cy,Q="center";else{var se=(J?(T.r+T.r0)/2*G:T.r*G)+r,he=(J?(T.r+T.r0)/2*X:T.r*X)+a;if(ue=se+G*3,ie=he+X*3,!J){var re=se+G*(D+l-T.r),z=he+X*(D+l-T.r),Y=re+(G<0?-1:1)*B,ee=z;N==="edge"?ue=G<0?c+$:c+u-$:ue=Y+(G<0?-L:L),ie=ee,le=[[se,he],[re,z],[Y,ee]]}Q=J?"center":N==="edge"?G>0?"right":"left":G>0?"left":"right"}var oe=Math.PI,ve=0,Z=I.get("rotate");if(an(Z))ve=Z*(oe/180);else if(E==="center")ve=0;else if(Z==="radial"||Z===!0){var ce=G<0?-H+oe:-H;ve=ce}else if(Z==="tangential"&&E!=="outside"&&E!=="outer"){var q=Math.atan2(G,X);q<0&&(q=oe*2+q);var ae=X>0;ae&&(q=oe+q),ve=q-oe}if(i=!!ve,k.x=ue,k.y=ie,k.rotation=ve,k.setStyle({verticalAlign:"middle"}),J){k.setStyle({align:Q});var me=k.states.select;me&&(me.x+=k.x,me.y+=k.y)}else{var ne=k.getBoundingRect().clone();ne.applyTransform(k.getComputedTransform());var de=(k.style.margin||0)+2.1;ne.y-=de/2,ne.height+=de,n.push({label:k,labelLine:A,position:E,len:D,len2:B,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new Ot(G,X),linePoints:le,textAlign:Q,labelDistance:L,labelAlignTo:N,edgeDistance:$,bleedMargin:P,rect:ne,unconstrainedWidth:ne.width,labelStyleWidth:k.style.width})}C.setTextConfig({inside:J})}}),!i&&e.get("avoidLabelOverlap")&&gKe(n,r,a,l,u,d,c,f);for(var v=0;v<n.length;v++){var g=n[v],m=g.label,_=g.labelLine,b=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),b&&(te(m.states,h),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(_){var S=g.linePoints;b||!S?(te(_.states,h),_.ignore=!0):(Oq(S,g.minTurnAngle),MUe(S,g.surfaceNormal,g.maxSurfaceAngle),_.setShape({points:S}),m.__hostTarget.textGuideLineConfig={anchor:new Ot(S[0][0],S[0][1])})}}}var yKe=function(e){De(t,e);function t(n,r,a){var i=e.call(this)||this;i.z2=2;var o=new en;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return t.prototype.updateData=function(n,r,a,i){var o=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=Be(Cc(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Ln(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Ln(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ln(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,sn(o,{shape:{endAngle:c.endAngle}},s,r))}else ho(o),sn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),Nr(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),v=Math.cos(h)*p,g=Math.sin(h)*p,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=Be({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Cc(u.getModel("itemStyle"),c)),Be(o.ensureState("select"),{x:v,y:g,shape:Cc(l.getModel(["select","itemStyle"]),c)}),Be(o.ensureState("blur"),{shape:Cc(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),b=o.getTextContent();_&&Be(_.ensureState("select"),{x:v,y:g}),Be(b.ensureState("select"),{x:v,y:g}),Un(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),s=o.getModel("labelLine"),l=r.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Br(i,vr(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ba,this.setTextGuideLine(h)),ZE(this,JE(o),{stroke:u,opacity:to(s.get(["lineStyle","opacity"]),c,1)})}},t}(va),bKe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a,i){var o=n.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&&n.get("showEmptyCircle")){var d=gX(n),h=new va({shape:Be(vX(n,a),d)});h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(p){var v=new yKe(o,p,u);o.setItemGraphicEl(p,v),l.add(v)}).update(function(p,v){var g=s.getItemGraphicEl(v);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var v=s.getItemGraphicEl(p);wg(v,n,p)}).execute(),mKe(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(bn);const _Ke=bKe;function $h(e,t,n){t=Ge(t)&&{coordDimensions:t}||Be({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Ih(r,t).dimensions,i=new Kr(a,e);return i.initData(r,n),i}var wKe=function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e}();const Am=wKe;var SKe=nn(),xKe=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Am(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $h(this,{coordDimensions:["value"],encodeDefaulter:Pt(xE,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=SKe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=bj(o,r.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){Kc(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.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,endAngle:"auto",padAngle:0,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}(Pn);const CKe=xKe;function TKe(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(an(o)&&!isNaN(o)&&o<0)})}}}function kKe(e){e.registerChartView(_Ke),e.registerSeriesModel(CKe),PY("pie",e.registerAction),e.registerLayout(Pt(pKe,"pie")),e.registerProcessor(km("pie")),e.registerProcessor(TKe("pie"))}var AKe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return ls(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Pn);const MKe=AKe;var yX=4,PKe=function(){function e(){}return e}(),EKe=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new PKe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]<yX,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],h=a[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,r){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var h=a[d++],p=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(p,u),f=Math.max(p,f)}n=this._rect=new Nt(l-o/2,u-s/2,c-l+o,f-u+s)}return n},t}(Gt),IKe=function(){function e(){this.group=new Tt}return e.prototype.updateData=function(t,n){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,i=r.startIndex*4*2;n=new Float32Array(n.buffer,i,a)}r.setShape("points",n),r.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,r){var a=this._newAdded[0],i=n.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,n,r)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new EKe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;r=r||{};var i=n.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=r.clipShape||null,t.symbolProxy=Xn(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<yX;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=kt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const DKe=IKe;var LKe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Tm("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},t.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},t.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new DKe:new xm,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(bn);const $Ke=LKe;var RKe=function(e){De(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}(Xt);const OKe=RKe;var Ok=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qn).models[0]},t.type="cartesian2dAxis",t}(Xt);Yn(Ok,Lh);var bX={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)"]}}},NKe=Rt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bX),aI=Rt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},bX),BKe=Rt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},aI),FKe=mt({logBase:10},aI);const _X={category:NKe,value:aI,time:BKe,log:FKe};var VKe={value:1,category:1,time:1,log:1};function th(e,t,n,r){te(VKe,function(a,i){var o=Rt(Rt({},_X[i],!0),r,!0),s=function(l){De(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=xg(this),h=d?Ch(c):{},p=f.getTheme();Rt(c,p.get(i+"Axis")),Rt(c,this.getDefaultOption()),c.type=NB(c),d&&Jl(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Mk.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."+i,u.defaultOption=o,u}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",NB)}function NB(e){return e.type||(e.data?"category":"value")}var zKe=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 We(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),hn(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}();const HKe=zKe;var Nk=["x","y"];function BB(e){return e.type==="interval"||e.type==="time"}var GKe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=Nk,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!BB(n)||!BB(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=uf([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Nt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return xr(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return xr(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1])-n,o=Math.min(a[0],a[1])-n,s=Math.max(r[0],r[1])-i+n,l=Math.max(a[0],a[1])-o+n;return new Nt(i,o,s,l)},t}(HKe),WKe=function(e){De(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(Li);const UKe=WKe;function Bk(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.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,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),fr(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function FB(e){return e.get("coordinateSystem")==="cartesian2d"}function VB(e){var t={xAxisModel:null,yAxisModel:null};return te(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,Qn).models[0];t[r]=i}),t}var jx=Math.log;function wX(e,t,n){var r=Ql.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=xq(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=jx(e.base);u=[jx(u[0])/d,jx(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(e),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Ix(p),g=u[0]+p*o;else if(f)for(v=u[1]-p*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)p=Ix(p),v=u[1]-p*o;else{var m=e.getTicks().length-1;m>o&&(p=Ix(p));var _=p*o;g=Math.ceil(u[1]/p)*p,v=Gn(g-_),v<0&&u[0]>=0?(v=0,g=Gn(_)):g>0&&u[1]<=0&&(g=0,v=-Gn(_))}var b=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;r.setExtent.call(e,v+p*b,g+p*w),r.setInterval.call(e,p),(b||w)&&r.setNiceExtent.call(e,v+p,g-p)}var jKe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Nk,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Ut(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;Pk(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Jc(v,p),Pk(v)&&(s=h))}c.length&&(s||(s=c.pop(),Jc(s.scale,s.model)),te(c,function(g){wX(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};te(r.x,function(o){zB(r,"y",o,i)}),te(r.y,function(o){zB(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=rr(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(te(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=W7e(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()),te(this._coordsList,function(u){u.calcAffineTransform()});function l(){te(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]),KKe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}bt(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===n)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Qn).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",Qn).models[0],i=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,Ft(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,te(s.x,function(c,f){te(s.y,function(d,h){var p="x"+f+"y"+h,v=new GKe(p);v.master=a,v.model=t,a._coordsMap[p]=v,a._coordsList.push(v),v.addAxis(c),v.addAxis(d)})});function u(c){return function(f,d){if(Kx(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 p=new UKe(c,wm(f),[0,0],f.get("type"),h),v=p.type==="category";p.onBand=v&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[c][d]=p,l[c]++}}}},e.prototype._updateScale=function(t,n){te(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(FB(a)){var i=VB(a),o=i.xAxisModel,s=i.yAxisModel;if(!Kx(o,n)||!Kx(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,i){te(S1(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return te(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);Ft(n,i)<0&&n.push(i),Ft(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),t.eachSeries(function(a){if(FB(a)){var i=VB(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=Nk,e}();function Kx(e,t){return e.getCoordSysModel()===t}function zB(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)HB(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&HB(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function HB(e){return e&&e.type!=="category"&&e.type!=="time"&&G7e(e)}function KKe(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return r-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return r-a+t}}const YKe=jKe;var Ml=Math.PI,Bc=function(){function e(t,n){this.group=new Tt,this.opt=n,this.axisModel=t,mt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Tt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!GB[t]},e.prototype.add=function(t){GB[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var a=KP(n-t),i,o;return Xd(a)?(o=r>0?"top":"bottom",i="center"):Xd(a-Ml)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ml?i=r>0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e}(),GB={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(xr(s,s,o),xr(l,l,o));var c=Be({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new dr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Zd(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);rt(d)&&(d=[d,d]),(rt(h)||an(h))&&(h=[h,h]);var p=hf(t.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];te([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,_){if(d[_]!=="none"&&d[_]!=null){var b=Xn(d[_],-v/2,-g/2,v,g,c.stroke,!0),w=m.r+m.offset,S=u?l:s;b.attr({rotation:m.rotate,x:S[0]+w*Math.cos(e.rotation),y:S[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabel:function(e,t,n,r){var a=ZKe(n,r,t,e),i=QKe(n,r,t,e);if(XKe(t,i,a),JKe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Nq(We(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Vq(o)}},axisName:function(e,t,n,r){var a=fr(e.axisName,t.get("name"));if(a){var i=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=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,UB(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Ml/180);var p;UB(i)?d=Bc.innerTextLayout(e.rotation,h??e.rotation,o):(d=qKe(e.rotation,i,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,_=fr(e.nameTruncateMaxWidth,g.maxWidth,p),b=new en({x:f[0],y:f[1],rotation:d.rotation,silent:Bc.isLabelSilent(t),style:Cn(s,{text:a,font:v,overflow:"truncate",width:_,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(wh({el:b,componentModel:t,itemName:a}),b.__fullText=a,b.anid="name",t.get("triggerEvent")){var w=Bc.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,kt(b).eventData=w}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function qKe(e,t,n,r){var a=KP(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Xd(a-Ml/2)?(o=l?"bottom":"top",i="center"):Xd(a-Ml*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ml*1.5&&a>Ml/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function XKe(e,t,n){if(!Cq(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(ai(i),ai(u)):WB(i,o)&&(r?(ai(o),ai(c)):(ai(i),ai(u))),a===!1?(ai(s),ai(f)):WB(l,s)&&(a?(ai(l),ai(d)):(ai(s),ai(f)))}}function ai(e){e&&(e.ignore=!0)}function WB(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=um([]);return fu(a,a,-e.rotation),n.applyTransform(Uo([],a,e.getLocalTransform())),r.applyTransform(Uo([],a,t.getLocalTransform())),n.intersect(r)}}function UB(e){return e==="middle"||e==="center"}function SX(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(xr(o,o,t),xr(s,s,t));var c=new dr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Zd(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function ZKe(e,t,n,r){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),c=SX(u,t.transform,l,mt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function JKe(e,t,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=mt(s.getLineStyle(),mt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=SX(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function QKe(e,t,n,r){var a=n.axis,i=fr(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(fr(r.labelRotate,o.get("rotate"))||0)*Ml/180,c=Bc.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Bc.isLabelSilent(n),p=n.get("triggerEvent");return te(l,function(v,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,_=v.formattedLabel,b=v.rawLabel,w=o;if(f&&f[m]){var S=f[m];bt(S)&&S.textStyle&&(w=new mn(S.textStyle,o,n.ecModel))}var x=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(m),T=w.getShallow("align",!0)||c.textAlign,k=Et(w.getShallow("alignMinLabel",!0),T),A=Et(w.getShallow("alignMaxLabel",!0),T),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,I=Et(w.getShallow("verticalAlignMinLabel",!0),M),E=Et(w.getShallow("verticalAlignMaxLabel",!0),M),L=new en({x:C,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(v.level||0),style:Cn(w,{text:_,align:g===0?k:g===l.length-1?A:T,verticalAlign:g===0?I:g===l.length-1?E:M,fill:ht(x)?x(a.type==="category"?b:a.type==="value"?m+"":m,g):x})});if(L.anid="label_"+m,p){var N=Bc.makeAxisEventDataBase(n);N.targetType="axisLabel",N.value=b,N.tickIndex=g,a.type==="category"&&(N.dataIndex=m),kt(L).eventData=N}t.add(L),L.updateTransform(),d.push(L),e.add(L),L.decomposeTransform()}),d}}const zs=Bc;function eYe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return tYe(n,e,t),n.seriesInvolved&&rYe(n,e),n}function tYe(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];te(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ig(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(te(s.getAxes(),Pt(v,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&te(p.baseAxes,Pt(v,h?"cross":!0,d)),h&&te(p.otherAxes,Pt(v,"cross",!1))}function v(g,m,_){var b=_.model.getModel("axisPointer",a),w=b.get("show");if(!(!w||w==="auto"&&!g&&!Fk(b))){m==null&&(m=b.get("triggerTooltip")),b=g?nYe(_,f,a,t,g,m):b;var S=b.get("snap"),x=b.get("triggerEmphasis"),C=Ig(_.model),T=m||S||_.type==="category",k=e.axesInfo[C]={key:C,axis:_,coordSys:s,axisPointerModel:b,triggerTooltip:m,triggerEmphasis:x,involveSeries:T,snap:S,useHandle:Fk(b),seriesModels:[],linkGroup:null};u[C]=k,e.seriesInvolved=e.seriesInvolved||T;var A=aYe(i,_);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[C]=k,M.mapper=i[A].mapper,k.linkGroup=M}}}})}function nYe(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};te(s,function(d){l[d]=_t(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&mt(u,f.textStyle)}}return e.model.getModel("axisPointer",new mn(l,n,r))}function rYe(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||te(e.coordSysAxesInfo[Ig(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function aYe(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(Yx(i[r+"AxisId"],n.id)||Yx(i[r+"AxisIndex"],n.componentIndex)||Yx(i[r+"AxisName"],n.name))return a}}function Yx(e,t){return e==="all"||Ge(e)&&Ft(e,t)>=0||e===t}function iYe(e){var t=iI(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=Fk(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function iI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ig(e)]}function oYe(e){var t=iI(e);return t&&t.axisPointerModel}function Fk(e){return!!e.get(["handle","show"])}function Ig(e){return e.type+"||"+e.id}var jB={},sYe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this.axisPointerClass&&iYe(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},t.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},t.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},t.prototype.dispose=function(n,r){this._disposeAxisPointer(r),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=oYe(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,r){jB[n]=r},t.getAxisPointerClass=function(n){return n&&jB[n]},t.type="axis",t}(On);const vf=sYe;var Vk=nn();function xX(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=Vk(e).splitAreaColors,d=ut(),h=0;if(f)for(var p=0;p<u.length;p++){var v=f.get(u[p].tickValue);if(v!=null){h=(v+(c-1)*p)%c;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Ge(s)?s:[s];for(var p=1;p<u.length;p++){var _=a.toGlobalCoord(u[p].coord),b=void 0,w=void 0,S=void 0,x=void 0;a.isHorizontal()?(b=g,w=l.y,S=_-b,x=l.height,g=b+S):(b=l.x,w=g,S=l.width,x=_-w,g=w+x);var C=u[p-1].tickValue;C!=null&&d.set(C,h),t.add(new tn({anid:C!=null?"area_"+C:null,shape:{x:b,y:w,width:S,height:x},style:mt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}Vk(e).splitAreaColors=d}}}function CX(e){Vk(e).splitAreaColors=null}var lYe=["axisLine","axisTickLabel","axisName"],uYe=["splitArea","splitLine","minorSplitLine"],TX=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Tt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=Bk(s,n),u=new zs(n,Be({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(Pk(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));te(lYe,u.add,u),this._axisGroup.add(u.getGroup()),te(uYe,function(f){n.get([f,"show"])&&cYe[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||mm(o,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)}},t.prototype.remove=function(){CX(this)},t.type="cartesianAxis",t}(vf),cYe={splitLine:function(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=Ge(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],p=o.getLineStyle(),v=0;v<f.length;v++){var g=a.toGlobalCoord(f[v].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,_=f[v].tickValue,b=new dr({anid:_!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:mt({stroke:s[m]},p),silent:!0});Zd(b.shape,p.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var v=a.toGlobalCoord(u[h][p].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var g=new dr({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Zd(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){xX(e,t,n,r)}},kX=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(TX),fYe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=kX.type,n}return t.type="yAxis",t}(TX),dYe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new tn({shape:n.coordinateSystem.getRect(),style:mt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(On),KB={offset:0};function AX(e){e.registerComponentView(dYe),e.registerComponentModel(OKe),e.registerCoordinateSystem("cartesian2d",YKe),th(e,"x",Ok,KB),th(e,"y",Ok,KB),e.registerComponentView(kX),e.registerComponentView(fYe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function hYe(e){zt(AX),e.registerSeriesModel(MKe),e.registerChartView($Ke),e.registerLayout(Tm("scatter"))}function pYe(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();te(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=YB(c)?c:qB(a)})}),n.each(function(o){var s=IU(r[o],function(l){return YB(l)})||qB(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function YB(e){return!isNaN(e[0])&&!isNaN(e[1])}function qB(e){return[e.cx,e.cy]}function vYe(e){var t=e.polar;if(t){Ge(t)||(t=[t]);var n=[];te(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Ge(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}te(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var gYe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function u(d,h){var p=d.getItemVisual(h,"symbol")||"circle";if(p!=="none"){var v=Eh(d.getItemVisual(h,"symbolSize")),g=Xn(p,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,h,p,v,g,m){p.removeAll();for(var _=0;_<h.length-1;_++){var b=u(v,g);b&&(b.__dimIdx=_,d[_]?(b.setPosition(d[_]),cf[m?"initProps":"updateProps"](b,{x:h[_][0],y:h[_][1]},n,g)):b.setPosition(h[_]),p.add(b))}}function f(d){return We(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var p=new ga,v=new ba,g={shape:{points:h}};p.shape.points=f(h),v.shape.points=f(h),Ln(p,g,n,d),Ln(v,g,n,d);var m=new Tt,_=new Tt;m.add(v),m.add(p),m.add(_),c(v.shape.points,h,_,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var p=l.getItemGraphicEl(h),v=p.childAt(0),g=p.childAt(1),m=p.childAt(2),_={shape:{points:s.getItemLayout(d)}};_.shape.points&&(c(v.shape.points,_.shape.points,m,s,d,!1),ho(g),ho(v),sn(v,_,n),sn(g,_,n),s.setItemGraphicEl(d,p))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var p=s.getItemModel(h),v=d.childAt(0),g=d.childAt(1),m=d.childAt(2),_=s.getItemVisual(h,"style"),b=_.fill;o.add(d),v.useStyle(mt(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),Nr(v,p,"lineStyle"),Nr(g,p,"areaStyle");var w=p.getModel("areaStyle"),S=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=S,te(["emphasis","select","blur"],function(T){var k=p.getModel([T,"areaStyle"]),A=k.isEmpty()&&k.parentModel.isEmpty();g.ensureState(T).ignore=A&&S}),g.useStyle(mt(w.getAreaStyle(),{fill:b,opacity:.7,decal:_.decal}));var x=p.getModel("emphasis"),C=x.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof Ar){var k=T.style;T.useStyle(Be({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},_))}else T.useStyle(_),T.setColor(b),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=_t(C);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(M==null||isNaN(M))&&(M=""),Br(T,vr(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:b,defaultOpacity:_.opacity})}),Un(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(bn);const mYe=gYe;var yYe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Am(it(this.getData,this),it(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return $h(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=mY(this,n);return gr("section",{header:u,sortBlocks:!0,blocks:We(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return gr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,i=r.getValues(We(a.dimensions,function(u){return r.mapDimension(u)}),n),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Pn);const bYe=yYe;var wp=_X.value;function n0(e,t){return mt({show:t},e)}var _Ye=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=We(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=mt({color:p.color},l));var g=Rt(_t(p),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(rt(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ht(c)&&(g.name=c(g.name,g));var _=new mn(g,null,this.ecModel);return Yn(_,Lh.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Rt({lineStyle:{color:"#bbb"}},wp.axisLine),axisLabel:n0(wp.axisLabel,!1),axisTick:n0(wp.axisTick,!1),splitLine:n0(wp.splitLine,!0),splitArea:n0(wp.splitArea,!0),indicator:[]},t}(Xt);const wYe=_Ye;var SYe=["axisLine","axisTickLabel","axisName"],xYe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=We(a,function(o){var s=o.model.get("showName")?o.name:"",l=new zs(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});te(i,function(o){te(SYe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Ge(d)?d:[d],v=Ge(h)?h:[h],g=[],m=[];function _(N,$,P){var R=P%$.length;return N[R]=N[R]||[],R}if(i==="circle")for(var b=a[0].getTicksCoords(),w=r.cx,S=r.cy,x=0;x<b.length;x++){if(c){var C=_(g,p,x);g[C].push(new Xs({shape:{cx:w,cy:S,r:b[x].coord}}))}if(f&&x<b.length-1){var C=_(m,v,x);m[C].push(new pm({shape:{cx:w,cy:S,r0:b[x].coord,r:b[x+1].coord}}))}}else for(var T,k=We(a,function(N,$){var P=N.getTicksCoords();return T=T==null?P.length-1:Math.min(P.length-1,T),We(P,function(R){return r.coordToPoint(R.coord,$)})}),A=[],x=0;x<=T;x++){for(var M=[],I=0;I<a.length;I++)M.push(k[I][x]);if(M[0]&&M.push(M[0].slice()),c){var C=_(g,p,x);g[C].push(new ba({shape:{points:M}}))}if(f&&A){var C=_(m,v,x-1);m[C].push(new ga({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var E=l.getLineStyle(),L=u.getAreaStyle();te(m,function(N,$){this.group.add(Fa(N,{style:mt({stroke:"none",fill:v[$%v.length]},L),silent:!0}))},this),te(g,function(N,$){this.group.add(Fa(N,{style:mt({fill:"none",stroke:p[$%p.length]},E),silent:!0}))},this)},t.type="radar",t}(On);const CYe=xYe;var TYe=function(e){De(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(Li);const kYe=TYe;var AYe=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=We(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new kYe(o,new Ql);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,r)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var r=this._indicatorAxes[n],a=r.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var i=Math.atan2(-r,n),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight(),o=Math.min(a,i)/2;this.cx=Qe(r[0],a),this.cy=Qe(r[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(rt(s)||an(s))&&(s=[0,s]),this.r0=Qe(s[0],o),this.r=Qe(s[1],o),te(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,a=this._model;te(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();te(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Ql;o.setExtent(0,i),o.setInterval(1),te(r,function(s,l){wX(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(a){var i=new e(a,t,n);r.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},e.dimensions=[],e}();const MYe=AYe;function PYe(e){e.registerCoordinateSystem("radar",MYe),e.registerComponentModel(wYe),e.registerComponentView(CYe),e.registerVisual({seriesType:"radar",reset:function(t){var n=t.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function EYe(e){zt(PYe),e.registerChartView(mYe),e.registerSeriesModel(bYe),e.registerLayout(pYe),e.registerProcessor(km("radar")),e.registerPreprocessor(vYe)}var XB="\0_ec_interaction_mutex";function IYe(e,t,n){var r=oI(e);r[t]=n}function DYe(e,t,n){var r=oI(e),a=r[t];a===n&&(r[t]=null)}function ZB(e,t){return!!oI(e)[t]}function oI(e){return e[XB]||(e[XB]={})}_o({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},jn);var LYe=function(e){De(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=it(r._mousedownHandler,r),i=it(r._mousemoveHandler,r),o=it(r._mouseupHandler,r),s=it(r._mousewheelHandler,r),l=it(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=mt(_t(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",s),n.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!AN(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,i=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!db("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||ZB(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,s=r-i,l=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&Os(n.event),MX(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){AN(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=db("zoomOnMouseWheel",n,this._opt),a=db("moveOnMouseWheel",n,this._opt),i=n.wheelDelta,o=Math.abs(i),s=n.offsetX,l=n.offsetY;if(!(i===0||!r&&!a)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;qx(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);qx(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!ZB(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;qx(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(Ei);function qx(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(Os(r.event),MX(e,t,n,r,a))}function MX(e,t,n,r,a){a.isAvailableBehavior=it(db,null,n,r),e.trigger(t,a)}function db(e,t,n){var r=n[e];return!e||r&&(!rt(r)||t.event[r+"Key"])}const Mm=LYe;function sI(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function lI(e,t,n,r){var a=e.target,i=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var $Ye={axisPointer:1,tooltip:1,brush:1};function Iw(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!$Ye.hasOwnProperty(r.mainType)&&a&&a.model!==n}function PX(e){if(rt(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var Xx,M1={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},JB=Ut(M1),P1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},QB=Ut(P1),RYe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=PX(t);this._defsUsePending=[];var a=new Tt;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ra(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;BYe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Dw(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=IX(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new Tt,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new tn({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=Xx[s];if(c&&ot(Xx,s)){l=c.call(this,t,n);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var h=eF[s];if(h&&ot(eF,s)){var p=h.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},e.prototype._parseText=function(t,n){var r=new yg({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),OYe(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},e.internalField=function(){Xx={g:function(t,n){var r=new Tt;return ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new tn;return ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Xs;return ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new dr;return ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new uw;return ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=rF(r));var i=new ga({shape:{points:a||[]},silent:!0});return ii(n,i),Ra(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=rF(r));var i=new ba({shape:{points:a||[]},silent:!0});return ii(n,i),Ra(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new Ar;return ii(n,r),Ra(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Tt;return ii(n,s),Ra(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new Tt;return ii(n,s),Ra(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=aK(r);return ii(n,a),Ra(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),eF={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),a=parseInt(e.getAttribute("y2")||"0",10),i=new ts(t,n,r,a);return tF(e,i),nF(e,i),i},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),a=new sE(t,n,r);return tF(e,a),nF(e,a),a}};function tF(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function nF(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};EX(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function ii(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),mt(t.__inheritedStyle,e.__inheritedStyle))}function rF(e){for(var t=Dw(e),n=[],r=0;r<t.length;r+=2){var a=parseFloat(t[r]),i=parseFloat(t[r+1]);n.push([a,i])}return n}function Ra(e,t,n,r,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(zYe(e,t),EX(e,o,s),r||HYe(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=aF(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=aF(i,"stroke",o.stroke,n)),te(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),te(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=We(Dw(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function OYe(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,a=r;!r||r==="auto"||r==="baseline"?a="alphabetic":r==="before-edge"||r==="text-before-edge"?a="top":r==="after-edge"||r==="text-after-edge"?a="bottom":(r==="central"||r==="mathematical")&&(a="middle"),e.style.textBaseline=a}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var NYe=/^url\(\s*#(.*?)\)/;function aF(e,t,n,r){var a=n&&n.match(NYe);if(a){var i=yi(a[1]);r.push([e,t,i]);return}return n==="none"&&(n=null),n}function BYe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var FYe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Dw(e){return e.match(FYe)||[]}var VYe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Zx=Math.PI/180;function zYe(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(VYe,function(f,d,h){return r.push(d,h),""});for(var i=r.length-1;i>0;i-=2){var o=r[i],s=r[i-1],l=Dw(o);switch(a=a||Ia(),s){case"translate":co(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Q_(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fu(a,a,-parseFloat(l[0])*Zx,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Zx);Uo(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Zx);Uo(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var iF=/([^\s:;]+)\s*:\s*([^:;]+)/g;function EX(e,t,n){var r=e.getAttribute("style");if(r){iF.lastIndex=0;for(var a;(a=iF.exec(r))!=null;){var i=a[1],o=ot(M1,i)?M1[i]:null;o&&(t[o]=a[2]);var s=ot(P1,i)?P1[i]:null;s&&(n[s]=a[2])}}}function HYe(e,t,n){for(var r=0;r<JB.length;r++){var a=JB[r],i=e.getAttribute(a);i!=null&&(t[M1[a]]=i)}for(var r=0;r<QB.length;r++){var a=QB[r],i=e.getAttribute(a);i!=null&&(n[P1[a]]=i)}}function IX(e,t){var n=t.width/e.width,r=t.height/e.height,a=Math.min(n,r);return{scale:a,x:-(e.x+e.width/2)*a+(t.x+t.width/2),y:-(e.y+e.height/2)*a+(t.y+t.height/2)}}function GYe(e,t){var n=new RYe;return n.parse(e,t)}var WYe=ut(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),UYe=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=ut(),this._freedGraphics=[],this._mapName=t,this._parsedXML=PX(n)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=KYe(t.named),r=n.regions,a=n.regionsMap;this._regions=r,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var n,r;try{n=t&&GYe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,qr(r!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var a=new Tt;a.add(r),a.isGeoSVGGraphicRoot=!0;var i=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Nt(u,c,f,d)}if(s){var p=IX(s,l);r.scaleX=r.scaleY=p.scale,r.x=p.x,r.y=p.y}a.setClipPath(new tn({shape:l.plain()}));var v=[];return te(n.named,function(g){WYe.get(g.svgNodeTagLower)!=null&&(v.push(g),jYe(g.el))}),{root:a,boundingRect:l,named:v}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e}();function jYe(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function KYe(e){var t=[],n=ut();return te(e,function(r){if(r.namedFrom==null){var a=new nUe(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var zk=[126,25],oF="南海诸岛",qu=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Wu=0;Wu<qu.length;Wu++)for(var Nf=0;Nf<qu[Wu].length;Nf++)qu[Wu][Nf][0]/=10.5,qu[Wu][Nf][1]/=-10.5/.75,qu[Wu][Nf][0]+=zk[0],qu[Wu][Nf][1]+=zk[1];function YYe(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===oF)return;t.push(new kq(oF,We(qu,function(r){return{type:"polygon",exterior:r}}),zk))}}var qYe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function XYe(e,t){if(e==="china"){var n=qYe[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var ZYe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function JYe(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:ZYe[0]})}var QYe="name",eqe=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=ut(),this._mapName=t,this._specialAreas=r,this._geoJSON=nqe(n)}return e.prototype.load=function(t,n){n=n||QYe;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:tqe(a)})}var i=ut(),o=[];return te(r.regions,function(s){var l=s.name;t&&ot(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new Nt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?Ik(r,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return YYe(n,a),te(a,function(i){var o=i.name;XYe(n,i),JYe(n,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function tqe(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function nqe(e){return rt(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Sp=ut();const Hs={registerMap:function(e,t,n){if(t.svg){var r=new UYe(e,t.svg);Sp.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new eqe(e,a,n);Sp.set(e,r)}},getGeoResource:function(e){return Sp.get(e)},getMapForUser:function(e){var t=Sp.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=Sp.get(e);if(r)return r.load(t,n)}};var uI=["rect","circle","line","ellipse","polygon","polyline","path"],rqe=ut(uI),aqe=ut(uI.concat(["g"])),iqe=ut(uI.concat(["g"])),DX=nn();function r0(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function sF(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var oqe=function(){function e(t){var n=new Tt;this.uid=xh("ec_map_draw"),this._controller=new Mm(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Tt),n.add(this._svgGroup=new Tt)}return e.prototype.draw=function(t,n,r,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&n.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,p=!u.childAt(0)||i;p?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):sn(c,h,t);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=ut(),r=ut(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],v);m&&p.push(m)}return p}function d(h){return{shape:{points:f(h)}}}a.removeAll(),te(t.geo.regions,function(h){var p=h.name,v=n.get(p),g=r.get(p)||{},m=g.dataIdx,_=g.regionModel;v||(v=n.set(p,new Tt),a.add(v),m=s?s.indexOfName(p):null,_=t.isGeo?o.getRegionModel(p):s?s.getItemModel(m):null,r.set(p,{dataIdx:m,regionModel:_}));var b=[],w=[];te(h.geometries,function(C){if(C.type==="polygon"){var T=[C.exterior].concat(C.interiors||[]);u&&(T=hF(T,u)),te(T,function(A){b.push(new ga(d(A)))})}else{var k=C.points;u&&(k=hF(k,u,!0)),te(k,function(A){w.push(new ba(d(A)))})}});var S=c(h.getCenter(),l&&l.project);function x(C,T){if(C.length){var k=new fw({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});v.add(k),lF(t,k,m,_),uF(t,k,p,_,o,m,S),T&&(sF(k),te(k.states,sF))}}x(b),x(w,!0)}),n.each(function(h,p){var v=r.get(p),g=v.dataIdx,m=v.regionModel;cF(t,h,p,m,o,g),fF(t,h,p,m,o),dF(t,h,p,m,o)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=ut(),i=!1;te(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(rqe.get(c)!=null&&f instanceof Pi&&lF(t,f,d,h),f instanceof Pi&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(iqe.get(c)!=null&&uF(t,f,s,h,l,d,null),cF(t,f,s,h,l,d),fF(t,f,s,h,l),aqe.get(c)!=null)){var p=dF(t,f,s,h,l);p==="self"&&(i=!0);var v=a.get(s)||a.set(s,[]);v.push(f)}},this),this._enableBlurEntireSVG(i,t)},e.prototype._enableBlurEntireSVG=function(t,n){if(t&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=r.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Xc(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,n){if(t==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var n=Hs.getGeoResource(t);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var n=Hs.getGeoResource(t);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,n,r){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,sI(o,u.dx,u.dy),r.dispatchAction(Be(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,lI(o,u.scale,u.originX,u.originY),r.dispatchAction(Be(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!Iw(u,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=DX(n).ignore)})},e.prototype._updateMapSelectHandler=function(t,n,r,a){var i=this;n.off("mousedown"),n.off("click"),t.get("selectedMode")&&(n.on("mousedown",function(){i._mouseDownFlag=!0}),n.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function lF(e,t,n,r){var a=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=r0(a),u=r0(i),c=r0(s),f=r0(o),d=e.data;if(d){var h=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),p&&(l.decal=Qd(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,Xc(t)}function uF(e,t,n,r,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?n:i,d=void 0;(!s||i>=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Br(t,vr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var p=t.getTextContent();if(p&&(DX(p).ignore=p.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function cF(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):kt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function fF(e,t,n,r,a){e.data||wh({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function dF(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return Un(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&Kze(t,a,n),o}function hF(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),te(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const LX=oqe;var sqe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===n.id){var s=this._mapDraw;s&&o.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new LX(a);o.add(s.group),s.draw(n,r,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(n,r,a){var i=n.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new Xs({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:yh+1)});if(!f){var h=n.mainSeries.getData(),p=i.getName(l),v=h.indexOfName(p),g=i.getItemModel(l),m=g.getModel("label"),_=h.getItemGraphicEl(v);Br(d,vr(g),{labelFetcher:{getFormattedLabel:function(b,w){return n.getFormattedLabel(v,w)}},defaultText:p}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),_.onHoverStateChange=function(b){i1(d,b)}}o.add(d)}}})},t.type="map",t}(bn);const lqe=sqe;var uqe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},n}return t.prototype.getInitialData=function(n){for(var r=$h(this,{coordDimensions:["value"],encodeDefaulter:Pt(xE,this)}),a=ut(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=Hs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return te(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),r.appendValues([],i),r},t.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData(),o=this.getRawValue(n),s=i.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return gr("section",{header:u.join(", "),noHeader:!u.length,blocks:[gr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=Xn(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Pn);const cqe=uqe;function fqe(e,t){var n={};return te(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function dqe(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(t[a]=t[a]||[]).push(n)}),te(t,function(n,r){for(var a=fqe(We(n,function(o){return o.getData()}),n[0].get("mapValueCalculation")),i=0;i<n.length;i++)n[i].originalData=n[i].getData();for(var i=0;i<n.length;i++)n[i].seriesGroup=n,n[i].needsDrawMap=i===0&&!n[i].getHostGeoModel(),n[i].setData(a.cloneShallow()),n[i].mainSeries=n[0]})}function hqe(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};te(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,p=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:p,offset:h})}})});var i=n.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[r]=!0}})}var pF=xr,pqe=function(e){De(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new ks,r._rawTransformable=new ks,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new Nt(n,r,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,a,i){this._transformTo(n,r,a,i),this._viewRect=new Nt(n,r,a,i)},t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Nt(n,r,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n,r){n&&(this._center=[Qe(n[0],r.getWidth()),Qe(n[1],r.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=xr([],i,n),a=xr([],a,n),r.originX=i[0],r.originY=i[1],r.x=a[0]-i[0],r.y=a[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),J_(this.transform||(this.transform=[]),r.transform||Ia()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],uf(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new ks;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,a){var i=r?this._rawTransform:this.transform;return a=a||[],i?pF(a,n,i):Hr(a,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?pF([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,a){var i=vF(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=vF(r);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t}(ks);function vF(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Pm=pqe;var vqe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},$X=["lng","lat"],RX=function(e){De(t,e);function t(n,r,a){var i=e.call(this,n)||this;i.dimensions=$X,i.type="geo",i._nameCoordMap=ut(),i.map=r;var o=a.projection,s=Hs.load(r,a.nameMap,a.nameProperty),l=Hs.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=vqe[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:Et(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Nt(n,r,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var i=r[a];if(i.type==="geoJSON"&&i.contain(n))return r[a]}},t.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},t.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},t.prototype.dataToPoint=function(n,r,a){if(rt(n)&&(n=this.getGeoCoord(n)),n){var i=this.projection;return i&&(n=i.project(n)),n&&this.projectedToPoint(n,r,a)}},t.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},t.prototype.pointToProjected=function(n){return e.prototype.pointToData.call(this,n)},t.prototype.projectedToPoint=function(n,r,a){return e.prototype.dataToPoint.call(this,n,r,a)},t.prototype.convertToPixel=function(n,r,a){var i=gF(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=gF(r);return i===this?i.pointToData(a):null},t}(Pm);Yn(RX,Pm);function gF(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Qn).models[0]||{}).coordinateSystem:null}const mF=RX;function yF(e,t){var n=e.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var c=function(x,C,T,k){for(var A=T-x,M=k-C,I=0;I<=100;I++){var E=I/100,L=i.project([x+A*E,C+M*E]);Cs(r,r,L),Ts(a,a,L)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),p=t.getWidth(),v=t.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,_,b;d&&h&&(_=[Qe(d[0],p),Qe(d[1],v)],b=Qe(h,Math.min(p,v)),!isNaN(_[0])&&!isNaN(_[1])&&!isNaN(b)&&(m=!0));var w;if(m)w={},g>1?(w.width=b,w.height=b/g):(w.height=b,w.width=b*g),w.y=_[1]-w.height/2,w.x=_[0]-w.width/2;else{var S=e.getBoxLayoutParams();S.aspect=g,w=rr(S,{width:p,height:v})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function gqe(e,t){te(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var mqe=function(){function e(){this.dimensions=$X}return e.prototype.create=function(t,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new mF(l+s,l,Be({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=yF,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),te(i,function(o,s){var l=We(o,function(c){return c.get("nameMap")}),u=new mF(s,s,Be({nameMap:q_(l)},a(o[0])));u.zoomLimit=fr.apply(null,We(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=yF,u.resize(o[0],n),te(o,function(c){c.coordinateSystem=u,gqe(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=ut(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Hs.load(n,r,a);return te(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),yqe=new mqe;const OX=yqe;var bqe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=Hs.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),Kc(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=OX.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=Mi(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new mn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},ut()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new mn(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),i=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:n};if(ht(i))return o.status=r,i(o);if(rt(i))return i.replace("{a}",n??"")},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[n]=!0}},t.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Xt);const _qe=bqe;function bF(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function cI(e,t,n,r){var a=e.getZoom(),i=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(i):e.dataToPoint(i);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(bF(e,s),r)),o!=null){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(bF(e,s),r),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var wqe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(n,r){this._api=r},t.prototype.render=function(n,r,a,i){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new LX(a));var o=this._mapDraw;o.draw(n,r,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=n.get("silent"),this.group.add(o.group),this.updateSelectStatus(n,r,a)},t.prototype._handleRegionClick=function(n){var r;wc(n.target,function(a){return(r=kt(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(n,r,a){var i=this;this._mapDraw.group.traverse(function(o){var s=kt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(On);const Sqe=wqe;function xqe(e,t,n){Hs.registerMap(e,t,n)}function NX(e){e.registerCoordinateSystem("geo",OX),e.registerComponentModel(_qe),e.registerComponentView(Sqe),e.registerImpl("registerMap",xqe),e.registerImpl("getMap",function(n){return Hs.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;te(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];te(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var i=n.componentType||"series";r.eachComponent({mainType:i,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=cI(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&te(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Cqe(e){zt(NX),e.registerChartView(lqe),e.registerSeriesModel(cqe),e.registerLayout(hqe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,dqe),PY("map",e.registerAction)}function Tqe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[t],r,a;r=n.pop();)if(a=r.children,r.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function kqe(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,a=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){Pqe(e);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-i):e.hierNode.prelim=i}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=Eqe(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function Aqe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function _F(e){return arguments.length?e:Lqe}function Hp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Mqe(e,t){return rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Pqe(e){for(var t=e.children,n=t.length,r=0,a=0;--n>=0;){var i=t[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function Eqe(e,t,n,r){if(t){for(var a=e,i=e,o=i.parentNode.children[0],s=t,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=Jx(s),i=Qx(i),s&&i;){a=Jx(a),o=Qx(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(Dqe(Iqe(s,e,n),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!Jx(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!Qx(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function Jx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Qx(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Iqe(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function Dqe(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Lqe(e,t){return e.parentNode===t.parentNode?1:2}var $qe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Rqe=function(e){De(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $qe},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Qe(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var v=a[p];n.moveTo(v[0],v[1]),h[c]=v[c],n.lineTo(h[0],h[1])}},t}(Gt),Oqe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Tt,n}return t.prototype.init=function(n,r){this._controller=new Mm(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(n,r,a){var i=n.getData(),o=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(n,a),this._updateController(n,r,a);var u=this._data;i.diff(u).add(function(c){wF(i,c)&&SF(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!wF(i,c)){d&&CF(u,f,d,s,n);return}SF(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&CF(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=i},t.prototype._updateViewCoordSys=function(n,r){var a=n.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];ow(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new Pm;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(n.get("center"),r),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Iw(u,a,n)}),o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){sI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){lI(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(n),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(bn);function wF(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function SF(e,t,n,r,a){var i=!n,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,v=o.getLayout();i?(n=new Sm(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,sn(n,{x:v.x,y:v.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var m=c.children[0],_=m.getLayout(),b=m.children.length,w=void 0,S=void 0;if(v.x===_.x&&o.isExpand===!0&&m.children.length){var x={x:(m.children[0].getLayout().x+m.children[b-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[b-1].getLayout().y)/2};w=Math.atan2(x.y-_.y,x.x-_.x),w<0&&(w=Math.PI*2+w),S=x.x<_.x,S&&(w=w-Math.PI)}else w=Math.atan2(v.y-_.y,v.x-_.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=v.x<_.x,S&&(w=w-Math.PI)):(S=v.x>_.x,S||(w=w-Math.PI));var C=S?"left":"right",T=s.getModel("label"),k=T.get("rotate"),A=k*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||C,rotation:k==null?-w:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),E=I==="relative"?cg(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;E&&(kt(n).focus=E),Nqe(a,o,c,n,p,h,v,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var N=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);N&&N.hoverState===hm||i1(n.__edge,L)}})}function Nqe(e,t,n,r,a,i,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")t.parentNode&&t.parentNode!==n&&(v||(v=r.__edge=new vm({shape:Hk(c,f,d,a,a)})),sn(v,{shape:Hk(c,f,d,i,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==n&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,m=[],_=0;_<g.length;_++){var b=g[_].getLayout();m.push([b.x,b.y])}v||(v=r.__edge=new Rqe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),sn(v,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}v&&!(u==="polyline"&&!t.isExpand)&&(v.useStyle(mt({strokeNoScale:!0,fill:null},p)),Nr(v,l,"lineStyle"),Xc(v),s.add(v))}function xF(e,t,n,r,a){var i=t.tree.root,o=BX(i,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=r.get("edgeShape"),p=r.get("layout"),v=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(h==="curve"?Zl(d,{shape:Hk(p,v,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&Zl(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function BX(e,t){for(var n=t.parentNode===e?t:t.parentNode||t,r;r=n.getLayout(),r==null;)n=n.parentNode===e?n:n.parentNode||n;return{source:n,sourceLayout:r}}function CF(e,t,n,r,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=BX(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};Zl(n,{x:s.x+1,y:s.y+1},a,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){xF(u,e,r,a,l)}),xF(i,e,r,a,l)}function Hk(e,t,n,r,a){var i,o,s,l,u,c,f,d;if(e==="radial"){u=r.rawX,f=r.rawY,c=a.rawX,d=a.rawY;var h=Hp(u,f),p=Hp(u,f+(d-f)*n),v=Hp(c,d+(f-d)*n),g=Hp(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=r.x,f=r.y,c=a.x,d=a.y,(t==="LR"||t==="RL")&&(i=u+(c-u)*n,o=f,s=c+(u-c)*n,l=d),(t==="TB"||t==="BT")&&(i=u,o=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const Bqe=Oqe;var wi=nn();function FX(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,VX(t,n,e),te(n,function(r){te(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,Pt(Fqe,e))})}),t.wrapMethod("cloneShallow",Pt(zqe,e)),te(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Pt(Vqe,e))}),qr(n[t.dataType]===t)}function Fqe(e,t){if(Wqe(this)){var n=Be({},wi(this).datas);n[this.dataType]=t,VX(t,n,e)}else fI(t,this.dataType,wi(this).mainData,e);return t}function Vqe(e,t){return e.struct&&e.struct.update(),t}function zqe(e,t){return te(wi(t).datas,function(n,r){n!==t&&fI(n.cloneShallow(),r,t,e)}),t}function Hqe(e){var t=wi(this).mainData;return e==null||t==null?t:wi(t).datas[e]}function Gqe(){var e=wi(this).mainData;return e==null?[{data:e}]:We(Ut(wi(e).datas),function(t){return{type:t,data:wi(e).datas[t]}})}function Wqe(e){return wi(e).mainData===e}function VX(e,t,n){wi(e).datas={},te(t,function(r,a){fI(r,a,e,n)})}function fI(e,t,n,r){wi(n).datas[t]=e,wi(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Hqe,e.getLinkedDataAll=Gqe}var Uqe=function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){ht(t)&&(r=n,n=t,t=null),t=t||{},rt(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=n.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,n,r);a==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(t+1),a.height>n&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),jqe=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var a=new e(n),i=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,Ge(d)?d.length:1),i.push(c);var h=new Uqe(ar(c.name,""),a);f?Kqe(h,f):a.root=h,a._nodes.push(h);var p=c.children;if(p)for(var v=0;v<p.length;v++)s(p[v],h)}a.root.updateDepthAndHeight(0);var l=Ih(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Kr(l,n);return u.initData(i),r&&r(u),FX({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function Kqe(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const dI=jqe;function Dg(e,t,n){if(e&&Ft(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(rt(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function zX(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function hI(e,t){var n=zX(e);return Ft(n,t)>=0}function Lw(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var Yqe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new mn(a,this,this.ecModel),o=dI.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return gr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Lw(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Pn);const qqe=Yqe;function Xqe(e,t,n){for(var r=[e],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;i=a.pop();)t(i,n)}function xp(e,t){for(var n=[e],r;r=n.pop();)if(t(r),r.isExpand){var a=r.children;if(a.length)for(var i=a.length-1;i>=0;i--)n.push(a[i])}}function Zqe(e,t){e.eachSeriesByType("tree",function(n){Jqe(n,t)})}function Jqe(e,t){var n=Mqe(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=_F(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(a=n.width,i=n.height,o=_F());var s=e.getData().tree.root,l=s.children[0];if(l){Tqe(s),Xqe(l,kqe,o),s.hierNode.modifier=-l.hierNode.prelim,xp(l,Aqe);var u=l,c=l,f=l;xp(l,function(b){var w=b.getLayout().x;w<u.getLayout().x&&(u=b),w>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,m=0;if(r==="radial")p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),xp(l,function(b){g=(b.getLayout().x+h)*p,m=(b.depth-1)*v;var w=Hp(g,m);b.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var _=e.getOrient();_==="RL"||_==="LR"?(v=i/(c.getLayout().x+d+h),p=a/(f.depth-1||1),xp(l,function(b){m=(b.getLayout().x+h)*v,g=_==="LR"?(b.depth-1)*p:a-(b.depth-1)*p,b.setLayout({x:g,y:m},!0)})):(_==="TB"||_==="BT")&&(p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),xp(l,function(b){g=(b.getLayout().x+h)*p,m=_==="TB"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:g,y:m},!0)}))}}}function Qqe(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");Be(s,o)})})}function eXe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"tree",query:t},function(r){var a=t.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,n,r){n.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var i=a.coordinateSystem,o=cI(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function tXe(e){e.registerChartView(Bqe),e.registerSeriesModel(qqe),e.registerLayout(Zqe),e.registerVisual(Qqe),eXe(e)}var TF=["treemapZoomToNode","treemapRender","treemapMove"];function nXe(e){for(var t=0;t<TF.length;t++)e.registerAction({type:TF[t],update:"updateView"},jn);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Dg(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=hI(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function HX(e){var t=e.getData(),n=t.tree,r={};n.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=gk(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var rXe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};GX(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new mn({itemStyle:o},this,r);i=n.levels=aXe(i,r);var l=We(i||[],function(f){return new mn(f,s,r)},this),u=dI.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return gr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Lw(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Be(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=ut(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){HX(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Pn);function GX(e){var t=0;te(e.children,function(r){GX(r);var a=r.value;Ge(a)&&(a=a[0]),t+=a});var n=e.value;Ge(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ge(e.value)?e.value[0]=n:e.value=n}function aXe(e,t){var n=yn(t.get("color")),r=yn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;te(e,function(s){var l=new mn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}const iXe=rXe;var oXe=8,kF=8,eC=5,sXe=function(){function e(t){this.group=new Tt,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),bw(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=ar(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+oXe*2,n.emptyItemWidth);n.totalWidth+=s+kF,n.renderList.push({node:a,text:i,width:s})}},e.prototype._renderContent=function(t,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=eGe(n.pos,n.box),d=n.totalWidth,h=n.renderList,p=a.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],m=g.node,_=g.width,b=g.text;d>f.width&&(d-=_-u,_=u,b=null);var w=new ga({shape:{points:lXe(l,0,_,c,v===h.length-1,v===0)},style:mt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new en({style:Cn(i,{text:b})}),textConfig:{position:"inside"},z2:yh*1e4,onclick:Pt(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=Cn(o,{text:b}),w.ensureState("emphasis").style=p,Un(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),uXe(w,t,m),l+=_+kF}},e.prototype.remove=function(){this.group.removeAll()},e}();function lXe(e,t,n,r,a,i){var o=[[a?e:e-eC,t],[e+n,t],[e+n,t+r],[a?e:e-eC,t+r]];return!i&&o.splice(2,0,[e+n+eC,t+r/2]),!a&&o.push([e,t+r/2]),o}function uXe(e,t,n){kt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Lw(n,t)}}const cXe=sXe;var fXe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,n,r,a,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:n,duration:r,delay:a,easing:i}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,n=this._storage.length,r=function(){n--,n<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},e}();function dXe(){return new fXe}var Gk=Tt,AF=tn,MF=3,PF="label",EF="upperLabel",hXe=yh*10,pXe=yh*2,vXe=yh*3,Xu=qc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),IF=function(e){var t=Xu(e);return t.stroke=t.fill=t.lineWidth=null,t},E1=nn(),gXe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Cp(),n}return t.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Ft(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Dg(i,s,n),u=i&&i.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(c),v=n.get("animation"),g=this._doRender(p,n,h);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,n,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(n,a,l)}},t.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new Gk,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},t.prototype._doRender=function(n,r,a){var i=r.getData().tree,o=this._oldTree,s=Cp(),l=Cp(),u=this._storage,c=[];function f(_,b,w,S){return mXe(r,l,u,a,s,c,_,b,w,S)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,p=i.root.getLayout();p.width===h.width&&p.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:m};function v(_,b,w,S,x){S?(b=_,te(_,function(k,A){!k.isRemoved()&&T(A,A)})):new Fs(b,_,C,C).add(T).update(T).remove(Pt(T,null)).execute();function C(k){return k.getId()}function T(k,A){var M=k!=null?_[k]:null,I=A!=null?b[A]:null,E=f(M,I,w,x);E&&v(M&&M.viewChildren||[],I&&I.viewChildren||[],E,S,x+1)}}function g(_){var b=Cp();return _&&te(_,function(w,S){var x=b[S];te(w,function(C){C&&(x.push(C),E1(C).willDelete=!0)})}),b}function m(){te(d,function(_){te(_,function(b){b.parent&&b.parent.remove(b)})}),te(c,function(_){_.invisible=!0,_.dirty()})}},t.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ht(o)?0:o)||0,u=(ht(s)?null:s)||"cubicOut",c=dXe();te(r.willDeleteEls,function(f,d){te(f,function(h,p){if(!h.invisible){var v=h.parent,g,m=E1(v);if(i&&i.direction==="drillDown")g=v===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var _=0,b=0;m.willDelete||(_=m.nodeWidth/2,b=m.nodeHeight/2),g=d==="nodeGroup"?{x:_,y:b,style:{opacity:0}}:{shape:{x:_,y:b,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),te(this._storage,function(f,d){te(f,function(h,p){var v=r.lastsForAnimation[d][p],g={};v&&(h instanceof Tt?v.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=v.oldX,h.y=v.oldY):(v.oldShape&&(g.shape=Be({},h.shape),h.setShape(v.oldShape)),v.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(it(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost),r||(r=this._controller=new Mm(n.getZr()),r.enable(this.seriesModel.get("roam")),a.zoomLimit=this.seriesModel.get("scaleLimit"),a.zoom=this.seriesModel.get("zoom"),r.on("pan",it(this._onPan,this)),r.on("zoom",it(this._onZoom,this)));var i=new Nt(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(o,s,l){return i.contain(s,l)})},t.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>MF||Math.abs(n.dy)>MF)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY,i=n.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new Nt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=i,u){var d=u.min||0,h=u.max||1/0;f=Math.max(Math.min(h,f),d)}var p=f/c.zoom;c.zoom=f;var v=this.seriesModel.layoutInfo;r-=v.x,a-=v.y;var g=Ia();co(g,g,[-r,-a]),Q_(g,g,[p,p]),co(g,g,[r,a]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&f1(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new cXe(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(hI(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Cp(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(bn);function Cp(){return{nodeGroup:[],background:[],content:[]}}function mXe(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,m=o.getRawIndex(),_=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,S=b&&b.length,x=d.getModel("itemStyle"),C=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),k=d.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=ue("nodeGroup",Gk);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),E1(M).nodeWidth=h,E1(M).nodeHeight=p,c.isAboveViewRoot)return M;var I=ue("background",AF,u,pXe);I&&D(M,I,S&&c.upperLabelHeight);var E=d.getModel("emphasis"),L=E.get("focus"),N=E.get("blurScope"),$=E.get("disabled"),P=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(S)_g(M)&&bc(M,!1),I&&(bc(I,!$),f.setItemGraphicEl(o.dataIndex,I),lk(I,P,N));else{var R=ue("content",AF,u,vXe);R&&B(M,R),I.disableMorphing=!0,I&&_g(I)&&bc(I,!1),bc(M,!$),f.setItemGraphicEl(o.dataIndex,M),lk(M,P,N)}return M;function D(Q,J,se){var he=kt(J);if(he.dataIndex=o.dataIndex,he.seriesIndex=e.seriesIndex,J.setShape({x:0,y:0,width:h,height:p,r:A}),g)H(J);else{J.invisible=!1;var re=o.getVisual("style"),z=re.stroke,Y=IF(x);Y.fill=z;var ee=Xu(C);ee.fill=C.get("borderColor");var oe=Xu(T);oe.fill=T.get("borderColor");var ve=Xu(k);if(ve.fill=k.get("borderColor"),se){var Z=h-2*v;G(J,z,re.opacity,{x:v,y:0,width:Z,height:w})}else J.removeTextContent();J.setStyle(Y),J.ensureState("emphasis").style=ee,J.ensureState("blur").style=oe,J.ensureState("select").style=ve,Xc(J)}Q.add(J)}function B(Q,J){var se=kt(J);se.dataIndex=o.dataIndex,se.seriesIndex=e.seriesIndex;var he=Math.max(h-2*v,0),re=Math.max(p-2*v,0);if(J.culling=!0,J.setShape({x:v,y:v,width:he,height:re,r:A}),g)H(J);else{J.invisible=!1;var z=o.getVisual("style"),Y=z.fill,ee=IF(x);ee.fill=Y,ee.decal=z.decal;var oe=Xu(C),ve=Xu(T),Z=Xu(k);G(J,Y,z.opacity,null),J.setStyle(ee),J.ensureState("emphasis").style=oe,J.ensureState("blur").style=ve,J.ensureState("select").style=Z,Xc(J)}Q.add(J)}function H(Q){!Q.invisible&&i.push(Q)}function G(Q,J,se,he){var re=d.getModel(he?EF:PF),z=ar(d.get("name"),null),Y=re.getShallow("show");Br(Q,vr(d,he?EF:PF),{defaultText:Y?z:null,inheritColor:J,defaultOpacity:se,labelFetcher:e,labelDataIndex:o.dataIndex});var ee=Q.getTextContent();if(ee){var oe=ee.style,ve=Z_(oe.padding||0);he&&(Q.setTextConfig({layoutRect:he}),ee.disableLabelLayout=!0),ee.beforeUpdate=function(){var ce=Math.max((he?he.width:Q.shape.width)-ve[1]-ve[3],0),q=Math.max((he?he.height:Q.shape.height)-ve[0]-ve[2],0);(oe.width!==ce||oe.height!==q)&&ee.setStyle({width:ce,height:q})},oe.truncateMinChar=2,oe.lineOverflow="truncate",X(oe,he,c);var Z=ee.getState("emphasis");X(Z?Z.style:null,he,c)}}function X(Q,J,se){var he=Q?Q.text:null;if(!J&&se.isLeafRoot&&he!=null){var re=e.get("drillDownIcon",!0);Q.text=re?re+" "+he:he}}function ue(Q,J,se,he){var re=_!=null&&n[Q][_],z=a[Q];return re?(n[Q][_]=null,ie(z,re)):g||(re=new J,re instanceof Pi&&(re.z2=yXe(se,he)),le(z,re)),t[Q][m]=re}function ie(Q,J){var se=Q[m]={};J instanceof Gk?(se.oldX=J.x,se.oldY=J.y):se.oldShape=Be({},J.shape)}function le(Q,J){var se=Q[m]={},he=o.parentNode,re=J instanceof Tt;if(he&&(!r||r.direction==="drillDown")){var z=0,Y=0,ee=a.background[he.getRawIndex()];!r&&ee&&ee.oldShape&&(z=ee.oldShape.width,Y=ee.oldShape.height),re?(se.oldX=0,se.oldY=Y):se.oldShape={x:z,y:Y,width:0,height:0}}se.fadein=!re}}function yXe(e,t){return e*hXe+t}const bXe=gXe;var Lg=te,_Xe=bt,I1=-1,pI=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=_t(t);this.type=r,this.mappingMethod=n,this._normalizeData=xXe[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(tC(a),wXe(a)):n==="category"?a.categories?SXe(a):tC(a,!0):(qr(n!=="linear"||a.dataExtent),tC(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return it(this._normalizeData,this)},e.listVisualTypes=function(){return Ut(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){bt(t)?te(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=Ge(t)?[]:bt(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&Lg(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Ge(t))t=t.slice();else if(_Xe(t)){var n=[];Lg(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o<s;o++){var l=n[o].value;if(l!=null){if(l===t||rt(l)&&l===t+"")return o;r&&d(l,o)}}for(var o=0,s=n.length;o<s;o++){var u=n[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(i0(f[1],t,c[1]))return o}else if(c[1]===1/0){if(i0(f[0],c[0],t))return o}else if(i0(f[0],c[0],t)&&i0(f[1],t,c[1]))return o;r&&d(c[0],o),r&&d(c[1],o)}}if(r)return t===1/0?n.length-1:t===-1/0?0:a;function d(h,p){var v=Math.abs(h-t);v<i&&(i=v,a=p)}},e.visualHandlers={color:{applyVisual:Tp("color"),getColorMapper:function(){var t=this.option;return it(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),Gp.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=fv(n,t.parsedVisual,a),i?a:ro(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ro(fv(t,this.option.parsedVisual),"rgba")},category:Gp,piecewise:function(t,n){var r=Uk.call(this,n);return r==null&&(r=ro(fv(t,this.option.parsedVisual),"rgba")),r},fixed:Zu}},colorHue:a0(function(t,n){return Sd(t,n)}),colorSaturation:a0(function(t,n){return Sd(t,null,n)}),colorLightness:a0(function(t,n){return Sd(t,null,null,n)}),colorAlpha:a0(function(t,n){return pg(t,n)}),decal:{applyVisual:Tp("decal"),_normalizedToVisual:{linear:null,category:Gp,piecewise:null,fixed:null}},opacity:{applyVisual:Tp("opacity"),_normalizedToVisual:Wk([0,1])},liftZ:{applyVisual:Tp("liftZ"),_normalizedToVisual:{linear:Zu,category:Zu,piecewise:Zu,fixed:Zu}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:DF,category:Gp,piecewise:function(t,n){var r=Uk.call(this,n);return r==null&&(r=DF.call(this,t)),r},fixed:Zu}},symbolSize:{applyVisual:Tp("symbolSize"),_normalizedToVisual:Wk([0,1])}},e}();function wXe(e){var t=e.pieceList;e.hasSpecialVisual=!1,te(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function SXe(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Lg(t,function(o,s){n[o]=s}),!Ge(r)){var a=[];bt(r)?Lg(r,function(o,s){var l=n[s];a[l??I1]=o}):a[I1]=r,r=WX(e,a)}for(var i=t.length-1;i>=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function tC(e,t){var n=e.visual,r=[];bt(n)?Lg(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!t&&r.length===1&&!a.hasOwnProperty(e.type)&&(r[1]=r[0]),WX(e,r)}function a0(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:Wk([0,1])}}function DF(e){var t=this.option.visual;return t[Math.round(dn(e,[0,1],[0,t.length-1],!0))]||{}}function Tp(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Gp(e){var t=this.option.visual;return t[this.option.loop&&e!==I1?e%t.length:e]}function Zu(){return this.option.visual[0]}function Wk(e){return{linear:function(t){return dn(t,e,this.option.visual,!0)},category:Gp,piecewise:function(t,n){var r=Uk.call(this,n);return r==null&&(r=dn(t,e,this.option.visual,!0)),r},fixed:Zu}}function Uk(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=pI.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function WX(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=We(t,function(n){var r=la(n);return r||[0,0,0,1]})),t}var xXe={linear:function(e){return dn(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=pI.findPieceIndex(e,t,!0);if(n!=null)return dn(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??I1},fixed:jn};function i0(e,t,n){return e?t<=n:t<n}const $r=pI;var CXe="itemStyle",UX=nn();const TXe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||jX(n,{},e.getViewRoot().getAncestors(),e)}};function jX(e,t,n,r){var a=e.getModel(),i=e.getLayout(),o=e.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(CXe),l=kXe(s,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=LF(l),c=AXe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=LF(l),u.fill=d;else{var p=MXe(e,a,i,s,l,h);te(h,function(v,g){if(v.depth>=n.length||v===n[v.depth]){var m=PXe(a,l,v,g,p,r);jX(v,m,n,r)}})}}}function kXe(e,t,n){var r=Be({},t),a=n.designatedVisualItemStyle;return te(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function LF(e){var t=nC(e,"color");if(t){var n=nC(e,"colorAlpha"),r=nC(e,"colorSaturation");return r&&(t=Sd(t,null,null,r)),n&&(t=pg(t,n)),t}}function AXe(e,t){return t!=null?Sd(t,null,null,e):null}function nC(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function MXe(e,t,n,r,a,i){if(!(!i||!i.length)){var o=rC(t,"color")||a.color!=null&&a.color!=="none"&&(rC(t,"colorAlpha")||rC(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new $r(f);return UX(d).drColorMappingBy=c,d}}}function rC(e,t){var n=e.get(t);return Ge(n)&&n.length?{name:t,range:n}:null}function PXe(e,t,n,r,a,i){var o=Be({},t);if(a){var s=a.type,l=s==="color"&&UX(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var $g=Math.max,D1=Math.min,$F=fr,vI=te,KX=["itemStyle","borderWidth"],EXe=["itemStyle","gapWidth"],IXe=["upperLabel","show"],DXe=["upperLabel","height"];const LXe={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=rr(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=Qe($F(s.width,l[0]),a),c=Qe($F(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Dg(r,d,e),p=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=e.getViewRoot(),g=zX(v);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?FXe(e,h,v,u,c):p?[p.width,p.height]:[u,c],_=o.sort;_&&_!=="asc"&&_!=="desc"&&(_="desc");var b={squareRatio:o.squareRatio,sort:_,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};v.setLayout(w),YX(v,b,!1,0),w=v.getLayout(),vI(g,function(x,C){var T=(g[C+1]||v).getValue();x.setLayout(Be({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var S=e.getData().tree.root;S.setLayout(VXe(s,p,h),!0),e.setLayoutInfo(s),qX(S,new Nt(-s.x,-s.y,a,i),g,v,0)}};function YX(e,t,n,r){var a,i;if(!e.isRemoved()){var o=e.getLayout();a=o.width,i=o.height;var s=e.getModel(),l=s.get(KX),u=s.get(EXe)/2,c=XX(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=$g(a-2*d,0),i=$g(i-d-h,0);var p=a*i,v=$Xe(e,s,p,t,n,r);if(v.length){var g={x:d,y:h,width:a,height:i},m=D1(a,i),_=1/0,b=[];b.area=0;for(var w=0,S=v.length;w<S;){var x=v[w];b.push(x),b.area+=x.getLayout().area;var C=BXe(b,m,t.squareRatio);C<=_?(w++,_=C):(b.area-=b.pop().getLayout().area,RF(b,m,g,u,!1),m=D1(g.width,g.height),b.length=b.area=0,_=1/0)}if(b.length&&RF(b,m,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(n=!0)}for(var w=0,S=v.length;w<S;w++)YX(v[w],t,n,r+1)}}}function $Xe(e,t,n,r,a,i){var o=e.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=hn(o,function(h){return!h.isRemoved()}),OXe(o,s);var u=NXe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=RXe(t,n,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function RXe(e,t,n,r,a){if(!r)return n;for(var i=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*t<i&&(s=l,n-=u)}return r==="asc"?a.splice(0,o-s):a.splice(s,o-s),n}function OXe(e,t){return t&&e.sort(function(n,r){var a=t==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return a===0?t==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:a}),e}function NXe(e,t,n){for(var r=0,a=0,i=t.length;a<i;a++)r+=t[a].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],vI(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function BXe(e,t,n){for(var r=0,a=1/0,i=0,o=void 0,s=e.length;i<s;i++)o=e[i].getLayout().area,o&&(o<a&&(a=o),o>r&&(r=o));var l=e.area*e.area,u=t*t*n;return l?$g(u*r/l,l/(u*a)):1/0}function RF(e,t,n,r,a){var i=t===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=t?e.area/t:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],p={},v=c?h.getLayout().area/c:0,g=p[l[o]]=$g(c-2*r,0),m=n[s[i]]+n[l[i]]-u,_=f===d-1||m<v?m:v,b=p[l[i]]=$g(_-2*r,0);p[s[o]]=n[s[o]]+D1(r,g/2),p[s[i]]=u+D1(r,b/2),u+=_,h.setLayout(p,!0)}n[s[o]]+=c,n[l[o]]-=c}function FXe(e,t,n,r,a){var i=(t||{}).node,o=[r,a];if(!i||i===n)return o;for(var s,l=r*a,u=l*e.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var p=i.getValue();if(p===0)return o;u*=c/p;var v=s.getModel(),g=v.get(KX),m=Math.max(g,XX(v));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>QT&&(u=QT),i=s}u<l&&(u=l);var _=Math.pow(u/l,.5);return[r*_,a*_]}function VXe(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var a=n.node,i=a.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function qX(e,t,n,r,a){var i=e.getLayout(),o=n[a],s=o&&o===e;if(!(o&&!s||a===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Nt(t.x-i.x,t.y-i.y,t.width,t.height);vI(e.viewChildren||[],function(u){qX(u,l,n,r,a+1)})}}function XX(e){return e.get(IXe)?e.get(DXe):0}function zXe(e){e.registerSeriesModel(iXe),e.registerChartView(bXe),e.registerVisual(TXe),e.registerLayout(LXe),nXe(e)}function HXe(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),i=a.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){an(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function GXe(e){var t={};e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,t)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(o,c[f],d)}}),r.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){rt(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Be(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],r.getItemVisual(l,f[d]))}})})}function o0(e){return e instanceof Array||(e=[e,e]),e}function WXe(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=o0(t.get("edgeSymbol")),i=o0(t.get("edgeSymbolSize"));r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("style",t.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=n.getEdgeByIndex(o),u=o0(s.getShallow("symbol",!0)),c=o0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Be(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var jk="-->",$w=function(e){return e.get("autoCurveness")||null},ZX=function(e,t){var n=$w(e),r=20,a=[];if(an(n))r=n;else if(Ge(n)){e.__curvenessList=n;return}t>r&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},Rg=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(jk)},JX=function(e){var t=e.split(jk);return[t[0],t[2],t[1]].join(jk)},UXe=function(e,t){var n=Rg(e.node1,e.node2,t);return t.__edgeMap[n]},jXe=function(e,t){var n=Kk(Rg(e.node1,e.node2,t),t),r=Kk(Rg(e.node2,e.node1,t),t);return n+r},Kk=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function KXe(e){$w(e)&&(e.__curvenessList=[],e.__edgeMap={},ZX(e))}function YXe(e,t,n,r){if($w(n)){var a=Rg(e,t,n),i=n.__edgeMap,o=i[JX(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(r)}}function gI(e,t,n,r){var a=$w(t),i=Ge(a);if(!a)return null;var o=UXe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=jXe(e,t);ZX(t,u),e.lineStyle=e.lineStyle||{};var c=Rg(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=JX(c),p=Kk(h,t),v=f[s+p+d];return r?i?a&&a[0]===0?(p+d)%2?v:-v:((p%2?0:1)+d)%2?v:-v:(p+d)%2?v:-v:f[s+p+d]}function QX(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var n=e.getGraph();n.eachNode(function(r){var a=r.getModel();r.setLayout([+a.get("x"),+a.get("y")])}),mI(n,e)}}function mI(e,t){e.eachEdge(function(n,r){var a=to(n.getModel().get(["lineStyle","curveness"]),-gI(n,t,r,!0),0),i=Wo(n.node1.getLayout()),o=Wo(n.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),n.setLayout(s)})}function qXe(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var i=n.getData(),o=[];te(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}mI(i.graph,n)}else(!r||r==="none")&&QX(n)})}function Wp(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var n=e.option.nodeScaleRatio,r=t.scaleX,a=t.getZoom(),i=(a-1)*n+1;return i/r}function Up(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var OF=Math.PI,aC=[];function yI(e,t,n,r){var a=e.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=e.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(n){var d=a.pointToData(r),h=d[0],p=d[1],v=[h-l,p-u];lf(v,v),uv(v,v,c),n.setLayout([l+v[0],u+v[1]],!0);var g=e.get(["circular","rotateLabel"]);eZ(n,g,l,u)}XXe[t](e,s,o,c,l,u,f),s.eachEdge(function(m,_){var b=to(m.getModel().get(["lineStyle","curveness"]),gI(m,e,_),0),w=Wo(m.node1.getLayout()),S=Wo(m.node2.getLayout()),x,C=(w[0]+S[0])/2,T=(w[1]+S[1])/2;+b&&(b*=3,x=[l*b+C*(1-b),u*b+T*(1-b)]),m.setLayout([w,S,x])})}}}var XXe={value:function(e,t,n,r,a,i,o){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+a,r*Math.sin(s)+i]),s+=d})},symbolSize:function(e,t,n,r,a,i,o){var s=0;aC.length=o;var l=Wp(e);t.eachNode(function(f){var d=Up(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=OF/2),aC[f.dataIndex]=h,s+=h*2});var u=(2*OF-s)/o/2,c=0;t.eachNode(function(f){var d=u+aC[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function eZ(e,t,n,r){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Be(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function ZXe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&yI(t,"symbolSize")})}var Bf=qb;function JXe(e,t,n){for(var r=e,a=t,i=n.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=cu(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Wo(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,p,v;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){v=g},step:function(g){p&&p(r,a);for(var m=[],_=r.length,b=0;b<a.length;b++){var w=a[b];if(!w.ignoreForceLayout){var S=w.n1,x=w.n2;Cl(m,x.p,S.p);var C=fg(m)-w.d,T=x.w/(S.w+x.w);isNaN(T)&&(T=0),lf(m,m),!S.fixed&&Bf(S.p,S.p,m,T*C*h),!x.fixed&&Bf(x.p,x.p,m,-(1-T)*C*h)}}for(var b=0;b<_;b++){var k=r[b];k.fixed||(Cl(m,l,k.p),Bf(k.p,k.p,m,u*h))}for(var b=0;b<_;b++)for(var S=r[b],A=b+1;A<_;A++){var x=r[A];Cl(m,x.p,S.p);var C=fg(m);C===0&&(NU(m,Math.random()-.5,Math.random()-.5),C=1);var M=(S.rep+x.rep)/C/C;!S.fixed&&Bf(S.pp,S.pp,m,M),!x.fixed&&Bf(x.pp,x.pp,m,-M)}for(var I=[],b=0;b<_;b++){var k=r[b];k.fixed||(Cl(I,k.p,k.pp),Bf(k.p,k.p,I,h),Hr(k.pp,k.p))}h=h*.992;var E=h<.01;v&&v(r,a,E),g&&g(E)}}}function QXe(e){e.eachSeriesByType("graph",function(t){var n=t.coordinateSystem;if(!(n&&n.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(b){var w=i.getId(b);i.setItemLayout(b,r[w]||[NaN,NaN])}):!l||l==="none"?QX(t):l==="circular"&&yI(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Ge(f)?f:[f,f],p=Ge(d)?d:[d,d];p=[p[1],p[0]];var v=i.mapArray("value",function(b,w){var S=i.getItemLayout(w),x=dn(b,u,h);return isNaN(x)&&(x=(h[0]+h[1])/2),{w:x,rep:x,fixed:i.getItemModel(w).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),g=o.mapArray("value",function(b,w){var S=a.getEdgeByIndex(w),x=dn(b,c,p);isNaN(x)&&(x=(p[0]+p[1])/2);var C=S.getModel(),T=to(S.getModel().get(["lineStyle","curveness"]),-gI(S,t,w,!0),0);return{n1:v[S.node1.dataIndex],n2:v[S.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:C.get("ignoreForceLayout")}}),m=n.getBoundingRect(),_=JXe(v,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});_.beforeStep(function(b,w){for(var S=0,x=b.length;S<x;S++)b[S].fixed&&Hr(b[S].p,a.getNodeByIndex(S).getLayout())}),_.afterStep(function(b,w,S){for(var x=0,C=b.length;x<C;x++)b[x].fixed||a.getNodeByIndex(x).setLayout(b[x].p),r[i.getId(x)]=b[x].p;for(var x=0,C=w.length;x<C;x++){var T=w[x],k=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,I=k.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Hr(I[0],A),Hr(I[1],M),+T.curveness&&(I[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),k.setLayout(I)}}),t.forceLayout=_,t.preservedPoints=r,_.step()}else t.forceLayout=null})}function eZe(e,t,n){var r=Be(e.getBoxLayoutParams(),{aspect:n});return rr(r,{width:t.getWidth(),height:t.getHeight()})}function tZe(e,t){var n=[];return e.eachSeriesByType("graph",function(r){var a=r.get("coordinateSystem");if(!a||a==="view"){var i=r.getData(),o=i.mapArray(function(g){var m=i.getItemModel(g);return[+m.get("x"),+m.get("y")]}),s=[],l=[];ow(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=eZe(r,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,p=c.height,v=r.coordinateSystem=new Pm;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,h,p),v.setCenter(r.get("center"),t),v.setZoom(r.get("zoom")),n.push(v)}}),n}var NF=dr.prototype,iC=vm.prototype,tZ=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(tZ);function oC(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var nZe=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tZ},t.prototype.buildPath=function(n,r){oC(r)?NF.buildPath.call(this,n,r):iC.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return oC(this.shape)?NF.pointAt.call(this,n):iC.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=oC(r)?[r.x2-r.x1,r.y2-r.y1]:iC.tangentAt.call(this,n);return lf(a,a)},t}(Gt);const rZe=nZe;var sC=["fromSymbol","toSymbol"];function BF(e){return"_"+e+"Type"}function FF(e,t,n){var r=t.getItemVisual(n,e);if(!r||r==="none")return r;var a=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Eh(a),u=hf(o||0,l);return r+l+u+(i||"")+(s||"")}function VF(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r==="none")){var a=t.getItemVisual(n,e+"Size"),i=t.getItemVisual(n,e+"Rotate"),o=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Eh(a),u=hf(o||0,l),c=Xn(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function aZe(e){var t=new rZe({name:"line",subPixelOptimize:!0});return Yk(t.shape,e),t}function Yk(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var iZe=function(e){De(t,e);function t(n,r,a){var i=e.call(this)||this;return i._createLine(n,r,a),i}return t.prototype._createLine=function(n,r,a){var i=n.hostModel,o=n.getItemLayout(r),s=aZe(o);s.shape.percent=0,Ln(s,{shape:{percent:1}},i,r),this.add(s),te(sC,function(l){var u=VF(l,n,r);this.add(u),this[BF(l)]=FF(l,n,r)},this),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};Yk(l.shape,s),sn(o,l,i,r),te(sC,function(u){var c=FF(u,n,r),f=BF(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=VF(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||n.hasItemOption){var p=n.getItemModel(r),v=p.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),d=v.get("focus"),h=v.get("blurScope"),c=vr(p)}var g=n.getItemVisual(r,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,te(sC,function(x){var C=this.childOfName(x);if(C){C.setColor(m),C.style.opacity=g.opacity;for(var T=0;T<pa.length;T++){var k=pa[T],A=o.getState(k);if(A){var M=A.style||{},I=C.ensureState(k),E=I.style||(I.style={});M.stroke!=null&&(E[C.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(E.opacity=M.opacity)}}C.markRedraw()}},this);var _=i.getRawValue(r);Br(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(x,C){return i.getFormattedLabel(x,C,n.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(_==null?n.getName(r):isFinite(_)?Gn(_):_)+""});var b=this.getTextContent();if(b){var w=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=w.get("position")||"middle";var S=w.get("distance");Ge(S)||(S=[S,S]),b.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Un(this,d,h,f)},t.prototype.highlight=function(){Ns(this)},t.prototype.downplay=function(){Bs(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");Yk(r.shape,n),r.dirty()},t.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),a=n.childOfName("toSymbol"),i=n.getTextContent();if(!r&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Cl([],f,c);lf(d,d);function h(A,M){var I=A.__specifiedRotation;if(I==null){var E=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else A.attr("rotation",I)}if(r&&(r.setPosition(c),h(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,v=void 0,g=i.__labelDistance,m=g[0]*o,_=g[1]*o,b=u/2,w=l.tangentAt(b),S=[w[1],-w[0]],x=l.pointAt(b);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var C=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var k=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":k=-_,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":k=_,v="top";break;default:k=0,v="middle"}switch(i.__position){case"end":i.x=d[0]*m+f[0],i.y=d[1]*_+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*_+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*C+c[0],i.y=c[1]+k,p=w[0]<0?"right":"left",i.originX=-m*C,i.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+k,p="center",i.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*C+f[0],i.y=f[1]+k,p=w[0]>=0?"right":"left",i.originX=m*C,i.originY=-k;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||v,align:i.__align||p})}},t}(Tt);const bI=iZe;var oZe=function(){function e(t){this.group=new Tt,this._LineCtor=t||bI}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=t,i||a.removeAll();var o=zF(t);t.diff(i).add(function(s){n._doAdd(t,s,o)}).update(function(s,l){n._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,r){n.updateLayout(t,r)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=zF(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!sZe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=n.getItemLayout(a);if(lC(i)){var o=new this._LineCtor(n,a,this._seriesScope);o.traverse(r),this.group.add(o),n.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){du(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(lC(a)){var i=new this._LineCtor(t,n,r);t.setItemGraphicEl(n,i),this.group.add(i)}},e.prototype._doUpdate=function(t,n,r,a,i){var o=t.getItemGraphicEl(r);if(!lC(n.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(n,a,i):o=new this._LineCtor(n,a,i),n.setItemGraphicEl(a,o),this.group.add(o)},e}();function sZe(e){return e.animators&&e.animators.length>0}function zF(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:vr(t)}}function HF(e){return isNaN(e[0])||isNaN(e[1])}function lC(e){return e&&!HF(e[0])&&!HF(e[1])}const _I=oZe;var uC=[],cC=[],fC=[],Ff=_r,dC=Ol,GF=Math.abs;function WF(e,t,n){for(var r=e[0],a=e[1],i=e[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){uC[0]=Ff(r[0],a[0],i[0],c),uC[1]=Ff(r[1],a[1],i[1],c);var f=GF(dC(uC,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;cC[0]=Ff(r[0],a[0],i[0],s),cC[1]=Ff(r[1],a[1],i[1],s),fC[0]=Ff(r[0],a[0],i[0],h),fC[1]=Ff(r[1],a[1],i[1],h);var f=dC(cC,t)-l;if(GF(f)<.01)break;var p=dC(fC,t)-l;u/=2,f<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function hC(e,t){var n=[],r=dg,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Wo(u[0]),Wo(u[1])],u[2]&&u.__original.push(Wo(u[2])));var d=u.__original;if(u[2]!=null){if(Hr(a[0],d[0]),Hr(a[1],d[2]),Hr(a[2],d[1]),c&&c!=="none"){var h=Up(s.node1),p=WF(a,d[0],h*t);r(a[0][0],a[1][0],a[2][0],p,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],p,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=Up(s.node2),p=WF(a,d[1],h*t);r(a[0][0],a[1][0],a[2][0],p,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],p,n),a[1][1]=n[1],a[2][1]=n[2]}Hr(u[0],a[0]),Hr(u[1],a[2]),Hr(u[2],a[1])}else{if(Hr(i[0],d[0]),Hr(i[1],d[1]),Cl(o,i[1],i[0]),lf(o,o),c&&c!=="none"){var h=Up(s.node1);qb(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=Up(s.node2);qb(i[1],i[1],o,-h*t)}Hr(u[0],i[0]),Hr(u[1],i[1])}})}function UF(e){return e.type==="view"}var lZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new xm,i=new _I,o=this.group;this._controller=new Mm(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(UF(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):sn(u,c,n)}hC(n.getGraph(),Wp(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,p=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=n.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,S=b.getGraphicEl(),x=b.getModel();if(S){S.off("drag").off("dragend");var C=x.get("draggable");C&&S.on("drag",function(k){switch(v){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(w),f.setItemLayout(w,[S.x,S.y]);break;case"circular":f.setItemLayout(w,[S.x,S.y]),b.setLayout({fixed:!0},!0),yI(n,"symbolSize",b,[k.offsetX,k.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(w,[S.x,S.y]),mI(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),S.setDraggable(C,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(kt(S).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),S=b.getModel().get(["emphasis","focus"]);w&&S==="adjacency"&&(kt(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),_=f.getLayout("cy");f.graph.eachNode(function(b){eZ(b,g,m,_)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},t.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!Iw(u,a,n)}),!UF(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){sI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){lI(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),hC(n.getGraph(),Wp(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Wp(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){hC(n.getGraph(),Wp(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(bn);const uZe=lZe;function Vf(e){return"_EC_"+e}var cZe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,n){t=t==null?""+n:""+t;var r=this._nodesMap;if(!r[Vf(t)]){var a=new Ju(t,n);return a.hostGraph=this,this.nodes.push(a),r[Vf(t)]=a,a}},e.prototype.getNodeByIndex=function(t){var n=this.data.getRawIndex(t);return this.nodes[n]},e.prototype.getNodeById=function(t){return this._nodesMap[Vf(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(an(t)&&(t=this.nodes[t]),an(n)&&(n=this.nodes[n]),t instanceof Ju||(t=a[Vf(t)]),n instanceof Ju||(n=a[Vf(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new nZ(t,n,r);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),n.inEdges.push(s)),t.edges.push(s),t!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var n=this.edgeData.getRawIndex(t);return this.edges[n]},e.prototype.getEdge=function(t,n){t instanceof Ju&&(t=t.id),n instanceof Ju&&(n=n.id);var r=this._edgesMap;return this._directed?r[t+"-"+n]:r[t+"-"+n]||r[n+"-"+t]},e.prototype.eachNode=function(t,n){for(var r=this.nodes,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&t.call(n,r[i],i)},e.prototype.eachEdge=function(t,n){for(var r=this.edges,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&t.call(n,r[i],i)},e.prototype.breadthFirstTraverse=function(t,n,r,a){if(n instanceof Ju||(n=this._nodesMap[Vf(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(a,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(a,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,n=this.edgeData,r=this.nodes,a=this.edges,i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i;n.filterSelf(function(s){var l=a[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=n.count();i<o;i++)a[n.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,a=0;a<n.length;a++)t.addNode(n[a].id,n[a].dataIndex);for(var a=0;a<r.length;a++){var i=r[a];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},e}(),Ju=function(){function e(t,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=n??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=ut(),n=ut(),r=0;r<this.edges.length;r++){var a=this.edges[r];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:n.keys()}},e}(),nZ=function(){function e(t,n,r){this.dataIndex=-1,this.node1=t,this.node2=n,this.dataIndex=r??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=ut(),n=ut();t.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],i=0;i<r.length;){var o=r[i];i++,n.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:n.keys()}},e}();function rZ(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Yn(Ju,rZ("hostGraph","data"));Yn(nZ,rZ("hostGraph","edgeData"));const fZe=cZe;function aZ(e,t,n,r,a){for(var i=new fZe(r),o=0;o<e.length;o++)i.addNode(fr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(fr(ar(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=ls(e,n);else{var v=Ah.get(h),g=v?v.dimensions||[]:[];Ft(g,"value")<0&&g.concat(["value"]);var m=Ih(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;p=new Kr(m,n),p.initData(e)}var _=new Kr(["value"],n);return _.initData(l,s),a&&a(p,_),FX({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var dZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new Am(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(n){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Kc(n,"edgeLabel",["show"])},t.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){KXe(this);var s=aZ(i,a,this,!0,l);return te(s.edges,function(u){YXe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),m=v[g];return m&&(m.parentModel=p.parentModel,p.parentModel=m),p});var f=mn.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),gr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=bY({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=We(this.option.categories||[],function(a){return a.value!=null?a:Be({value:0},a)}),r=new Kr(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Pn);const hZe=dZe;var pZe={type:"graphRoam",event:"graphRoam",update:"none"};function vZe(e){e.registerChartView(uZe),e.registerSeriesModel(hZe),e.registerProcessor(HXe),e.registerVisual(GXe),e.registerVisual(WXe),e.registerLayout(qXe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,ZXe),e.registerLayout(QXe),e.registerCoordinateSystem("graphView",{dimensions:Pm.dimensions,create:tZe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},jn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},jn),e.registerAction(pZe,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=cI(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var gZe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),mZe=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new gZe},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(Gt);const yZe=mZe;function bZe(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=Qe(n[0],t.getWidth()),s=Qe(n[1],t.getHeight()),l=Qe(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function s0(e,t){var n=e==null?"":e+"";return t&&(rt(t)?n=t.replace("{value}",n):ht(t)&&(n=t(e))),n}var _Ze=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=bZe(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),h=d?A1:va,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),m=[u,c];eE(m,!l),u=m[0],c=m[1];for(var _=c-u,b=u,w=[],S=0;p&&S<i.length;S++){var x=Math.min(Math.max(i[S][0],0),1);c=u+_*x;var C=new h({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});C.setStyle({fill:i[S][1]}),C.setStyle(v.getLineStyle(["color","width"])),w.push(C),b=c}w.reverse(),te(w,function(k){return s.add(k)});var T=function(k){if(k<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=k&&(A===0?0:i[A-1][0])<k)return i[A][1];return i[A-1][1]};this._renderTicks(n,r,a,T,o,u,c,l,g),this._renderTitleAndDetail(n,r,a,T,o),this._renderAnchor(n,o),this._renderPointer(n,r,a,T,o,u,c,l,g)},t.prototype._renderTicks=function(n,r,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,p=o.r,v=+n.get("min"),g=+n.get("max"),m=n.getModel("splitLine"),_=n.getModel("axisTick"),b=n.getModel("axisLabel"),w=n.get("splitNumber"),S=_.get("splitNumber"),x=Qe(m.get("length"),p),C=Qe(_.get("length"),p),T=s,k=(l-s)/w,A=k/S,M=m.getModel("lineStyle").getLineStyle(),I=_.getModel("lineStyle").getLineStyle(),E=m.get("distance"),L,N,$=0;$<=w;$++){if(L=Math.cos(T),N=Math.sin(T),m.get("show")){var P=E?E+c:c,R=new dr({shape:{x1:L*(p-P)+d,y1:N*(p-P)+h,x2:L*(p-x-P)+d,y2:N*(p-x-P)+h},style:M,silent:!0});M.stroke==="auto"&&R.setStyle({stroke:i($/w)}),f.add(R)}if(b.get("show")){var P=b.get("distance")+E,D=s0(Gn($/w*(g-v)+v),b.get("formatter")),B=i($/w),H=L*(p-x-P)+d,G=N*(p-x-P)+h,X=b.get("rotate"),ue=0;X==="radial"?(ue=-T+2*Math.PI,ue>Math.PI/2&&(ue+=Math.PI)):X==="tangential"?ue=-T-Math.PI/2:an(X)&&(ue=X*Math.PI/180),ue===0?f.add(new en({style:Cn(b,{text:D,x:H,y:G,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:B}),silent:!0})):f.add(new en({style:Cn(b,{text:D,x:H,y:G,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:H,originY:G,rotation:ue}))}if(_.get("show")&&$!==w){var P=_.get("distance");P=P?P+c:c;for(var ie=0;ie<=S;ie++){L=Math.cos(T),N=Math.sin(T);var le=new dr({shape:{x1:L*(p-P)+d,y1:N*(p-P)+h,x2:L*(p-C-P)+d,y2:N*(p-C-P)+h},silent:!0,style:I});I.stroke==="auto"&&le.setStyle({stroke:i(($+ie/S)/w)}),f.add(le),T+=A}T-=A}else T+=k}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=n.get(["pointer","show"]),g=n.getModel("progress"),m=g.get("show"),_=n.getData(),b=_.mapDimension("value"),w=+n.get("min"),S=+n.get("max"),x=[w,S],C=[s,l];function T(A,M){var I=_.getItemModel(A),E=I.getModel("pointer"),L=Qe(E.get("width"),o.r),N=Qe(E.get("length"),o.r),$=n.get(["pointer","icon"]),P=E.get("offsetCenter"),R=Qe(P[0],o.r),D=Qe(P[1],o.r),B=E.get("keepAspect"),H;return $?H=Xn($,R-L/2,D-N,L,N,null,B):H=new yZe({shape:{angle:-Math.PI/2,width:L,r:N,x:R,y:D}}),H.rotation=-(M+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function k(A,M){var I=g.get("roundCap"),E=I?A1:va,L=g.get("overlap"),N=L?g.get("width"):c/_.count(),$=L?o.r-N:o.r-(A+1)*N,P=L?o.r:o.r-A*N,R=new E({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:$,r:P}});return L&&(R.z2=S-_.get(b,A)%S),R}(m||v)&&(_.diff(d).add(function(A){var M=_.get(b,A);if(v){var I=T(A,s);Ln(I,{rotation:-((isNaN(+M)?C[0]:dn(M,x,C,!0))+Math.PI/2)},n),f.add(I),_.setItemGraphicEl(A,I)}if(m){var E=k(A,s),L=g.get("clip");Ln(E,{shape:{endAngle:dn(M,x,C,L)}},n),f.add(E),ik(n.seriesIndex,_.dataType,A,E),p[A]=E}}).update(function(A,M){var I=_.get(b,A);if(v){var E=d.getItemGraphicEl(M),L=E?E.rotation:s,N=T(A,L);N.rotation=L,sn(N,{rotation:-((isNaN(+I)?C[0]:dn(I,x,C,!0))+Math.PI/2)},n),f.add(N),_.setItemGraphicEl(A,N)}if(m){var $=h[M],P=$?$.shape.endAngle:s,R=k(A,P),D=g.get("clip");sn(R,{shape:{endAngle:dn(I,x,C,D)}},n),f.add(R),ik(n.seriesIndex,_.dataType,A,R),p[A]=R}}).execute(),_.each(function(A){var M=_.getItemModel(A),I=M.getModel("emphasis"),E=I.get("focus"),L=I.get("blurScope"),N=I.get("disabled");if(v){var $=_.getItemGraphicEl(A),P=_.getItemVisual(A,"style"),R=P.fill;if($ instanceof Ar){var D=$.style;$.useStyle(Be({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},P))}else $.useStyle(P),$.type!=="pointer"&&$.setColor(R);$.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),$.style.fill==="auto"&&$.setStyle("fill",i(dn(_.get(b,A),x,[0,1],!0))),$.z2EmphasisLift=0,Nr($,M),Un($,E,L,N)}if(m){var B=p[A];B.useStyle(_.getItemVisual(A,"style")),B.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,Nr(B,M),Un(B,E,L,N)}}),this._progressEls=p)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Xn(s,r.cx-o/2+Qe(l[0],r.r),r.cy-o/2+Qe(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new Tt,h=[],p=[],v=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new en({silent:!0}),p[m]=new en({silent:!0})}).update(function(m,_){h[m]=s._titleEls[_],p[m]=s._detailEls[_]}).execute(),l.each(function(m){var _=l.getItemModel(m),b=l.get(u,m),w=new Tt,S=i(dn(b,[c,f],[0,1],!0)),x=_.getModel("title");if(x.get("show")){var C=x.get("offsetCenter"),T=o.cx+Qe(C[0],o.r),k=o.cy+Qe(C[1],o.r),A=h[m];A.attr({z2:g?0:2,style:Cn(x,{x:T,y:k,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:S})}),w.add(A)}var M=_.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),E=o.cx+Qe(I[0],o.r),L=o.cy+Qe(I[1],o.r),N=Qe(M.get("width"),o.r),$=Qe(M.get("height"),o.r),P=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:S,A=p[m],R=M.get("formatter");A.attr({z2:g?0:2,style:Cn(M,{x:E,y:L,text:s0(b,R),width:isNaN(N)?null:N,height:isNaN($)?null:$,align:"center",verticalAlign:"middle"},{inheritColor:P})}),CK(A,{normal:M},b,function(B){return s0(B,R)}),v&&TK(A,m,l,n,{getFormattedLabel:function(B,H,G,X,ue,ie){return s0(ie?ie.interpolatedValue:b,R)}}),w.add(A)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=p},t.type="gauge",t}(bn);const wZe=_Ze;var SZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return $h(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Pn);const xZe=SZe;function CZe(e){e.registerChartView(wZe),e.registerSeriesModel(xZe)}var TZe=["itemStyle","opacity"],kZe=function(e){De(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new ba,s=new en;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(TZe);c=c??1,a||ho(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Ln(i,{style:{opacity:c}},o,r)):sn(i,{style:{opacity:c},shape:{points:l.points}},o,r),Nr(i,s),this._updateLabel(n,r),Un(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Br(o,vr(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Ot(h[0][0],h[0][1]):null},sn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),ZE(a,JE(l),{stroke:d})},t}(ga),AZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new kZe(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);wg(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(bn);const MZe=AZe;var PZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Am(it(this.getData,this),it(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return $h(this,{coordDimensions:["value"],encodeDefaulter:Pt(xE,this)})},t.prototype._defaultLabelLine=function(n){Kc(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Pn);const EZe=PZe;function IZe(e,t){return rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DZe(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ht(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function LZe(e){var t=e.hostModel,n=t.get("orient");e.each(function(r){var a=e.getItemModel(r),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=e.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,p;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),p=[[d,h],[d,h]];else{var v=void 0,g=void 0,m=void 0,_=void 0,b=s.get("length");o==="left"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=v-b,d=m-5,f="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=v+b,d=m+5,f="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,_=g-b,h=_-5,f="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,_=g+b,h=_+5,f="center"):o==="rightTop"?(v=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(_=g-b,h=_-5,f="center"):(m=v+b,d=m+5,f="top")):o==="rightBottom"?(v=u[2][0],g=u[2][1],n==="horizontal"?(_=g+b,h=_+5,f="center"):(m=v+b,d=m+5,f="bottom")):o==="leftTop"?(v=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(_=g-b,h=_-5,f="center"):(m=v-b,d=m-5,f="right")):o==="leftBottom"?(v=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(_=g+b,h=_+5,f="center"):(m=v-b,d=m-5,f="right")):(v=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(_=g+b,h=_+5,f="center"):(m=v+b,d=m+5,f="left")),n==="horizontal"?(m=v,d=m):(_=g,h=_),p=[[v,g],[m,_]]}l.label={linePoints:p,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function $Ze(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=IZe(n,t),s=n.get("orient"),l=o.width,u=o.height,c=DZe(r,i),f=o.x,d=o.y,h=s==="horizontal"?[Qe(n.get("minSize"),u),Qe(n.get("maxSize"),u)]:[Qe(n.get("minSize"),l),Qe(n.get("maxSize"),l)],p=r.getDataExtent(a),v=n.get("min"),g=n.get("max");v==null&&(v=Math.min(p[0],0)),g==null&&(g=p[1]);var m=n.get("funnelAlign"),_=n.get("gap"),b=s==="horizontal"?l:u,w=(b-_*(r.count()-1))/r.count(),S=function(L,N){if(s==="horizontal"){var $=r.get(a,L)||0,P=dn($,[v,g],h,!0),R=void 0;switch(m){case"top":R=d;break;case"center":R=d+(u-P)/2;break;case"bottom":R=d+(u-P);break}return[[N,R],[N,R+P]]}var D=r.get(a,L)||0,B=dn(D,[v,g],h,!0),H;switch(m){case"left":H=f;break;case"center":H=f+(l-B)/2;break;case"right":H=f+l-B;break}return[[H,N],[H+B,N]]};i==="ascending"&&(w=-w,_=-_,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var x=0;x<c.length;x++){var C=c[x],T=c[x+1],k=r.getItemModel(C);if(s==="horizontal"){var A=k.get(["itemStyle","width"]);A==null?A=w:(A=Qe(A,l),i==="ascending"&&(A=-A));var M=S(C,f),I=S(T,f+A);f+=A+_,r.setItemLayout(C,{points:M.concat(I.slice().reverse())})}else{var E=k.get(["itemStyle","height"]);E==null?E=w:(E=Qe(E,u),i==="ascending"&&(E=-E));var M=S(C,d),I=S(T,d+E);d+=E+_,r.setItemLayout(C,{points:M.concat(I.slice().reverse())})}}LZe(r)})}function RZe(e){e.registerChartView(MZe),e.registerSeriesModel(EZe),e.registerLayout($Ze),e.registerProcessor(km("funnel"))}var OZe=.3,NZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Tt,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=KF(n);s.diff(l).add(d).update(h).remove(p).execute();function d(g){var m=jF(s,o,g,c,u);pC(m,s,g,f)}function h(g,m){var _=l.getItemGraphicEl(m),b=iZ(s,g,c,u);s.setItemGraphicEl(g,_),sn(_,{shape:{points:b}},n,g),ho(_),pC(_,s,g,f)}function p(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var v=BZe(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}this._data=s},t.prototype.incrementalPrepareRender=function(n,r,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(n,r,a){for(var i=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=KF(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=jF(i,this._dataGroup,c,s,o);f.incremental=!0,pC(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(bn);function BZe(e,t,n){var r=e.model,a=e.getRect(),i=new tn({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Ln(i,{shape:{width:a.width,height:a.height}},t,n),i}function iZ(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=e.get(e.mapDimension(o),t);FZe(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function jF(e,t,n,r,a){var i=iZ(e,n,r,a),o=new ba({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function KF(e){var t=e.get("smooth",!0);return t===!0&&(t=OZe),t=Qo(t),qd(t)&&(t=0),{smooth:t}}function pC(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var a=t.getItemModel(n),i=a.getModel("emphasis");Nr(e,a,"lineStyle"),Un(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function FZe(e,t){return t==="category"?e==null:e==null||isNaN(e)}const VZe=NZe;var zZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.getInitialData=function(n,r){return ls(null,this,{useEncodeDefaulter:it(HZe,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),i=[];return r.eachActiveState(a,function(o,s){n===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Pn);function HZe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return te(t.dimensions,function(r){var a=GZe(r);n[r]=a}),n}}function GZe(e){return+e.replace("dim","")}const WZe=zZe;var UZe=["lineStyle","opacity"],jZe={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(a,i){n.eachActiveState(i,function(o,s){var l=r[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(UZe,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const KZe=jZe;function YZe(e){qZe(e),XZe(e)}function qZe(e){if(!e.parallel){var t=!1;te(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function XZe(e){var t=yn(e.parallelAxis);te(t,function(n){if(bt(n)){var r=n.parallelIndex||0,a=yn(e.parallel)[r];a&&a.parallelAxisDefault&&Rt(n,a.parallelAxisDefault,!1)}})}var ZZe=5,JZe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},te(QZe,function(i,o){a.getZr().on(o,this._handlers[o]=it(i,this))},this)),Ph(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){Tg(this,"_throttledDispatchExpand"),te(this._handlers,function(a,i){r.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Be({type:"parallelAxisExpand"},n))},t.type="parallel",t}(On),QZe={mousedown:function(e){vC(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(vC(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>ZZe)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!vC(this,"mousemove"))){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function vC(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const eJe=JZe;var tJe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Rt(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){te(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=hn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);te(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Xt);const nJe=tJe;var rJe=function(e){De(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Li);const aJe=rJe;function gf(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=zf(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=zf(s,[0,o]),a=i=zf(s,[a,i]),r=0}t[0]=zf(t[0],n),t[1]=zf(t[1],n);var l=gC(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=zf(t[r],c);var f;return f=gC(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=gC(t,r),i!=null&&f.span>i&&(t[1-r]=t[r]+f.sign*i),t}function gC(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function zf(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var mC=te,oZ=Math.min,sZ=Math.max,YF=Math.floor,iJe=Math.ceil,qF=Gn,oJe=Math.PI,sJe=function(){function e(t,n,r){this.type="parallel",this._axesMap=ut(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;mC(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new aJe(o,wm(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,n){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=t[1-i],s=t[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,n){n.eachSeries(function(r){if(t.contains(r,n)){var a=r.getData();mC(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Jc(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=rr(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=l0(t.get("axisExpandWidth"),l),f=l0(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),p;if(h)p=l0(h[1]-h[0],l),h[1]=h[0]+p;else{p=l0(c*(f-1),l);var v=t.get("axisExpandCenter")||YF(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var m=[YF(qF(h[0]/c,1))+1,iJe(qF(h[1]/c,1))-1],_=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:m,axisExpandWindow0Pos:_}},e.prototype._layoutAxes=function(){var t=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),mC(r,function(o,s){var l=(a.axisExpandable?uJe:lJe)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:oJe/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=Ia();fu(h,h,d),co(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];te(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,p=o.length;h<p;h++){var v=l[h].getActiveState(d[h]);if(v==="inactive"){f="inactive";break}}}n(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,a=0,i=t.length;a<i;a++)n.get(t[a]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return ao([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return _t(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?gf(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[sZ(0,p-h/2)],a[1]=oZ(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function l0(e,t){return oZ(sZ(e,t[0]),t[1])}function lJe(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function uJe(e,t){var n=t.layoutLength,r=t.axisExpandWidth,a=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,c;return e<o[0]?(s=e*i,c=i):e<=o[1]?(s=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],l=r,u=!0):(s=n-(a-1-e)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const cJe=sJe;function fJe(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var i=new cJe(r,e,t);i.name="parallel_"+a,i.resize(r,t),r.coordinateSystem=i,i.model=r,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",Qn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var dJe={create:fJe};const hJe=dJe;var lZ=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return qc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=_t(n);if(r)for(var a=r.length-1;a>=0;a--)Ga(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;i<o;i++)if(r[i][0]<=n&&n<=r[i][1])return"active";return"inactive"},t}(Xt);Yn(lZ,Lh);const XF=lZ;var Qc=!0,Og=Math.min,nh=Math.max,pJe=Math.pow,vJe=1e4,gJe=6,mJe=6,ZF="globalPan",yJe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bJe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},JF={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},_Je=0,wJe=function(e){De(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new Tt,r._uid="brushController_"+_Je++,te(MJe,function(a,i){this._handlers[i]=it(a,this)},r),r}return t.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},t.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||IYe(r,ZF,this._uid),te(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=Rt(_t(JF),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;DYe(n,ZF,this._uid),te(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};te(n,function(a){r[a.panelId]=_t(a)})}else this._panels=null;return this},t.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(n){n=We(n,function(d){return Rt(_t(JF),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Fs(a,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:r+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var p=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var v=i[d]=h!=null?(a[h].__brushOption=p,a[h]):cZ(o,uZ(o,p));wI(o,v)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),qk(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Ei);function uZ(e,t){var n=Rw[t.brushType].createCover(e,t);return n.__brushOption=t,dZ(n,t),e.group.add(n),n}function cZ(e,t){var n=SI(t);return n.endCreating&&(n.endCreating(e,t),dZ(t,t.__brushOption)),t}function fZ(e,t){var n=t.__brushOption;SI(t).updateCoverShape(e,t,n.range,n)}function dZ(e,t){var n=t.z;n==null&&(n=vJe),e.traverse(function(r){r.z=n,r.z2=n})}function wI(e,t){SI(t).updateCommon(e,t),fZ(e,t)}function SI(e){return Rw[e.__brushOption.brushType]}function xI(e,t,n){var r=e._panels;if(!r)return Qc;var a,i=e._transform;return te(r,function(o){o.isTargetByCursor(t,n,i)&&(a=o)}),a}function hZ(e,t){var n=e._panels;if(!n)return Qc;var r=t.__brushOption.panelId;return r!=null?n[r]:Qc}function qk(e){var t=e._covers,n=t.length;return te(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function ef(e,t){var n=We(e._covers,function(r){var a=r.__brushOption,i=_t(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function SJe(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],a=n[0]-r[0],i=n[1]-r[1],o=pJe(a*a+i*i,.5);return o>gJe}function pZ(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function vZ(e,t,n,r){var a=new Tt;return a.add(new tn({name:"main",style:CI(n),silent:!0,draggable:!0,cursor:"move",drift:Pt(QF,e,t,a,["n","s","w","e"]),ondragend:Pt(ef,t,{isEnd:!0})})),te(r,function(i){a.add(new tn({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Pt(QF,e,t,a,i),ondragend:Pt(ef,t,{isEnd:!0})}))}),a}function gZ(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=nh(a,mJe),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,p=c-o,v=f-s,g=p+a,m=v+a;hs(e,t,"main",o,s,p,v),r.transformable&&(hs(e,t,"w",l,u,i,m),hs(e,t,"e",d,u,i,m),hs(e,t,"n",l,u,g,i),hs(e,t,"s",l,h,g,i),hs(e,t,"nw",l,u,i,i),hs(e,t,"ne",d,u,i,i),hs(e,t,"sw",l,h,i,i),hs(e,t,"se",d,h,i,i))}function Xk(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(CI(n)),a.attr({silent:!r,cursor:r?"move":"default"}),te([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Zk(e,i[0]):CJe(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?bJe[s]+"-resize":null})})}function hs(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(kJe(TI(e,t,[[r,a],[r+i,a+o]])))}function CI(e){return mt({strokeNoScale:!0},e.brushStyle)}function mZ(e,t,n,r){var a=[Og(e,n),Og(t,r)],i=[nh(e,n),nh(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function xJe(e){return Fl(e.group)}function Zk(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=hw(n[t],xJe(e));return r[a]}function CJe(e,t){var n=[Zk(e,t[0]),Zk(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function QF(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=yZ(t,a,i);te(r,function(u){var c=yJe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(mZ(s[0][0],s[1][0],s[0][1],s[1][1])),wI(t,n),ef(t,{isEnd:!1})}function TJe(e,t,n,r){var a=t.__brushOption.range,i=yZ(e,n,r);te(a,function(o){o[0]+=i[0],o[1]+=i[1]}),wI(e,t),ef(e,{isEnd:!1})}function yZ(e,t,n){var r=e.group,a=r.transformCoordToLocal(t,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function TI(e,t,n){var r=hZ(e,t);return r&&r!==Qc?r.clipPath(n,e._transform):_t(n)}function kJe(e){var t=Og(e[0][0],e[1][0]),n=Og(e[0][1],e[1][1]),r=nh(e[0][0],e[1][0]),a=nh(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function AJe(e,t,n){if(!(!e._brushType||PJe(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=xI(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Qc||s.panelId===i.panelId)&&Rw[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function Jk(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Qk(e,t,n){return e.childOfName("main").contain(t,n)}function bZ(e,t,n,r){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),SJe(e)||a){if(i&&!a){o.brushMode==="single"&&qk(e);var l=_t(o);l.brushType=e8(l.brushType,i),l.panelId=i===Qc?null:i.panelId,a=e._creatingCover=uZ(e,l),e._covers.push(a)}if(a){var u=Rw[e8(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(TI(e,a,e._track)),r&&(cZ(e,a),u.updateCommon(e,a)),fZ(e,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&xI(e,t,n)&&qk(e)&&(s={isEnd:r,removeOnClick:!0});return s}function e8(e,t){return e==="auto"?t.defaultBrushType:e}var MJe={mousedown:function(e){if(this._dragging)t8(this,e);else if(!e.target||!e.target.draggable){Jk(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=xI(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(AJe(this,e,r),this._dragging){Jk(e);var a=bZ(this,e,r,!1);a&&ef(this,a)}},mouseup:function(e){t8(this,e)}};function t8(e,t){if(e._dragging){Jk(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),i=bZ(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&ef(e,i)}}function PJe(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Rw={lineX:n8(0),lineY:n8(1),rect:{createCover:function(e,t){function n(r){return r}return vZ({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=pZ(e);return mZ(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){gZ(e,t,n,r)},updateCommon:Xk,contain:Qk},polygon:{createCover:function(e,t){var n=new Tt;return n.add(new ba({name:"main",style:CI(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ga({name:"main",draggable:!0,drift:Pt(TJe,e,t),ondragend:Pt(ef,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:TI(e,t,n)})},updateCommon:Xk,contain:Qk}};function n8(e){return{createCover:function(t,n){return vZ({toRectRange:function(r){var a=[r,[0,100]];return e&&a.reverse(),a},fromRectRange:function(r){return r[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=pZ(t),r=Og(n[0][e],n[1][e]),a=nh(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=hZ(t,n);if(o!==Qc&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(e);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,i];e&&l.reverse(),gZ(t,n,l,a)},updateCommon:Xk,contain:Qk}}const kI=wJe;function _Z(e){return e=AI(e),function(t){return fE(t,e)}}function wZ(e,t){return e=AI(e),function(n){var r=t??n,a=r?e.width:e.height,i=r?e.x:e.y;return[i,i+(a||0)]}}function SZ(e,t,n){var r=AI(e);return function(a,i){return r.contain(i[0],i[1])&&!Iw(a,t,n)}}function AI(e){return Nt.create(e)}var EJe=["axisLine","axisTickLabel","axisName"],IJe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new kI(r.getZr())).on("brush",it(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!DJe(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Tt,this.group.add(this._axisGroup),!!n.get("show")){var s=$Je(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Be({strokeContainThreshold:c},d),p=new zs(n,h);te(EJe,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,n,s,c,a),mm(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Nt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:_Z(f),isTargetByCursor:SZ(f,s,i),getLinearBrushOtherExtent:wZ(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(LJe(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=We(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(On);function DJe(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function LJe(e){var t=e.axis;return We(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function $Je(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const RJe=IJe;var OJe={type:"axisAreaSelect",event:"axisAreaSelected"};function NJe(e){e.registerAction(OJe,function(t,n){n.eachComponent({mainType:"parallelAxis",query:t},function(r){r.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,n){n.eachComponent({mainType:"parallel",query:t},function(r){r.setAxisExpand(t)})})}var BJe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function xZ(e){e.registerComponentView(eJe),e.registerComponentModel(nJe),e.registerCoordinateSystem("parallel",hJe),e.registerPreprocessor(YZe),e.registerComponentModel(XF),e.registerComponentView(RJe),th(e,"parallel",XF,BJe),NJe(e)}function FJe(e){zt(xZ),e.registerChartView(VZe),e.registerSeriesModel(WZe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,KZe)}var VJe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),zJe=function(e){De(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new VJe},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){Ns(this)},t.prototype.downplay=function(){Bs(this)},t}(Gt),HJe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new zJe,g=kt(v);g.dataIndex=p.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=p.getModel(),_=m.getModel("lineStyle"),b=_.get("curveness"),w=p.node1.getLayout(),S=p.node1.getModel(),x=S.get("localX"),C=S.get("localY"),T=p.node2.getLayout(),k=p.node2.getModel(),A=k.get("localX"),M=k.get("localY"),I=p.getLayout(),E,L,N,$,P,R,D,B;v.shape.extent=Math.max(1,I.dy),v.shape.orient=h,h==="vertical"?(E=(x!=null?x*u:w.x)+I.sy,L=(C!=null?C*c:w.y)+w.dy,N=(A!=null?A*u:T.x)+I.ty,$=M!=null?M*c:T.y,P=E,R=L*(1-b)+$*b,D=N,B=L*b+$*(1-b)):(E=(x!=null?x*u:w.x)+w.dx,L=(C!=null?C*c:w.y)+I.sy,N=A!=null?A*u:T.x,$=(M!=null?M*c:T.y)+I.ty,P=E*(1-b)+N*b,R=L,D=E*b+N*(1-b),B=$),v.setShape({x1:E,y1:L,x2:N,y2:$,cpx1:P,cpy1:R,cpx2:D,cpy2:B}),v.useStyle(_.getItemStyle()),r8(v.style,h,p);var H=""+m.get("value"),G=vr(m,"edgeLabel");Br(v,G,{labelFetcher:{getFormattedLabel:function(ie,le,Q,J,se,he){return n.getFormattedLabel(ie,le,"edge",J,to(se,G.normal&&G.normal.get("formatter"),H),he)}},labelDataIndex:p.dataIndex,defaultText:H}),v.setTextConfig({position:"inside"});var X=m.getModel("emphasis");Nr(v,m,"lineStyle",function(ie){var le=ie.getItemStyle();return r8(le,h,p),le}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var ue=X.get("focus");Un(v,ue==="adjacency"?p.getAdjacentDataIndices():ue==="trajectory"?p.getTrajectoryDataIndices():ue,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),m=g.get("localX"),_=g.get("localY"),b=g.getModel("emphasis"),w=g.get(["itemStyle","borderRadius"])||0,S=new tn({shape:{x:m!=null?m*u:v.x,y:_!=null?_*c:v.y,width:v.dx,height:v.dy,r:w},style:g.getModel("itemStyle").getItemStyle(),z2:10});Br(S,vr(g),{labelFetcher:{getFormattedLabel:function(C,T){return n.getFormattedLabel(C,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Nr(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),kt(S).dataType="node";var x=b.get("focus");Un(S,x==="adjacency"?p.getAdjacentDataIndices():x==="trajectory"?p.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(m,_){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=_,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(GJe(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(bn);function r8(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");rt(r)&&rt(a)&&(e.fill=new ts(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function GJe(e,t,n){var r=new tn({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ln(r,{shape:{width:e.width+20}},t,n),r}const WJe=HJe;var UJe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new mn(o[l],this,r));if(i&&a){var u=aZ(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var m=g.depth,_=v.levelModels[m];_&&(h.parentModel=_)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),m=g.node1.getLayout();if(m){var _=m.depth,b=v.levelModels[_];b&&(h.parentModel=b)}return h})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return gr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return gr("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Pn);const jJe=UJe;function KJe(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=YJe(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;XJe(u);var f=hn(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),p=n.get("nodeAlign");qJe(u,c,r,a,o,s,d,h,p)})}function YJe(e,t){return rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function qJe(e,t,n,r,a,i,o,s,l){ZJe(e,t,n,a,i,s,l),tQe(e,t,i,a,r,o,s),cQe(e,s)}function XJe(e){te(e,function(t){var n=Hl(t.outEdges,L1),r=Hl(t.inEdges,L1),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function ZJe(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var p=0;p<u.length;p++){var v=u[p],g=v.hostGraph.data.getRawDataItem(v.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>h&&(h=g.depth),v.setLayout({depth:m?g.depth:f},!0),i==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var _=0;_<v.outEdges.length;_++){var b=v.outEdges[_],w=t.indexOf(b);s[w]=0;var S=b.node2,x=e.indexOf(S);--l[x]===0&&c.indexOf(S)<0&&c.push(S)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=h>f-1?h:f-1;o&&o!=="left"&&JJe(e,o,i,C);var T=i==="vertical"?(a-n)/C:(r-n)/C;eQe(e,T,i)}function CZ(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function JJe(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}te(e,function(f){CZ(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&QJe(e,r)}function QJe(e,t){te(e,function(n){!CZ(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function eQe(e,t,n){te(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function tQe(e,t,n,r,a,i,o){var s=nQe(e,o);rQe(s,t,n,r,a,o),yC(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,aQe(s,l,o),yC(s,a,n,r,o),uQe(s,l,o),yC(s,a,n,r,o)}function nQe(e,t){var n=[],r=t==="vertical"?"y":"x",a=tk(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),te(a.keys,function(i){n.push(a.buckets.get(i))}),n}function rQe(e,t,n,r,a,i){var o=1/0;te(e,function(s){var l=s.length,u=0;te(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c<o&&(o=c)}),te(e,function(s){te(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),te(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function yC(e,t,n,r,a){var i=a==="vertical"?"x":"y";te(e,function(o){o.sort(function(v,g){return v.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var p=a==="vertical"?r:n;if(u=c-t-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function aQe(e,t,n){te(e.slice().reverse(),function(r){te(r,function(a){if(a.outEdges.length){var i=Hl(a.outEdges,iQe,n)/Hl(a.outEdges,L1);if(isNaN(i)){var o=a.outEdges.length;i=o?Hl(a.outEdges,oQe,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-eu(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-eu(a,n))*t;a.setLayout({y:l},!0)}}})})}function iQe(e,t){return eu(e.node2,t)*e.getValue()}function oQe(e,t){return eu(e.node2,t)}function sQe(e,t){return eu(e.node1,t)*e.getValue()}function lQe(e,t){return eu(e.node1,t)}function eu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function L1(e){return e.getValue()}function Hl(e,t,n){for(var r=0,a=e.length,i=-1;++i<a;){var o=+t(e[i],n);isNaN(o)||(r+=o)}return r}function uQe(e,t,n){te(e,function(r){te(r,function(a){if(a.inEdges.length){var i=Hl(a.inEdges,sQe,n)/Hl(a.inEdges,L1);if(isNaN(i)){var o=a.inEdges.length;i=o?Hl(a.inEdges,lQe,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-eu(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-eu(a,n))*t;a.setLayout({y:l},!0)}}})})}function cQe(e,t){var n=t==="vertical"?"x":"y";te(e,function(r){r.outEdges.sort(function(a,i){return a.node2.getLayout()[n]-i.node2.getLayout()[n]}),r.inEdges.sort(function(a,i){return a.node1.getLayout()[n]-i.node1.getLayout()[n]})}),te(e,function(r){var a=0,i=0;te(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),te(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function fQe(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,a=n.edges;if(r.length){var i=1/0,o=-1/0;te(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),te(r,function(s){var l=new $r({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&te(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function dQe(e){e.registerChartView(WJe),e.registerSeriesModel(jJe),e.registerLayout(KJe),e.registerVisual(fQe),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,n){n.eachComponent({mainType:"series",subType:"sankey",query:t},function(r){r.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var TZ=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],p=h[c].get("type"),v=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];te(g,function(w,S){var x;Ge(w)?(x=w.slice(),w.unshift(S)):Ge(w.value)?(x=Be({},w),x.value=x.value.slice(),w.value.unshift(S)):x=w,m.push(x)}),t.data=m}var _=this.defaultValueDimensions,b=[{name:f,type:w1(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:w1(v),dimsDef:_.slice()}];return $h(this,{coordDimensions:b,dimensionsCount:_.length+1,encodeDefaulter:Pt(WK,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),kZ=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Pn);Yn(kZ,TZ,!0);const hQe=kZ;var pQe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=a8(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(ho(f),AZ(d,f,i,u)):f=a8(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(bn),vQe=function(){function e(){}return e}(),gQe=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new vQe},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();i<a.length;i++)n.moveTo(a[i][0],a[i][1]),i++,n.lineTo(a[i][0],a[i][1])},t}(Gt);function a8(e,t,n,r,a){var i=e.ends,o=new gQe({shape:{points:a?mQe(i,r,e):i}});return AZ(e,o,t,n,a),o}function AZ(e,t,n,r,a){var i=n.hostModel,o=cf[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Nr(t,s),Un(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function mQe(e,t,n){return We(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const yQe=pQe;var xv=te;function bQe(e){var t=_Qe(e);xv(t,function(n){var r=n.seriesModels;r.length&&(wQe(n),xv(r,function(a,i){SQe(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function _Qe(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=Ft(n,a);i<0&&(i=n.length,n[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(r)}),t}function wQe(e){var t=e.axis,n=e.seriesModels,r=n.length,a=e.boxWidthList=[],i=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;xv(n,function(p){l=Math.max(l,p.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}xv(n,function(p){var v=p.get("boxWidth");Ge(v)||(v=[v,v]),o.push([Qe(v[0],s)||0,Qe(v[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;xv(n,function(p,v){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[v][0]),o[v][1]))})}function SQe(e,t,n){var r=e.coordinateSystem,a=e.getData(),i=n/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),h=b(d,c[2],f),p=b(d,c[0],f),v=b(d,c[1],f),g=b(d,c[3],f),m=b(d,c[4],f),_=[];w(_,v,!1),w(_,g,!0),_.push(p,v,m,g),S(_,p),S(_,m),S(_,h),a.setItemLayout(f,{initBaseline:h[s],ends:_})}function b(x,C,T){var k=a.get(C,T),A=[];A[o]=x,A[s]=k;var M;return isNaN(x)||isNaN(k)?M=[NaN,NaN]:(M=r.dataToPoint(A),M[o]+=t),M}function w(x,C,T){var k=C.slice(),A=C.slice();k[o]+=i,A[o]-=i,T?x.push(k,A):x.push(A,k)}function S(x,C){var T=C.slice(),k=C.slice();T[o]-=i,k[o]+=i,x.push(T,k)}}function xQe(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Ga(e[o].slice()),l=ab(s,.25),u=ab(s,.5),c=ab(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),p=i?f:Math.max(f,l-h),v=i?d:Math.min(d,c+h),g=t.itemNameFormatter,m=ht(g)?g({value:o}):rt(g)?g.replace("{value}",o+""):o+"";n.push([m,p,l,u,c,v]);for(var _=0;_<s.length;_++){var b=s[_];if(b<p||b>v){var w=[m,b];r.push(w)}}}return{boxData:n,outliers:r}}var CQe={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==Xr){var r="";cn(r)}var a=xQe(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function TQe(e){e.registerSeriesModel(hQe),e.registerChartView(yQe),e.registerLayout(bQe),e.registerTransform(CQe)}var kQe=["color","borderColor"],AQe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){du(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&i8(u,f))return;var d=bC(f,c,!0);Ln(d,{shape:{points:f.ends}},n,c),_C(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var h=r.getItemLayout(c);if(s&&i8(u,h)){i.remove(d);return}d?(sn(d,{shape:{points:h.ends}},n,c),ho(d)):d=bC(h),_C(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},t.prototype._renderLarge=function(n){this._clear(),o8(n,this.group);var r=n.get("clip",!0)?Cm(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=bC(s);_C(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){o8(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(bn),MQe=function(){function e(){}return e}(),PQe=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new MQe},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(Gt);function bC(e,t,n){var r=e.ends;return new PQe({shape:{points:n?EQe(r,e):r},z2:100})}function i8(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function _C(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Nr(e,a)}function EQe(e,t){return We(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var IQe=function(){function e(){}return e}(),wC=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new IQe},t.prototype.buildPath=function(n,r){for(var a=r.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];n.moveTo(o,a[i++]),n.lineTo(o,a[i++])}else i+=3},t}(Gt);function o8(e,t,n,r){var a=e.getData(),i=a.getLayout("largePoints"),o=new wC({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new wC({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new wC({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),SC(1,o,e),SC(-1,s,e),SC(0,l,e),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function SC(e,t,n,r){var a=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);e===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(kQe);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const DQe=AQe;var MZ=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Pn);Yn(MZ,TZ,!0);const LQe=MZ;function $Qe(e){!e||!Ge(e.series)||te(e.series,function(t){bt(t)&&t.type==="k"&&(t.type="candlestick")})}var RQe=["itemStyle","borderColor"],OQe=["itemStyle","borderColor0"],NQe=["itemStyle","borderColorDoji"],BQe=["itemStyle","color"],FQe=["itemStyle","color0"],VQe={seriesType:"candlestick",plan:Mh(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?BQe:FQe)}function r(i,o){return o.get(i===0?NQe:i>0?RQe:OQe)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Be(f,c)}}}}}};const zQe=VQe;var HQe={seriesType:"candlestick",plan:Mh(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=GQe(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=We(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?p:h};function h(v,g){for(var m,_=g.getStore();(m=v.next())!=null;){var b=_.get(s,m),w=_.get(u,m),S=_.get(c,m),x=_.get(f,m),C=_.get(d,m),T=Math.min(w,S),k=Math.max(w,S),A=P(T,b),M=P(k,b),I=P(x,b),E=P(C,b),L=[];R(L,M,0),R(L,A,1),L.push(B(E),B(M),B(I),B(A));var N=g.getItemModel(m),$=!!N.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:s8(_,m,w,S,c,$),initBaseline:w>S?M[i]:A[i],ends:L,brushRect:D(x,C,b)})}function P(H,G){var X=[];return X[a]=G,X[i]=H,isNaN(G)||isNaN(H)?[NaN,NaN]:t.dataToPoint(X)}function R(H,G,X){var ue=G.slice(),ie=G.slice();ue[a]=sb(ue[a]+r/2,1,!1),ie[a]=sb(ie[a]-r/2,1,!0),X?H.push(ue,ie):H.push(ie,ue)}function D(H,G,X){var ue=P(H,X),ie=P(G,X);return ue[a]-=r/2,ie[a]-=r/2,{x:ue[0],y:ue[1],width:r,height:ie[1]-ue[1]}}function B(H){return H[a]=sb(H[a],1),H}}function p(v,g){for(var m=Vo(v.count*4),_=0,b,w=[],S=[],x,C=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(x=v.next())!=null;){var k=C.get(s,x),A=C.get(u,x),M=C.get(c,x),I=C.get(f,x),E=C.get(d,x);if(isNaN(k)||isNaN(I)||isNaN(E)){m[_++]=NaN,_+=3;continue}m[_++]=s8(C,x,A,M,c,T),w[a]=k,w[i]=I,b=t.dataToPoint(w,null,S),m[_++]=b?b[0]:NaN,m[_++]=b?b[1]:NaN,w[i]=E,b=t.dataToPoint(w,null,S),m[_++]=b?b[1]:NaN}g.setLayout("largePoints",m)}}};function s8(e,t,n,r,a,i){var o;return n>r?o=-1:n<r?o=1:o=i?0:t>0?e.get(a,t-1)<=r?1:-1:1,o}function GQe(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=Qe(Et(e.get("barMaxWidth"),a),a),o=Qe(Et(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?Qe(s,a):Math.max(Math.min(a/2,i),o)}const WQe=HQe;function UQe(e){e.registerChartView(DQe),e.registerSeriesModel(LQe),e.registerPreprocessor($Qe),e.registerVisual(zQe),e.registerLayout(WQe)}function l8(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(r){r.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?n:null,fill:t.brushType==="fill"?n:null}})})}var jQe=function(e){De(t,e);function t(n,r){var a=e.call(this)||this,i=new Sm(n,r),o=new Tt;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Xn(r,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),o.add(l)}l8(o,n)},t.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}l8(a,n)},t.prototype.highlight=function(){Ns(this)},t.prototype.downplay=function(){Bs(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,r){var a=this,i=n.hostModel;this.childAt(0).updateData(n,r);var o=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=Eh(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var h=hf(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=n.getItemVisual(r,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var v={};v.showEffectOn=i.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=r/n.count(),v.z=i.getShallow("z")||0,v.zlevel=i.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?v.showEffectOn!=="render"&&a.startEffectAnimation(v):g==="normal"&&v.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=v,Un(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(Tt);const KQe=jQe;var YQe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new xm(KQe)},t.prototype.render=function(n,r,a){var i=n.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(n)}),this.group.add(o.group)},t.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},t.prototype.updateTransform=function(n,r,a){var i=n.getData();this.group.dirty();var o=Tm("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=VU(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(bn);const qQe=YQe;var XQe=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return ls(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Pn);const ZQe=XQe;function JQe(e){e.registerChartView(qQe),e.registerSeriesModel(ZQe),e.registerLayout(Tm("effectScatter"))}var QQe=function(e){De(t,e);function t(n,r,a){var i=e.call(this)||this;return i.add(i.createLine(n,r,a)),i._updateEffectSymbol(n,r),i}return t.prototype.createLine=function(n,r,a){return new bI(n,r,a)},t.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Ge(o)||(o=[o,o]);var l=n.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Xn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(n,i,r))},t.prototype._updateEffectAnimation=function(n,r,a){var i=this.childAt(1);if(i){var o=n.getItemLayout(a),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=fr(r.get("delay"),function(h){return h/n.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;ht(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return xs(n.__p1,n.__cp1)+xs(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=_r,c=FT;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=xs(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*xs(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},t.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},t}(Tt);const PZ=QQe;var eet=function(e){De(t,e);function t(n,r,a){var i=e.call(this)||this;return i._createPolyline(n,r,a),i}return t.prototype._createPolyline=function(n,r,a){var i=n.getItemLayout(r),o=new ba({shape:{points:i}});this.add(o),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};sn(o,s,i,r),this._updateCommonStl(n,r,a)},t.prototype._updateCommonStl=function(n,r,a){var i=this.childAt(0),o=n.getItemModel(r),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(n.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,Un(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(Tt);const EZ=eet;var tet=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return t.prototype.createLine=function(n,r,a){return new EZ(n,r,a)},t.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=xs(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var h=n.__t<1?d[0]-f[0]:f[0]-d[0],p=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(PZ);const net=tet;var ret=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),aet=function(e){De(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ret},t.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){n.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)n.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(n.moveTo(u,c),i>0){var h=(u+f)/2-(c-d)*i,p=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,p,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],h=1;h<c;h++){var p=i[u++],v=i[u++];if(bl(f,d,p,v,s,n,r))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],p=i[u++],v=i[u++];if(o>0){var g=(f+p)/2-(d-v)*o,m=(d+v)/2-(p-f)*o;if(Rj(f,d,g,m,p,v,s,n,r))return l}else if(bl(f,d,p,v,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}n=this._rect=new Nt(i,o,s,l)}return n},t}(Gt),iet=function(){function e(){this.group=new Tt}return e.prototype.updateData=function(t){this._clear();var n=this._create();n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,n),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new aet({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=n.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=kt(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const oet=iet;var set={seriesType:"lines",plan:Mh(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c<a.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var h=e.getLineCoords(c,o);n&&(s[f++]=h);for(var p=0;p<h;p++)d=t.dataToPoint(o[p],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var v=i.getItemModel(c),h=e.getLineCoords(c,o),g=[];if(n)for(var m=0;m<h;m++)g.push(t.dataToPoint(o[m]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var _=v.get(["lineStyle","curveness"]);+_&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*_,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*_])}i.setItemLayout(c,g)}}}}}};const IZ=set;var uet=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&Cm(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},t.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},t.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=IZ.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},t.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new oet:new _I(o?i?net:EZ:i?PZ:bI),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(bn);const cet=uet;var fet=typeof Uint32Array>"u"?Array:Uint32Array,det=typeof Float64Array>"u"?Array:Float64Array;function u8(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=We(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),q_([a,n[0],n[1]])}))}var het=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],u8(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(n){if(u8(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=cg(this._flatCoords,r.flatCoords),this._flatCoordsOffset=cg(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[a+o*2],r[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(n),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),an(n[0])){for(var a=n.length,i=new fet(a),o=new det(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=n[c++];i[l++]=s+r,i[l++]=f;for(var d=0;d<f;d++){var h=n[c++],p=n[c++];o[s++]=h,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n,r){var a=new Kr(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getItemModel(n),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),gr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Pn);const pet=het;function u0(e){return e instanceof Array||(e=[e,e]),e}var vet={seriesType:"lines",reset:function(e){var t=u0(e.get("symbol")),n=u0(e.get("symbolSize")),r=e.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=u0(s.getShallow("symbol",!0)),u=u0(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const get=vet;function met(e){e.registerChartView(cet),e.registerSeriesModel(pet),e.registerLayout(IZ),e.registerVisual(get)}var yet=256,bet=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=uo.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=n,f.height=r;for(var p=0;p<h;++p){var v=t[p],g=v[0],m=v[1],_=v[2],b=a(_);d.globalAlpha=b,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),S=w.data,x=0,C=S.length,T=this.minOpacity,k=this.maxOpacity,A=k-T;x<C;){var b=S[x+3]/256,M=Math.floor(b*(yet-1))*4;if(b>0){var I=o(b)?l:u;b>0&&(b=b*A+T),S[x++]=I[M],S[x++]=I[M+1],S[x++]=I[M+2],S[x++]=I[M+3]*b*256}else x+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=uo.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const _et=bet;function wet(e,t,n){var r=e[1]-e[0];t=We(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&n[s]}}function xet(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(r){return r>=t[0]&&r<=t[1]}}function c8(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Cet=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):c8(o)&&this._renderOnGeo(o,n,i,a)},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},t.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(c8(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){du(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=pf(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),_=n.getModel(["blur","itemStyle"]).getItemStyle(),b=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),S=vr(n),x=n.getModel("emphasis"),C=x.get("focus"),T=x.get("blurScope"),k=x.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;M<i;M++){var I=void 0,E=g.getItemVisual(M,"style");if(l){var L=g.get(A[0],M),N=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(L)||isNaN(N)||L<f[0]||L>f[1]||N<d[0]||N>d[1])continue;var $=s.dataToPoint([L,N]);I=new tn({shape:{x:$[0]-u/2,y:$[1]-c/2,width:u,height:c},style:E})}else{if(isNaN(g.get(A[1],M)))continue;I=new tn({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:E})}if(g.hasItemOption){var P=g.getItemModel(M),R=P.getModel("emphasis");m=R.getModel("itemStyle").getItemStyle(),_=P.getModel(["blur","itemStyle"]).getItemStyle(),b=P.getModel(["select","itemStyle"]).getItemStyle(),w=P.get(["itemStyle","borderRadius"]),C=R.get("focus"),T=R.get("blurScope"),k=R.get("disabled"),S=vr(P)}I.shape.r=w;var D=n.getRawValue(M),B="-";D&&D[2]!=null&&(B=D[2]+""),Br(I,S,{labelFetcher:n,labelDataIndex:M,defaultOpacity:E.opacity,defaultText:B}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=_,I.ensureState("select").style=b,Un(I,C,T,k),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),v.add(I),g.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new _et;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),v=Math.min(c.height+c.y,i.getHeight()),g=p-d,m=v-h,_=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(_,function(C,T,k){var A=n.dataToPoint([C,T]);return A[0]-=d,A[1]-=h,A.push(k),A}),w=a.getExtent(),S=a.type==="visualMap.continuous"?xet(w,a.option.range):wet(w,a.getPieceList(),a.option.selected);u.update(b,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var x=new Ar({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t}(bn);const Tet=Cet;var ket=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return ls(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Ah.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Pn);const Aet=ket;function Met(e){e.registerChartView(Tet),e.registerSeriesModel(Aet)}var Pet=["itemStyle","borderWidth"],f8=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xC=new Xs,Eet=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:f8[+c],categoryDim:f8[1-+c]};o.diff(s).add(function(p){if(o.hasValue(p)){var v=h8(o,p),g=d8(o,p,v,d),m=p8(o,d,g);o.setItemGraphicEl(p,m),i.add(m),g8(m,d,g)}}).update(function(p,v){var g=s.getItemGraphicEl(v);if(!o.hasValue(p)){i.remove(g);return}var m=h8(o,p),_=d8(o,p,m,d),b=NZ(o,_);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?Net(g,d,_):g=p8(o,d,_,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=_,i.add(g),g8(g,d,_)}).remove(function(p){var v=s.getItemGraphicEl(p);v&&v8(s,p,v.__pictorialSymbolMeta.animationModel,v)}).execute();var h=n.get("clip",!0)?Cm(n.coordinateSystem,!1,n):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){v8(i,kt(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(bn);function d8(e,t,n,r){var a=e.getItemLayout(t),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:t,layout:a,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Iet(n,i,a,r,d),Det(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),Let(n,d.symbolScale,u,r,d);var h=d.symbolSize,p=hf(n.get("symbolOffset"),h);return $et(n,h,a,i,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function Iet(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(Ge(o)){var f=[CC(s,o[0])-l,CC(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=CC(s,o)-l:t?c=r.coordSysExtent[i.index][u]-l:c=n[i.wh];a.boundingLength=c,t&&(a.repeatCutLength=n[i.wh]),a.pxSign=c>0?1:-1}function CC(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function Det(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=e.getItemVisual(t,"symbolSize"),p;Ge(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=Qe(p[f.index],d),p[c.index]=Qe(p[c.index],r?d:Math.abs(i)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function Let(e,t,n,r,a){var i=e.get(Pet)||0;i&&(xC.attr({scaleX:t[0],scaleY:t[1],rotation:n}),xC.updateTransform(),i/=xC.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function $et(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(t[h.index]+s,0),g=v;if(r){var m=Math.abs(l),_=fr(e.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var w=Qe(_,t[h.index]),S=Math.max(v+w*2,0),x=b?0:w*2,C=qP(r),T=C?r:m8((m+x)/S),k=m-T*v;w=k/2/(b?T:Math.max(T-1,1)),S=v+w*2,x=b?0:w*2,!C&&r!=="fixed"&&(T=u?m8((Math.abs(u)+x)/S):0),g=T*S-x,f.repeatTimes=T,f.symbolMargin=w}var A=p*(g/2),M=f.pathPosition=[];M[d.index]=n[d.wh]/2,M[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var I=f.bundlePosition=[];I[d.index]=n[d.xy],I[h.index]=n[h.xy];var E=f.barRectShape=Be({},n);E[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(M[h.index]+A)),E[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[h.xy]=0,L[h.wh]=n[h.wh]}function DZ(e){var t=e.symbolPatternSize,n=Xn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function LZ(e,t,n,r){var a=e.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,f=i[t.valueDim.index]+o+n.symbolMargin*2;for(MI(e,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?Ad(v,null,p(c),n,r):Ad(v,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(v)}),c++});c<u;c++){var d=DZ(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=p(c);Ad(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function p(v){var g=s.slice(),m=n.pxSign,_=v;return(n.symbolRepeatDirection==="start"?m>0:m<0)&&(_=u-1-v),g[l.index]=f*(_-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function $Z(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Ad(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=e.__pictorialMainPath=DZ(n),a.add(i),Ad(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function RZ(e,t,n){var r=Be({},t.barRectShape),a=e.__pictorialBarRect;a?Ad(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new tn({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function OZ(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=Be({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)sn(a,{shape:i},s,l);else{i[o.wh]=0,a=new tn({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],cf[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function h8(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Ret,n.isAnimationEnabled=Oet,n}function Ret(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function Oet(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function p8(e,t,n,r){var a=new Tt,i=new Tt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?LZ(a,t,n):$Z(a,t,n),RZ(a,n,r),OZ(a,t,n,r),a.__pictorialShapeStr=NZ(e,n),a.__pictorialSymbolMeta=n,a}function Net(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;sn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?LZ(e,t,n,!0):$Z(e,t,n,!0),RZ(e,n,!0),OZ(e,t,n,!0)}function v8(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];MI(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),te(i,function(o){Zl(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function NZ(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function MI(e,t,n){te(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Ad(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&cf[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function g8(e,t,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");MI(e,function(v){if(v instanceof Ar){var g=v.style;v.useStyle(Be({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else v.useStyle(n.style);var m=v.ensureState("emphasis");m.style=o,d&&(m.scaleX=v.scaleX*1.1,m.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;p.ignoreClip=!0,Br(p,vr(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:eh(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),Un(e,c,f,i.get("disabled"))}function m8(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const Bet=Eet;var Fet=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=hu(k1.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(k1);const Vet=Fet;function zet(e){e.registerChartView(Bet),e.registerSeriesModel(Vet),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Pt(vq,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,gq("pictorialBar"))}var Het=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new Fs(this._layersSeries||[],l,d,d),p=[];h.add(it(v,this,"add")).update(it(v,this,"update")).remove(it(v,this,"remove")).execute();function v(g,m,_){var b=o._layers;if(g==="remove"){s.remove(b[m]);return}for(var w=[],S=[],x,C=l[m].indices,T=0;T<C.length;T++){var k=i.getItemLayout(C[T]),A=k.x,M=k.y0,I=k.y;w.push(A,M),S.push(A,M+I),x=i.getItemVisual(C[T],"style")}var E,L=i.getItemLayout(C[0]),N=n.getModel("label"),$=N.get("margin"),P=n.getModel("emphasis");if(g==="add"){var R=p[m]=new Tt;E=new oX({shape:{points:w,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),R.add(E),s.add(R),n.isAnimationEnabled()&&E.setClipPath(Get(E.getBoundingRect(),n,function(){E.removeClipPath()}))}else{var R=b[_];E=R.childAt(0),s.add(R),p[m]=R,sn(E,{shape:{points:w,stackedOnPoints:S}},n),ho(E)}Br(E,vr(n),{labelDataIndex:C[T-1],defaultText:i.getName(C[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),E.setTextConfig({position:null,local:!0});var D=E.getTextContent();D&&(D.x=L.x-$,D.y=L.y0+L.y/2),E.useStyle(x),i.setItemGraphicEl(m,E),Nr(E,n),Un(E,P.get("focus"),P.get("blurScope"),P.get("disabled"))}this._layersSeries=l,this._layers=p},t.type="themeRiver",t}(bn);function Get(e,t,n){var r=new tn({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return Ln(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const Wet=Het;var TC=2,Uet=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Am(it(this.getData,this),it(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},i=tk(n,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,n[r]=[f,0,u],r++)}return n},t.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",Qn).models[0],i=a.get("type"),o=hn(n.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ut(),c=0,f=0;f<s.length;++f)l.push(s[f][TC]),u.get(s[f][TC])||(u.set(s[f][TC],c),c++);var d=Ih(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:w1(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Kr(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],i=0;i<r;++i)a[i]=i;var o=n.mapDimension("single"),s=tk(a,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(o,f)-n.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(n,r,a){Ge(n)||(n=n?[n]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,p=0;p<h;++p){var v=i.get(n[0],o[c].indices[p]),g=Math.abs(v-r);g<=f&&(u=v,f=g,d=o[c].indices[p])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getName(n),s=i.get(i.mapDimension("value"),n);return gr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Pn);const jet=Uet;function Ket(e,t){e.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=n.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=Qe(s[0],o.height),s[1]=Qe(s[1],o.height);var u=o.height-s[0]-s[1];y8(r,n,u)}else{s[0]=Qe(s[0],o.width),s[1]=Qe(s[1],o.width);var c=o.width-s[0]-s[1];y8(r,n,c)}r.setLayout("layoutInfo",i)})}function y8(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=We(a,function(g){return We(g.indices,function(m){var _=r.dataToPoint(e.get(i,m));return _[1]=e.get(o,m),_})}),l=Yet(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,h,p=0;p<d;++p){h=u[p]*c,e.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h,y:s[0][p][1]*c});for(var v=1;v<f;++v)h+=s[v-1][p][1]*c,e.setItemLayout(a[v].indices[p],{layerIndex:v,x:s[v][p][0],y0:h,y:s[v][p][1]*c})}}function Yet(e){for(var t=e.length,n=e[0].length,r=[],a=[],i=0,o=0;o<n;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>i&&(i=s),r.push(s)}for(var u=0;u<n;++u)a[u]=(i-r[u])/2;i=0;for(var c=0;c<n;++c){var f=r[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function qet(e){e.registerChartView(Wet),e.registerSeriesModel(jet),e.registerLayout(Ket),e.registerProcessor(km("themeRiver"))}var Xet=2,Zet=4,Jet=function(e){De(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=Xet,o.textConfig={inside:!0},kt(o).seriesIndex=r.seriesIndex;var s=new en({z2:Zet,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;kt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Be({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=Qd(h,o));var p=Cc(l.getModel("itemStyle"),f,!0);Be(f,p),te(pa,function(_){var b=s.ensureState(_),w=l.getModel([_,"itemStyle"]);b.style=w.getItemStyle();var S=Cc(w,f);S&&(b.shape=S)}),n?(s.setShape(f),s.shape.r=c.r0,Ln(s,{shape:{r:c.r}},a,r.dataIndex)):(sn(s,{shape:f},a),ho(s)),s.useStyle(d),this._updateLabel(a);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;Un(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,v=i.get("show")&&!(p!=null&&Math.abs(s)<p);d.ignore=!v,te(bg,function(m){var _=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),b=m==="normal",w=b?d:d.ensureState(m),S=n.getFormattedLabel(h,m);b&&(S=S||r.node.name),w.style=Cn(_,{},null,m!=="normal",!0),S&&(w.style.text=S);var x=_.get("show");x!=null&&!b&&(w.ignore=!x);var C=g(_,"position"),T=b?f:f.states[m],k=T.style.fill;T.textConfig={outsideFill:_.get("color")==="inherit"?k:null,inside:C!=="outside"};var A,M=g(_,"distance")||0,I=g(_,"align"),E=g(_,"rotate"),L=Math.PI*.5,N=Math.PI*1.5,$=Wa(E==="tangential"?Math.PI/2-l:l),P=$>L&&!Xd($-L)&&$<N;C==="outside"?(A=o.r+M,I=P?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,I="center"):I==="left"?(A=o.r0+M,I=P?"right":"left"):I==="right"&&(A=o.r-M,I=P?"left":"right"),w.style.align=I,w.style.verticalAlign=g(_,"verticalAlign")||"middle",w.x=A*u+o.cx,w.y=A*c+o.cy;var R=0;E==="radial"?R=Wa(-l)+(P?Math.PI:0):E==="tangential"?R=Wa(Math.PI/2-l)+(P?Math.PI:0):an(E)&&(R=E*Math.PI/180),w.rotation=Wa(R)});function g(m,_){var b=m.get(_);return b??i.get(_)}d.dirtyStyle()},t}(va);const b8=Jet;var eA="sunburstRootToNode",_8="sunburstHighlight",Qet="sunburstUnhighlight";function ett(e){e.registerAction({type:eA,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Dg(t,[eA],a);if(o){var s=a.getViewRoot();s&&(t.direction=hI(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:_8,update:"none"},function(t,n,r){t=Be({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Dg(t,[_8],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(Be(t,{type:"highlight"}))}),e.registerAction({type:Qet,update:"updateView"},function(t,n,r){t=Be({},t),r.dispatchAction(Be(t,{type:"downplay"}))})}var ttt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(_){d.push(_)});var h=this._oldChildren||[];p(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function p(_,b){if(_.length===0&&b.length===0)return;new Fs(b,_,w,w).add(S).update(S).remove(Pt(S,null)).execute();function w(x){return x.getId()}function S(x,C){var T=x==null?null:_[x],k=C==null?null:b[C];v(T,k)}}function v(_,b){if(!f&&_&&!_.getValue()&&(_=null),_!==l&&b!==l){if(b&&b.piece)_?(b.piece.updateData(!1,_,n,r,a),s.setItemGraphicEl(_.dataIndex,b.piece)):g(b);else if(_){var w=new b8(_,n,r,a);c.add(w),s.setItemGraphicEl(_.dataIndex,w)}}}function g(_){_&&_.piece&&(c.remove(_.piece),_.piece=null)}function m(_,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,_,n,r,a):(o.virtualPiece=new b8(_,n,r,a),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";f1(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:eA,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(bn);const ntt=ttt;var rtt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};BZ(a);var i=this._levelModels=We(n.levels||[],function(l){return new mn(l,this,r)},this),o=dI.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=Lw(a,this),r},t.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){HX(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Pn);function BZ(e){var t=0;te(e.children,function(r){BZ(r);var a=r.value;Ge(a)&&(a=a[0]),t+=a});var n=e.value;Ge(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Ge(e.value)?e.value[0]=n:e.value=n}const att=rtt;var w8=Math.PI/180;function itt(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");Ge(i)||(i=[0,i]),Ge(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=Qe(a[0],o),c=Qe(a[1],s),f=Qe(i[0],l/2),d=Qe(i[1],l/2),h=-r.get("startAngle")*w8,p=r.get("minAngle")*w8,v=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,_=r.get("sort");_!=null&&FZ(g,_);var b=0;te(g.children,function($){!isNaN($.getValue())&&b++});var w=g.getValue(),S=Math.PI/(w||b)*2,x=g.depth>0,C=g.height-(x?-1:1),T=(d-f)/(C||1),k=r.get("clockwise"),A=r.get("stillShowZeroSum"),M=k?1:-1,I=function($,P){if($){var R=P;if($!==v){var D=$.getValue(),B=w===0&&A?S:D*S;B<p&&(B=p),R=P+M*B;var H=$.depth-m-(x?-1:1),G=f+T*H,X=f+T*(H+1),ue=r.getLevelModel($);if(ue){var ie=ue.get("r0",!0),le=ue.get("r",!0),Q=ue.get("radius",!0);Q!=null&&(ie=Q[0],le=Q[1]),ie!=null&&(G=Qe(ie,l/2)),le!=null&&(X=Qe(le,l/2))}$.setLayout({angle:B,startAngle:P,endAngle:R,clockwise:k,cx:u,cy:c,r0:G,r:X})}if($.children&&$.children.length){var J=0;te($.children,function(se){J+=I(se,P+J)})}return R-P}};if(x){var E=f,L=f+T,N=Math.PI*2;v.setLayout({angle:N,startAngle:h,endAngle:h+N,clockwise:k,cx:u,cy:c,r0:E,r:L})}I(g,h)})}function FZ(e,t){var n=e.children||[];e.children=ott(n,t),n.length&&te(e.children,function(r){FZ(r,t)})}function ott(e,t){if(ht(t)){var n=We(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return n.sort(function(a,i){return t(a.params,i.params)}),We(n,function(a){return e[a.index]})}else{var r=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(r?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(r?-1:1):o})}}function stt(e){var t={};function n(r,a,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&rt(s)&&(s=Qb(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Be(u,l)})})}function ltt(e){e.registerChartView(ntt),e.registerSeriesModel(att),e.registerLayout(Pt(itt,"sunburst")),e.registerProcessor(Pt(km,"sunburst")),e.registerVisual(stt),ett(e)}var S8={color:"fill",borderColor:"stroke"},utt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ps=nn(),ctt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return ls(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=Ps(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Pn);const ftt=ctt;function dtt(e,t){return t=t||[0,0],We(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function htt(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:it(dtt,e)}}}function ptt(e,t){return t=t||[0,0],We([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function vtt(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:it(ptt,e)}}}function gtt(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function mtt(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:it(gtt,e)}}}function ytt(e,t){return t=t||[0,0],We(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function btt(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:it(ytt,e)}}}function _tt(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return e.dataToPoint(r,a)}}}}function VZ(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||ot(e,"text")))}function zZ(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},ot(r,"text")&&(o.text=r.text),ot(r,"rich")&&(o.rich=r.rich),ot(r,"textFill")&&(o.fill=r.textFill),ot(r,"textStroke")&&(o.stroke=r.textStroke),ot(r,"fontFamily")&&(o.fontFamily=r.fontFamily),ot(r,"fontSize")&&(o.fontSize=r.fontSize),ot(r,"fontStyle")&&(o.fontStyle=r.fontStyle),ot(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=ot(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),ot(r,"textPosition")&&(a.position=r.textPosition),ot(r,"textOffset")&&(a.offset=r.textOffset),ot(r,"textRotation")&&(a.rotation=r.textRotation),ot(r,"textDistance")&&(a.distance=r.textDistance)}return x8(o,e),te(o.rich,function(l){x8(l,l)}),{textConfig:a,textContent:i}}function x8(e,t){t&&(t.font=t.textFont||t.font,ot(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),ot(t,"textAlign")&&(e.align=t.textAlign),ot(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),ot(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),ot(t,"textWidth")&&(e.width=t.textWidth),ot(t,"textHeight")&&(e.height=t.textHeight),ot(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),ot(t,"textPadding")&&(e.padding=t.textPadding),ot(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),ot(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),ot(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),ot(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),ot(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),ot(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),ot(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function C8(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=e.fill||"#000";T8(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,te(t.rich,function(s){T8(s,s)}),r}function T8(e,t){t&&(ot(t,"fill")&&(e.textFill=t.fill),ot(t,"stroke")&&(e.textStroke=t.fill),ot(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),ot(t,"font")&&(e.font=t.font),ot(t,"fontStyle")&&(e.fontStyle=t.fontStyle),ot(t,"fontWeight")&&(e.fontWeight=t.fontWeight),ot(t,"fontSize")&&(e.fontSize=t.fontSize),ot(t,"fontFamily")&&(e.fontFamily=t.fontFamily),ot(t,"align")&&(e.textAlign=t.align),ot(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),ot(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),ot(t,"width")&&(e.textWidth=t.width),ot(t,"height")&&(e.textHeight=t.height),ot(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),ot(t,"padding")&&(e.textPadding=t.padding),ot(t,"borderColor")&&(e.textBorderColor=t.borderColor),ot(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),ot(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),ot(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),ot(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),ot(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),ot(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),ot(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),ot(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),ot(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),ot(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var HZ={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},k8=Ut(HZ);Mi(Jo,function(e,t){return e[t]=1,e},{});Jo.join(", ");var $1=["","style","shape","extra"],rh=nn();function PI(e,t,n,r,a){var i=e+"Animation",o=bh(e,r,a)||{},s=rh(t).userDuring;return o.duration>0&&(o.during=s?it(Ttt,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Be(o,n[i]),o}function hb(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=rh(e),u=t.style;l.userDuring=t.during;var c={},f={};if(Att(e,t,f),M8("shape",t,f),M8("extra",t,f),!i&&s&&(ktt(e,t,c),A8("shape",e,t,c),A8("extra",e,t,c),Mtt(e,t,u,c)),f.style=u,wtt(e,f,o),xtt(e,t),s)if(i){var d={};te($1,function(p){var v=p?t[p]:t;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Be(p?d[p]:d,v.enterFrom))});var h=PI("enter",e,t,n,a);h.duration>0&&e.animateFrom(d,h)}else Stt(e,t,a||0,n,c);GZ(e,t),u?e.dirty():e.markRedraw()}function GZ(e,t){for(var n=rh(e).leaveToProps,r=0;r<$1.length;r++){var a=$1[r],i=a?t[a]:t;i&&i.leaveTo&&(n||(n=rh(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Be(a?n[a]:n,i.leaveTo))}}function Ow(e,t,n,r){if(e){var a=e.parent,i=rh(e).leaveToProps;if(i){var o=PI("update",e,t,n,0);o.done=function(){a.remove(e),r&&r()},e.animateTo(i,o)}else a.remove(e),r&&r()}}function Fc(e){return e==="all"}function wtt(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function Stt(e,t,n,r,a){if(a){var i=PI("update",e,t,r,n);i.duration>0&&e.animateFrom(a,i)}}function xtt(e,t){ot(t,"silent")&&(e.silent=t.silent),ot(t,"ignore")&&(e.ignore=t.ignore),e instanceof Pi&&ot(t,"invisible")&&(e.invisible=t.invisible),e instanceof Gt&&ot(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Mo={},Ctt={setTransform:function(e,t){return Mo.el[e]=t,this},getTransform:function(e){return Mo.el[e]},setShape:function(e,t){var n=Mo.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Mo.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Mo.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Mo.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Mo.el.extra||(Mo.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Mo.el.extra;if(t)return t[e]}};function Ttt(){var e=this,t=e.el;if(t){var n=rh(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}Mo.el=t,r(Ctt)}}function A8(e,t,n,r){var a=n[e];if(a){var i=t[e],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[e]={}),Fc(l))Be(o,i);else for(var u=yn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Fc(s)||Ft(s,e)>=0){!o&&(o=r[e]={});for(var h=Ut(i),c=0;c<h.length;c++){var f=h[c],d=i[f];Ptt(a[f],d)&&(o[f]=d)}}}}}function M8(e,t,n){var r=t[e];if(r)for(var a=n[e]={},i=Ut(r),o=0;o<i.length;o++){var s=i[o];a[s]=dv(r[s])}}function ktt(e,t,n){for(var r=t.transition,a=Fc(r)?Jo:yn(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];n[o]=s}}}function Att(e,t,n){for(var r=0;r<k8.length;r++){var a=k8[r],i=HZ[a],o=t[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<Jo.length;r++){var s=Jo[r];t[s]!=null&&(n[s]=t[s])}}function Mtt(e,t,n,r){if(n){var a=e.style,i;if(a){var o=n.transition,s=t.transition;if(o&&!Fc(o)){var l=yn(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(Fc(s)||Fc(o)||Ft(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var p=Ut(n),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function Ptt(e,t){return Or(e)?e!==t:e!=null&&isFinite(e)}var WZ=nn(),Ett=["percent","easing","shape","style","extra"];function UZ(e){e.stopAnimation("keyframe"),e.attr(WZ(e))}function R1(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Ge(t)){te(t,function(s){R1(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var i=bh("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=WZ(e);te($1,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),te(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=Ut(f);if(s||(d=hn(d,function(v){return Ft(Ett,v)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var p=s?o[s]:o;te(d,function(v){p[v]=((s?e[s]:e)||{})[v]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Es="emphasis",Pl="normal",EI="blur",II="select",tu=[Pl,Es,EI,II],kC={normal:["itemStyle"],emphasis:[Es,"itemStyle"],blur:[EI,"itemStyle"],select:[II,"itemStyle"]},AC={normal:["label"],emphasis:[Es,"label"],blur:[EI,"label"],select:[II,"label"]},Itt=["x","y"],Dtt="e\0\0",oi={normal:{},emphasis:{},blur:{},select:{}},Ltt={cartesian2d:htt,geo:vtt,single:mtt,polar:btt,calendar:_tt};function tA(e){return e instanceof Gt}function nA(e){return e instanceof Pi}function $tt(e,t){t.copyTransform(e),nA(t)&&nA(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,tA(t)&&tA(e)&&t.setShape(e.shape))}var Rtt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._data,s=n.getData(),l=this.group,u=P8(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){MC(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Ow(d,Ps(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);MC(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?Cm(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(n,r,a,i,o){var s=r.getData(),l=P8(r,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=MC(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){du(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,r,a,i){var o=r.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(bn);const Ott=Rtt;function DI(e){var t=e.type,n;if(t==="path"){var r=e.shape,a=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=YZ(r);n=gm(i,null,a,r.layout||"center"),Ps(n).customPathData=i}else if(t==="image")n=new Ar({}),Ps(n).customImagePath=e.style.image;else if(t==="text")n=new en({});else if(t==="group")n=new Tt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=dw(t);if(!o){var s="";cn(s)}n=new o}return Ps(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function LI(e,t,n,r,a,i,o){UZ(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=Itt);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;ot(u,"textFill")&&(u.fill=u.textFill),ot(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=tA(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Qd(f,e)),l.__decalPattern=c}if(nA(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}hb(t,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),R1(t,r.keyframeAnimation,i)}function jZ(e,t,n,r,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(r===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),Xc(i)}}function Ntt(e,t,n){if(!e.isGroup){var r=e,a=n.currentZ,i=n.currentZLevel;r.z=a,r.zlevel=i;var o=t.z2;o!=null&&(r.z2=o||0);for(var s=0;s<tu.length;s++)Btt(r,t,tu[s])}}function Btt(e,t,n){var r=n===Pl,a=r?t:O1(t,n),i=a?a.z2:null,o;i!=null&&(o=r?e:e.ensureState(n),o.z2=i||0)}function P8(e,t,n,r){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):Ltt[i.type](i));for(var s=mt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:x,ordinalRawValue:S,styleEmphasis:C,visual:A,barLayout:M,currentSeriesIndices:I,font:E},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:Ftt(e.getData())},u,c,f={},d={},h={},p={},v=0;v<tu.length;v++){var g=tu[v];h[g]=e.getModel(kC[g]),p[g]=e.getModel(AC[g])}function m(L){return L===u?c||(c=t.getItemModel(L)):t.getItemModel(L)}function _(L,N){return t.hasItemOption?L===u?f[N]||(f[N]=m(L).getModel(kC[N])):m(L).getModel(kC[N]):h[N]}function b(L,N){return t.hasItemOption?L===u?d[N]||(d[N]=m(L).getModel(AC[N])):m(L).getModel(AC[N]):p[N]}return function(L,N){return u=L,c=null,f={},d={},a&&a(mt({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:N?N.type:null},l),s)};function w(L,N){return N==null&&(N=u),t.getStore().get(t.getDimensionIndex(L||0),N)}function S(L,N){N==null&&(N=u),L=L||0;var $=t.getDimensionInfo(L);if(!$){var P=t.getDimensionIndex(L);return P>=0?t.getStore().get(P,N):void 0}var R=t.get($.name,N),D=$&&$.ordinalMeta;return D?D.categories[R]:R}function x(L,N){N==null&&(N=u);var $=t.getItemVisual(N,"style"),P=$&&$.fill,R=$&&$.opacity,D=_(N,Pl).getItemStyle();P!=null&&(D.fill=P),R!=null&&(D.opacity=R);var B={inheritColor:rt(P)?P:"#000"},H=b(N,Pl),G=Cn(H,null,B,!1,!0);G.text=H.getShallow("show")?Et(e.getFormattedLabel(N,Pl),eh(t,N)):null;var X=u1(H,B,!1);return k(L,D),D=C8(D,G,X),L&&T(D,L),D.legacy=!0,D}function C(L,N){N==null&&(N=u);var $=_(N,Es).getItemStyle(),P=b(N,Es),R=Cn(P,null,null,!0,!0);R.text=P.getShallow("show")?to(e.getFormattedLabel(N,Es),e.getFormattedLabel(N,Pl),eh(t,N)):null;var D=u1(P,null,!0);return k(L,$),$=C8($,R,D),L&&T($,L),$.legacy=!0,$}function T(L,N){for(var $ in N)ot(N,$)&&(L[$]=N[$])}function k(L,N){L&&(L.textFill&&(N.textFill=L.textFill),L.textPosition&&(N.textPosition=L.textPosition))}function A(L,N){if(N==null&&(N=u),ot(S8,L)){var $=t.getItemVisual(N,"style");return $?$[S8[L]]:null}if(ot(utt,L))return t.getItemVisual(N,L)}function M(L){if(i.type==="cartesian2d"){var N=i.getBaseAxis();return x7e(mt({axis:N},L))}}function I(){return n.getCurrentSeriesIndices()}function E(L){return dE(L,n)}}function Ftt(e){var t={};return te(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function MC(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=$I(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&Un(s,r.focus,r.blurScope,r.emphasisDisabled),s}function $I(e,t,n,r,a,i){var o=-1,s=t;t&&KZ(t,r,a)&&(o=Ft(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=DI(r),s&&$tt(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),oi.normal.cfg=oi.normal.conOpt=oi.emphasis.cfg=oi.emphasis.conOpt=oi.blur.cfg=oi.blur.conOpt=oi.select.cfg=oi.select.conOpt=null,oi.isLegacy=!1,ztt(u,n,r,a,l,oi),Vtt(u,n,r,a,l),LI(e,u,n,r,oi,a,l),ot(r,"info")&&(Ps(u).info=r.info);for(var c=0;c<tu.length;c++){var f=tu[c];if(f!==Pl){var d=O1(r,f),h=RI(r,d,f);jZ(f,u,d,h,oi)}}return Ntt(u,r,a),r.type==="group"&&Htt(e,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function KZ(e,t,n){var r=Ps(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&jtt(i)&&YZ(i)!==r.customPathData||a==="image"&&ot(o,"image")&&o.image!==r.customImagePath}function Vtt(e,t,n,r,a){var i=n.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&KZ(o,i,r)&&(o=null),o||(o=DI(i),e.setClipPath(o)),LI(null,o,t,i,null,r,a)}}function ztt(e,t,n,r,a,i){if(!e.isGroup){E8(n,null,i),E8(n,Es,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=DI(o),e.setTextContent(c)),LI(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d<tu.length;d++){var h=tu[d];if(h!==Pl){var p=i[h].conOpt;jZ(h,c,p,RI(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function E8(e,t,n){var r=t?O1(e,t):e,a=t?RI(e,r,Es):e.style,i=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?O1(s,t):s:null;if(a&&(n.isLegacy||VZ(a,i,!!o,!!l))){n.isLegacy=!0;var u=zZ(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?n[t]:n.normal;f.cfg=o,f.conOpt=l}function O1(e,t){return t?e?e[t]:null:e}function RI(e,t,n){var r=t&&t.style;return r==null&&n===Es&&e&&(r=e.styleEmphasis),r}function Htt(e,t,n,r,a){var i=r.children,o=i?i.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){Wtt({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:n,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),$I(e,d,n,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);Gtt(t,p,a)}}}function Gtt(e,t,n){t&&Ow(t,Ps(e).option,n)}function Wtt(e){new Fs(e.oldChildren,e.newChildren,I8,I8,e).add(D8).update(D8).remove(Utt).execute()}function I8(e,t){var n=e&&e.name;return n??Dtt+t}function D8(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;$I(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function Utt(e){var t=this.context,n=t.oldChildren[e];n&&Ow(n,Ps(n).option,t.seriesModel)}function YZ(e){return e&&(e.pathData||e.d)}function jtt(e){return e&&(ot(e,"pathData")||ot(e,"d"))}function Ktt(e){e.registerChartView(Ott),e.registerSeriesModel(ftt)}var sc=nn(),L8=_t,PC=it,Ytt=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Tt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Pt($8,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}O8(s,n,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var r=n.get("animation"),a=t.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=iI(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,a,i){},e.prototype.createPointerEl=function(t,n,r,a){var i=n.pointer;if(i){var o=sc(t).pointerEl=new cf[i.type](L8(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=sc(t).labelEl=new en(L8(n.label));t.add(i),R8(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=sc(t).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,a){var i=sc(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),R8(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=_h(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Os(u.event)},onmousedown:PC(this._onHandleDragMove,this,0,0),drift:PC(this._onHandleDragMove,this),ondragend:PC(this._onHandleDragEnd,this)}),r.add(a)),O8(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Ge(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ph(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){$8(this._axisPointerModel,!n&&this._moveAnimation,this._handle,EC(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(EC(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(EC(a)),sc(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Tg(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e}();function $8(e,t,n,r){qZ(sc(n).lastProp,r)||(sc(n).lastProp=r,t?sn(n,r,e):(n.stopAnimation(),n.attr(r)))}function qZ(e,t){if(bt(e)&&bt(t)){var n=!0;return te(t,function(r,a){n=n&&qZ(e[a],r)}),!!n}else return e===t}function R8(e,t){e[t.get(["label","show"])?"show":"hide"]()}function EC(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function O8(e,t,n){var r=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}const OI=Ytt;function NI(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function XZ(e,t,n,r,a){var i=n.get("value"),o=ZZ(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=df(s.get("padding")||0),u=s.getFont(),c=fm(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=a.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),qtt(f,d,h,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Cn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qtt(e,t,n,r){var a=r.getWidth(),i=r.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+n,i)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function ZZ(e,t,n,r,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:qE(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};te(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),rt(o)?i=o.replace("{value}",i):ht(o)&&(i=o(s))}return i}function BI(e,t,n){var r=Ia();return fu(r,r,n.rotation),co(r,r,n.position),ao([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function JZ(e,t,n,r,a,i){var o=zs.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),XZ(t,r,a,i,{position:BI(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function FI(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function QZ(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function N8(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var Xtt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=B8(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=NI(i),h=Ztt[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=Bk(l.model,a);JZ(r,n,p,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Bk(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=BI(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=B8(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[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 p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(OI);function B8(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var Ztt={line:function(e,t,n){var r=FI([t,n[0]],[t,n[1]],F8(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:QZ([t-r/2,n[0]],[r,a],F8(e))}}};function F8(e){return e.dim==="x"?0:1}const Jtt=Xtt;var Qtt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}(Xt);const ent=Qtt;var As=nn(),tnt=te;function eJ(e,t,n){if(!rn.node){var r=t.getZr();As(r).records||(As(r).records={}),nnt(r,t);var a=As(r).records[e]||(As(r).records[e]={});a.handler=n}}function nnt(e,t){if(As(e).initialized)return;As(e).initialized=!0,n("click",Pt(V8,"click")),n("mousemove",Pt(V8,"mousemove")),n("globalout",ant);function n(r,a){e.on(r,function(i){var o=int(t);tnt(As(e).records,function(s){s&&a(s,i,o.dispatchAction)}),rnt(o.pendings,t)})}}function rnt(e,t){var n=e.showTip.length,r=e.hideTip.length,a;n?a=e.showTip[n-1]:r&&(a=e.hideTip[r-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function ant(e,t,n){e.handler("leave",null,n)}function V8(e,t,n,r){t.handler(e,n,r)}function int(e){var t={showTip:[],hideTip:[]},n=function(r){var a=t[r.type];a?a.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function rA(e,t){if(!rn.node){var n=t.getZr(),r=(As(n).records||{})[e];r&&(As(n).records[e]=null)}}var ont=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";eJ("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,r){rA("axisPointer",r)},t.prototype.dispose=function(n,r){rA("axisPointer",r)},t.type="axisPointer",t}(On);const snt=ont;function tJ(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Yc(i,e);if(o==null||o<0||Ge(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.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,p=i.mapDimension(d),v=[];v[h]=i.get(p,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(i.getValues(We(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var z8=nn();function lnt(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||it(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){pb(a)&&(a=tJ({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=pb(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||pb(a),d={},h={},p={list:[],map:{}},v={showPointer:Pt(cnt,h),showTooltip:Pt(fnt,p)};te(s.coordSysMap,function(m,_){var b=l||m.containPoint(a);te(s.coordSysAxesInfo[_],function(w,S){var x=w.axis,C=vnt(u,w);if(!f&&b&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&H8(w,T,v,!1,d)}})});var g={};return te(c,function(m,_){var b=m.linkGroup;b&&!h[_]&&te(b.axesInfo,function(w,S){var x=h[S];if(w!==m&&x){var C=x.value;b.mapper&&(C=m.axis.scale.parse(b.mapper(C,G8(w),G8(m)))),g[m.key]=C}})}),te(g,function(m,_){H8(c[_],m,v,!0,d)}),dnt(h,c,d),hnt(p,a,e,o),pnt(c,o,n),d}}function H8(e,t,n,r,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=unt(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Be(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function unt(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return te(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,v=Math.abs(p);v<=o&&((v<o||p>=0&&s<0)&&(o=v,s=p,a=f,i.length=0),te(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function cnt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function fnt(e,t,n,r){var a=n.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Ig(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:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function dnt(e,t,n){var r=n.axesInfo=[];te(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function hnt(e,t,n,r){if(pb(t)||!e.list.length){r({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function pnt(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=z8(r)[a]||{},o=z8(r)[a]={};te(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&te(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];te(i,function(u,c){!o[c]&&l.push(u)}),te(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function vnt(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function G8(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function pb(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Em(e){vf.registerAxisPointerClass("CartesianAxisPointer",Jtt),e.registerComponentModel(ent),e.registerComponentView(snt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Ge(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=eYe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lnt)}function gnt(e){zt(AX),zt(Em)}var mnt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var h=NI(i),p=bnt[d](s,l,f,c);p.style=h,n.graphicKey=p.type,n.pointer=p}var v=i.get(["label","margin"]),g=ynt(r,a,i,l,v);XZ(n,a,i,o,g)},t}(OI);function ynt(e,t,n,r,a){var i=t.axis,o=i.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=Ia();fu(d,d,s),co(d,d,[r.cx,r.cy]),u=ao([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,p=zs.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+a,o]);var g=r.cx,m=r.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var bnt={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:FI(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var a=Math.max(1,e.getBandWidth()),i=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:N8(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:N8(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const _nt=mnt;var wnt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Xt);const Snt=wnt;var VI=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qn).models[0]},t.type="polarAxis",t}(Xt);Yn(VI,Lh);var xnt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(VI),Cnt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(VI),zI=function(e){De(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(Li);zI.prototype.dataToRadius=Li.prototype.dataToCoord;zI.prototype.radiusToData=Li.prototype.coordToData;const Tnt=zI;var knt=nn(),HI=function(e){De(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=fm(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=knt(n.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},t}(Li);HI.prototype.dataToAngle=Li.prototype.dataToCoord;HI.prototype.angleToData=Li.prototype.coordToData;const Ant=HI;var nJ=["radius","angle"],Mnt=function(){function e(t){this.dimensions=nJ,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Tnt,this._angleAxis=new Ant,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var n=this.pointToCoord(t);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var n="_"+t+"Axis";return this[n]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===t&&n.push(r),a.scale.type===t&&n.push(a),n},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var n=this._angleAxis;return t===n?this._radiusAxis:n},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var n=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},e.prototype.dataToPoint=function(t,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],n),this._angleAxis.dataToAngle(t[1],n)])},e.prototype.pointToData=function(t,n){var r=this.pointToCoord(t);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},e.prototype.pointToCoord=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var n=t[0],r=t[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},e.prototype.getArea=function(){var t=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,n,r){var a=W8(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=W8(n);return a===this?this.pointToData(r):null},e}();function W8(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const Pnt=Mnt;function Ent(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=Qe(r[0],a),e.cy=Qe(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Ge(l)||(l=[0,l]);var u=[Qe(l[0],s),Qe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Int(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();te(S1(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),te(S1(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Jc(r.scale,r.model),Jc(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Dnt(e){return e.mainType==="angleAxis"}function U8(e,t){var n;if(e.type=t.get("type"),e.scale=wm(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),Dnt(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),a=(n=t.get("endAngle"))!==null&&n!==void 0?n:r+(e.inverse?-360:360);e.setExtent(r,a)}t.axis=e,e.model=t}var Lnt={dimensions:nJ,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new Pnt(a+"");i.update=Int;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");U8(o,l),U8(s,u),Ent(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",Qn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const $nt=Lnt;var Rnt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function c0(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),a=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function f0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function j8(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var Ont=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=We(a.getViewLabels(),function(c){c=_t(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});j8(u),j8(s),te(Rnt,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Nnt[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(vf),Nnt={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=f0(n),f=c?0:1,d,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[f]===0?d=new cf[h]({shape:{cx:n.cx,cy:n.cy,r:i[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new pm({shape:{cx:n.cx,cy:n.cy,r:i[c],r0:i[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,n,r,a,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[f0(n)],u=We(r,function(c){return new dr({shape:c0(n,[l,l+s],c.coord)})});e.add(Fa(u,{style:mt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[f0(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new dr({shape:c0(n,[u,u+l],a[f][d].coord)}));e.add(Fa(c,{style:mt(s.getModel("lineStyle").getLineStyle(),mt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");te(o,function(f,d){var h=l,p=f.tickValue,v=i[f0(n)],g=n.coordToPoint([v+u,f.coord]),m=n.cx,_=n.cy,b=Math.abs(g[0]-m)/v<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-_)/v<.3?"middle":g[1]>_?"top":"bottom";if(s&&s[p]){var S=s[p];bt(S)&&S.textStyle&&(h=new mn(S.textStyle,l,l.ecModel))}var x=new en({silent:zs.isLabelSilent(t),style:Cn(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(x),c){var C=zs.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=f.rawLabel,kt(x).eventData=C}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new dr({shape:c0(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Fa(c[f],{style:mt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new dr({shape:c0(n,i,a[u][c].coord)}));e.add(Fa(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,a,i){if(r.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,h=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),v=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var _=g===m?r[0].coord:r[g].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new va({shape:{cx:n.cx,cy:n.cy,r0:h,r:p,startAngle:d,endAngle:-_*f,clockwise:v},silent:!0})),d=-_*f}for(var g=0;g<c.length;g++)e.add(Fa(c[g],{style:mt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const Bnt=Ont;var Fnt=["axisLine","axisTickLabel","axisName"],Vnt=["splitLine","splitArea","minorSplitLine"],znt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=this._axisGroup,i=this._axisGroup=new Tt;this.group.add(i);var o=n.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=Gnt(s,n,f),p=new zs(n,h);te(Fnt,p.add,p),i.add(p.getGroup()),mm(a,i,n),te(Vnt,function(v){n.get([v,"show"])&&!o.scale.isBlank()&&Hnt[v](this.group,n,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(vf),Hnt={splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),h=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],v=0;v<i.length;v++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new cf[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[v].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var v=0;v<p.length;v++)e.add(Fa(p[v],{style:mt({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Xs({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));e.add(Fa(u,{style:mt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new va({shape:{cx:n.cx,cy:n.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)e.add(Fa(c[d],{style:mt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function Gnt(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const Wnt=znt;function rJ(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function aJ(e,t){return t.dim+e.model.componentIndex}function Unt(e,t,n){var r={},a=jnt(hn(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=aJ(s,l),c=rJ(i),f=a[u][c],d=f.offset,h=f.width,p=s.getOtherAxis(l),v=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,_=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var b=o.mapDimension(p.dim),w=o.mapDimension(l.dim),S=Vs(o,b),x=l.dim!=="radius"||!i.get("roundCap",!0),C=p.model,T=C.get("startValue"),k=p.dataToCoord(T||0),A=0,M=o.count();A<M;A++){var I=o.get(b,A),E=o.get(w,A),L=I>=0?"p":"n",N=k;S&&(r[c][E]||(r[c][E]={p:k,n:k}),N=r[c][E][L]);var $=void 0,P=void 0,R=void 0,D=void 0;if(p.dim==="radius"){var B=p.dataToCoord(I)-k,H=l.dataToCoord(E);Math.abs(B)<m&&(B=(B<0?-1:1)*m),$=N,P=N+B,R=H-d,D=R-h,S&&(r[c][E][L]=P)}else{var G=p.dataToCoord(I,x)-k,X=l.dataToCoord(E);Math.abs(G)<_&&(G=(G<0?-1:1)*_),$=X+d,P=$+h,R=N,D=N+G,S&&(r[c][E][L]=D)}o.setItemLayout(A,{cx:v,cy:g,r0:$,r:P,startAngle:-R*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:R>=D})}}})}function jnt(e){var t={};te(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=aJ(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=rJ(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=Qe(r.get("barWidth"),c),v=Qe(r.get("barMaxWidth"),c),g=r.get("barGap"),m=r.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var n={};return te(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=Qe(r.categoryGap,o),l=Qe(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),te(i,function(v,g){var m=v.maxWidth;m&&m<f&&(m=Math.min(m,u),v.width&&(m=Math.min(m,v.width)),u-=m,v.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;te(i,function(v,g){v.width||(v.width=f),h=v,d+=v.width*(1+l)}),h&&(d-=h.width*l);var p=-d/2;te(i,function(v,g){n[a][g]=n[a][g]||{offset:p,width:v.width},p+=v.width*(1+l)})}),n}var Knt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Ynt={splitNumber:5},qnt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(On);function Xnt(e){zt(Em),vf.registerAxisPointerClass("PolarAxisPointer",_nt),e.registerCoordinateSystem("polar",$nt),e.registerComponentModel(Snt),e.registerComponentView(qnt),th(e,"angle",xnt,Knt),th(e,"radius",Cnt,Ynt),e.registerComponentView(Bnt),e.registerComponentView(Wnt),e.registerLayout(Pt(Unt,"bar"))}function aA(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,a={},i=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),fr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var Znt=["axisLine","axisTickLabel","axisName"],Jnt=["splitArea","splitLine"],Qnt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return t.prototype.render=function(n,r,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Tt;var l=aA(n),u=new zs(n,l);te(Znt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),te(Jnt,function(c){n.get([c,"show"])&&ert[c](this,this.group,this._axisGroup,n)},this),mm(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)},t.prototype.remove=function(){CX(this)},t.type="singleAxis",t}(vf),ert={splitLine:function(e,t,n,r){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,h=a.getTicksCoords({tickModel:i}),p=[],v=[],g=0;g<h.length;++g){var m=a.toGlobalCoord(h[g].coord);c?(p[0]=m,p[1]=u.y,v[0]=m,v[1]=u.y+u.height):(p[0]=u.x,p[1]=m,v[0]=u.x+u.width,v[1]=m);var _=new dr({shape:{x1:p[0],y1:p[1],x2:v[0],y2:v[1]},silent:!0});Zd(_.shape,l);var b=d++%s.length;f[b]=f[b]||[],f[b].push(_)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(Fa(f[g],{style:mt({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){xX(e,n,r,r)}};const trt=Qnt;var iJ=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Xt);Yn(iJ,Lh.prototype);const IC=iJ;var nrt=function(e){De(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},t}(Li);const rrt=nrt;var oJ=["single"],art=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=oJ,this.axisPointerEnabled=!0,this.model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=this.dimension,i=new rrt(a,wm(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();te(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Jc(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=rr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,t.width]:[0,t.height],i=n.inverse?1:0;n.setExtent(a[i],a[1-i]),this._updateAxisTransform(n,r?t.x:t.y)},e.prototype._updateAxisTransform=function(t,n){var r=t.getExtent(),a=r[0]+r[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+n}:function(o){return a-o+n},t.toLocalCoord=i?function(o){return o-n}:function(o){return a-o+n}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=K8(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=K8(n);return a===this?this.pointToData(r):null},e}();function K8(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function irt(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new art(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",Qn).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var ort={create:irt,dimensions:oJ};const srt=ort;var Y8=["x","y"],lrt=["width","height"],urt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=DC(l,1-N1(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=NI(i),h=crt[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=aA(a);JZ(r,n,p,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=aA(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=BI(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=N1(o),u=DC(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=DC(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(OI),crt={line:function(e,t,n){var r=FI([t,n[0]],[t,n[1]],N1(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:QZ([t-r/2,n[0]],[r,a],N1(e))}}};function N1(e){return e.isHorizontal()?0:1}function DC(e,t){var n=e.getRect();return[n[Y8[t]],n[Y8[t]]+n[lrt[t]]]}const frt=urt;var drt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(On);function hrt(e){zt(Em),vf.registerAxisPointerClass("SingleAxisPointer",frt),e.registerComponentView(drt),e.registerComponentView(trt),e.registerComponentModel(IC),th(e,"single",IC,IC.defaultOption),e.registerCoordinateSystem("single",srt)}var prt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=Ch(n);e.prototype.init.apply(this,arguments),q8(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),q8(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Xt);function q8(e,t){var n=e.cellSize,r;Ge(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=We([0,1],function(i){return tGe(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Jl(e,t,{type:"box",ignoreSize:a})}const vrt=prt;var grt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new tn({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(n,v,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new ba({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return rt(n)&&n?ZHe(n,r):ht(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var v=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},m=this._formatterLabel(v,g),_=new en({z2:30,style:Cn(o,{text:m})});_.attr(this._yearTextPositionControl(_,h[l],a,l,s)),i.add(_)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||rt(s))&&(s&&(r=hk(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v<f[d].length-1;v++){var g=f[d][v].slice(),m=this._firstDayOfMonth[v];if(p){var _=this._firstDayPoints[v];g[h]=(_[h]+f[0][v+1][h])/2}var b=o.get("formatter"),w=s[+m.m-1],S={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},x=this._formatterLabel(b,S),C=new en({z2:30,style:Be(Cn(o,{text:x}),this._monthTextPositionControl(g,p,a,u,l))});i.add(C)}}},t.prototype._weekTextPositionControl=function(n,r,a,i,o){var s="center",l="middle",u=n[0],c=n[1],f=a==="start";return r==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(n,r,a,i,o){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||rt(c)){c&&(r=hk(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||We(r.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=Qe(f,Math.min(v[1],v[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var m=l.getNextNDay(p,g),_=l.dataToRect([m.time],!1).center,b=g;b=Math.abs((g+d)%7);var w=new en({z2:30,style:Be(Cn(s,{text:c[b]}),this._weekTextPositionControl(_,i,u,f,v))});o.add(w)}}},t.type="calendar",t}(On);const mrt=grt;var LC=864e5,yrt=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Za(t);var n=t.getFullYear(),r=t.getMonth()+1,a=r<10?"0"+r:""+r,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:n+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype.update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];te([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=rr(o,l);te([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,n){Ge(t)&&(t=t[0]),n==null&&(n=!0);var r=this.getDateInfo(t),a=this._rangeInfo,i=r.formatedDate;if(n&&!(r.time>=a.start.time&&r.time<a.end.time+LC))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var n=this.pointToDate(t);return n&&n.time},e.prototype.dataToRect=function(t,n){var r=this.dataToPoint(t,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var n=Math.floor((t[0]-this._rect.x)/this._sw)+1,r=Math.floor((t[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,a):this._getDateByWeeksAndDay(n,r-1,a)},e.prototype.convertToPixel=function(t,n,r){var a=X8(n);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=X8(n);return a===this?a.pointToData(r):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),n;if(Ge(t)&&t.length===1&&(t=t[0]),Ge(t))n=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);n=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return t;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/LC)-Math.floor(n[0].time/LC)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(t,n,r){var a=this._getRangeInfo(r);if(t>a.weeks||t===0&&n<a.fweek||t===a.weeks&&n>a.lweek)return null;var i=(t-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",function(a){var i=new e(a);r.push(i),a.coordinateSystem=i}),t.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},e.dimensions=["time","value"],e}();function X8(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const brt=yrt;function _rt(e){e.registerComponentModel(vrt),e.registerComponentView(mrt),e.registerCoordinateSystem("calendar",brt)}function wrt(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Z8(e,t){var n;return te(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function Srt(e,t,n){var r=Be({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Rt(a,r,!0),Jl(a,r,{ignoreSize:!0}),FK(n,a),d0(n,a),d0(n,a,"shape"),d0(n,a,"style"),d0(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var sJ=["transition","enterFrom","leaveTo"],xrt=sJ.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function d0(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?sJ:xrt,a=0;a<r.length;a++){var i=r[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function Crt(e,t){if(e&&(e.hv=t.hv=[Z8(t,["left","right"]),Z8(t,["top","bottom"])],e.type==="group")){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var Trt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=a},t.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,s=[];this._flatten(i,s,null);var l=Tj(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];te(l,function(c,f){var d=c.newOption;d&&(u.push(d),wrt(c,d),Srt(o,f,d),Crt(o[f],d))},this),a.elements=hn(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){te(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t}(Xt),J8={path:null,compoundPath:null,group:Tt,image:Ar,text:en},di=nn(),krt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=ut()},t.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),s=n.get("zlevel");te(r,function(l){var u=ar(l.id,null),c=u!=null?a.get(u):null,f=ar(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,p=l.style;h==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var v=l.textContent,g=l.textConfig;if(p&&VZ(p,h,!!g,!!v)){var m=zZ(p,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!v&&m.textContent&&(v=m.textContent)}var _=Art(l),b=l.$action||"merge",w=b==="merge",S=b==="replace";if(w){var x=!c,C=c;x?C=Q8(u,d,l.type,a):(C&&(di(C).isNew=!1),UZ(C)),C&&(hb(C,_,n,{isInit:x}),eV(C,l,o,s))}else if(S){vb(c,l,a,n);var T=Q8(u,d,l.type,a);T&&(hb(T,_,n,{isInit:!0}),eV(T,l,o,s))}else b==="remove"&&(GZ(c,l),vb(c,l,a,n));var k=a.get(u);if(k&&v)if(w){var A=k.getTextContent();A?A.attr(v):k.setTextContent(new en(v))}else S&&k.setTextContent(new en(v));if(k){var M=l.clipPath;if(M){var I=M.type,E=void 0,x=!1;if(w){var L=k.getClipPath();x=!L||di(L).type!==I,E=x?iA(I):L}else S&&(x=!0,E=iA(I));k.setClipPath(E),hb(E,M,n,{isInit:x}),R1(E,M.keyframeAnimation,n)}var N=di(k);k.setTextConfig(g),N.option=l,Mrt(k,n,l),wh({el:k,componentModel:n,itemName:k.name,itemTooltipOption:l.tooltip}),R1(k,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=ar(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var p=h.parent,v=p===i,g=di(h),m=di(p);g.width=Qe(g.option.width,v?s:m.width)||0,g.height=Qe(g.option.height,v?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=ar(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,m=di(p),_=p===i?{width:s,height:l}:{width:m.width,height:m.height},b={},w=bw(h,f,_,null,{hv:f.hv,boundingMode:f.bounding},b);if(!di(h).isNew&&w){for(var S=f.transition,x={},C=0;C<u.length;C++){var T=u[C],k=b[T];S&&(Fc(S)||Ft(S,T)>=0)?x[T]=k:h[T]=k}sn(h,x,n,0)}else h.attr(b)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){vb(a,di(a).option,r,n._lastGraphicModel)}),this._elMap=ut()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(On);function iA(e){var t=ot(J8,e)?J8[e]:dw(e),n=new t({});return di(n).type=e,n}function Q8(e,t,n,r){var a=iA(n);return t.add(a),r.set(e,a),di(a).id=e,di(a).isNew=!0,a}function vb(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){vb(i,t,n,r)}),Ow(e,t,r),n.removeKey(di(e).id))}function eV(e,t,n,r){e.isGroup||te([["cursor",Pi.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];ot(t,i)?e[i]=Et(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),te(Ut(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ht(i)?i:null}}),ot(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Art(e){return e=Be({},e),te(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(BK),function(t){delete e[t]}),e}function Mrt(e,t,n){var r=kt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=kt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function Prt(e){e.registerComponentModel(Trt),e.registerComponentView(krt),e.registerPreprocessor(function(t){var n=t.graphic;Ge(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var tV=["x","y","radius","angle","single"],Ert=["cartesian2d","polar","singleAxis"];function Irt(e){var t=e.get("coordinateSystem");return Ft(Ert,t)>=0}function El(e){return e+"Axis"}function Drt(e,t){var n=ut(),r=[],a=ut();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=n.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function lJ(e){var t=e.ecModel,n={infoList:[],infoMap:ut()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(El(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var $C=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Lrt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=nV(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=nV(n);Rt(this.option,n,!0),Rt(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;te([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=ut(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return te(tV,function(a){var i=this.getReferringComponents(El(a),$6e);if(i.specified){r=!0;var o=new $C;te(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new $C;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Qn).models[0];h&&te(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",Qn).models[0]&&d.add(p.componentIndex)})}}}i&&te(tV,function(u){if(i){var c=a.findComponents({mainType:El(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new $C;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");te([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(El(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){te(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(El(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;te([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;te(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Xt);function nV(e){var t={};return te(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const Ng=Lrt;var $rt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(Ng);const Rrt=$rt;var Ort=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this.dataZoomModel=n,this.ecModel=r,this.api=a},t.type="dataZoom",t}(On);const GI=Ort;var Nrt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(GI);const Brt=Nrt;var ed=te,rV=Ga,Frt=function(){function e(t,n,r,a){this._dimName=t,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(n){if(Irt(n)){var r=El(this._dimName),a=n.getReferringComponents(r,Qn).models[0];a&&this._axisIndex===a.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return _t(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ed(["start","end"],function(d,h){var p=t[d],v=t[d+"Value"];i[h]==="percent"?(p==null&&(p=o[h]),v=a.parse(dn(p,o,n))):(u=!0,v=v==null?n[h]:a.parse(v),p=dn(v,n,o)),l[h]=v==null||isNaN(v)?n[h]:v,s[h]=p==null||isNaN(p)?o[h]:p}),rV(l),rV(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,p,v,g){var m=g?"Span":"ValueSpan";gf(0,d,p,"all",c["min"+m],c["max"+m]);for(var _=0;_<2;_++)h[_]=dn(d[_],p,v,!0),g&&(h[_]=a.parse(h[_]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=Vrt(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(t.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,n){if(t!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ed(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=We(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,v,g,m=0;m<c.length;m++){var _=f.get(d[m],h),b=!isNaN(_),w=_<o[0],S=_>o[1];if(b&&!w&&!S)return!0;b&&(g=!0),w&&(p=!0),S&&(v=!0)}return g&&p&&v})}else ed(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ed(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;ed(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=dn(r[0]+o,r,[0,100],!0):i!=null&&(o=dn(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=jP(r,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},e}();function Vrt(e,t,n){var r=[1/0,-1/0];ed(n,function(o){j7e(r,o.getData(),t)});var a=e.getAxisModel(),i=Sq(a.axis.scale,a,r).calculate();return[i.min,i.max]}const zrt=Frt;var Hrt={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(El(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new zrt(a,i,s,e),n.push(o.__dzAxisProxy))});var r=ut();return te(n,function(a){te(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Grt=Hrt;function Wrt(e){e.registerAction("dataZoom",function(t,n){var r=Drt(n,t);te(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var aV=!1;function WI(e){aV||(aV=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Grt),Wrt(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Urt(e){e.registerComponentModel(Rrt),e.registerComponentView(Brt),WI(e)}var pi=function(){function e(){}return e}(),uJ={};function td(e,t){uJ[e]=t}function cJ(e){return uJ[e]}var jrt=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;te(this.option.feature,function(r,a){var i=cJ(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Rt(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Xt);const Krt=jrt;function Yrt(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=rr(r,i,a);Rc(t.get("orient"),e,t.get("itemGap"),o.width,o.height),bw(e,r,i,a)}function fJ(e,t){var n=df(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new tn({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var qrt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];te(u,function(p,v){f.push(v)}),new Fs(this._featureNames||[],f).add(d).update(d).remove(Pt(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],m=f[v],_=u[g],b=new mn(_,n,n.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(_.title=i.newTitle),g&&!m){if(Xrt(g))w={onclick:b.option.onclick,featureName:g};else{var S=cJ(g);if(!S)return;w=new S}c[g]=w}else if(w=c[m],!w)return;w.uid=xh("toolbox-feature"),w.model=b,w.ecModel=r,w.api=a;var x=w instanceof pi;if(!g&&m){x&&w.dispose&&w.dispose(r,a);return}if(!b.get("show")||x&&w.unusable){x&&w.remove&&w.remove(r,a);return}h(b,w,g),b.setIconStatus=function(C,T){var k=this.option,A=this.iconPaths;k.iconStatus=k.iconStatus||{},k.iconStatus[C]=T,A[C]&&(T==="emphasis"?Ns:Bs)(A[C])},w instanceof pi&&w.render&&w.render(b,r,a,i)}function h(p,v,g){var m=p.getModel("iconStyle"),_=p.getModel(["emphasis","iconStyle"]),b=v instanceof pi&&v.getIcons?v.getIcons():p.get("icon"),w=p.get("title")||{},S,x;rt(b)?(S={},S[g]=b):S=b,rt(w)?(x={},x[g]=w):x=w;var C=p.iconPaths={};te(S,function(T,k){var A=_h(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var M=A.ensureState("emphasis");M.style=_.getItemStyle();var I=new en({style:{text:x[k],align:_.get("textAlign"),borderRadius:_.get("textBorderRadius"),padding:_.get("textPadding"),fill:null,font:dE({fontStyle:_.get("textFontStyle"),fontFamily:_.get("textFontFamily"),fontSize:_.get("textFontSize"),fontWeight:_.get("textFontWeight")},r)},ignore:!0});A.setTextContent(I),wh({el:A,componentModel:n,itemName:k,formatterParamsExtra:{title:x[k]}}),A.__title=x[k],A.on("mouseover",function(){var E=_.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:_.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:_.get("textBackgroundColor")}),A.setTextConfig({position:_.get("textPosition")||L}),I.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",k])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(p.get(["iconStatus",k])==="emphasis"?Ns:Bs)(A),o.add(A),A.on("click",it(v.onclick,v,r,a,k)),C[k]=A})}Yrt(o,n,a),o.add(fJ(o.getBoundingRect(),n)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),_=p.getTextContent(),b=_&&_.ensureState("emphasis");if(b&&!ht(b)&&v){var w=b.style||(b.style={}),S=fm(v,en.makeFont(w)),x=p.x+o.x,C=p.y+o.y+s,T=!1;C+S.height>a.getHeight()&&(m.position="top",T=!0);var k=T?-5-S.height:s+10;x+S.width/2>a.getWidth()?(m.position=["100%",k],w.align="right"):x-S.width/2<0&&(m.position=[0,k],w.align="left")}})},t.prototype.updateView=function(n,r,a,i){te(this._features,function(o){o instanceof pi&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){te(this._features,function(a){a instanceof pi&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){te(this._features,function(a){a instanceof pi&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(On);function Xrt(e){return e.indexOf("my")===0}const Zrt=qrt;var Jrt=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=rn.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,m=new Uint8Array(g);g--;)m[g]=p.charCodeAt(g);var _=new Blob([m]);window.navigator.msSaveOrOpenBlob(_,v)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,S=w.document;S.open("image/svg+xml","replace"),S.write(p),S.close(),w.focus(),S.execCommand("SaveAs",!0,v),document.body.removeChild(b)}}else{var x=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(C),T.document.title=i}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(pi);const Qrt=Jrt;var iV="__ec_magicType_stack__",eat=[["line","bar"],["stack"]],tat=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return te(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(oV[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=oV[a](d,h,f,i);p&&(mt(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var m=g.dim,_=m+"Axis",b=f.getReferringComponents(_,Qn).models[0],w=b.componentIndex;s[_]=s[_]||[];for(var S=0;S<=w;S++)s[_][w]=s[_][w]||{};s[_][w].boundaryGap=a==="bar"}}};te(eat,function(f){Ft(f,a)>=0&&te(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Rt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(pi),oV={line:function(e,t,n,r){if(e==="bar")return Rt({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Rt({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===iV;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Rt({id:t,stack:a?"":iV},r.get(["option","stack"])||{},!0)}};_o({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const nat=tat;var Nw=new Array(60).join("-"),ah=" ";function rat(e){var t={},n=[],r=[];return e.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function aat(e){var t=[];return te(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(We(n.series,function(h){return h.name})),l=[a.model.getCategories()];te(n.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(ah)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(ah))}t.push(u.join(`
`))}),t.join(`
`+Nw+`
`)}function iat(e){return We(e,function(t){var n=t.getRawData(),r=[t.name],a=[];return n.each(n.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=n.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];r.push((s?s+ah:"")+a.join(ah))}),r.join(`
`)}).join(`
`+Nw+`
`)}function oat(e){var t=rat(e);return{value:hn([aat(t.seriesGroupByCategoryAxis),iat(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
`+Nw+`
`),meta:t.meta}}function B1(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sat(e){var t=e.slice(0,e.indexOf(`
`));if(t.indexOf(ah)>=0)return!0}var oA=new RegExp("["+ah+"]+","g");function lat(e){for(var t=e.split(/\n+/g),n=B1(t.shift()).split(oA),r=[],a=We(n,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=B1(t[i]).split(oA);r.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:r}}function uat(e){for(var t=e.split(/\n+/g),n=B1(t.shift()),r=[],a=0;a<t.length;a++){var i=B1(t[a]);if(i){var o=i.split(oA),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[a]={name:s,value:[]},l=r[a].value):l=r[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[a].value=l[0]:r[a]=l[0])}}return{name:n,data:r}}function cat(e,t){var n=e.split(new RegExp(`
*`+Nw+`
*`,"g")),r={series:[]};return te(n,function(a,i){if(sat(a)){var o=lat(a),s=t[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=uat(a);r.series.push(o)}}),r}var fat=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),h=oat(n);if(ht(f)){var p=f(r.getOption());rt(p)?u.innerHTML=p:jc(p)&&u.appendChild(p)}else{c.readOnly=i.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=i.get("textColor"),v.borderColor=i.get("textareaBorderColor"),v.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),w=document.createElement("div");_+=";background-color:"+i.get("buttonColor"),_+=";color:"+i.get("buttonTextColor");var S=this;function x(){a.removeChild(o),S._dom=null}NT(b,"click",x),NT(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){x();return}var C;try{ht(d)?C=d(u,r.getOption()):C=cat(c.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}C&&r.dispatchAction({type:"changeDataView",newOption:C}),x()}),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=b.style.cssText=_,!i.get("readOnly")&&m.appendChild(w),m.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t}(pi);function dat(e,t){return We(e,function(n,r){var a=t&&t[r];if(bt(a)&&!Ge(a)){var i=bt(n)&&!Ge(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=mt(n,a),o&&delete n.name,n}else return n})}_o({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];te(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(Be({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:dat(r.data,i)})}}),t.mergeOption(mt({series:n},e.newOption))});const hat=fat;var dJ=te,hJ=nn();function pat(e,t){var n=UI(e);dJ(t,function(r,a){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(t)}function vat(e){var t=UI(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return dJ(n,function(a,i){for(var o=t.length-1;o>=0;o--)if(a=t[o][i],a){r[i]=a;break}}),r}function gat(e){hJ(e).snapshots=null}function mat(e){return UI(e).length}function UI(e){var t=hJ(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var yat=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){gat(n),r.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},t}(pi);_o({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const bat=yat;var _at=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],wat=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=sV(n,t);te(Sat,function(o,s){(!r||!r.include||Ft(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=RC[r.brushType](0,i,a);r.__rangeOffset={offset:fV[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){te(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&te(i.coordSyses,function(o){var s=RC[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){te(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=RC[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?fV[r.brushType](i.values,o.offset,xat(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return We(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:_Z(a),isTargetByCursor:SZ(a,t,r.coordSysModel),getLinearBrushOtherExtent:wZ(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&Ft(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=sV(n,t),i=0;i<r.length;i++){var o=r[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<lV.length;l++)if(lV[l](a,o))return o}return!0},e}();function sA(e){return e[0]>e[1]&&e.reverse(),e}function sV(e,t){return pv(e,t,{includeMainTypes:_at})}var Sat={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=ut(),o={},s={};!n&&!r&&!a||(te(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),te(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),te(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];te(u.getCartesians(),function(f,d){(Ft(n,f.getAxis("x").model)>=0||Ft(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:uV.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){te(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:uV.geo})})}},lV=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,a=e.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],uV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Fl(e)),t}},RC={lineX:Pt(cV,0),lineY:Pt(cV,1),rect:function(e,t,n,r){var a=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),i=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[sA([a[0],i[0]]),sA([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=We(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function cV(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=sA(We([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var fV={lineX:Pt(dV,0),lineY:Pt(dV,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return We(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function dV(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function xat(e,t){var n=hV(e),r=hV(t),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function hV(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const jI=wat;var lA=te,Cat=P6e("toolbox-dataZoom_"),Tat=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new kI(a.getZr()),this._brushController.on("brush",it(this._onBrush,this)).mount()),Mat(n,r,this,i,a),Aat(n,r)},t.prototype.onclick=function(n,r,a){kat[a].call(this)},t.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new jI(KI(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),pat(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,i),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=gf(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(n){var r=[];lA(n,function(a,i){r.push(_t(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(pi),kat={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(vat(this.ecModel))}};function KI(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function Aat(e,t){e.setIconStatus("back",mat(t)>1?"emphasis":"normal")}function Mat(e,t,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,e.setIconStatus("zoom",i?"emphasis":"normal");var o=new jI(KI(e),t,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}sGe("dataZoom",function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(!t||t.get(n)==null)return;var r=t.getModel(n),a=[],i=KI(r),o=pv(e,i);lA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),lA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Cat+u+f};d[c]=f,a.push(d)}return a});const Pat=Tat;function Eat(e){e.registerComponentModel(Krt),e.registerComponentView(Zrt),td("saveAsImage",Qrt),td("magicType",nat),td("dataView",hat),td("dataZoom",Pat),td("restore",bat),zt(Urt)}var Iat=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}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}(Xt);const Dat=Iat;function pJ(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function vJ(e){if(rn.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var gJ=vJ(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Lat=vJ(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function mJ(e,t){if(!e)return t;t=_E(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function $at(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var Rat=mJ(Lat,"transition"),YI=mJ(gJ,"transform"),Oat="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(rn.transform3dSupported?"will-change:transform;":"");function Nat(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Bat(e,t,n){if(!rt(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=Zc(t);var i=Nat(n),o=Math.max(Math.round(a)*1.5,6),s="",l=YI+":",u;Ft(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=t+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+v.join("")+'"></div>'}function Fat(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=rn.transformSupported?","+YI+r:",left"+r+",top"+r),Rat+":"+a}function pV(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!rn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=rn.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+YI+":"+o+";":[["top",0],["left",0],[gJ,o]]}function Vat(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),te(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function zat(e,t,n){var r=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=yY(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(Fat(a,n)),i&&r.push("background-color:"+i),te(["width","color","radius"],function(h){var p="border-"+h,v=_E(p),g=e.get(v);g!=null&&r.push(p+":"+g+(h==="color"?"":"px"))}),r.push(Vat(c)),f!=null&&r.push("padding:"+df(f).join("px ")+"px"),r.join(";")+";"}function vV(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&K8e(e,o,n,r,a)}else{e[0]=r,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Hat=function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,rn.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var a=this._zr=t.getZr(),i=n.appendTo,o=i&&(rt(i)?document.querySelector(i):jc(i)?i:ht(i)&&i(t.getDom()));vV(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(r),this._api=t,this._container=o;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();li(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=$at(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Oat+zat(t,!this._firstShow,this._longHide)+pV(i[0],i[1],!0)+("border-color:"+Zc(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(rt(i)&&r.get("trigger")==="item"&&!pJ(r)&&(s=Bat(r,a,i)),rt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Ge(t)||(t=[t]);for(var l=0;l<t.length;l++)jc(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,n){var r=this._styleCoord;if(vV(r,this._zr,this._container,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=pV(r[0],r[1]);te(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",rn.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}();const Gat=Hat;var Wat=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),mV(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,a,i){var o=this;bt(t)&&cn(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new en({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:yY(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),te(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),te(["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,n=this.el.getBoundingRect(),r=gV(t.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},e.prototype.moveTo=function(t,n){var r=this.el;if(r){var a=this._styleCoord;mV(a,this._zr,t,n),t=a[0],n=a[1];var i=r.style,o=gl(i.borderWidth||0),s=gV(i);r.x=t+o+s.left,r.y=n+o+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*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)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(it(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function gl(e){return Math.max(0,e)}function gV(e){var t=gl(e.shadowBlur||0),n=gl(e.shadowOffsetX||0),r=gl(e.shadowOffsetY||0);return{left:gl(t-n),right:gl(t+n),top:gl(t-r),bottom:gl(t+r)}}function mV(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const Uat=Wat;var jat=new tn({shape:{x:-1,y:-1,width:2,height:2}}),Kat=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(rn.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=O6e(a.get("renderMode"));this._tooltipContent=i==="richText"?new Uat(r):new Gat(r,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(n,r,a){if(!(rn.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Ph(this,"_updatePosition",50,"fixRate"):Tg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");eJ("itemTooltip",this._api,it(function(a,i,o){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||rn.node||!a.getDom())){var o=yV(i,a);this._ticket="";var s=i.dataByCoordSys,l=Zat(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=jat;c.x=i.x,c.y=i.y,c.update(),kt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=tJ(i,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(yV(i,a))},t.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=kp([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){var s=kt(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;wc(a,function(c){if(kt(c).dataIndex!=null)return l=c,!0;if(kt(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(n,l,r):u?this._showComponentItemTooltip(n,u,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=it(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=kp([r.tooltipOption],i),l=this._renderMode,u=[],c=gr("section",{blocks:[],noHeader:!0}),f=[],d=new yx;te(n,function(_){te(_.dataByAxis,function(b){var w=a.getComponent(b.axisDim+"Axis",b.axisIndex),S=b.value;if(!(!w||S==null)){var x=ZZ(S,w.axis,a,b.seriesDataIndices,b.valueLabelOpt),C=gr("section",{header:x,noHeader:!yi(x),sortBlocks:!0,blocks:[]});c.blocks.push(C),te(b.seriesDataIndices,function(T){var k=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=k.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=b.axisDim,M.axisIndex=b.axisIndex,M.axisType=b.axisType,M.axisId=b.axisId,M.axisValue=qE(w.axis,{value:S}),M.axisValueLabel=x,M.marker=d.makeTooltipMarker("item",Zc(M.color),l);var I=r4(k.formatTooltip(A,!0,null)),E=I.frag;if(E){var L=kp([k],i).get("valueFormatter");C.blocks.push(L?Be({valueFormatter:L},E):E)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,p=s.get("order"),v=u4(c,d,l,p,a.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?`
`:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,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(n,r,a){var i=this._ecModel,o=kt(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=n.positionDefault,v=kp([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,f),_=new yx;m.marker=_.makeTooltipMarker("item",Zc(m.color),h);var b=r4(u.formatTooltip(c,!1,f)),w=v.get("order"),S=v.get("valueFormatter"),x=b.frag,C=x?u4(S?Be({valueFormatter:S},x):x,_,h,w,i.get("useUTC"),v.get("textStyle")):b.text,T="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,C,m,T,n.offsetX,n.offsetY,n.position,n.target,_)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=this._renderMode==="html",o=kt(r),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(rt(l)){var c=l;l={content:c,formatter:c},u=!0}u&&i&&l.content&&(l=_t(l),l.content=Wr(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,p=kp(f,this._tooltipModel,h?{position:h}:null),v=p.get("content"),g=Math.random()+"",m=new yx;this._showOrMove(p,function(){var _=_t(p.get("formatterParams")||{});this._showTooltipContent(p,v,_,g,n.offsetX,n.offsetY,n.position,r,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,p=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),v=p.color;if(d)if(rt(d)){var g=n.ecModel.get("useUTC"),m=Ge(a)?a[0]:a,_=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,_&&(h=ym(m.axisValue,h,g)),h=wE(h,a,!0)}else if(ht(d)){var b=it(function(w,S){w===this._ticket&&(f.setContent(S,c,n,v,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,b)}else h=d;f.setContent(h,c,n,v,l),f.show(n,v),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Ge(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Ge(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ht(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Ge(r))a=Qe(r[0],u),i=Qe(r[1],c);else if(bt(r)){var v=r;v.width=f[0],v.height=f[1];var g=rr(v,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(rt(r)&&l){var m=Xat(r,p,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=Yat(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=bV(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=bV(h)?f[1]/2:h==="bottom"?f[1]:0),pJ(n)){var m=qat(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&te(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&te(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&te(v,function(m,_){var b=g[_];o=o&&m.seriesIndex===b.seriesIndex&&m.dataIndex===b.dataIndex}),i&&te(d.seriesDataIndices,function(m){var _=m.seriesIndex,b=r[_],w=i[_];b&&w&&w.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){rn.node||!r.getDom()||(Tg(this,"_updatePosition"),this._tooltipContent.dispose(),rA("itemTooltip",r))},t.type="tooltip",t}(On);function kp(e,t,n){var r=t.ecModel,a;n?(a=new mn(n,r,r),a=new mn(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof mn&&(o=o.get("tooltip",!0)),rt(o)&&(o={formatter:o}),o&&(a=new mn(o,a,r)))}return a}function yV(e,t){return e.dispatchAction||it(t.dispatchAction,t)}function Yat(e,t,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>r?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function qat(e,t,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Xat(e,t,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function bV(e){return e==="center"||e==="middle"}function Zat(e,t,n){var r=ZP(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=dm(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=kt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const Jat=Kat;function Qat(e){zt(Em),e.registerComponentModel(Dat),e.registerComponentView(Jat),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},jn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},jn)}var eit=["rect","polygon","keep","clear"];function tit(e,t){var n=yn(e?e.brush:[]);if(n.length){var r=[];te(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Ge(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),nit(s),t&&!s.length&&s.push.apply(s,eit)}}function nit(e){var t={};te(e,function(n){t[n]=1}),e.length=0,te(t,function(n,r){e.push(r)})}var _V=te;function wV(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function uA(e,t,n){var r={};return _V(t,function(i){var o=r[i]=a();_V(e[i],function(s,l){if($r.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new $r(u),l==="opacity"&&(u=_t(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new $r(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function yJ(e,t,n){var r;te(n,function(a){t.hasOwnProperty(a)&&wV(t[a])&&(r=!0)}),r&&te(n,function(a){t.hasOwnProperty(a)&&wV(t[a])?e[a]=_t(t[a]):delete e[a]})}function rit(e,t,n,r,a,i){var o={};te(e,function(f){var d=$r.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return DE(n,s,f)}function u(f,d){MY(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,f),v=t[p],g=o[p],m=0,_=g.length;m<_;m++){var b=g[m];v[b]&&v[b].applyVisual(f,l,u)}}}function ait(e,t,n,r){var a={};return te(e,function(i){var o=$r.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(S){return DE(s,f,S)}function c(S,x){MY(s,f,S,x)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var p=r!=null?d.get(l,f):f,v=n(p),g=t[v],m=a[v],_=0,b=m.length;_<b;_++){var w=m[_];g[w]&&g[w].applyVisual(p,u,c)}}}}}function iit(e){var t=e.brushType,n={point:function(r){return SV[t].point(r,n,e)},rect:function(r){return SV[t].rect(r,n,e)}};return n}var SV={lineX:xV(0),lineY:xV(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&ic(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var a=e.x,i=e.y,o=e.width,s=e.height,l=r[0];if(ic(r,a,i)||ic(r,a+o,i)||ic(r,a,i+s)||ic(r,a+o,i+s)||Nt.create(e).contain(l[0],l[1])||Bp(a,i,a+o,i,r)||Bp(a,i,a,i+s,r)||Bp(a+o,i,a+o,i+s,r)||Bp(a,i+s,a+o,i+s,r))return!0}}};function xV(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[e];return Ap(s,o)}},rect:function(r,a,i){if(r){var o=i.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),Ap(s[0],o)||Ap(s[1],o)||Ap(o[0],s)||Ap(o[1],s)}}}}function Ap(e,t){return t[0]<=e&&e<=t[1]}var CV=["inBrush","outOfBrush"],OC="__ecBrushSelect",cA="__ecInBrushSelectEvent";function bJ(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new jI(t.option,e);n.setInputRanges(t.areas,e)})}function oit(e,t,n){var r=[],a,i;e.eachComponent({mainType:"brush"},function(o){n&&n.type==="takeGlobalCursor"&&o.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),bJ(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:_t(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var v=We(o.areas,function(S){var x=cit[S.brushType],C=mt({boundingRect:x?x(S):void 0},S);return C.selectors=iit(C),C}),g=uA(o.option,CV,function(S){S.mappingMethod="fixed"});Ge(c)&&te(c,function(S){f[S]=1});function m(S){return c==="all"||!!f[S]}function _(S){return!!S.length}e.eachSeries(function(S,x){var C=h[x]=[];S.subType==="parallel"?b(S,x):w(S,x,C)});function b(S,x){var C=S.coordinateSystem;p=p||C.hasAxisBrushed(),m(x)&&C.eachActiveState(S.getData(),function(T,k){T==="active"&&(d[k]=1)})}function w(S,x,C){if(!(!S.brushSelector||uit(o,x))&&(te(v,function(k){o.brushTargetManager.controlSeries(k,S,e)&&C.push(k),p=p||_(C)}),m(x)&&_(C))){var T=S.getData();T.each(function(k){TV(S,C,T,k)&&(d[k]=1)})}}e.eachSeries(function(S,x){var C={seriesId:S.id,seriesIndex:x,seriesName:S.name,dataIndex:[]};l.selected.push(C);var T=h[x],k=S.getData(),A=m(x)?function(M){return d[M]?(C.dataIndex.push(k.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return TV(S,T,k,M)?(C.dataIndex.push(k.getRawIndex(M)),"inBrush"):"outOfBrush"};(m(x)?p:_(T))&&rit(CV,g,k,A)})}),sit(t,a,i,r,n)}function sit(e,t,n,r,a){if(a){var i=e.getZr();if(!i[cA]){i[OC]||(i[OC]=lit);var o=Ph(i,OC,n,t);o(e,r)}}}function lit(e,t){if(!e.isDisposed()){var n=e.getZr();n[cA]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[cA]=!1}}function TV(e,t,n,r){for(var a=0,i=t.length;a<i;a++){var o=t[a];if(e.brushSelector(r,n,o.selectors,o))return!0}}function uit(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Ge(n)?Ft(n,t)<0:t!==n)}var cit={rect:function(e){return kV(e.range)},polygon:function(e){for(var t,n=e.range,r=0,a=n.length;r<a;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&kV(t)}};function kV(e){return new Nt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var fit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new kI(r.getZr())).on("brush",it(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){bJ(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:_t(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:_t(a),$from:r})},t.type="brush",t}(On);const dit=fit;var hit="#ddd",pit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&yJ(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:hit},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=We(n,function(r){return AV(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=AV(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Xt);function AV(e,t){return Rt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new mn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const vit=pit;var git=["rect","polygon","lineX","lineY","keep","clear"],mit=function(e){De(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,te(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return te(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:git.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},t}(pi);const yit=mit;function bit(e){e.registerComponentView(dit),e.registerComponentModel(vit),e.registerPreprocessor(tit),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,oit),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},jn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},jn),td("brush",yit)}var _it=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}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}(Xt),wit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Et(n.get("textBaseline"),n.get("textVerticalAlign")),c=new en({style:Cn(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new en({style:Cn(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=n.get("link"),v=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){f1(p,"_"+n.get("target"))}),v&&h.on("click",function(){f1(v,"_"+n.get("subtarget"))}),kt(c).eventData=kt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var m=i.getBoundingRect(),_=n.getBoxLayoutParams();_.width=m.width,_.height=m.height;var b=rr(_,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var S=b.margin,x=n.getItemStyle(["color","opacity"]);x.fill=n.get("backgroundColor");var C=new tn({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:n.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(On);function Sit(e){e.registerComponentModel(_it),e.registerComponentView(wit)}var xit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],te(r,function(u,c){var f=ar(mh(u),""),d;bt(u)?(d=_t(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Kr([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Xt);const MV=xit;var _J=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=hu(MV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(MV);Yn(_J,ww.prototype);const Cit=_J;var Tit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(On);const kit=Tit;var Ait=function(e){De(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Li);const Mit=Ait;var NC=Math.PI,PV=nn(),Pit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return gr("nameValue",{noName:!0,value:c})},te(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=Iit(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":rt(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:NC/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,m=n.get(["label","rotate"])||0;m=m*NC/180;var _,b,w,S=d.get("position",!0),x=h&&d.get("showPlayBtn",!0),C=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),k=0,A=f;S==="left"||S==="bottom"?(x&&(_=[0,0],k+=g),C&&(b=[k,0],k+=g),T&&(w=[A-p,0],A-=g)):(x&&(_=[A-p,0],A-=g),C&&(b=[0,0],k+=g),T&&(w=[A-p,0],A-=g));var M=[k,A];return n.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:_,prevBtnPosition:b,nextBtnPosition:w,axisExtent:M,controlSize:p,controlGap:v}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Ia(),l=o.x,u=o.y+o.height;co(s,s,[-l,-u]),fu(s,s,-NC/2),co(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=_(o),f=_(a.getBoundingRect()),d=_(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var v=n.labelPosOpt;if(v==null||rt(v)){var g=v==="+"?0:1;b(h,f,c,1,g),b(p,d,c,1,1-g)}else{var g=v>=0?0:1;b(h,f,c,1,g),p[1]=h[1]+v}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function _(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,S,x,C,T){w[C]+=x[C][T]-S[C][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=Eit(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Mit("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Tt;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new dr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Be({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new dr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:mt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],te(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:it(o._changeTimeline,o,u.value)},g=EV(f,d,r,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Bl(g);var m=kt(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],te(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new en({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:it(o._changeTimeline,o,f),silent:!1,style:Cn(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=Cn(p),m.ensureState("progress").style=Cn(v),r.add(m),Bl(m),PV(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",it(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",it(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",it(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var m=fo(Et(i.get(["controlStyle",p+"BtnSize"]),o),o),_=[0,-m/2,m,m],b=Dit(i,p+"Icon",_,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});b.ensureState("emphasis").style=u,r.add(b),Bl(b)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=it(u._handlePointerDrag,u),f.ondragend=it(u._handlePointerDragend,u),IV(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){IV(f,u._progressLine,s,a,i)}};this._currentPointer=EV(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},t.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},t.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},t.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=Ga(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return ao(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-n);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<n);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",PV(a[i]).dataIndex<=n)},t.type="timeline.slider",t}(kit);function Eit(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new UE({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new _q({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ql}}function Iit(e,t){return rr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function Dit(e,t,n,r){var a=r.style,i=_h(e.get(["controlStyle",t]),r||{},new Nt(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function EV(e,t,n,r,a,i){var o=t.get("color");if(a)a.setColor(o),n.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Xn(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),r=Rt({rectHover:!0,z2:100},r,!0);var u=Eh(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=hf(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=e.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function IV(e,t,n,r,a,i){if(!e.dragging){var o=a.getModel("checkpointStyle"),s=r.dataToCoord(a.getData().get("value",n));if(i||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}const Lit=Pit;function $it(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var a=n.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),mt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function Rit(e){var t=e&&e.timeline;Ge(t)||(t=t?[t]:[]),te(t,function(n){n&&Oit(n)})}function Oit(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),DV(e),lc(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});lc(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!lc(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}te(e.data||[],function(a){bt(a)&&!Ge(a)&&(!lc(a,"value")&&lc(a,"name")&&(a.value=a.name),DV(a))})}function DV(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),i={normal:1,emphasis:1};te(r,function(o,s){!i[s]&&!lc(a,s)&&(a[s]=o)}),n.label&&!lc(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function lc(e,t){return e.hasOwnProperty(t)}function Nit(e){e.registerComponentModel(Cit),e.registerComponentView(Lit),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),$it(e),e.registerPreprocessor(Rit)}function qI(e,t){if(!e)return!1;for(var n=Ge(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function h0(e){Kc(e,"label",["show"])}var p0=nn(),wJ=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(rn.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,a,i){var o=this.mainType;a||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=p0(s)[o];if(!l||!l.data){p0(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&h0(l),te(l.data,function(c){c instanceof Array?(h0(c[0]),h0(c[1])):h0(c)}),u=this.createMarkerModelFromSeries(l,this,r),Be(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),p0(s)[o]=u},this)},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return gr("section",{header:this.name,blocks:[gr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.prototype.getDataParams=function(n,r){var a=ww.prototype.getDataParams.call(this,n,r),i=this.__hostSeries;return i&&(a.seriesId=i.id,a.seriesName=i.name,a.seriesType=i.subType),a},t.getMarkerModelFromSeries=function(n,r){return p0(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Xt);Yn(wJ,ww.prototype);const nu=wJ;var Bit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(nu);const Fit=Bit;function fA(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Vit(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function v0(e,t,n,r,a,i){var o=[],s=Vs(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=XI(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(n,c),o[i]=t.get(l,c);var f=t.get(r,c),d=qi(t.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var BC={min:Pt(v0,"min"),max:Pt(v0,"max"),average:Pt(v0,"average"),median:Pt(v0,"median")};function Bg(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!Vit(t)&&!Ge(t.coord)&&Ge(a)){var i=SJ(t,n,r,e);if(t=_t(t),t.type&&BC[t.type]&&i.baseAxis&&i.valueAxis){var o=Ft(a,i.baseAxis.dim),s=Ft(a,i.valueAxis.dim),l=BC[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Ge(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)BC[u[c]]&&(u[c]=XI(n,n.mapDimension(a[c]),u[c]));return t}}function SJ(e,t,n,r){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=n.getAxis(zit(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function zit(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Fg(e,t){return e&&e.containData&&t.coord&&!fA(t)?e.containData(t.coord):!0}function Hit(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!fA(t)&&!fA(n)?e.containZone(t.coord,n.coord):!0}function xJ(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return zl(o,t[i])}:function(n,r,a,i){return zl(n.value,t[i])}}function XI(e,t,n){if(n==="average"){var r=0,a=0;return e.each(t,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var FC=nn(),Git=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=ut()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){FC(s).keep=!1}),r.eachSeries(function(s){var l=nu.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!FC(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){FC(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;te(n,function(i){var o=nu.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?qj(l):aE(l))})}})},t.type="marker",t}(On);const ZI=Git;function LV(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=Qe(i.get("x"),n.getWidth()),l=Qe(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var Wit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=nu.getMarkerModelFromSeries(i,"markPoint");o&&(LV(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new xm),f=Uit(o,n,r);r.setData(f),LV(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),_=h.getShallow("symbolKeepAspect");if(ht(p)||ht(v)||ht(g)||ht(m)){var b=r.getRawValue(d),w=r.getDataParams(d);ht(p)&&(p=p(b,w)),ht(v)&&(v=v(b,w)),ht(g)&&(g=g(b,w)),ht(m)&&(m=m(b,w))}var S=h.getModel("itemStyle").getItemStyle(),x=bm(l,"color");S.fill||(S.fill=x),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:m,symbolKeepAspect:_,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){kt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(ZI);function Uit(e,t,n){var r;e?r=We(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Be(Be({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Kr(r,n),i=We(n.get("data"),Pt(Bg,t));e&&(i=hn(i,Pt(Fg,e)));var o=xJ(!!e,r);return a.initData(i,null,o),a}const jit=Wit;function Kit(e){e.registerComponentModel(Fit),e.registerComponentView(jit),e.registerPreprocessor(function(t){qI(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var Yit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(nu);const qit=Yit;var g0=nn(),Xit=function(e,t,n,r){var a=e.getData(),i;if(Ge(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=fr(r.yAxis,r.xAxis);else{var u=SJ(r,a,t,e);s=u.valueAxis;var c=WE(a,u.valueDataDim);l=XI(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=_t(r),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=n.get("precision");v>=0&&an(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[Bg(e,i[0]),Bg(e,i[1]),Be({},i[2])];return g[2].type=g[2].type||null,Rt(g[2],g[0]),Rt(g[2],g[1]),g};function F1(e){return!isNaN(e)&&!isFinite(e)}function $V(e,t,n,r){var a=1-e,i=r.dimensions[e];return F1(t[a])&&F1(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function Zit(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&($V(1,n,r,e)||$V(0,n,r,e)))return!0}return Fg(e,t[0])&&Fg(e,t[1])}function VC(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=Qe(o.get("x"),a.getWidth()),u=Qe(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(pf(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;F1(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):F1(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var Jit=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=nu.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=g0(o).from,u=g0(o).to;l.each(function(c){VC(l,c,!0,i,a),VC(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new _I);this.group.add(c.group);var f=Qit(o,n,r),d=f.from,h=f.to,p=f.line;g0(r).from=d,g0(r).to=h,r.setData(p);var v=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),_=r.get("symbolOffset");Ge(v)||(v=[v,v]),Ge(g)||(g=[g,g]),Ge(m)||(m=[m,m]),Ge(_)||(_=[_,_]),f.from.each(function(w){b(d,w,!0),b(h,w,!1)}),p.each(function(w){var S=p.getItemModel(w).getModel("lineStyle").getLineStyle();p.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),S.stroke==null&&(S.stroke=d.getItemVisual(w,"style").fill),p.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:S})}),c.updateData(p),f.line.eachItemGraphicEl(function(w){kt(w).dataModel=r,w.traverse(function(S){kt(S).dataModel=r})});function b(w,S,x){var C=w.getItemModel(S);VC(w,S,x,n,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=bm(l,"color")),w.setItemVisual(S,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Et(C.get("symbolOffset",!0),_[x?0:1]),symbolRotate:Et(C.get("symbolRotate",!0),m[x?0:1]),symbolSize:Et(C.get("symbolSize"),g[x?0:1]),symbol:Et(C.get("symbol",!0),v[x?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(ZI);function Qit(e,t,n){var r;e?r=We(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Be(Be({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Kr(r,n),i=new Kr(r,n),o=new Kr([],n),s=We(n.get("data"),Pt(Xit,t,e,n));e&&(s=hn(s,Pt(Zit,e)));var l=xJ(!!e,r);return a.initData(We(s,function(u){return u[0]}),null,l),i.initData(We(s,function(u){return u[1]}),null,l),o.initData(We(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const eot=Jit;function tot(e){e.registerComponentModel(qit),e.registerComponentView(eot),e.registerPreprocessor(function(t){qI(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var not=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(nu);const rot=not;var m0=nn(),aot=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Bg(e,a),s=Bg(e,i),l=o.coord,u=s.coord;l[0]=fr(l[0],-1/0),l[1]=fr(l[1],-1/0),u[0]=fr(u[0],1/0),u[1]=fr(u[1],1/0);var c=q_([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function V1(e){return!isNaN(e)&&!isFinite(e)}function RV(e,t,n,r){var a=1-e;return V1(t[a])&&V1(n[a])}function iot(e,t){var n=t.coord[0],r=t.coord[1],a={coord:n,x:t.x0,y:t.y0},i={coord:r,x:t.x1,y:t.y1};return pf(e,"cartesian2d")?n&&r&&(RV(1,n,r)||RV(0,n,r))?!0:Hit(e,a,i):Fg(e,a)||Fg(e,i)}function OV(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=Qe(o.get(n[0]),a.getWidth()),u=Qe(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),h=i.clampData(f),p=[];n[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(p,n,!0)}else{var v=e.get(n[0],t),g=e.get(n[1],t),m=[v,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(pf(i,"cartesian2d")){var _=i.getAxis("x"),b=i.getAxis("y"),v=e.get(n[0],t),g=e.get(n[1],t);V1(v)?s[0]=_.toGlobalCoord(_.getExtent()[n[0]==="x0"?0:1]):V1(g)&&(s[1]=b.toGlobalCoord(b.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var NV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],oot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=nu.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=We(NV,function(f){return OV(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Tt});this.group.add(c.group),this.markKeep(c);var f=sot(o,n,r);r.setData(f),f.each(function(d){var h=We(NV,function(T){return OV(f,d,T,n,i)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),m=v.getExtent(),_=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],b=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];Ga(_),Ga(b);var w=!(g[0]>_[1]||g[1]<_[0]||m[0]>b[1]||m[1]<b[0]),S=!w;f.setItemLayout(d,{points:h,allClipped:S});var x=f.getItemModel(d).getModel("itemStyle").getItemStyle(),C=bm(l,"color");x.fill||(x.fill=C,rt(x.fill)&&(x.fill=pg(x.fill,.4))),x.stroke||(x.stroke=C),f.setItemVisual(d,"style",x)}),f.diff(m0(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var p=new ga({shape:{points:h.points}});f.setItemGraphicEl(d,p),c.group.add(p)}}).update(function(d,h){var p=m0(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?p&&c.group.remove(p):(p?sn(p,{shape:{points:v.points}},r,d):p=new ga({shape:{points:v.points}}),f.setItemGraphicEl(d,p),c.group.add(p))}).remove(function(d){var h=m0(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var p=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Br(d,vr(p),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:rt(v.fill)?pg(v.fill,1):"#000"}),Nr(d,p),Un(d,null,null,p.get(["emphasis","disabled"])),kt(d).dataModel=r}),m0(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(ZI);function sot(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=We(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Be(Be({},f),{name:u,ordinalMeta:null})});a=We(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Kr(a,n)}else a=[{name:"value",type:"float"}],r=new Kr(a,n);var s=We(n.get("data"),Pt(aot,t,e,n));e&&(s=hn(s,Pt(iot,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return zl(h,a[d])}:function(u,c,f,d){return zl(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const lot=oot;function uot(e){e.registerComponentModel(rot),e.registerComponentView(lot),e.registerPreprocessor(function(t){qI(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var cot=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"])}},fot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Ge(r)&&te(r,function(i,o){rt(i)&&(i={type:i}),r[o]=Rt(i,cot(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(a=a.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&XP(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=ut(),s=We(i,function(l){return(rt(l)||an(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new mn(l,this,this.ecModel))},this);this._data=hn(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;te(i,function(o){r[o.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;te(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;te(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Ft(this._availableNames,n)>=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}(Xt);const dA=fot;var Hf=Pt,hA=te,y0=Tt,dot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new y0),this.group.add(this._selectorGroup=new y0),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),h=rr(c,f,d),p=this.layoutInner(n,o,h,i,l,u),v=rr(mt({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fJ(p,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=ut(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),hA(r.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
`)){var g=new y0;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(v)[0];if(!c.get(v))if(m){var _=m.getData(),b=_.getVisual("legendLineStyle")||{},w=_.getVisual("legendIcon"),S=_.getVisual("style"),x=this._createItem(m,v,p,h,r,n,b,S,w,f,i);x.on("click",Hf(BV,v,null,i,d)).on("mouseover",Hf(pA,m.name,null,i,d)).on("mouseout",Hf(vA,m.name,null,i,d)),a.ssr&&x.eachChild(function(C){var T=kt(C);T.seriesIndex=m.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),c.set(v,!0)}else a.eachRawSeries(function(C){if(!c.get(v)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(v))return;var k=T.indexOfName(v),A=T.getItemVisual(k,"style"),M=T.getItemVisual(k,"legendIcon"),I=la(A.fill);I&&I[3]===0&&(I[3]=.2,A=Be(Be({},A),{fill:ro(I,"rgba")}));var E=this._createItem(C,v,p,h,r,n,{},A,M,f,i);E.on("click",Hf(BV,null,v,i,d)).on("mouseover",Hf(pA,null,v,i,d)).on("mouseout",Hf(vA,null,v,i,d)),a.ssr&&E.eachChild(function(L){var N=kt(L);N.seriesIndex=C.seriesIndex,N.dataIndex=p,N.ssrType="legend"}),c.set(v,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();hA(n,function(u){var c=u.type,f=new en({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Br(f,{normal:d,emphasis:h},{defaultText:u.title}),Bl(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(r),m=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),b=i.get("icon");c=b||c||"roundRect";var w=hot(c,i,l,u,h,g,d),S=new y0,x=i.getModel("textStyle");if(ht(n.getLegendIcon)&&(!b||b==="inherit"))S.add(n.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:_}));else{var C=b==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;S.add(pot({itemWidth:p,itemHeight:v,icon:c,iconRotate:C,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:_}))}var T=s==="left"?p+5:-5,k=s,A=o.get("formatter"),M=r;rt(A)&&A?M=A.replace("{name}",r??""):ht(A)&&(M=A(r));var I=g?x.getTextColor():i.get("inactiveColor");S.add(new en({style:Cn(x,{text:M,x:T,y:v/2,fill:I,align:k,verticalAlign:"middle"},{inheritColor:I})}));var E=new tn({shape:S.getBoundingRect(),style:{fill:"transparent"}}),L=i.getModel("tooltip");return L.get("show")&&wh({el:E,componentModel:o,itemName:r,itemTooltipOption:L.option}),S.add(E),S.eachChild(function(N){N.silent=!0}),E.silent=!f,this.getContentGroup().add(S),Bl(S),S.__legendDataIndex=a,S},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Rc(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Rc("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=n.get("selectorButtonGap",!0),v=n.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",_=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[g]=c[g]+p+d[g],b[m]=Math.max(c[m],d[m]),b[_]=Math.min(0,d[_]+h[1-v]),b}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}(On);function hot(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),hA(g,function(_,b){g[b]==="inherit"&&(g[b]=m[b])})}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"?r.decal:Qd(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=t.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&v?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 pot(e){var t=e.icon||"roundRect",n=Xn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function BV(e,t,n,r){vA(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),pA(e,t,n,r)}function CJ(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,a=t.length;r<a&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function pA(e,t,n,r){CJ(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function vA(e,t,n,r){CJ(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const TJ=dot;function vot(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var r=0;r<t.length;r++)if(!t[r].isSelected(n.name))return!1;return!0})}function Mp(e,t,n){var r={},a=e==="toggleSelected",i;return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();te(s,function(l){var u=l.get("name");if(!(u===`
`||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function got(e){e.registerAction("legendToggleSelect","legendselectchanged",Pt(Mp,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Pt(Mp,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Pt(Mp,"inverseSelect")),e.registerAction("legendSelect","legendselected",Pt(Mp,"select")),e.registerAction("legendUnSelect","legendunselected",Pt(Mp,"unSelect"))}function kJ(e){e.registerComponentModel(dA),e.registerComponentView(TJ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,vot),e.registerSubTypeDefaulter("legend",function(){return"plain"}),got(e)}var mot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var i=Ch(n);e.prototype.init.call(this,n,r,a),FV(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),FV(this,this.option,n)},t.type="legend.scroll",t.defaultOption=hu(dA.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}(dA);function FV(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,Jl(t,n,{type:"box",ignoreSize:!!a})}const yot=mot;var VV=Tt,zC=["width","height"],HC=["x","y"],bot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new VV),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new VV)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=Ge(f)?f:[f,f];p("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new en({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",_=_h(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:it(u._pageGo,u,m,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});_.name=v,c.add(_)}},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=zC[u],f=HC[u],d=zC[1-u],h=HC[1-u];o&&Rc("horizontal",l,n.get("selectorItemGap",!0));var p=n.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=_t(a);o&&(m[c]=a[c]-v[c]-p);var _=this._layoutContentAndController(n,i,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=_[c]+p;else{var b=v[c]+p;g[u]-=b,_[f]-=b}_[c]+=v[c]+p,g[1-u]+=_[h]+_[d]/2-v[d]/2,_[d]=Math.max(_[d],v[d]),_[h]=Math.min(_[h],v[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},t.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Rc(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Rc("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var m=[0,0],_=[-p.x,-p.y],b=Et(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var w=n.get("pageButtonPosition",!0);w==="end"?_[i]+=a[o]-p[o]:m[i]+=p[o]+b}_[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(_);var S={x:0,y:0};if(S[o]=v?a[o]:h[o],S[s]=Math.max(h[s],p[s]),S[l]=Math.min(0,p[l]+_[1-i]),f.__rectSize=a[o],v){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-b,0),x[s]=S[s],f.setClipPath(new tn({shape:x})),f.__rectSize=x[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&sn(c,{x:C.contentPosition[0],y:C.contentPosition[1]},v?n:null),this._updatePageInfoView(n,C),S},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;te(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",rt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=zC[o],l=HC[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=w(f);p.contentPosition[o]=-v.s;for(var g=u+1,m=v,_=v,b=null;g<=d;++g)b=w(c[g]),(!b&&_.e>m.s+i||b&&!S(b,m.s))&&(_.i>m.i?m=_:m=b,m&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=m.i),++p.pageCount)),_=b;for(var g=u-1,m=v,_=v,b=null;g>=-1;--g)b=w(c[g]),(!b||!S(_,b.s))&&m.i<_.i&&(_=m,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=m.i),++p.pageCount,++p.pageIndex),m=b;return p;function w(x){if(x){var C=x.getBoundingRect(),T=C[l]+x[l];return{s:T,e:T+C[s],i:x.__legendDataIndex}}}function S(x,C){return x.e>=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(TJ);const _ot=bot;function wot(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(r)})})}function Sot(e){zt(kJ),e.registerComponentModel(yot),e.registerComponentView(_ot),wot(e)}function xot(e){zt(kJ),zt(Sot)}var Cot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=hu(Ng.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ng);const Tot=Cot;var JI=nn();function kot(e,t,n){JI(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function Aot(e,t){for(var n=JI(e).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var i=r[a],o=n.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||AJ(n,o))}}}function AJ(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function Mot(e,t){var n={model:t,containsPoint:Pt(Eot,t),dispatchAction:Pt(Pot,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Mm(e.getZr());return te(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function Pot(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Eot(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function Iot(e){var t,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Dot(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=JI(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=ut());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=lJ(i);te(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Mot(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ut());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){AJ(a,i);return}var c=Iot(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Ph(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Lot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),kot(a,n,{pan:it(GC.pan,this),zoom:it(GC.zoom,this),scrollMove:it(GC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Aot(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(GI),GC={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=WC[t](null,[r.originX,r.originY],o,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gf(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:zV(function(e,t,n,r,a,i){var o=WC[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:zV(function(e,t,n,r,a,i){var o=WC[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function zV(e){return function(t,n,r,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,n,r,a);if(gf(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var WC={grid:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const $ot=Lot;function MJ(e){WI(e),e.registerComponentModel(Tot),e.registerComponentView($ot),Dot(e)}var Rot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hu(Ng.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Ng);const Oot=Rot;var Pp=tn,HV=7,Not=1,UC=30,Bot=7,Ep="horizontal",GV="vertical",Fot=5,Vot=["line","bar","candlestick","scatter"],zot={easing:"cubicOut",duration:100,delay:0},Hot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=it(this._onBrush,this),this._onBrushEnd=it(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Ph(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Tg(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Tt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?Bot:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Ep?{right:s.width-o.x-o.width,top:s.height-UC-HV-i,width:o.width,height:UC}:{right:HV,top:o.y,width:UC,height:o.height},u=Ch(n.option);te(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=rr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===GV&&this._size.reverse()},t.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Ep&&!o?{scaleY:l?1:-1,scaleX:1}:a===Ep&&o?{scaleY:l?1:-1,scaleX:-1}:a===GV&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new Pp({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Pp({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:it(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],p=[0,r[0]],v=[[r[0],0],[0,0]],g=[],m=p[1]/(o.count()-1),_=0,b=Math.round(o.count()/r[0]),w;o.each([l],function(k,A){if(b>0&&A%b){_+=m;return}var M=k==null||isNaN(k)||k==="",I=M?0:dn(k,f,h,!0);M&&!w&&A?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&w&&(v.push([_,0]),g.push([_,0])),v.push([_,I]),g.push([_,I]),_+=m,w=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function x(k){var A=S.getModel(k?"selectedDataBackground":"dataBackground"),M=new Tt,I=new ga({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new ba({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(E),M}for(var C=0;C<3;C++){var T=x(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();te(l,function(u){if(!a&&!(r!==!0&&Ft(Vot,u.get("type"))<0)){var c=i.getComponent(El(o),s).axis,f=Got(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new Pp({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Pp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Not,fill:"rgba(0,0,0,0)"}})),te([0,1],function(b){var w=l.get("handleIcon");!p1[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var S=Xn(w,-1,0,2,2,null,!0);S.attr({cursor:WV(this._orient),draggable:!0,drift:it(this._onDragMove,this,b),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),C=l.get("handleSize");this._handleHeight=Qe(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Bl(S);var T=l.get("handleColor");T!=null&&(S.style.fill=T),o.add(a[b]=S);var k=l.getModel("textStyle");n.add(i[b]=new en({silent:!0,invisible:!0,style:Cn(k,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:k.getTextColor(),font:k.getFont()}),z2:10}))},this);var h=d;if(f){var p=Qe(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new tn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,m=r.moveHandleIcon=Xn(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new tn({invisible:!0,shape:{y:s[1]-_,height:p+_}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:WV(this._orient),drift:it(this._onDragMove,this,"all"),ondragstart:it(this._showDataInfo,this,!0),ondragend:it(this._onDragEnd,this),onmouseover:it(this._showDataInfo,this,!0),onmouseout:it(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[dn(n[0],[0,100],r,!0),dn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gf(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?dn(s.minSpan,l,o,!0):null,s.maxSpan!=null?dn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ga([dn(i[0],o,l,!0),dn(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ga(a.slice()),o=this._size;te([0,1],function(h){var p=r.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:a[h]+(h?-1:1),y:o[1]/2-v/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new tn,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Ga(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var v=Fl(a.handles[p].parent,this.group),g=hw(p===0?"right":"left",v),m=this._handleWidth/2+Fot,_=ao([d[p]+(p===0?-m:m),this._size[1]/2],v);i[p].setStyle({x:_[0],y:_[1],verticalAlign:o===Ep?"middle":g,align:o===Ep?g:"center",text:s[p]})}},t.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return ht(i)?i(n,s):rt(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,a=r.handleLabels;a[0].attr("invisible",!n),a[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},t.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,Os(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ao([r,a],o,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Ot(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ga([dn(a.x,o,s,!0),dn(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(Os(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Pp({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?zot:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=lJ(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},t.type="dataZoom.slider",t}(GI);function Got(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function WV(e){return e==="vertical"?"ns-resize":"ew-resize"}const Wot=Hot;function PJ(e){e.registerComponentModel(Oot),e.registerComponentView(Wot),WI(e)}function Uot(e){zt(MJ),zt(PJ)}var jot={get:function(e,t,n){var r=_t((Kot[e]||{})[t]);return n&&Ge(r)?r[r.length-1]:r}},Kot={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const EJ=jot;var UV=$r.mapVisual,Yot=$r.eachVisual,qot=Ge,jV=te,Xot=Ga,Zot=dn,Jot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&yJ(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=it(n,this),this.controllerVisuals=uA(this.option.controller,r,n),this.targetVisuals=uA(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=yn(n),r},t.prototype.eachTargetSeries=function(n,r){te(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Ge(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(rt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ht(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=Xot([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Rt(i,a),Rt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){qot(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},jV(p,function(g,m){if($r.isValidType(m)){var _=EJ.get(m,"inactive",s);_!=null&&(v[m]=_,m==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";jV(this.stateList,function(m){var _=this.itemSize,b=f[m];b||(b=f[m]={color:s?p:[p]}),b.symbol==null&&(b.symbol=d&&_t(d)||(s?g:[g])),b.symbolSize==null&&(b.symbolSize=h&&_t(h)||(s?_[0]:[_[0],_[0]])),b.symbol=UV(b.symbol,function(x){return x==="none"?g:x});var w=b.symbolSize;if(w!=null){var S=-1/0;Yot(w,function(x){x>S&&(S=x)}),b.symbolSize=UV(w,function(x){return Zot(x,[0,S],[0,_[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Xt);const z1=Jot;var KV=[20,140],Qot=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=KV[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=KV[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Ge(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),te(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Ga((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},t.prototype.getValueState=function(n){var r=this.option.range,a=this.getExtent();return(r[0]<=a[0]||r[0]<=n)&&(r[1]>=a[1]||n<=r[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},t.prototype.getVisualMeta=function(n){var r=YV(this,"outOfRange",this.getExtent()),a=YV(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:n(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;l<c&&(!a.length||r[l]<=a[0]);l++)r[l]<a[s]&&o(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<r[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(r[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=hu(z1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(z1);function YV(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,i=n[0],o=[],s=0;s<=r&&i<n[1];s++)o.push(i),i+=a;return o.push(n[1]),o}const est=Qot;var tst=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,a,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,i)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,a=df(r.get("padding")||0),i=n.getBoundingRect();n.add(new tn({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,p){s[h]=p}var f=o.controllerVisuals[i||o.getValueState(n)],d=$r.prepareVisualTypes(f);return te(d,function(h){var p=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=f.__alphaForOpacity),$r.dependsOn(h,r)&&p&&p.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;bw(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(n,r,a,i){},t.type="visualMap",t}(On);const IJ=tst;var qV=[["left","right","width"],["top","bottom","height"]];function DJ(e,t,n){var r=e.option,a=r.align;if(a!=null&&a!=="auto")return a;for(var i={width:t.getWidth(),height:t.getHeight()},o=r.orient==="horizontal"?1:0,s=qV[o],l=[0,null,10],u={},c=0;c<3;c++)u[qV[1-o][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][o],d=rr(u,i,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function gb(e,t){return te(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Po=dn,nst=te,XV=Math.min,jC=Math.max,rst=12,ast=6,ist=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(n,r){e.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=it(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=it(this._hideIndicator,this)},t.prototype.doRender=function(n,r,a,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,a){if(r){var i=r[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new en({style:Cn(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=DJ(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Tt;u.add(c),c.add(a.outOfRange=ZV()),c.add(a.inRange=ZV(null,s?QV(this._orient):null,it(this._dragHandle,this,"all",!1),it(this._dragHandle,this,"all",!0))),c.setClipPath(new tn({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=jC(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,i,d,o),this._createHandle(r,u,1,i,d,o)),this._createIndicator(r,u,i,d,o),n.add(u)},t.prototype._createHandle=function(n,r,a,i,o,s){var l=it(this._dragHandle,this,a,!1),u=it(this._dragHandle,this,a,!0),c=fo(n.get("handleSize"),i[0]),f=Xn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=QV(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Os(m.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),bc(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,p=new en({cursor:d,draggable:!0,drift:l,onmousemove:function(m){Os(m.event)},ondragend:u,style:Cn(h,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var v=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=v,g.handleLabels[a]=p},t.prototype._createIndicator=function(n,r,a,i,o){var s=fo(n.get("indicatorSize"),a[0]),l=Xn(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof Ar){var c=l.style;l.useStyle(Be({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new en({silent:!0,invisible:!0,style:Cn(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:ast)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=d,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(n,r,a,i){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(n,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():JV(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[Po(r[0],a,i,!0),Po(r[1],a,i,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];gf(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[Po(i[0],o,s,!0),Po(i[1],o,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),i=this._shapes,o=[0,r.itemSize[1]],s=n?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(n,r,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,o),l=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new ts(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var a=100,i=[],o=(n[1]-n[0])/a;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<a;s++){var l=n[0]+o*s;if(l>n[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new Tt(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();nst([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=Po(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=ao(a.handleLabelPoints[c],Fl(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",d),p=this.getControllerVisual(n,"symbolSize"),v=Po(n,s,u,!0),g=l[0]-p/2,m={x:f.x,y:f.y};f.y=v,f.x=g;var _=ao(c.indicatorLabelPoint,Fl(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),S=this._orient,x=S==="horizontal";b.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:x?w:"middle",align:x?"center":w});var C={x:g,y:v,style:{fill:h}},T={style:{x:_[0],y:_[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(C,k),b.animateTo(T,k)}else f.attr(C),b.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=XV(jC(0,i[1]),a[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(n,r){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();n=XV(jC(o[0],n),o[1]);var l=ost(a,s,o),u=[n-l,n+l],c=Po(n,o,s,!0),f=[Po(u[0],o,s,!0),Po(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(r||JV(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var p=D6e(d,h);this._dispatchHighDown("downplay",gb(p[0],a)),this._dispatchHighDown("highlight",gb(p[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(wc(n.target,function(l){var u=kt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a<r.length;a++)this.api.leaveBlur(r[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gb(n,this.visualMapModel)),n.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(n,r,a,i){var o=Fl(r,i?null:this.group);return Ge(n)?ao(n,o,a):hw(n,o,a)},t.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(IJ);function ZV(e,t,n,r){return new ga({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){Os(a.event)},ondragend:r})}function ost(e,t,n){var r=rst/2,a=e.get("hoverLinkDataSize");return a&&(r=Po(a,t,n,!0)/2),r}function JV(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function QV(e){return e==="vertical"?"ns-resize":"ew-resize"}const sst=ist;var lst={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ust=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},cst=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",function(r){var a=e.pipelineContext;!r.isTargetSeries(e)||a&&a.large||n.push(ait(r.stateList,r.targetVisuals,it(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(it(fst,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function fst(e,t,n,r){for(var a=t.targetVisuals[r],i=$r.prepareVisualTypes(a),o={color:bm(e.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return o.color;function f(h){return o[h]}function d(h,p){o[h]=p}}var e6=te;function dst(e){var t=e&&e.visualMap;Ge(t)||(t=t?[t]:[]),e6(t,function(n){if(n){Gf(n,"splitList")&&!Gf(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Ge(r)&&e6(r,function(a){bt(a)&&(Gf(a,"start")&&!Gf(a,"min")&&(a.min=a.start),Gf(a,"end")&&!Gf(a,"max")&&(a.max=a.end))})}})}function Gf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var t6=!1;function LJ(e){t6||(t6=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(lst,ust),te(cst,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(dst))}function $J(e){e.registerComponentModel(est),e.registerComponentView(sst),LJ(e)}var hst=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],pst[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=_t(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=We(this._pieceList,function(l){return l=_t(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=$r.listVisualTypes(),i=this.isCategory();te(n.pieces,function(s){te(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),te(r,function(s,l){var u=!1;te(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&te(this.stateList,function(c){(n[c]||(n[c]={}))[l]=EJ.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,te(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;te(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=_t(n)},t.prototype.getValueState=function(n){var r=$r.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=$r.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=n(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return te(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=hu(z1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(z1),pst={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;t.precision=n,i=+i.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<a;s+=i,o++){var l=o===a-1?r[1]:s+i;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),ek(e),te(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;te(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),n6(t,e)},pieces:function(e){var t=this.option;te(t.pieces,function(n,r){bt(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var i=a.value=n.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=n[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=$r.retrieveVisuals(n),e.push(a)},this),n6(t,e),ek(e),te(e,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function n6(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const vst=hst;var gst=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=fr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),te(c.viewPieceList,function(h){var p=h.piece,v=new Tt;v.onclick=it(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);v.add(new en({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),Rc(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},t.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:gb(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return DJ(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new Tt,l=this.visualMapModel.textStyleModel;s.add(new en({style:Cn(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=We(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(Xn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=_t(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,te(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(IJ);const mst=gst;function RJ(e){e.registerComponentModel(vst),e.registerComponentView(mst),LJ(e)}function yst(e){zt($J),zt(RJ)}var bst={label:{enabled:!0},decal:{show:!1}},r6=nn(),_st={};function wst(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=_t(bst);Rt(r.label,e.getLocaleModel().get("aria"),!1),Rt(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=ut();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),r6(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ht(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var _=gk(d.ecModel,d.name,_st,e.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",w(b,_))}else{var p=d.getRawData(),v={},g=r6(d).scope;h.each(function(S){var x=h.getRawIndex(S);v[x]=S});var m=p.count();p.each(function(S){var x=v[S],C=p.getName(S)||S+"",T=gk(d.ecModel,C,g,m),k=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",w(k,T))})}function w(S,x){var C=S?Be(Be({},x),S):x;return C.dirty=!0,C}})}}function i(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=mt(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var m=s();if(m){var _=f.get(["general","withTitle"]);g=o(_,{title:m})}else g=f.get(["general","withoutTitle"]);var b=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),e.eachSeries(function(T,k){if(k<v){var A=void 0,M=T.get("name"),I=M?"withName":"withoutName";A=d>1?f.get(["series","multiple",I]):f.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var E=T.getData();if(E.count()>h){var L=f.get(["data","partialData"]);A+=o(L,{displayCnt:h})}else A+=f.get(["data","allData"]);for(var N=f.get(["data","separator","middle"]),$=f.get(["data","separator","end"]),P=[],R=0;R<E.count();R++)if(R<h){var D=E.getName(R),B=E.getValues(R),H=f.get(["data",D?"withName":"withoutName"]);P.push(o(H,{name:D,value:B.join(N)}))}A+=P.join(N)+$,b.push(A)}});var S=f.getModel(["series","multiple","separator"]),x=S.get("middle"),C=S.get("end");g+=b.join(x)+C,u.setAttribute("aria-label",g)}}}}function o(u,c){if(!rt(u))return u;var f=u;return te(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Sst(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},te(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function xst(e){e.registerPreprocessor(Sst),e.registerVisual(e.PRIORITY.VISUAL.ARIA,wst)}var a6={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Cst=function(){function e(t){var n=this._condVal=rt(t)?new RegExp(t):LU(t)?t:null;if(n==null){var r="";cn(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return rt(n)?this._condVal.test(t):an(n)?this._condVal.test(t+""):!1},e}(),Tst=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),kst=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e}(),Ast=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(t[n].evaluate())return!0;return!1},e}(),Mst=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Pst=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=t?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?a:r))return!1;return!0},e}();function QI(e,t){if(e===!0||e===!1){var n=new Tst;return n.value=e,n}var r="";return OJ(e)||cn(r),e.and?i6("and",e,t):e.or?i6("or",e,t):e.not?Est(e,t):Ist(e,t)}function i6(e,t,n){var r=t[e],a="";Ge(r)||cn(a),r.length||cn(a);var i=e==="and"?new kst:new Ast;return i.children=We(r,function(o){return QI(o,n)}),i.children.length||cn(a),i}function Est(e,t){var n=e.not,r="";OJ(n)||cn(r);var a=new Mst;return a.child=QI(n,t),a.child||cn(r),a}function Ist(e,t){for(var n="",r=t.prepareGetValue(e),a=[],i=Ut(e),o=e.parser,s=o?iY(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=ot(a6,u)?a6[u]:u,f=e[u],d=s?s(f):f,h=UGe(c,d)||c==="reg"&&new Cst(d);h||cn(n),a.push(h)}}a.length||cn(n);var p=new Pst;return p.valueGetterParam=r,p.valueParser=s,p.getValue=t.getValue,p.subCondList=a,p}function OJ(e){return bt(e)&&!Or(e)}var Dst=function(){function e(t,n){this._cond=QI(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Lst(e,t){return new Dst(e,t)}var $st={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=Lst(e.config,{valueGetterAttrMap:ut({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ot(s,"dimension")||cn(l);var c=t.getDimensionInfo(u);return c||cn(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)n=t.getRawDataItem(i),r.evaluate()&&a.push(n);return{data:a}}},Rst={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=yn(n);a.length||cn(r);var i=[];te(a,function(c){var f=c.dimension,d=c.order,h=c.parser,p=c.incomparable;if(f==null&&cn(r),d!=="asc"&&d!=="desc"&&cn(r),p&&p!=="min"&&p!=="max"){var v="";cn(v)}if(d!=="asc"&&d!=="desc"){var g="";cn(g)}var m=t.getDimensionInfo(f);m||cn(r);var _=h?iY(h):null;h&&!_&&cn(r),i.push({dimIdx:m.index,parser:_,comparator:new sY(d,p)})});var o=t.sourceFormat;o!==Xr&&o!==Di&&cn(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var h=i[d],p=t.retrieveValueFromItem(c,h.dimIdx),v=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(p=h.parser(p),v=h.parser(v));var g=h.comparator.evaluate(p,v);if(g!==0)return g}return 0}),{data:s}}};function Ost(e){e.registerTransform($st),e.registerTransform(Rst)}var Nst=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,a){e.prototype.init.call(this,n,r,a),this._sourceManager=new fY(this),s4(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),s4(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:jo},t}(Xt),Bst=function(e){De(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(On);function Fst(e){e.registerComponentModel(Nst),e.registerComponentView(Bst)}var Ao=es.CMD;function ud(e,t){return Math.abs(e-t)<1e-5}function gA(e){var t=e.data,n=e.len(),r=[],a,i=0,o=0,s=0,l=0;function u(E,L){a&&a.length>2&&r.push(a),a=[E,L]}function c(E,L,N,$){ud(E,N)&&ud(L,$)||a.push(E,L,N,$,N,$)}function f(E,L,N,$,P,R){var D=Math.abs(L-E),B=Math.tan(D/4)*4/3,H=L<E?-1:1,G=Math.cos(E),X=Math.sin(E),ue=Math.cos(L),ie=Math.sin(L),le=G*P+N,Q=X*R+$,J=ue*P+N,se=ie*R+$,he=P*B*H,re=R*B*H;a.push(le-he*X,Q+re*G,J+he*ie,se-re*ue,J,se)}for(var d,h,p,v,g=0;g<n;){var m=t[g++],_=g===1;switch(_&&(i=t[g],o=t[g+1],s=i,l=o,(m===Ao.L||m===Ao.C||m===Ao.Q)&&(a=[s,l])),m){case Ao.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Ao.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case Ao.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Ao.Q:d=t[g++],h=t[g++],p=t[g++],v=t[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),p+2/3*(d-p),v+2/3*(h-v),p,v),i=p,o=v;break;case Ao.A:var b=t[g++],w=t[g++],S=t[g++],x=t[g++],C=t[g++],T=t[g++]+C;g+=1;var k=!t[g++];d=Math.cos(C)*S+b,h=Math.sin(C)*x+w,_?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*S+b,o=Math.sin(T)*x+w;for(var A=(k?-1:1)*Math.PI/2,M=C;k?M>T:M<T;M+=A){var I=k?Math.max(M+A,T):Math.min(M+A,T);f(M,I,b,w,S,x)}break;case Ao.R:s=i=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Ao.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function mA(e,t,n,r,a,i,o,s,l,u){if(ud(e,n)&&ud(t,r)&&ud(a,o)&&ud(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=n-e,g=r-t,m=a-o,_=i-s,b=v*v+g*g,w=m*m+_*_;if(b<f&&w<f){l.push(o,s);return}var S=d*v+h*g,x=-d*m-h*_,C=b-S*S,T=w-x*x;if(C<f&&S>=0&&T<f&&x>=0){l.push(o,s);return}var k=[],A=[];Xl(e,n,a,o,.5,k),Xl(t,r,i,s,.5,A),mA(k[0],A[0],k[1],A[1],k[2],A[2],k[3],A[3],l,u),mA(k[4],A[4],k[5],A[5],k[6],A[6],k[7],A[7],l,u)}function Vst(e,t){var n=gA(e),r=[];t=t||1;for(var a=0;a<n.length;a++){var i=n[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],h=i[u++],p=i[u++],v=i[u++];mA(s,l,c,f,d,h,p,v,o,t),s=p,l=v}r.push(o)}return r}function NJ(e,t,n){var r=e[t],a=e[1-t],i=Math.abs(r/a),o=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function o6(e,t,n){for(var r=e.r0,a=e.r,i=e.startAngle,o=e.endAngle,s=Math.abs(o-i),l=s*a,u=a-r,c=l>Math.abs(u),f=NJ([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var p=(c?u:s)/f[h],v=0;v<f[h];v++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=r+p*v,g.r=r+p*(v+1)):(g.startAngle=i+p*v,g.endAngle=i+p*(v+1),g.r0=r+d*h,g.r=r+d*(h+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function zst(e,t,n){for(var r=e.width,a=e.height,i=r>a,o=NJ([r,a],i?0:1,t),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],p=0;p<o[d];p++){var v={};v[u]=d*f,v[c]=p*h,v[s]=f,v[l]=h,v.x+=e.x,v.y+=e.y,n.push(v)}}function s6(e,t,n,r){return e*r-n*t}function Hst(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=s6(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,p=t-i,v=s6(h,p,c,f)/d;return v<0||v>1?null:new Ot(v*l+e,v*u+t)}function Gst(e,t,n){var r=new Ot;Ot.sub(r,n,t),r.normalize();var a=new Ot;Ot.sub(a,e,t);var i=a.dot(r);return i}function Wf(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Wst(e,t,n){for(var r=e.length,a=[],i=0;i<r;i++){var o=e[i],s=e[(i+1)%r],l=Hst(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:Gst(l,t,n),pt:l,idx:i})}if(a.length<2)return[{points:e},{points:e}];a.sort(function(g,m){return g.projPt-m.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],p=[d],v=[h],i=u.idx+1;i<=c.idx;i++)Wf(p,e[i].slice());Wf(p,h),Wf(p,d);for(var i=c.idx+1;i<=u.idx+r;i++)Wf(v,e[i%r].slice());return Wf(v,d),Wf(v,h),[{points:p},{points:v}]}function l6(e){var t=e.points,n=[],r=[];ow(t,n,r);var a=new Nt(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Ot,c=new Ot;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),Wst(t,u,c)}function H1(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);H1(e,i[0],a,r),H1(e,i[1],n-a,r)}return r}function Ust(e,t){for(var n=[],r=0;r<t;r++)n.push(oE(e));return n}function jst(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Kst(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function Yst(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":zst(r,t,n),a=tn;break;case"sector":o6(r,t,n),a=va;break;case"circle":o6({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=va;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=We(Vst(e.getUpdatedPathProxy(),o),function(m){return Kst(m)}),l=s.length;if(l===0)H1(l6,{points:s[0]},t,n);else if(l===t)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=We(s,function(m){var _=[],b=[];ow(m,_,b);var w=(b[1]-_[1])*(b[0]-_[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,_){return _.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var p=u===l-1?d:Math.ceil(h.area/c*t);p<0||(H1(l6,{points:h.poly},p,n),d-=p)}}a=ga;break}if(!a)return Ust(e,t);for(var v=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),jst(e,g),v.push(g)}return v}function qst(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var a=[],i=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var p=o[h-2],v=o[h-1],g=o[h++],m=o[h++],_=o[h++],b=o[h++],w=o[h++],S=o[h++];if(d<=0){f.push(g,m,_,b,w,S);continue}for(var x=Math.min(d,c-1)+1,C=1;C<=x;C++){var T=C/x;Xl(p,g,_,w,T,a),Xl(v,m,b,S,T,i),p=a[3],v=i[3],f.push(a[1],i[1],a[2],i[2],p,v),g=a[5],m=i[5],_=a[6],b=i[6]}d-=x-1}return o===e?[f,t]:[e,f]}function u6(e,t){for(var n=e.length,r=e[n-2],a=e[n-1],i=[],o=0;o<t.length;)i[o++]=r,i[o++]=a;return i}function Xst(e,t){for(var n,r,a,i=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(n=qst(l,u),c=n[0],f=n[1],r=c,a=f):(f=u6(a||l,l),c=l):(c=u6(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function c6(e){for(var t=0,n=0,r=0,a=e.length,i=0,o=a-2;i<a;o=i,i+=2){var s=e[o],l=e[o+1],u=e[i],c=e[i+1],f=s*c-u*l;t+=f,n+=(s+u)*f,r+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function Zst(e,t,n,r){for(var a=(e.length-2)/6,i=1/0,o=0,s=e.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,p=e[h]-n[0],v=e[h+1]-n[1],g=t[d]-r[0],m=t[d+1]-r[1],_=g-p,b=m-v;f+=_*_+b*b}f<i&&(i=f,o=u)}return o}function Jst(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function Qst(e,t,n,r){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=c6(s),c=c6(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,p=1/0,v=[],g=s.length;i&&(s=Jst(s));for(var m=Zst(s,l,u,c)*6,_=g-2,b=0;b<_;b+=2){var w=(m+b)%_+2;f[b+2]=s[w]-u[0],f[b+3]=s[w+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var S=r/n,x=-r/2;x<=r/2;x+=S){for(var C=Math.sin(x),T=Math.cos(x),k=0,b=0;b<s.length;b+=2){var A=f[b],M=f[b+1],I=l[b]-c[0],E=l[b+1]-c[1],L=I*T-E*C,N=I*C+E*T;v[b]=L,v[b+1]=N;var $=L-A,P=N-M;k+=$*$+P*P}if(k<p){p=k,h=x;for(var R=0;R<v.length;R++)d[R]=v[R]}}else for(var D=0;D<g;D+=2)d[D]=l[D]-c[0],d[D+1]=l[D+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function G1(e){return e.__isCombineMorphing}var BJ="__mOriginal_";function W1(e,t,n){var r=BJ+t,a=e[r]||e[t];e[r]||(e[r]=e[t]);var i=n.replace,o=n.after,s=n.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function Cv(e,t){var n=BJ+t;e[n]&&(e[t]=e[n],e[n]=null)}function f6(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],a=0;a<r.length;){var i=r[a],o=r[a+1];r[a++]=t[0]*i+t[2]*o+t[4],r[a++]=t[1]*i+t[3]*o+t[5]}}function FJ(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=Xst(gA(n),gA(r)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&f6(i,s),l&&f6(o,l),W1(t,"updateTransform",{replace:u}),t.transform=null;var c=Qst(i,o,10,Math.PI),f=[];W1(t,"buildPath",{replace:function(d){for(var h=t.__morphT,p=1-h,v=[],g=0;g<c.length;g++){var m=c[g],_=m.from,b=m.to,w=m.rotation*h,S=m.fromCp,x=m.toCp,C=Math.sin(w),T=Math.cos(w);cv(v,S,x,h);for(var k=0;k<_.length;k+=2){var A=_[k],M=_[k+1],I=b[k],E=b[k+1],L=A*p+I*h,N=M*p+E*h;f[k]=L*T-N*C+v[0],f[k+1]=L*C+N*T+v[1]}var $=f[0],P=f[1];d.moveTo($,P);for(var k=2;k<_.length;){var I=f[k++],E=f[k++],R=f[k++],D=f[k++],B=f[k++],H=f[k++];$===I&&P===E&&R===B&&D===H?d.lineTo(B,H):d.bezierCurveTo(I,E,R,D,B,H),$=B,P=H}}}})}function eD(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;FJ(e,t),t.__morphT=0;function i(){Cv(t,"buildPath"),Cv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},mt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),t}function elt(e,t,n,r,a,i){var o=16;e=a===n?0:Math.round(32767*(e-n)/(a-n)),t=i===r?0:Math.round(32767*(t-r)/(i-r));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function U1(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=We(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=We(i,function(s,l){return{cp:s,z:elt(s[0],s[1],t,n,r,a),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function VJ(e){return Yst(e.path,e.count)}function yA(){return{fromIndividuals:[],toIndividuals:[],count:0}}function tlt(e,t,n){var r=[];function a(S){for(var x=0;x<S.length;x++){var C=S[x];G1(C)?a(C.childrenRef()):C instanceof Gt&&r.push(C)}}a(e);var i=r.length;if(!i)return yA();var o=n.dividePath||VJ,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),yA();r=U1(r),s=U1(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new ks,d=0;d<i;d++){var h=r[d],p=s[d];p.parent=t,p.copyTransform(f),c||FJ(h,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function v(S){for(var x=0;x<s.length;x++)s[x].addSelfToZr(S)}W1(t,"addSelfToZr",{after:function(S){v(S)}}),W1(t,"removeSelfFromZr",{after:function(S){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(S)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Cv(t,"addSelfToZr"),Cv(t,"removeSelfFromZr")}var m=s.length;if(c)for(var _=m,b=function(){_--,_===0&&(g(),l&&l())},d=0;d<m;d++){var w=c?mt({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:b},n):n;eD(r[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},mt({during:function(S){for(var x=0;x<m;x++){var C=s[x];C.__morphT=t.__morphT,C.dirtyShape()}u&&u(S)},done:function(){g();for(var S=0;S<e.length;S++)Cv(e[S],"updateTransform");l&&l()}},n));return t.__zr&&v(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function nlt(e,t,n){var r=t.length,a=[],i=n.dividePath||VJ;function o(h){for(var p=0;p<h.length;p++){var v=h[p];G1(v)?o(v.childrenRef()):v instanceof Gt&&a.push(v)}}if(G1(e)){o(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(oE(a[l++%s]));a.length=r}else{a=i({path:e,count:r});for(var c=e.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),yA()}a=U1(a),t=U1(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?mt({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;eD(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function d6(e){return Ge(e[0])}function h6(e,t){for(var n=[],r=e.length,a=0;a<r;a++)n.push({one:e[a],many:[]});for(var a=0;a<t.length;a++){var i=t[a].length,o=void 0;for(o=0;o<i;o++)n[o%r].many.push(t[a][o])}for(var s=0,a=r-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var rlt={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var a=oE(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function KC(e,t,n,r,a,i){if(!e.length||!t.length)return;var o=bh("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;d6(e)&&(u=e,c=t),d6(t)&&(u=t,c=e);function f(m,_,b,w,S){var x=m.many,C=m.one;if(x.length===1&&!S){var T=_?x[0]:C,k=_?C:x[0];if(G1(T))f({many:[T],one:k},!0,b,w,!0);else{var A=s?mt({delay:s(b,w)},l):l;eD(T,k,A),i(T,k,T,k,A)}}else for(var M=mt({dividePath:rlt[n],individualDelay:s&&function(P,R,D,B){return s(P+b,w)}},l),I=_?tlt(x,C,M):nlt(C,x,M),E=I.fromIndividuals,L=I.toIndividuals,N=E.length,$=0;$<N;$++){var A=s?mt({delay:s($,N)},l):l;i(E[$],L[$],_?x[$]:m.one,_?m.one:x[$],A)}}for(var d=u?u===e:e.length>t.length,h=u?h6(c,u):h6(d?t:e,[d?e:t]),p=0,v=0;v<h.length;v++)p+=h[v].many.length;for(var g=0,v=0;v<h.length;v++)f(h[v],d,g,p),g+=h[v].many.length}function Qu(e){if(!e)return[];if(Ge(e)){for(var t=[],n=0;n<e.length;n++)t.push(Qu(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof Gt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var zJ=1e4,alt=0,p6=1,v6=2,ilt=nn();function olt(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var a=e.getDimensionInfo(n[r]);if(a&&a.otherDims[t]===0)return n[r]}}function slt(e,t,n){var r=e.getDimensionInfo(n),a=r&&r.ordinalMeta;if(r){var i=e.get(r.name,t);return a&&a.categories[i]||i+""}}function g6(e,t,n,r){var a=r?"itemChildGroupId":"itemGroupId",i=olt(e,a);if(i){var o=slt(e,t,i);return o}var s=e.getRawDataItem(t),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||e.getId(t)}function m6(e){var t=[];return te(e,function(n){var r=n.data,a=n.dataGroupId;if(!(r.count()>zJ))for(var i=r.getIndices(),o=0;o<i.length;o++)t.push({data:r,groupId:g6(r,o,a,!1),childGroupId:g6(r,o,a,!0),divide:n.divide,dataIndex:o})}),t}function YC(e,t,n){e.traverse(function(r){r instanceof Gt&&Ln(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function qC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Uf(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function llt(e,t,n){var r=bh("update",n,t);r&&e.traverse(function(a){if(a instanceof Pi){var i=THe(a);i&&a.animateFrom({style:i},r)}})}function ult(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var a=e[r],i=t[r];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function HJ(e,t,n){var r=m6(e),a=m6(t);function i(b,w,S,x,C){(S||b)&&w.animateFrom({style:S&&S!==b?Be(Be({},S.style),b.style):b.style},C)}var o=!1,s=alt,l=ut(),u=ut();r.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=p6;break}var d=a[c].childGroupId;if(d&&l.get(d)){s=v6;break}}function h(b,w){return function(S){var x=S.data,C=S.dataIndex;return w?x.getId(C):b?s===p6?S.childGroupId:S.groupId:s===v6?S.childGroupId:S.groupId}}var p=ult(r,a),v={};if(!p)for(var c=0;c<a.length;c++){var g=a[c],m=g.data.getItemGraphicEl(g.dataIndex);m&&(v[m.id]=!0)}function _(b,w){var S=r[w],x=a[b],C=x.data.hostModel,T=S.data.getItemGraphicEl(S.dataIndex),k=x.data.getItemGraphicEl(x.dataIndex);if(T===k){k&&llt(k,x.dataIndex,C);return}T&&v[T.id]||k&&(Uf(k),T?(Uf(T),qC(T),o=!0,KC(Qu(T),Qu(k),x.divide,C,b,i)):YC(k,C,b))}new Fs(r,a,h(!0,p),h(!1,p),null,"multiple").update(_).updateManyToOne(function(b,w){var S=a[b],x=S.data,C=x.hostModel,T=x.getItemGraphicEl(S.dataIndex),k=hn(We(w,function(A){return r[A].data.getItemGraphicEl(r[A].dataIndex)}),function(A){return A&&A!==T&&!v[A.id]});T&&(Uf(T),k.length?(te(k,function(A){Uf(A),qC(A)}),o=!0,KC(Qu(k),Qu(T),S.divide,C,b,i)):YC(T,C,S.dataIndex))}).updateOneToMany(function(b,w){var S=r[w],x=S.data.getItemGraphicEl(S.dataIndex);if(!(x&&v[x.id])){var C=hn(We(b,function(k){return a[k].data.getItemGraphicEl(a[k].dataIndex)}),function(k){return k&&k!==x}),T=a[b[0]].data.hostModel;C.length&&(te(C,function(k){return Uf(k)}),x?(Uf(x),qC(x),o=!0,KC(Qu(x),Qu(C),S.divide,T,b[0],i)):te(C,function(k){return YC(k,T,b[0])}))}}).updateManyToMany(function(b,w){new Fs(w,b,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,x){_(b[S],w[x])}).execute()}).execute(),o&&te(t,function(b){var w=b.data,S=w.hostModel,x=S&&n.getViewOfSeriesModel(S),C=bh("update",S,0);x&&S.isAnimationEnabled()&&C&&C.duration>0&&x.group.traverse(function(T){T instanceof Gt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},C)})})}function y6(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function b6(e){return Ge(e)?e.sort().join(","):e}function _l(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function clt(e,t){var n=ut(),r=ut(),a=ut();return te(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=y6(i),c=b6(u);r.set(c,{dataGroupId:s,data:l}),Ge(u)&&te(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),te(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=y6(i),u=b6(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:_l(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:_l(s),data:s}]});else if(Ge(l)){var f=[];te(l,function(p){var v=r.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:_l(v.data),data:v.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:_l(s)}]})}else{var d=a.get(l);if(d){var h=n.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:_l(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:_l(s)})}}}}),n}function _6(e,t){for(var n=0;n<e.length;n++){var r=t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id;if(r)return n}}function flt(e,t,n,r){var a=[],i=[];te(yn(e.from),function(o){var s=_6(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:_l(t.oldData[s]),groupIdDim:o.dimension})}),te(yn(e.to),function(o){var s=_6(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:_l(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&HJ(a,i,r)}function dlt(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){te(yn(r.seriesTransition),function(a){te(yn(a.to),function(i){for(var o=r.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][cb]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=ilt(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)te(yn(i),function(h){flt(h,a,r,n)});else{var o=clt(a,r);te(o.keys(),function(h){var p=o.get(h);HJ(p.oldSeries,p.newSeries,n)})}te(r.updatedSeries,function(h){h[cb]&&(h[cb]=!1)})}for(var s=t.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<zJ&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}zt([Tje]);zt([yje]);zt([qje,hKe,kKe,hYe,EYe,Cqe,tXe,zXe,vZe,CZe,RZe,FJe,dQe,TQe,UQe,JQe,met,Met,zet,qet,ltt,Ktt]);zt(gnt);zt(Xnt);zt(NX);zt(hrt);zt(xZ);zt(_rt);zt(Prt);zt(Eat);zt(Qat);zt(Em);zt(bit);zt(Sit);zt(Nit);zt(Kit);zt(tot);zt(uot);zt(xot);zt(Uot);zt(MJ);zt(PJ);zt(yst);zt($J);zt(RJ);zt(xst);zt(Ost);zt(Fst);zt(dlt);zt(OUe);const hlt=Object.freeze(Object.defineProperty({__proto__:null,Axis:Li,ChartView:bn,ComponentModel:Xt,ComponentView:On,List:Kr,Model:mn,PRIORITY:VY,SeriesModel:Pn,color:DVe,connect:BWe,dataTool:UWe,dependencies:wWe,disConnect:FWe,disconnect:YY,dispose:VWe,env:rn,extendChartView:SUe,extendComponentModel:bUe,extendComponentView:_Ue,extendSeriesModel:wUe,format:sUe,getCoordinateSystemDimensions:HWe,getInstanceByDom:BE,getInstanceById:zWe,getMap:WWe,graphic:oUe,helper:J7e,init:_m,innerDrawElementOnCanvas:$E,matrix:aVe,number:aUe,parseGeoJSON:Ik,parseGeoJson:Ik,registerAction:_o,registerCoordinateSystem:ZY,registerLayout:JY,registerLoading:GE,registerLocale:vE,registerMap:QY,registerPostInit:qY,registerPostUpdate:XY,registerPreprocessor:VE,registerProcessor:zE,registerTheme:FE,registerTransform:eq,registerUpdateLifecycle:kw,registerVisual:pu,setCanvasCreator:GWe,setPlatformAPI:MU,throttle:Cw,time:iUe,use:zt,util:lUe,vector:H8e,version:_We,zrUtil:R8e,zrender:m6e},Symbol.toStringTag,{value:"Module"})),plt={class:"chart-container"},vlt=ge({__name:"left1",setup(e){const t=U(null),n=U({tooltip:{trigger:"item"},legend:{orient:"vertical",left:"right",textStyle:{color:"#fff"}},series:[{type:"pie",radius:"60%",center:["50%","60%"],data:new Array}]}),r=()=>{l8e().then(a=>{if(a.status==200&&a.data.code==1){a.data.data.forEach(o=>{n.value.series[0].data.push({name:o.TEXT,value:o.CARCOUNT})});const i=_m(t.value);i.setOption(n.value),i.setOption(n.value)}})};return nt(()=>{r()}),(a,i)=>(O(),K("div",plt,[W("div",{ref_key:"pieChart",ref:t,style:{width:"1200px",height:"300px"}},null,512)]))}}),glt={style:{display:"flex","justify-content":"center","align-items":"center",width:"100%",height:"100%"}},mlt={style:{width:"98%",height:"95%"}},ylt=ge({__name:"left2",setup(e){U();const t=U({header:["节点","数量"],headerBGC:"#0065CD",oddRowBGC:"",evenRowBGC:"",data:new Array,align:["center","center","center"],unit:"辆"});nt(()=>{n(),setInterval(n,1e4)});function n(){f8e().then(r=>{r.status==200&&r.data.code==1&&(t.value.data.length=0,r.data.data.forEach(a=>{t.value.data.push({name:a.SITE,value:a.CARCOUNT})}))})}return(r,a)=>{const i=Fe("dv-scroll-ranking-board");return O(),K("div",glt,[W("div",mlt,[V(i,{config:t.value,style:{width:"340px",height:"100%",color:"burlywood"}},null,8,["config"])])])}}}),blt={class:"chart-container"},_lt=ge({__name:"right1",setup(e){const t=U(null),n=U({tooltip:{trigger:"item"},legend:{orient:"vertical",right:"1%",textStyle:{color:"#fff"}},series:[{type:"pie",radius:"60%",data:new Array}]}),r=()=>{c8e().then(a=>{a.status==200&&a.data.code==1&&a.data.data.forEach(s=>{n.value.series[0].data.push({name:"货车",value:s.HUOTOTALFLOW}),n.value.series[0].data.push({name:"客车",value:s.KETOTALFLOW}),n.value.series[0].data.push({name:"未知",value:s.UNKNOWNTOTALFLOW})});const i=_m(t.value);i.setOption(n.value);const o=()=>{i.resize()};window.addEventListener("resize",o)})};return nt(()=>{r()}),(a,i)=>(O(),K("div",blt,[W("div",{ref_key:"pieChart",ref:t,style:{width:"100%",height:"100%"}},null,512)]))}}),wlt={class:"content"},Slt={class:"content_bottom"},xlt=ge({__name:"right2",setup(e){const t=U(new Array);let n=U({title:{show:!1,style:{fill:"#fff"}},grid:{top:30,left:50,right:15,bottom:30},xAxis:{data:["-"],axisLabel:{show:!0,style:{fill:"#ffffff",fontSize:10,rotate:0,color:"#ffffff"}}},yAxis:{name:"销售额",data:"value",minInterval:10,min:0,axisLabel:{show:!0,style:{fill:"#ffffff",fontSize:10,rotate:0}}},series:[{data:[0],type:"line",label:{show:!0,style:{fill:"#fff",fontSize:10}},lineArea:{show:!0,gradient:["rgb(200, 35, 48)","rgb(67, 35, 48)"]}}]});function r(){let i=[],o=[];for(let s=0;s<t.value.length;s++){const l=t.value[s];i.push(l.name),o.push(Number(l.value))}n.value.series[0].data=o,n.value.xAxis.data=i}nt(()=>{a(),setInterval(a,1e3)});function a(){DP().then(i=>{i.status==200&&i.data.code==1&&(t.value.length=0,i.data.data.forEach(o=>{t.value.push({name:o.CAPTURETIME,value:o.KETOTALFLOW})}),r())})}return(i,o)=>{const s=Fe("dv-charts");return O(),K("div",wlt,[W("div",Slt,[V(s,{option:y(n),style:{width:"100%",height:"100%"}},null,8,["option"])])])}}}),$i=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Clt=$i(xlt,[["__scopeId","data-v-cd6417d7"]]),Tlt={class:"content"},klt={class:"content_bottom"},Alt=ge({__name:"right3",setup(e){const t=U(new Array);let n=U({title:{show:!1,style:{fill:"#fff"}},grid:{top:30,left:50,right:15,bottom:30},xAxis:{data:["-"],axisLabel:{show:!0,style:{fill:"#ffffff",fontSize:10,rotate:0,color:"#ffffff"}}},yAxis:{name:"销售额",data:"value",minInterval:10,min:0,axisLabel:{show:!0,style:{fill:"#ffffff",fontSize:10,rotate:0}}},series:[{data:[0],type:"line",label:{show:!0,style:{fill:"#fff",fontSize:10}},lineArea:{show:!0,gradient:["rgb(200, 35, 48)","rgb(67, 35, 48)"]}}]});function r(){let i=[],o=[];for(let s=0;s<t.value.length;s++){const l=t.value[s];i.push(l.name),o.push(Number(l.value))}n.value.series[0].data=o,n.value.xAxis.data=i}nt(()=>{a(),setInterval(a,1e3)});function a(){DP().then(i=>{i.status==200&&i.data.code==1&&(t.value.length=0,i.data.data.forEach(o=>{t.value.push({name:o.CAPTURETIME,value:o.HUOTOTALFLOW})}),r())})}return(i,o)=>{const s=Fe("dv-charts");return O(),K("div",Tlt,[W("div",klt,[V(s,{option:y(n),style:{width:"100%",height:"100%"}},null,8,["option"])])])}}}),Mlt=$i(Alt,[["__scopeId","data-v-6cb54d92"]]),Plt={style:{display:"flex","justify-content":"center","align-items":"center",width:"100%",height:"100%"}},Elt=ge({__name:"down1",setup(e){const t=U();let n,r={};const a=U(new Array),i=new Image,o=async()=>{n&&(n.dispose(),n=null),await Xe(),n=_m(t.value);const u=a.value.map(g=>g.name),c=a.value.map(g=>g.value);r={tooltip:{trigger:"axis",formatter:function(g){return`${g[0].name}<br />${g[0].value}辆`}},grid:{top:20,left:50,right:10,bottom:30},xAxis:{type:"category",data:u,axisLine:{show:!0,lineStyle:{color:"#8F9297",opacity:.4,width:1,type:"solid"}},axisTick:{show:!1},axisLabel:{show:!0,color:"#8F9297",fontWeight:400,fontSize:12,margin:12},splitLine:{show:!1,lineStyle:{color:"#8F9297",width:1,opacity:.15,type:"dashed"}}},yAxis:{type:"value",name:"",minInterval:1,nameTextStyle:{padding:[0,8,0,0],fontSize:12,color:"#8F9297",fontWeight:400},axisLine:{show:!1,lineStyle:{color:"#FFFFFF",opacity:.14,width:1}},axisTick:{show:!1},axisLabel:{show:!0,color:"#8F9297",fontSize:12,fontWeight:400},splitLine:{show:!1,lineStyle:{color:"#FFFFFF",width:1,opacity:.15,type:"dashed"}}},series:[{data:c,type:"custom",renderItem:function(g,m){return v(g,m)},itemStyle:{color:{image:i,repeat:"repeat"}}}]};const f=Fo({shape:{x:0,y:0,width:21},buildPath:function(g,m){const b=m.api.coord([m.xValue,0]),w=[m.x-m.width,m.y],S=[m.x-m.width,b[1]],x=[m.x,b[1]],C=[m.x,m.y];g.moveTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(x[0],x[1]),g.lineTo(C[0],C[1]),g.lineTo(w[0],w[1]),g.closePath()}}),d=Fo({shape:{x:0,y:0,width:11,zWidth:11,zHeight:11},buildPath:function(g,m){const b=m.api.coord([m.xValue,0]),w=[m.x,m.y],S=[m.x,b[1]],x=[m.x+m.width,b[1]],C=[m.x+m.width,m.y-m.zHeight];g.moveTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(x[0],x[1]),g.lineTo(C[0],C[1]),g.lineTo(w[0],w[1]),g.closePath()}}),h=Fo({shape:{x:0,y:0,width:21,zWidth:11,zHeight:11},buildPath:function(g,m){const _=[m.x-m.width+m.zWidth,m.y-m.zHeight],b=[m.x-m.width,m.y],w=[m.x,m.y],S=[m.x+m.zWidth,m.y-m.zHeight];g.moveTo(_[0],_[1]),g.lineTo(b[0],b[1]),g.lineTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(_[0],_[1]),g.closePath()}}),p=Fo({shape:{x:0,y:0,width:32,zWidth:11,zHeight:0},buildPath:function(g,m){const b=m.api.coord([m.xValue,0]),w=[m.x-m.width+m.zWidth,20],S=[m.x-m.width+m.zWidth,b[1]],x=[m.x+m.zWidth,b[1]],C=[m.x+m.zWidth,20];g.moveTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(x[0],x[1]),g.lineTo(C[0],C[1]),g.lineTo(w[0],w[1]),g.closePath()}});ir("leftRect",f),ir("rightRect",d),ir("topRect",h),ir("bgRect",p);function v(g,m){const _=m.coord([m.value(0),m.value(1)]);return{type:"group",children:[{type:"bgRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:m.style()},{type:"leftRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:{fill:new ts(0,0,0,1,[{offset:1,color:"#9fe6b8"},{offset:0,color:"#67e0e3"}])}},{type:"rightRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:{fill:new ts(0,0,0,1,[{offset:1,color:"#ffdb5c"},{offset:0,color:"#9fe6b8"}])}},{type:"topRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:{fill:"#9fe6b8"}}]}}r&&n.setOption(r,!0)};U(!0);const s=window.setInterval(()=>{setTimeout(()=>{l()},0)},1e3);pn(()=>{clearInterval(s)}),l();function l(){u8e().then(u=>{u.status==200&&u.data.code==1&&(a.value.length=0,u.data.data.forEach(c=>{a.value.push({name:c.CAPTURETIME,value:c.CARCOUNT})}),o())})}return(u,c)=>(O(),K("div",Plt,[W("div",{style:{width:"95%",height:"100%"},id:"bar-chart",ref_key:"barChartRef",ref:t},null,512)]))}}),Ilt=$i(Elt,[["__scopeId","data-v-5fb2057e"]]),Dlt={class:"content"},Llt={class:"content_bottom"},$lt=ge({__name:"down3",setup(e){const t=U(new Array);let n=U({title:{show:!1,style:{fill:"#fff"}},grid:{top:30,left:50,right:15,bottom:30},xAxis:{data:["-"],axisLabel:{show:!0,style:{fill:"#ffffff",fontSize:10,rotate:0,color:"#ffffff"}}},yAxis:{name:"销售额",data:"value",minInterval:10,min:0,axisLabel:{show:!0,style:{fill:"#ffffff",fontSize:10,rotate:0}}},series:[{data:[0],type:"line",label:{show:!0,style:{fill:"#fff",fontSize:10}},lineArea:{show:!0,gradient:["rgb(200, 35, 48)","rgb(67, 35, 48)"]}}]});function r(){let i=[],o=[];for(let s=0;s<t.value.length;s++){const l=t.value[s];i.push(l.name),o.push(Number(l.value))}n.value.series[0].data=o,n.value.xAxis.data=i}nt(()=>{a(),setInterval(a,1e3)});function a(){DP().then(i=>{i.status==200&&i.data.code==1&&(t.value.length=0,i.data.data.forEach(o=>{t.value.push({name:o.CAPTURETIME,value:o.UNKNOWNTOTALFLOW})}),r())})}return(i,o)=>{const s=Fe("dv-charts");return O(),K("div",Dlt,[W("div",Llt,[V(s,{option:y(n),style:{width:"100%",height:"100%"}},null,8,["option"])])])}}}),Rlt=$i($lt,[["__scopeId","data-v-7cc82799"]]);var Mr=[];for(var XC=0;XC<256;++XC)Mr.push((XC+256).toString(16).slice(1));function Olt(e,t=0){return(Mr[e[t+0]]+Mr[e[t+1]]+Mr[e[t+2]]+Mr[e[t+3]]+"-"+Mr[e[t+4]]+Mr[e[t+5]]+"-"+Mr[e[t+6]]+Mr[e[t+7]]+"-"+Mr[e[t+8]]+Mr[e[t+9]]+"-"+Mr[e[t+10]]+Mr[e[t+11]]+Mr[e[t+12]]+Mr[e[t+13]]+Mr[e[t+14]]+Mr[e[t+15]]).toLowerCase()}var b0,Nlt=new Uint8Array(16);function Blt(){if(!b0&&(b0=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!b0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return b0(Nlt)}var Flt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const w6={randomUUID:Flt};function GJ(e,t,n){if(w6.randomUUID&&!t&&!e)return w6.randomUUID();e=e||{};var r=e.random||(e.rng||Blt)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return Olt(r)}const Vlt={props:{passId:{type:String,default:""}},name:"index",data(){return{showForm:!1,options:[{value:"车型识别设备识别数据错误",label:"车型识别设备识别数据错误"},{value:"路径还原错误",label:"路径还原错误"},{value:"其它",label:"其它"}],form:{value:"",textarea:""},data:{},infos:[],lineOne:[],lineTwo:[],rowData:{},mapShow:!1,map:null,mapStyle:"",mapId:GJ(),mapData:{},divChecked:!0,fitChecked:!0,staInfoLoading:!1,supportCanvas:!1,fitGantry:[],divGantry:[],fitPoints:[],fitFeatures:[],fitLineFeatures:[],fitAttributes:{paint:{"line-color":"#18a45b","line-width":4}},divPoints:[],divFeatures:[],divLineFeatures:[],divAttributes:{paint:{"line-color":"#bf41c7","line-width":4}},informationWindow:new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"350px"})}},watch:{fitChecked:{deep:!0,handler(e,t){e?(this.map.addFeatureLine("fitPath",this.fitLineFeatures,this.fitAttributes),this.map.addFeaturePoint("fitPathD",this.fitFeatures,{type:"circle",paint:{"circle-color":this.fitAttributes.paint["line-color"],"circle-radius":6}}),this.map.addFeaturePoint("fitPathPoint",this.fitFeatures,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}})):(this.map.removeLayer("fitPath"),this.map.removeLayer("fitPathD"),this.map.removeLayer("fitPathPoint"))}},divChecked:{deep:!0,handler(e,t){e?(this.map.addFeatureLine("divPath",this.divLineFeatures,this.divAttributes),this.map.addFeaturePoint("divPathD",this.divFeatures,{type:"circle",paint:{"circle-color":this.divAttributes.paint["line-color"],"circle-radius":6}}),this.map.addFeaturePoint("divPathPoint",this.fitFeatures,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}})):(this.map.removeLayer("divPath"),this.map.removeLayer("divPathD"),this.map.removeLayer("divPathPoint"))}}},methods:{async onSubmit(){const e={passId:this.passId,result:this.form.value==="其它"||this.form.value===""?this.form.textarea:this.form.value},{data:t}=await TU(e);t&&(this.$message({message:"稽查成功",type:"success"}),this.$refs.form.resetFields())},initMap(){let e=Object.assign({},HDmap.MapStyle.SM_WMTS_VEC_WHITE,{glyphs:"/fonts/{fontstack}/{range}.pbf"});this.map=new HDmap.map({container:"mapDiv",center:[111.80282489244144,41.72225716089292],zoom:9,styleURL:e});let t=this;this.map.map2d.on("style.load",n=>{t.mapShow=!0})},addMapLine(){let e=this.lineOne.filter(n=>n[0]!=null).map(n=>(n[1]=n[1]-1e-4,n));this.fitLineFeatures=[],this.fitLineFeatures=[{type:"Feature",properties:{gid:1},geometry:{type:"LineString",coordinates:e}}];let t=this.lineTwo.filter(n=>n[0]!=null).map(n=>(n[1]=n[1]+1e-4,n));console.log(t,this.lineTwo),this.divLineFeatures=[],this.divLineFeatures=[{type:"Feature",properties:{gid:2},geometry:{type:"LineString",coordinates:t}}],this.map&&(this.map.addFeatureLine("fitPath",this.fitLineFeatures,this.fitAttributes),this.map.addFeatureLine("divPath",this.divLineFeatures,this.divAttributes))},addFeatures(){if(this.map&&(this.fitFeatures=[],this.infos!=null&&this.infos.length>0)){for(let e=0;e<this.infos.length;e++)this.fitFeatures[e]={type:"Feature",properties:{message:"门架名称:"+this.infos[e].name+`
车牌:`+this.data.vehicleNo+`
颜色:`+this.data.color,gid:e+5},geometry:{type:"Point",coordinates:[this.infos[e].lng,this.infos[e].lat]}};this.map.addFeaturePoint("divPathPoint",this.fitFeatures,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}}),this.map.addFeaturePoint("fitPathPoint",this.fitFeatures,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}}),informationWindow=new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"350px"}),map.map2d.on("mousemove",function(e){let t=[[e.point.x-1,e.point.y-1],[e.point.x+1,e.point.y+1]];if(!map.map2d.getLayer(_layerName))return;let n=map.map2d.queryRenderedFeatures(t,{layers:[_layerName]});if(informationWindow&&informationWindow.remove(),n.length>0){map.map2d.getCanvas().style.cursor="pointer";let a=n[0].properties;var r="<div><h2>"+a.name+"</h2><p>拆分正常金额"+a.normalFee+"</p><p>拆分正常流量"+a.normalCarCount+"</p><p>拆分异常金额"+a.abNormalFee+"</p><p>拆分异常流量"+a.abNormalCarCount+"</p><p>计费差额金额"+a.billingAbNormalFee+"</p><p>计费差额流量"+a.billingAbNormalCarCount+"</p><p>拆分差额金额"+a.errorSplitFee+"</p><p>拆分差额流量"+a.abNormalCarCount+"</p></div>";informationWindow.setLngLat(e.lngLat).setHTML(r).addTo(map.map2d)}else map.map2d.getCanvas().style.cursor=""})}},selectMap(e){this.map&&(this.map.removeLayer("fitPath"),this.map.removeLayer("divPath"),this.map.removeLayer("divPathD")),this.rowData=e}},mounted(){this.mapStyle="width:100%;height: 100vh;z-index: 1;",this.$nextTick(()=>{this.mapShow=!1,this.initMap(),kU(this.passId).then(e=>{if(e.status==200&&(e=e.data,e.code==1)){this.lineOne=e.data.one,this.lineTwo=e.data.two;let t=this.lineOne[0];this.data=e.data.data,this.infos=e.data.infos,t[0]!=null&&this.map.map2d.flyTo({center:t,zoom:9,speed:.5,duration:500,curve:1,essential:!0}),this.addMapLine(),this.addFeatures()}})})},created(){}},zlt=W("span",{style:{width:"10px",height:"10px","background-color":"#bf41c7ff","border-radius":"10px"}},"    ",-1),Hlt=W("span",{style:{width:"10px",height:"10px","background-color":"#18a45b","border-radius":"10px"}},"    ",-1),Glt=W("div",{id:"mapDiv",style:{width:"100%",height:"540px"}},null,-1),Wlt={key:1,class:"training-border"},Ult=W("h4",null,"人工稽查审核",-1);function jlt(e,t,n,r,a,i){const o=Fe("el-checkbox"),s=Fe("el-affix"),l=Fe("el-form-item"),u=Fe("el-option"),c=Fe("el-select"),f=Fe("el-input"),d=Fe("el-button"),h=Fe("el-form");return O(),K(He,null,[a.mapShow?(O(),we(s,{key:0,offset:120},{default:fe(()=>[W("div",null,[V(o,{modelValue:a.divChecked,"onUpdate:modelValue":t[0]||(t[0]=p=>a.divChecked=p),size:"large"},{default:fe(()=>[zlt,yt("拆分 ")]),_:1},8,["modelValue"]),V(o,{modelValue:a.fitChecked,"onUpdate:modelValue":t[1]||(t[1]=p=>a.fitChecked=p),size:"large"},{default:fe(()=>[Hlt,yt("计费 ")]),_:1},8,["modelValue"])])]),_:1})):be("",!0),Glt,a.data.splitFee!=a.data.splitFee2?(O(),K("div",Wlt,[V(l,null,{default:fe(()=>[Ult]),_:1}),V(h,{ref:"form",model:a.form,"label-width":"92px",style:{"margin-top":"-13px"}},{default:fe(()=>[V(l,{label:"路径还原不准确",prop:"value"},{default:fe(()=>[V(c,{modelValue:a.form.value,"onUpdate:modelValue":t[2]||(t[2]=p=>a.form.value=p),placeholder:"请选择"},{default:fe(()=>[(O(!0),K(He,null,ct(a.options,p=>(O(),we(u,{key:p.value,label:p.label,value:p.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),V(l,{label:"其他原因",prop:"textarea"},{default:fe(()=>[V(f,{type:"textarea",rows:2,placeholder:"请输入内容",modelValue:a.form.textarea,"onUpdate:modelValue":t[3]||(t[3]=p=>a.form.textarea=p)},null,8,["modelValue"])]),_:1}),V(l,{class:"hidden"},{default:fe(()=>[V(d,null,{default:fe(()=>[yt("取消")]),_:1}),V(d,{type:"primary",onClick:i.onSubmit},{default:fe(()=>[yt("确定")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])])):be("",!0)],64)}const Klt=$i(Vlt,[["render",jlt]]),Ylt={class:"search-container"},qlt={__name:"CheckData",setup(e){const t=U(!1);iH();const n=aH(),r=U(""),a=U([]);IP().then(v=>{v.status==200&&v.data.code==1&&(a.value=v.data.data)});const i=U(null),o=v=>{f.pageNum=v,h()};nt(()=>{h()});const s=U(!1),l=U([]),u=U(0),c=document.documentElement.clientHeight*.82,f=vt({pageNum:1,pageSize:10,pointId:"",dataTime:void 0,passId:"",vehicleNo:""}),d=v=>{console.log(n),n.push(`/DataShowScreen/gantryInfo?passId=${v}`)},h=()=>{s.value=!0,CU(f).then(v=>{v.status==200&&(v=v.data,v.code==1&&(l.value=v.data.records,u.value=v.data.total,s.value=!1))})},p=()=>{i.value.resetFields(),f.pageNum=1,h()};return(v,g)=>{const m=Fe("el-option"),_=Fe("el-select"),b=Fe("el-form-item"),w=Fe("el-date-picker"),S=Fe("el-input"),x=Fe("i-ep-search"),C=Fe("el-button"),T=Fe("i-ep-refresh"),k=Fe("el-form"),A=Fe("el-table-column"),M=Fe("el-table"),I=Fe("el-dialog"),E=Fe("el-pagination"),L=Ds("loading");return O(),K(He,null,[W("div",Ylt,[V(k,{inline:!0,ref_key:"queryFormRef",ref:i,model:f},{default:fe(()=>[V(b,{label:"门架",prop:"pointId"},{default:fe(()=>[V(_,{modelValue:f.pointId,"onUpdate:modelValue":g[0]||(g[0]=N=>f.pointId=N),placeholder:"请选择门架"},{default:fe(()=>[(O(!0),K(He,null,ct(a.value,N=>(O(),we(m,{key:N.gantryId,label:N.gantryName,value:N.gantryId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),V(b,{label:"时间",prop:"splitDate"},{default:fe(()=>[V(w,{modelValue:f.dataTime,"onUpdate:modelValue":g[1]||(g[1]=N=>f.dataTime=N),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"请选择日期"},null,8,["modelValue"])]),_:1}),V(b,{label:"通行ID",prop:"passId"},{default:fe(()=>[V(S,{modelValue:f.passId,"onUpdate:modelValue":g[2]||(g[2]=N=>f.passId=N),placeholder:"请输入通行ID"},null,8,["modelValue"])]),_:1}),V(b,{label:"车牌",prop:"vehicleld"},{default:fe(()=>[V(S,{modelValue:f.vehicleId,"onUpdate:modelValue":g[3]||(g[3]=N=>f.vehicleId=N),placeholder:"请输入车牌号"},null,8,["modelValue"])]),_:1}),V(b,null,{default:fe(()=>[V(C,{type:"primary",onClick:h},{default:fe(()=>[V(x),yt(" 搜索 ")]),_:1}),V(C,{onClick:p},{default:fe(()=>[V(T),yt(" 重置 ")]),_:1})]),_:1})]),_:1},8,["model"])]),pt((O(),we(M,{data:l.value,height:c,"highlight-current-row":"true",border:"",style:{width:"98%"}},{default:fe(()=>[V(A,{prop:"name",label:"门架",width:"180"}),V(A,{prop:"splitDate",label:"时间",width:"180"}),V(A,{prop:"vehicleClass",label:"车种",width:"180"}),V(A,{prop:"vehicleNo",label:"车牌号码",width:"180"}),V(A,{prop:"color",label:"车牌颜色",width:"180"}),V(A,{prop:"vehicleType",label:"收费车型",width:"180"}),V(A,{prop:"splitFee",label:"拆分金额",width:"180"}),V(A,{prop:"splitFee2",label:"二次拆分金额",width:"180"}),V(A,{prop:"passId",label:"通行标识ID",width:"180"}),V(A,{prop:"div1EntryName",label:"拆分入口",width:"180"}),V(A,{prop:"div1ExitName",label:"拆分出口",width:"180"}),V(A,{prop:"div2EntryName",label:"二次拆分入口",width:"180"}),V(A,{prop:"div2ExitName",label:"二次拆分出口",width:"180"}),V(A,{label:"操作",fixed:"right",align:"left",width:"90"},{default:fe(N=>[V(C,{type:"primary",link:"",size:"small",onClick:st($=>d(N.row.passId),["stop"])},{default:fe(()=>[yt("查询详情 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[L,s.value]]),V(I,{modelValue:t.value,"onUpdate:modelValue":g[4]||(g[4]=N=>t.value=N),style:{width:"80%",height:"565px",overflow:"hidden"}},{default:fe(()=>[t.value?(O(),we(Klt,{key:0,passId:r.value},null,8,["passId"])):be("",!0)]),_:1},8,["modelValue"]),V(E,{class:"pagination",background:"",layout:"prev, pager, next","page-size":f.pageSize,"page-number":f.pageNum,onCurrentChange:o,total:u.value},null,8,["page-size","page-number","total"])],64)}}},Xlt=$i(qlt,[["__scopeId","data-v-2c8cec9c"]]),Zlt={__name:"devicestatus",setup(e,{expose:t}){const n=U([]),r=U(!0);return t({getData:function(o,s){r.value=!0,n.value=[],r8e({kindId:o,statustype:s}).then(l=>{n.value=l,r.value=!1}).catch(l=>{r.value=!1,console.log(l)})}}),(i,o)=>{const s=Fe("el-table-column"),l=Fe("el-tag"),u=Fe("el-table");return O(),we(u,{ref:"tableRef","row-key":"subcomno",data:n.value,style:{width:"100%",height:"100%"}},{default:fe(()=>[V(s,{type:"index",label:"序号",width:"80",align:"center"}),V(s,{prop:"subcomno",align:"center",label:"分公司编号"}),V(s,{prop:"subcomname",align:"center",label:"分公司"}),V(s,{prop:"lineid",align:"center",label:"路段"}),V(s,{prop:"stationName",align:"center",label:"站点"}),V(s,{prop:"equipid",align:"center",label:"设备编号"}),V(s,{prop:"isping",align:"center",label:"状态"},{default:fe(c=>[c.row.isping==1?(O(),we(l,{key:0,type:"success"},{default:fe(()=>[yt("正常")]),_:1})):(O(),we(l,{key:1,type:"danger"},{default:fe(()=>[yt("异常")]),_:1}))]),_:1})]),_:1},8,["data"])}}},Jlt={__name:"datatransstatus",setup(e,{expose:t}){const n=U(1),r=U([]),a=U(!0);return t({getData:function(s,l){n.value=l,a.value=!0,r.value=[],n8e({devicetype:s,statustype:l}).then(u=>{a.value=!1,r.value=u}).catch(u=>{console.log(u),a.value=!1})}}),(o,s)=>{const l=Fe("el-table-column"),u=Fe("el-tag"),c=Fe("el-table"),f=Ds("loading");return pt((O(),we(c,{ref:"tableRef","row-key":"subcomno",data:r.value,style:{width:"100%",height:"100%"}},{default:fe(()=>[V(l,{type:"index",label:"序号",width:"80",align:"center"}),V(l,{prop:"subcomno",align:"center",label:"分公司编号"}),V(l,{prop:"subcomname",align:"center",label:"分公司"}),V(l,{prop:"lineid",align:"center",label:"路段"}),V(l,{prop:"stationName",align:"center",label:"站点"}),V(l,{prop:"devicestatus",align:"center",label:"状态"},{default:fe(d=>[n.value===1?(O(),we(u,{key:0,type:"success"},{default:fe(()=>[yt("正常")]),_:1})):(O(),we(u,{key:1,type:"danger"},{default:fe(()=>[yt("异常")]),_:1}))]),_:1})]),_:1},8,["data"])),[[f,a.value]])}}},Qlt={class:"box"},eut={class:"row"},tut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 卡口总流量 ",-1),nut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 入省总流量 ",-1),rut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 出省总流量 ",-1),aut={class:"row"},iut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 黑鹰山入省流量 ",-1),out=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 蒙冀界入省流量 ",-1),sut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 韩家营入省流量 ",-1),lut={class:"row"},uut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 黑鹰山出省流量 ",-1),cut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 蒙冀界出省流量 ",-1),fut=W("div",{style:{color:"#fff","text-align":"center","margin-top":"10px","font-size":"20px"}}," 韩家营出省流量 ",-1),dut={__name:"hj",setup(e){const t=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),n=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),r=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),a=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),i=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),o=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),s=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),l=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}}),u=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"}});function c(){s8e().then(d=>{if(d.status==200&&d.data.code==1){let h=d.data.data;t.value.number[0]=h.ret1[0].TOTALFLOW,n.value.number[0]=h.ret1[0].INTOTALFLOW,r.value.number[0]=h.ret1[0].INTOTALFLOW;let p=h.ret2.find(g=>g.DIRECTION==1),v=h.ret2.find(g=>g.DIRECTION==2);u.value.number[0]=v.HANTOTALFLOW2,o.value.number[0]=p.HANTOTALFLOW2,s.value.number[0]=p.HEITOTALFLOW,a.value.number[0]=v.HEITOTALFLOW,l.value.number[0]=v.JIATOTALFLOW,i.value.number[0]=p.JIATOTALFLOW}})}c(),U(!1);const f=window.setInterval(()=>{setTimeout(()=>{c()},0)},1e3*1);return pn(()=>{clearInterval(f)}),(d,h)=>{const p=Fe("dv-digital-flop"),v=Fe("dv-border-box-9");return O(),K("div",Qlt,[W("div",eut,[V(v,{class:"cardAlarm"},{default:fe(()=>[tut,V(p,{config:t.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1}),V(v,{class:"cardAlarm"},{default:fe(()=>[nut,V(p,{config:n.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1}),V(v,{class:"cardAlarm"},{default:fe(()=>[rut,V(p,{config:r.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1})]),W("div",aut,[V(v,{class:"cardAlarm"},{default:fe(()=>[iut,V(p,{config:a.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1}),V(v,{class:"cardAlarm"},{default:fe(()=>[out,V(p,{config:i.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1}),V(v,{class:"cardAlarm"},{default:fe(()=>[sut,V(p,{config:o.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1})]),W("div",lut,[V(v,{class:"cardAlarm"},{default:fe(()=>[uut,V(p,{config:s.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1}),V(v,{class:"cardAlarm"},{default:fe(()=>[cut,V(p,{config:l.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1}),V(v,{class:"cardAlarm"},{default:fe(()=>[fut,V(p,{config:u.value,style:{height:"50%","padding-top":"5%"}},null,8,["config"])]),_:1})])])}}},hut={style:{width:"100%",height:"100%","border-radius":"10px"}},put={__name:"Map",setup(e,{expose:t}){const n=U();var r=null,a="pointLayer",i=null;const o=U([]),s=U({type:"circle",paint:{"circle-color":"red","circle-radius":7}});function l(d){let h={};return Object.assign(h,d||{}),h}const u=async function(h){let p=await a8e({subComNo:h.subcomno});p.status==200&&p.data.code==1&&p.data.data.forEach((v,g)=>{g===0&&(c=[v.lng,v.lat]),o.value.push({type:"Feature",properties:l(v.splitStaDataVO),geometry:{type:"Point",coordinates:[v.lng,v.lat]}})}),f()};let c=[111.80282489244144,41.72225716089292];function f(){r=new HDmap.map({container:"jtjtmap",center:c,styleURL:HDmap.MapStyle.SM_WMTS_VEC_WHITE,zoom:8}),r.map2d.on("style.load",d=>{console.log("地图加载成功",d),r.addFeaturePoint(a,o.value,s.value),i=new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"350px"}),r.map2d.on("mousemove",function(h){let p=[[h.point.x-1,h.point.y-1],[h.point.x+1,h.point.y+1]];if(!r.map2d.getLayer(a))return;let v=r.map2d.queryRenderedFeatures(p,{layers:[a]});if(i&&i.remove(),v.length>0){r.map2d.getCanvas().style.cursor="pointer";let m=v[0].properties;var g="<div><h2>"+m.name+"</h2><p>拆分正常金额"+m.normalFee+"</p><p>拆分正常流量"+m.normalCarCount+"</p><p>拆分异常金额"+m.abNormalFee+"</p><p>拆分异常流量"+m.abNormalCarCount+"</p><p>计费差额金额"+m.billingAbNormalFee+"</p><p>计费差额流量"+m.billingAbNormalCarCount+"</p><p>拆分差额金额"+m.errorSplitFee+"</p><p>拆分差额流量"+m.abNormalCarCount+"</p></div>";i.setLngLat(h.lngLat).setHTML(g).addTo(r.map2d)}else r.map2d.getCanvas().style.cursor=""})})}return t({getData:u}),(d,h)=>(O(),K("div",hut,[W("div",{class:"jtjtbj",id:"jtjtmap",ref_key:"refjtjtmap",ref:n,style:{height:"100% !important",width:"100% !important","border-radius":"10px",padding:"0 !important",margin:"0 !important"}},null,512)]))}},vut={style:{width:"100%",height:"100%",display:"flex"}},gut={class:"right-2"},mut={class:"right-2"},yut={class:"qjdpmainlj_center"},but={class:"cen_hj"},_ut={class:"map_cen"},wut=W("div",{style:{position:"relative",padding:"10px","z-index":"100",top:"65%",left:"-45%",width:"0"}},null,-1),Sut={style:{width:"35%",height:"36%"}},xut={class:"bottm_cen"},Cut={style:{height:"100%","border-radius":"10px"}},Tut={style:{height:"100%","border-radius":"10px"}},kut={style:{height:"100%","border-radius":"10px"}},Aut={__name:"index",setup(e){const t=U(!1);U();const n=U();U(),U();const r=U(!1),a=U(!1),i=U(!1);U(),nt(()=>{});const o=U();function s(l){i.value=!0,Xe(()=>{o.value.getData(l)})}return(l,u)=>{const c=Fe("cen_map"),f=Fe("el-dialog");return O(),K(He,null,[W("div",vut,[W("div",{ref_key:"rightref",ref:n,class:"dpmainlj_right"},[W("div",gut,[V(Gi,{title:"识别车型流量占比",activeName:vlt})]),W("div",mut,[V(Gi,{title:"各卡口流量排名",activeName:ylt})])],512),W("div",yut,[W("div",but,[V(dut),yt("- ")]),W("div",_ut,[V(c,{parentFunction:s,style:{width:"65%"}}),wut,V(f,{"append-to-body":"",modelValue:t.value,"onUpdate:modelValue":u[0]||(u[0]=d=>t.value=d),title:"数据稽查",style:{height:"600px"},class:"check-data",width:"90%"},{default:fe(()=>[t.value?(O(),we(Xlt,{key:0})):be("",!0)]),_:1},8,["modelValue"]),W("div",Sut,[V(Gi,{title:"当日客货占比",activeName:_lt}),V(Gi,{title:"近七日客车流量",activeName:Clt}),V(Gi,{title:"近七日货车流量",activeName:Mlt})])]),W("div",xut,[V(Gi,{style:{width:"69.5%"},title:"近7日卡口流量",activeName:Ilt}),V(Gi,{style:{width:"387.4px",height:"28%",position:"absolute",right:"0px",bottom:"5px"},title:"近七日未知流量",activeName:Rlt})])])]),V(f,{"destroy-on-close":"",modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=d=>r.value=d),"show-close":!1,style:{"border-radius":"10px",width:"60%",height:"60%"}},{default:fe(()=>[W("div",Cut,[V(Zlt,{devicetype:"1",statustype:"3",style:{height:"100%","border-radius":"10px"}})])]),_:1},8,["modelValue"]),V(f,{"destroy-on-close":"",modelValue:a.value,"onUpdate:modelValue":u[2]||(u[2]=d=>a.value=d),"show-close":!1,style:{"border-radius":"10px",width:"60%",height:"60%"}},{default:fe(()=>[W("div",Tut,[V(Jlt,{devicetype:"1",statustype:"2",style:{height:"100%","border-radius":"10px"}})])]),_:1},8,["modelValue"]),V(f,{"destroy-on-close":"",modelValue:i.value,"onUpdate:modelValue":u[3]||(u[3]=d=>i.value=d),"show-close":!1,style:{"border-radius":"10px",width:"80%",height:"80%"}},{default:fe(()=>[W("div",kut,[V(put,{ref_key:"subRef",ref:o,style:{height:"100%","border-radius":"10px"}},null,512)])]),_:1},8,["modelValue"])],64)}}},Mut={name:"index",components:{Position:Qye},data(){return{showPointInfo:!1,point1:[],point2:[],gantries:[],showTable:!0,defaultDrawer:!1,animationName:"slideLeft",animationDuration:"2s",drawer:!1,height:300,myHeight:550,tableLoading:!1,indexVisable:!1,informationWindow:null,passId:"",queryParams:{pageNum:1,pageSize:10,pointId:"",dataTime:void 0,passId:"",vehicleNo:"",isRight:2},total:0,showForm:!1,options:[{value:"车型识别设备识别数据错误",label:"车型识别设备识别数据错误"},{value:"路径还原错误",label:"路径还原错误"},{value:"其它",label:"其它"}],form:{value:"",textarea:""},data:[],infos:[],lineOne:[],lineTwo:[],rowData:{},mapShow:!1,map:null,mapStyle:"",mapId:GJ(),mapData:{},divChecked:!0,fitChecked:!0,staInfoLoading:!1,supportCanvas:!1,fitGantry:[],divGantry:[],fitPoints:[],fitFeatures:[],fitLineFeatures:[],fitAttributes:{paint:{"line-color":"#18a45b","line-width":4}},divPoints:[],divFeatures:[],divLineFeatures:[],divAttributes:{paint:{"line-color":"#bf41c7","line-width":4}},informationWindow:new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"350px"}),tableData:[],attributes:{type:"circle",paint:{"circle-color":"red","circle-radius":7}},gantryInfoWindows:[]}},watch:{fitChecked:{deep:!0,handler(e,t){e?(this.map.addFeatureLine("fitPath",this.fitLineFeatures,this.fitAttributes),this.map.addFeaturePoint("fitPathD",this.fitFeatures,{type:"circle",paint:{"circle-color":this.fitAttributes.paint["line-color"],"circle-radius":6}}),this.map.addFeaturePoint("fitPathPoint",this.fitFeatures,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}}),this.map.map2d.setPaintProperty("urlPoint","circle-color","#2BA270")):(this.map.removeLayer("fitPath"),this.map.removeLayer("fitPathD"),this.map.removeLayer("fitPathPoint"),this.map.map2d.setPaintProperty("urlPoint","circle-color","transparent"))}},divChecked:{deep:!0,handler(e,t){e?(this.map.addFeatureLine("divPath",this.divLineFeatures,this.divAttributes),this.map.addFeaturePoint("divPathD",this.divFeatures,{type:"circle",paint:{"circle-color":this.divAttributes.paint["line-color"],"circle-radius":6}}),this.map.addFeaturePoint("divPathPoint",this.fitFeatures,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}}),this.map.map2d.setPaintProperty("url2Point","circle-color","#B54AA5")):(this.map.removeLayer("divPath"),this.map.removeLayer("divPathD"),this.map.removeLayer("divPathPoint"),this.map.map2d.setPaintProperty("url2Point","circle-color","transparent"))}},nodeShow:{}},methods:{clearGantryInfoWindows(){this.gantryInfoWindows.forEach(e=>{e.remove()}),this.gantryInfoWindows.length=0},handleNodeClick(e){this.infos=[],this.clearRemoveLayer(),e.child.length==0&&o8e(e.code).then(t=>{if(t.status==200&&t.data.code==1&&t.data.data!=null){this.informationWindow&&this.informationWindow.remove(),this.clearGantryInfoWindows(),this.map.removeLayer("staPoint");let n=t.data.data,r=[{type:"Feature",properties:{message:n.name,gid:"9999999"},geometry:{type:"Point",coordinates:[n.lng,n.lat]}}];this.map.addFeaturePoint("staPoint",r,{type:"symbol",paint:{"text-opacity":1,"text-color":"#000","text-halo-color":"rgba(0,0,0,0)","text-halo-width":0,"text-halo-blur":0,"text-translate":[0,0]},layout:{"icon-image":"point","icon-allow-overlap":!0,visibility:"visible","text-field":["get","message"],"text-font":["Microsoft YaHei Regular"],"text-offset":[0,0],"text-anchor":"top","text-size":12}}),this.map.map2d.getCanvas().style.cursor="pointer";let a="<div style='color:#000'><h2>"+n.name+"</h2><p>拆分正常金额"+n.normalFee+"</p><p>拆分正常流量"+n.normalCarCount+"</p><p>拆分异常金额"+n.abNormalFee+"</p><p>拆分异常流量"+n.abNormalCarCount+"</p><p>计费差额金额"+n.billingAbNormalFee+"</p><p>计费差额流量"+n.billingAbNormalCarCount+"</p><p>拆分差额金额"+n.errorSplitFee+"</p><p>拆分差额流量"+n.abNormalCarCount+"</p></div>";this.map.map2d.flyTo({center:[n.lng,n.lat],zoom:9,speed:.5,duration:500,curve:1,essential:!0}),this.informationWindow.setLngLat([n.lng,n.lat]).setHTML(a).addTo(this.map.map2d)}else Q7({message:"未统计到当日的拆分信息",type:"warning"})})},dragEagle:function(e){const t=this;t.showTable=!1;var n=document.getElementById("eagleMapContainer"),r=parseInt(n.style.height,10)||n.offsetHeight,a=e.clientY;function i(o){o.preventDefault();var s=o.clientY-a,l=r-s;l=Math.min(Math.max(l,150),800),t.height=l-100,t.showTable=!0,n.style.height=l+"px"}document.addEventListener("mousemove",i),document.addEventListener("mouseup",function(){document.removeEventListener("mousemove",i)})},handleQuery(){this.tableLoading=!0,CU(this.queryParams).then(e=>{e.status==200&&(e=e.data,e.code==1&&(this.tableData=e.data.records,this.total=e.data.total,this.tableLoading=!1))})},handleShowDetailBtnClick(e){this.passId=e,this.clearGantryInfoWindows(),this.pageInit()},handleSizeChange(e){this.queryParams.pageSize=e,this.handleQuery()},handleCurrentChange(e){this.queryParams.pageNum=e,this.handleQuery()},handleResetQuery(){this.$refs.queryFormRef.resetFields(),this.queryParams.pageNum=1,this.queryParams.isRight=null,this.handleQuery()},async onSubmit(){const e={passId:this.passId,result:this.form.value==="其它"||this.form.value===""?this.form.textarea:this.form.value},{data:t}=await TU(e);t?(this.$message({message:"稽查成功",type:"success"}),this.$refs.form.resetFields()):this.$message({message:"请输入正确的稽查内容",type:"error"})},pageInit(){this.handleQuery(),this.mapStyle="width:100%;height: 100vh;z-index: 1;",this.initMap(),this.$nextTick(()=>{this.passId&&kU(this.passId).then(e=>{if(e.status==200&&(e=e.data,this.mapShow=e.data.data.splitFee!=e.data.data.splitFee2,e.code==1)){this.lineOne=e.data.one,this.lineTwo=e.data.two;let t=this.lineOne[0];this.data=e.data.data,this.infos=e.data.infos,t[0]!=null&&this.map.map2d.flyTo({center:t,zoom:9,speed:.5,duration:500,curve:1,essential:!0}),this.addMapLine()}})})},initMap(){if(!this.map){let e=Object.assign({},HDmap.MapStyle.SM_WMTS_VEC_WHITE,{glyphs:"../../public/fonts/{fontstack}/{range}.pbf"});this.map=new HDmap.map({container:"mapDiv",center:[111.80282489244144,41.72225716089292],zoom:9,styleURL:e});let t=this;this.map.map2d.on("style.load",n=>{t.mapShow=!1}),this.map.map2d.on("mousemove",n=>{let r=[[n.point.x-1,n.point.y-1],[n.point.x+1,n.point.y+1]];if(!this.map.map2d.getLayer("fitPathPoint"))return;let a;a=this.map.map2d.queryRenderedFeatures(r,{layers:["fitPathPoint"]}),this.map.map2d.getLayer("divPathPoint")&&(a||(a=this.map.map2d.queryRenderedFeatures(r,{layers:["divPathPoint"]})),a&&this.informationWindow&&this.informationWindow.remove())})}this.clearRemoveLayer()},clearRemoveLayer(){this.map.removeLayer("fitPath"),this.map.removeLayer("divPath"),this.map.removeLayer("divPathD"),this.map.removeLayer("divPathPoint"),this.map.removeLayer("fitPathPoint"),this.map.removeLayer("staPoint"),this.map.removeLayer("urlPoint"),this.map.removeLayer("url2Point")},addMapLine(){let e=this.lineOne.filter(r=>r[0]!=null).map(r=>(r[1]=r[1]-.05,r));this.fitLineFeatures=[],this.fitLineFeatures=[{type:"Feature",properties:{gid:1},geometry:{type:"LineString",coordinates:e}}],this.map.map2d.loadImage("../../public/resource/img/normal.png",(r,a)=>{if(r)throw r;this.map.map2d.addImage("normal",a)}),this.point1=[],e.forEach((r,a)=>{this.point1.push({type:"Feature",properties:{gid:r[2]},geometry:{type:"Point",coordinates:r}})}),this.map.removeLayer("staPoint"),this.map.removeLayer("urlPoint"),this.map.removeLayer("url2Point"),this.map.addFeaturePoint("urlPoint",this.point1,{type:"circle",paint:{"circle-color":"#2BA270","circle-radius":6}});let t=this.lineTwo.filter(r=>r[0]!=null).map(r=>(r[1]=r[1]+.05,r));this.divLineFeatures=[],this.divLineFeatures=[{type:"Feature",properties:{gid:2},geometry:{type:"LineString",coordinates:t}}],this.point2=[],t.forEach((r,a)=>{this.point2.push({type:"Feature",properties:{gid:r[2]},geometry:{type:"Point",coordinates:r}})}),this.map.addFeaturePoint("url2Point",this.point2,{type:"circle",paint:{"circle-color":"#B54AA5","circle-radius":6}});const n=this;this.map.map2d.on("click",function(r){let a=[[r.point.x-1,r.point.y-1],[r.point.x+1,r.point.y+1]],i=n.map.map2d.queryRenderedFeatures(a,{layers:["url2Point","urlPoint"]});if(i.length>0){let o=i[0].properties;if(n.infos!=null&&n.infos.length>0){n.clearGantryInfoWindows();for(let s=0;s<n.infos.length;s++)if(o.gid===n.infos[s].gantryId){let l=new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"120px"});n.gantryInfoWindows.push(l);let u="<div style='color:#000'>门架名称:"+n.infos[s].name+"<br />车牌:"+n.data.vehicleNo+"<br />颜色:"+n.data.color+"</div>";l.setLngLat([n.infos[s].lng,n.infos[s].lat]).setHTML(u).addTo(n.map.map2d)}}}}),this.map.addFeatureLine("fitPath",this.fitLineFeatures,this.fitAttributes),this.map.addFeatureLine("divPath",this.divLineFeatures,this.divAttributes)},addFeatures(){if(this.showPointInfo=!this.showPointInfo,this.showPointInfo){if(this.informationWindow=new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"350px"}),!this.map)return;if(this.fitFeatures=[],this.infos!=null&&this.infos.length>0){this.clearGantryInfoWindows();for(let e=0;e<this.infos.length;e++){let t=new HDmap.Popup({closeButton:!1,closeOnClick:!1,className:"mapbox-popup",maxWidth:"120px"});this.gantryInfoWindows.push(t);let n="<div style='color:#000'>门架名称:"+this.infos[e].name+"<br />车牌:"+this.data.vehicleNo+"<br />颜色:"+this.data.color+"</div>";t.setLngLat([this.infos[e].lng,this.infos[e].lat]).setHTML(n).addTo(this.map.map2d)}}else this.$message.warning("请选择查看的路径")}else this.clearGantryInfoWindows()}},mounted(){this.passId=this.$route.query.passId,this.queryParams.passId=this.passId,this.pageInit(),i8e().then(e=>{e.status==200&&e.data.code&&(this.orgDatas=e.data.data)}),IP().then(e=>{e.status==200&&e.data.code==1&&(this.gantries=e.data.data)})}},mf=e=>(OA("data-v-1a470683"),e=e(),NA(),e),Put={class:"index"},Eut=mf(()=>W("div",{class:"arrow-left"},null,-1)),Iut=mf(()=>W("div",{class:"arrow-right"},null,-1)),Dut={class:"option"},Lut=mf(()=>W("span",{style:{width:"10px",height:"10px","background-color":"#bf41c7ff","border-radius":"10px"}},"    ",-1)),$ut=mf(()=>W("span",{style:{width:"10px",height:"10px","background-color":"#18a45b","border-radius":"10px"}},"    ",-1)),Rut={class:"data"},Out={class:"top"},Nut=mf(()=>W("div",{id:"mapDiv"},null,-1)),But={key:0,class:"training-border"},Fut=mf(()=>W("h4",null,"稽查审核",-1)),Vut={class:"bottom",id:"eagleMapContainer"},zut=mf(()=>W("div",{title:"拖动调整大小",id:"move_tz"},null,-1)),Hut=[zut],Gut={class:"search-container"};function Wut(e,t,n,r,a,i){const o=Fe("el-icon"),s=Fe("el-checkbox"),l=Fe("el-button"),u=Fe("el-form-item"),c=Fe("el-option"),f=Fe("el-select"),d=Fe("el-input"),h=Fe("el-form"),p=Fe("el-date-picker"),v=Fe("el-radio"),g=Fe("el-radio-group"),m=Fe("i-ep-search"),_=Fe("el-table-column"),b=Fe("Position"),w=Fe("el-table"),S=Fe("GisMap"),x=Fe("el-dialog"),C=Fe("el-pagination"),T=Fe("el-tree"),k=Fe("el-drawer"),A=Ds("loading");return O(),K("div",Put,[a.drawer?(O(),we(o,{key:1,class:j(["arrow",{slideLeftClass:a.drawer}]),onClick:t[1]||(t[1]=M=>a.drawer=!a.drawer)},{default:fe(()=>[Iut]),_:1},8,["class"])):(O(),we(o,{key:0,class:j(["arrow",[a.defaultDrawer&&!a.drawer?"slideRightClass":""]]),onClick:t[0]||(t[0]=M=>{a.drawer=!a.drawer,a.defaultDrawer=!0})},{default:fe(()=>[Eut]),_:1},8,["class"])),W("div",Dut,[V(s,{modelValue:a.divChecked,"onUpdate:modelValue":t[2]||(t[2]=M=>a.divChecked=M),size:"large"},{default:fe(()=>[Lut,yt("拆分 ")]),_:1},8,["modelValue"]),V(s,{modelValue:a.fitChecked,"onUpdate:modelValue":t[3]||(t[3]=M=>a.fitChecked=M),size:"large"},{default:fe(()=>[$ut,yt("计费 ")]),_:1},8,["modelValue"]),V(l,{style:{"margin-left":"30px","margin-top":"-2px"},modelValue:e.nodeShow,"onUpdate:modelValue":t[4]||(t[4]=M=>e.nodeShow=M),onClick:t[5]||(t[5]=M=>i.addFeatures())},{default:fe(()=>[yt("节点信息展示")]),_:1},8,["modelValue"])]),W("div",Rut,[W("div",Out,[Nut,a.mapShow?(O(),K("div",But,[V(u,null,{default:fe(()=>[Fut]),_:1}),V(h,{ref:"form",model:a.form,"label-width":"140px",style:{"margin-top":"-13px"}},{default:fe(()=>[V(u,{label:"路径还原不准确",prop:"value"},{default:fe(()=>[V(f,{modelValue:a.form.value,"onUpdate:modelValue":t[6]||(t[6]=M=>a.form.value=M),placeholder:"请选择"},{default:fe(()=>[(O(!0),K(He,null,ct(a.options,M=>(O(),we(c,{key:M.value,label:M.label,value:M.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),V(u,{label:"其他原因",prop:"textarea"},{default:fe(()=>[V(d,{type:"textarea",rows:2,placeholder:"请输入内容",modelValue:a.form.textarea,"onUpdate:modelValue":t[7]||(t[7]=M=>a.form.textarea=M)},null,8,["modelValue"])]),_:1}),V(u,{class:"hidden"},{default:fe(()=>[V(l,{onClick:t[8]||(t[8]=M=>a.mapShow=!a.mapShow)},{default:fe(()=>[yt("取消")]),_:1}),V(l,{type:"primary",onClick:i.onSubmit},{default:fe(()=>[yt("确定")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])])):be("",!0)]),W("div",Vut,[W("div",{id:"tz",onMousedown:t[9]||(t[9]=(...M)=>i.dragEagle&&i.dragEagle(...M))},Hut,32),W("div",Gut,[V(h,{inline:!0,ref:"queryFormRef",model:a.queryParams},{default:fe(()=>[V(u,{label:"门架",prop:"pointId"},{default:fe(()=>[V(f,{clearable:"",modelValue:a.queryParams.pointId,"onUpdate:modelValue":t[10]||(t[10]=M=>a.queryParams.pointId=M),placeholder:"请选择门架"},{default:fe(()=>[(O(!0),K(He,null,ct(a.gantries,M=>(O(),we(c,{key:M.gantryId,label:M.gantryName,value:M.gantryId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),V(u,{clearable:"",label:"时间",prop:"dataTime"},{default:fe(()=>[V(p,{modelValue:a.queryParams.dataTime,"onUpdate:modelValue":t[11]||(t[11]=M=>a.queryParams.dataTime=M),type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"请选择日期"},null,8,["modelValue"])]),_:1}),V(u,{clearable:"",label:"通行ID",prop:"passId"},{default:fe(()=>[V(d,{modelValue:a.queryParams.passId,"onUpdate:modelValue":t[12]||(t[12]=M=>a.queryParams.passId=M),placeholder:"请输入通行ID"},null,8,["modelValue"])]),_:1}),V(u,{clearable:"",label:"车牌",prop:"vehicleId"},{default:fe(()=>[V(d,{modelValue:a.queryParams.vehicleId,"onUpdate:modelValue":t[13]||(t[13]=M=>a.queryParams.vehicleId=M),placeholder:"请输入车牌号"},null,8,["modelValue"])]),_:1}),V(u,null,{default:fe(()=>[V(g,{modelValue:a.queryParams.isRight,"onUpdate:modelValue":t[14]||(t[14]=M=>a.queryParams.isRight=M)},{default:fe(()=>[V(v,{label:1,size:"large"},{default:fe(()=>[yt("路径一致")]),_:1}),V(v,{label:2,size:"large"},{default:fe(()=>[yt("路径不一致")]),_:1})]),_:1},8,["modelValue"])]),_:1}),V(u,null,{default:fe(()=>[V(l,{type:"primary",onClick:i.handleQuery},{default:fe(()=>[V(m),yt(" 搜索 ")]),_:1},8,["onClick"]),V(l,{onClick:i.handleResetQuery},{default:fe(()=>[yt(" 重置 ")]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),a.showTable?pt((O(),we(w,{key:0,data:a.tableData,height:a.height,ref:"tables","highlight-current-row":!0,border:"",style:{width:"98%"},class:"table"},{default:fe(()=>[V(_,{prop:"name",label:"门架",width:"180"}),V(_,{prop:"splitDate",label:"时间",width:"180"}),V(_,{prop:"vehicleClass",label:"车种",width:"180"}),V(_,{prop:"vehicleNo",label:"车牌号码",width:"180"}),V(_,{prop:"color",label:"车牌颜色",width:"180"}),V(_,{prop:"text",label:"收费车型",width:"180"}),V(_,{prop:"splitFee",label:"拆分金额",width:"180"}),V(_,{prop:"splitFee2",label:"二次拆分金额",width:"180"}),V(_,{prop:"passId",label:"通行标识ID",width:"180"}),V(_,{prop:"div1EntryName",label:"拆分入口",width:"180"}),V(_,{prop:"div1ExitName",label:"拆分出口",width:"180"}),V(_,{prop:"div2EntryName",label:"二次拆分入口",width:"180"}),V(_,{prop:"div2ExitName",label:"二次拆分出口",width:"180"}),V(_,{label:"操作",fixed:"right",align:"left",width:"90"},{default:fe(M=>[V(o,{style:{cursor:"pointer","font-size":"20px"},onClick:st(I=>i.handleShowDetailBtnClick(M.row.passId),["stop"])},{default:fe(()=>[V(b)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","height"])),[[A,a.tableLoading]]):be("",!0),V(x,{modelValue:a.indexVisable,"onUpdate:modelValue":t[15]||(t[15]=M=>a.indexVisable=M),style:{width:"80%",height:"565px",overflow:"hidden"}},{default:fe(()=>[a.indexVisable?(O(),we(S,{key:0,passId:a.passId},null,8,["passId"])):be("",!0)]),_:1},8,["modelValue"]),V(C,{onSizeChange:i.handleSizeChange,onCurrentChange:i.handleCurrentChange,"current-page":a.queryParams.pageNum,total:a.total,"page-sizes":[10,20,30],"page-size":a.queryParams.pageSize,layout:"total, sizes, prev, pager, next, jumper"},null,8,["onSizeChange","onCurrentChange","current-page","total","page-size"])])]),V(k,{modelValue:a.drawer,"onUpdate:modelValue":t[16]||(t[16]=M=>a.drawer=M),direction:"rtl","with-header":!1,size:"15%",modal:!1,"close-on-click-modal":!0,"show-close":!1,wrapperClosable:!1,style:{height:"50%","margin-top":"50px",position:"inherit","background-color":"rgb(2, 11, 49) !important"},"lock-scroll":!1,"modal-class":"modalClass"},{default:fe(()=>[V(T,{style:{"max-width":"600px"},"node-key":"code",data:e.orgDatas,props:{children:"child",label:"name"},accordion:"",onNodeClick:i.handleNodeClick},null,8,["data","onNodeClick"])]),_:1},8,["modelValue"])])}const Uut=$i(Mut,[["render",Wut],["__scopeId","data-v-1a470683"]]);var jut={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};const Kut={class:"search-container"},Yut={__name:"DataAuditing",setup(e){const t=U(!1);iH(),aH();const n=U(""),r=U(null),a=v=>{c.pageNum=v,h()},i=v=>{c.pageSize=v,h()};nt(()=>{h()});const o=U(!1),s=U([]),l=U(0),u=document.documentElement.clientHeight-140,c=vt({pageNum:1,pageSize:15,pointId:"",dataTime:void 0,passId:"",value:"",vehicleId:"",whether:"",isRight:2}),f=U([]),d=U([]);h8e().then(v=>{v.status==200&&v.data.code==1&&(d.value=v.data.data)}),IP().then(v=>{v.status==200&&v.data.code==1&&(f.value=v.data.data)});const h=()=>{o.value=!0,d8e(c).then(v=>{v.status==200&&(v=v.data,v.code==1&&(s.value=v.data.records,l.value=v.data.total,o.value=!1))})},p=()=>{r.value.resetFields(),c.pageNum=1,c.isRight=null,h()};return(v,g)=>{const m=Fe("el-option"),_=Fe("el-select"),b=Fe("el-form-item"),w=Fe("el-date-picker"),S=Fe("el-input"),x=Fe("el-radio"),C=Fe("el-radio-group"),T=Fe("i-ep-search"),k=Fe("el-button"),A=Fe("i-ep-refresh"),M=Fe("el-form"),I=Fe("el-row"),E=Fe("el-table-column"),L=Fe("el-table"),N=Fe("GisMap"),$=Fe("el-dialog"),P=Fe("el-pagination"),R=Ds("loading");return O(),K(He,null,[W("div",Kut,[V(I,null,{default:fe(()=>[V(M,{inline:!0,ref_key:"queryFormRef",ref:r,model:c},{default:fe(()=>[V(b,{label:"车型识别节点",prop:"pointId"},{default:fe(()=>[V(_,{modelValue:c.pointId,"onUpdate:modelValue":g[0]||(g[0]=D=>c.pointId=D),placeholder:"请选择门架"},{default:fe(()=>[(O(!0),K(He,null,ct(f.value,D=>(O(),we(m,{key:D.gantryId,label:D.gantryName,value:D.gantryId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),V(b,{label:"车型",prop:"value"},{default:fe(()=>[V(_,{modelValue:c.value,"onUpdate:modelValue":g[1]||(g[1]=D=>c.value=D),placeholder:"请选择车型"},{default:fe(()=>[(O(!0),K(He,null,ct(d.value,D=>(O(),we(m,{key:D.value,label:D.text,value:D.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),V(b,{label:"时间",prop:"dataTime"},{default:fe(()=>[V(w,{modelValue:c.dataTime,"onUpdate:modelValue":g[2]||(g[2]=D=>c.dataTime=D),type:"date",placeholder:"请选择日期","value-format":"YYYY-MM-DD"},null,8,["modelValue"])]),_:1}),V(b,{label:"车牌",prop:"vehicleId"},{default:fe(()=>[V(S,{modelValue:c.vehicleId,"onUpdate:modelValue":g[3]||(g[3]=D=>c.vehicleId=D),placeholder:"请输入车牌"},null,8,["modelValue"])]),_:1}),V(b,{label:"是否匹配门架交易",prop:"whether"},{default:fe(()=>[V(_,{modelValue:c.whether,"onUpdate:modelValue":g[4]||(g[4]=D=>c.whether=D),placeholder:"请选择"},{default:fe(()=>[V(m,{label:"是",value:"0"}),V(m,{label:"否",value:"1"})]),_:1},8,["modelValue"])]),_:1}),V(b,null,{default:fe(()=>[V(C,{modelValue:c.isRight,"onUpdate:modelValue":g[5]||(g[5]=D=>c.isRight=D)},{default:fe(()=>[V(x,{label:1,size:"large"},{default:fe(()=>[yt("路径一致")]),_:1}),V(x,{label:2,size:"large"},{default:fe(()=>[yt("路径不一致")]),_:1})]),_:1},8,["modelValue"])]),_:1}),V(b,{style:{"padding-top":"0"}},{default:fe(()=>[V(k,{type:"primary",onClick:h,class:"btn"},{default:fe(()=>[V(T),yt(" 搜索 ")]),_:1}),V(k,{onClick:p,class:"btn"},{default:fe(()=>[V(A),yt(" 重置 ")]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),pt((O(),we(L,{data:s.value,height:u,"highlight-current-row":!0,border:"",style:{width:"100%"}},{default:fe(()=>[V(E,{prop:"splitDate",label:"时间",width:"180",align:"center"}),V(E,{prop:"vehicleClass",label:"车种",align:"center"}),V(E,{prop:"vehicleNo",label:"车牌号码",align:"center"}),V(E,{prop:"color",label:"车牌颜色",align:"center"}),V(E,{prop:"text",label:"收费车型",align:"center"}),V(E,{prop:"splitFee",label:"拆分金额",align:"center"}),V(E,{prop:"splitFee2",label:"二次拆分金额",align:"center"}),V(E,{prop:"div1EntryName",label:"拆分入口",align:"center"}),V(E,{prop:"div1ExitName",label:"拆分出口",align:"center"}),V(E,{prop:"div2EntryName",label:"二次拆分入口",align:"center"}),V(E,{prop:"div2ExitName",label:"二次拆分出口",align:"center"})]),_:1},8,["data"])),[[R,o.value]]),V($,{modelValue:t.value,"onUpdate:modelValue":g[6]||(g[6]=D=>t.value=D),style:{width:"80%",height:"565px",overflow:"hidden"}},{default:fe(()=>[t.value?(O(),we(N,{key:0,passId:n.value},null,8,["passId"])):be("",!0)]),_:1},8,["modelValue"]),V(P,{onSizeChange:i,onCurrentChange:a,"current-page":c.pageNum,total:l.value,"page-sizes":[15,20,30],"page-size":c.pageSize,layout:"total, sizes, prev, pager, next, jumper"},null,8,["current-page","total","page-size"])],64)}}},qut=$i(Yut,[["__scopeId","data-v-30a6a707"]]),Xut={style:{display:"flex","justify-content":"center","align-items":"center",width:"100%",height:"100%"}},Zut={style:{width:"98%",height:"95%"}},Jut=ge({__name:"center11",setup(e){const t=U({header:["节点","数量"],headerBGC:"#38797f",oddRowBGC:"",evenRowBGC:"",data:new Array,align:["center","center","center"],unit:"辆"});nt(()=>{n(),setInterval(n,1e4)});function n(){m8e().then(r=>{r.status==200&&r.data.code==1&&(t.value.data.length=0,r.data.data.forEach(a=>{t.value.data.push({name:a.name,value:a.notTotalCarCount})}))})}return(r,a)=>{const i=Fe("dv-scroll-ranking-board");return O(),K("div",Xut,[W("div",Zut,[V(i,{config:t.value,style:{width:"100%",height:"100%",color:"burlywood"}},null,8,["config"])])])}}}),Qut={style:{flex:"0 0 calc(33% - 10px)"}},ect=W("div",{style:{color:"#fff","text-align":"center","font-size":"20px",position:"absolute",width:"100%",top:"20%"}}," 车辆总流量 ",-1),tct={style:{flex:"0 0 calc(33% - 10px)"}},nct=W("div",{style:{color:"#fff","text-align":"center","font-size":"20px",position:"absolute",width:"100%",top:"20%"}}," 路径一致车流量 ",-1),rct={style:{flex:"0 0 calc(33% - 10px)"}},act=W("div",{style:{color:"#fff","text-align":"center","font-size":"20px",position:"absolute",width:"100%",top:"20%"}}," 路径不一致车流量 ",-1),ict={style:{flex:"0 0 calc(33% - 10px)"}},oct=W("div",{style:{color:"#fff","text-align":"center","font-size":"20px",position:"absolute",width:"100%",top:"20%"}}," 所有金额 ",-1),sct={style:{flex:"0 0 calc(33% - 10px)"}},lct=W("div",{style:{color:"#fff","text-align":"center","font-size":"20px",position:"absolute",width:"100%",top:"20%"}}," 路径一致金额 ",-1),uct={style:{flex:"0 0 calc(33% - 10px)"}},cct=W("div",{style:{color:"#fff","text-align":"center","font-size":"20px",position:"absolute",width:"100%",top:"20%"}}," 路径不一致金额 ",-1),fct={__name:"info",setup(e){const t=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"},formatter:l}),n=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"},formatter:l}),r=U({number:[0],toFixed:0,content:"{nt}辆",style:{fill:"#FFDB5C"},formatter:l}),a=U({number:[0],toFixed:0,content:"{nt}元",style:{fill:"#FFDB5C"},formatter:l}),i=U({number:[0],toFixed:0,content:"{nt}元",style:{fill:"#FFDB5C"},formatter:l}),o=U({number:[0],toFixed:0,content:"{nt}元",style:{fill:"#FFDB5C"},formatter:l});function s(){p8e().then(c=>{c.status==200&&c.data.code==1&&(t.value.number[0]=c.data.data[0].carTotal,n.value.number[0]=c.data.data[0].sameCarTotal,r.value.number[0]=c.data.data[0].noSameCarTotal,a.value.number[0]=c.data.data[0].moneyTotal,i.value.number[0]=c.data.data[0].sameMoneyTotal,o.value.number[0]=c.data.data[0].noSameMoneyTotal)})}function l(c){return c>=1e4&&(c=Number((c/1e4).toFixed(2))+"万"),[c]}const u=window.setInterval(()=>{setTimeout(()=>{s()},0)},1e3*1);return pn(()=>{clearInterval(u)}),s(),(c,f)=>{const d=Fe("dv-digital-flop"),h=Fe("dv-border-box-9");return O(),K(He,null,[W("div",Qut,[V(h,null,{default:fe(()=>[ect,V(d,{config:t.value,style:{position:"absolute",left:"0",right:"0",top:"10px"}},null,8,["config"])]),_:1})]),W("div",tct,[V(h,null,{default:fe(()=>[nct,V(d,{config:n.value,style:{position:"absolute",left:"0",right:"0",top:"10px"}},null,8,["config"])]),_:1})]),W("div",rct,[V(h,null,{default:fe(()=>[act,V(d,{config:r.value,style:{position:"absolute",left:"0",right:"0",top:"10px"}},null,8,["config"])]),_:1})]),W("div",ict,[V(h,null,{default:fe(()=>[oct,V(d,{config:a.value,style:{position:"absolute",left:"0",right:"0",top:"10px"}},null,8,["config"])]),_:1})]),W("div",sct,[V(h,null,{default:fe(()=>[lct,V(d,{config:i.value,style:{position:"absolute",left:"0",right:"0",top:"10px"}},null,8,["config"])]),_:1})]),W("div",uct,[V(h,null,{default:fe(()=>[cct,V(d,{config:o.value,style:{position:"absolute",left:"0",right:"0",top:"10px"}},null,8,["config"])]),_:1})])],64)}}},dct={style:{display:"flex","justify-content":"center","align-items":"center",width:"100%",height:"100%"}},hct=ge({__name:"left11",setup(e){const t=U();let n,r={};const a=U(new Array),i=new Image,o=async()=>{n&&(n.dispose(),n=null),await Xe(),n=_m(t.value);const u=a.value.map(g=>g.name),c=a.value.map(g=>g.value);r={tooltip:{trigger:"axis",formatter:function(g){return`${g[0].name}<br />${g[0].value}辆`}},grid:{top:20,left:0,right:5,bottom:5,containLabel:!0},xAxis:{type:"category",data:u,axisLine:{show:!0,lineStyle:{color:"#8F9297",opacity:.4,width:1,type:"solid"}},axisTick:{show:!1},axisLabel:{show:!0,color:"#8F9297",fontWeight:400,fontSize:12,margin:12,interval:0,rotate:30},splitLine:{show:!1,lineStyle:{color:"#8F9297",width:1,opacity:.15,type:"dashed"}}},yAxis:{type:"value",name:"",minInterval:1,nameTextStyle:{padding:[0,8,0,0],fontSize:12,color:"#8F9297",fontWeight:400},axisLine:{show:!1,lineStyle:{color:"#fff",opacity:.14,width:1}},axisTick:{show:!1},axisLabel:{show:!0,color:"#8F9297",fontSize:12,fontWeight:400},splitLine:{show:!1,lineStyle:{color:"#FFFFFF",width:1,opacity:.15,type:"dashed"}}},series:[{data:c,type:"custom",renderItem:function(g,m){return v(g,m)},itemStyle:{color:{image:i,repeat:"repeat"}}}]};const f=Fo({shape:{x:0,y:0,width:21},buildPath:function(g,m){const b=m.api.coord([m.xValue,0]),w=[m.x-m.width,m.y],S=[m.x-m.width,b[1]],x=[m.x,b[1]],C=[m.x,m.y];g.moveTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(x[0],x[1]),g.lineTo(C[0],C[1]),g.lineTo(w[0],w[1]),g.closePath()}}),d=Fo({shape:{x:0,y:0,width:11,zWidth:11,zHeight:11},buildPath:function(g,m){const b=m.api.coord([m.xValue,0]),w=[m.x,m.y],S=[m.x,b[1]],x=[m.x+m.width,b[1]],C=[m.x+m.width,m.y-m.zHeight];g.moveTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(x[0],x[1]),g.lineTo(C[0],C[1]),g.lineTo(w[0],w[1]),g.closePath()}}),h=Fo({shape:{x:0,y:0,width:21,zWidth:11,zHeight:11},buildPath:function(g,m){const _=[m.x-m.width+m.zWidth,m.y-m.zHeight],b=[m.x-m.width,m.y],w=[m.x,m.y],S=[m.x+m.zWidth,m.y-m.zHeight];g.moveTo(_[0],_[1]),g.lineTo(b[0],b[1]),g.lineTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(_[0],_[1]),g.closePath()}}),p=Fo({shape:{x:0,y:0,width:32,zWidth:11,zHeight:0},buildPath:function(g,m){const b=m.api.coord([m.xValue,0]),w=[m.x-m.width+m.zWidth,20],S=[m.x-m.width+m.zWidth,b[1]],x=[m.x+m.zWidth,b[1]],C=[m.x+m.zWidth,20];g.moveTo(w[0],w[1]),g.lineTo(S[0],S[1]),g.lineTo(x[0],x[1]),g.lineTo(C[0],C[1]),g.lineTo(w[0],w[1]),g.closePath()}});ir("leftRect",f),ir("rightRect",d),ir("topRect",h),ir("bgRect",p);function v(g,m){const _=m.coord([m.value(0),m.value(1)]);return{type:"group",children:[{type:"bgRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:m.style()},{type:"leftRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:{fill:new ts(0,0,0,1,[{offset:1,color:"#024c9e"},{offset:0,color:"#00fdff"}])}},{type:"rightRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:{fill:new ts(0,0,0,1,[{offset:1,color:"#024c9e"},{offset:0,color:"#00fdff"}])}},{type:"topRect",shape:{api:m,xValue:m.value(0),yValue:m.value(1),x:_[0],y:_[1]},style:{fill:"#00fdff"}}]}}r&&n.setOption(r,!0)};U(!0);const s=window.setInterval(()=>{setTimeout(()=>{l()},0)},1e3);pn(()=>{clearInterval(s)}),l();function l(){v8e().then(u=>{u.status==200&&u.data.code==1&&(a.value.length=0,u.data.data.forEach(c=>{a.value.push({name:c.name,value:c.totalCarCount})}),o())})}return(u,c)=>(O(),K("div",dct,[W("div",{style:{width:"95%",height:"100%"},id:"bar-chart",ref_key:"barChartRef",ref:t},null,512)]))}}),pct=$i(hct,[["__scopeId","data-v-c0d3a967"]]),vct={style:{display:"flex","justify-content":"center","align-items":"center",width:"100%",height:"100%"}},gct={style:{width:"98%",height:"95%"}},mct=ge({__name:"left22",setup(e){const t=U({header:["节点","数量"],headerBGC:"#0065CD",oddRowBGC:"",evenRowBGC:"",data:new Array,align:["center","center","center"],unit:"辆"});nt(()=>{n(),setInterval(n,1e4)});function n(){g8e().then(r=>{r.status==200&&r.data.code==1&&(t.value.data.length=0,r.data.data.forEach(a=>{t.value.data.push({name:a.name,value:a.totalCarCount})}))})}return(r,a)=>{const i=Fe("dv-scroll-ranking-board");return O(),K("div",vct,[W("div",gct,[V(i,{config:t.value,style:{width:"100%",height:"100%",color:"burlywood"}},null,8,["config"])])])}}}),yct={style:{display:"flex","justify-content":"center","align-items":"center",width:"100%",height:"100%"}},bct={style:{width:"98%",height:"95%"}},_ct=ge({__name:"right11",setup(e){const t=U({header:["节点","数量"],headerBGC:"#0065CD",oddRowBGC:"",evenRowBGC:"",data:new Array,align:["center","center","center"],unit:"元"});nt(()=>{n(),setInterval(n,1e3)});function n(){y8e().then(r=>{r.status==200&&r.data.code==1&&(t.value.data.length=0,r.data.data.forEach(a=>{t.value.data.push({name:a.name,value:a.feeCount})}))})}return(r,a)=>{const i=Fe("dv-scroll-ranking-board");return O(),K("div",yct,[W("div",bct,[V(i,{config:t.value,style:{width:"100%",height:"100%",color:"burlywood"}},null,8,["config"])])])}}}),Bw=e=>(OA("data-v-067489ef"),e=e(),NA(),e),wct={class:"dp"},Sct={class:"dptop"},xct=Bw(()=>W("div",{class:"grid-content ep-bg-purple-dark"},null,-1)),Cct=Bw(()=>W("div",{style:{width:"100%","font-size":"50px",color:"white","padding-top":"20px","text-align":"center"}}," 车流量统计 ",-1)),Tct=Bw(()=>W("div",{style:{height:"10px"}},null,-1)),kct={class:"dpmain"},Act={class:"dpmainbox"},Mct={class:"dpmainbox1"},Pct=Bw(()=>W("div",{style:{height:"5px"}},null,-1)),Ect={class:"dpmainbox1"},Ict={class:"dpmainbox_row"},Dct={class:"top"},Lct={class:"bottom"},$ct={style:{flex:"1"}},Rct={style:{flex:"1"}},Oct={__name:"pathInfo",setup(e){return(t,n)=>{const r=Fe("el-col"),a=Fe("el-row");return O(),K("div",wct,[W("div",Sct,[V(a,null,{default:fe(()=>[V(r,{span:6},{default:fe(()=>[xct]),_:1}),V(r,{span:12},{default:fe(()=>[Cct]),_:1})]),_:1})]),Tct,W("div",kct,[W("div",Act,[W("div",Mct,[V(Gi,{title:"节点车流量",activeName:pct})]),Pct,W("div",Ect,[V(Gi,{title:"节点流量排名",activeName:mct})])]),W("div",Ict,[W("div",Dct,[V(fct)]),W("div",Lct,[W("div",$ct,[V(Gi,{title:"节点不一致车流量排名",activeName:Jut})]),W("div",Rct,[V(Gi,{title:"节点不一致车辆金额排名",activeName:_ct})])])])])])}}},Nct=$i(Oct,[["__scopeId","data-v-067489ef"]]),Bct={mounted(){window.open("http://10.15.0.20:9440/PrecisePath/pathInfo"),window.close(),this.$router.go(-1)}};function Fct(e,t,n,r,a,i){return O(),K("div")}const Vct=$i(Bct,[["render",Fct]]),zct=[{path:"/PrecisePath",redirect:"/PrecisePath/page/home"},{path:"/",redirect:"/PrecisePath/page/home"},{path:"/PrecisePath/tempPathInfo",component:Vct},{path:"/PrecisePath/page/home",component:Aut},{path:"/PrecisePath/gantryInfo",component:Uut},{path:"/PrecisePath/pathInfo",component:Nct},{path:"/PrecisePath/dataAuditing",component:qut}],Hct=nue({mode:"hash",history:yle(),routes:zct}),bA=Hct,Gct={},Wct={id:"app"};function Uct(e,t){const n=Fe("router-view");return O(),K("div",Wct,[V(n)])}const jct=$i(Gct,[["render",Uct]]),Im=Iz(jct);Im.use(ele);Im.use(bA);Im.config.globalProperties.$echarts=hlt;Im.use(xBe,{locale:jut});Im.mount("#app")});export default Kct();